• No results found

Step by Step SmartForms

N/A
N/A
Protected

Academic year: 2021

Share "Step by Step SmartForms"

Copied!
38
0
0

Loading.... (view fulltext now)

Full text

(1)

Search: The Web TripodTop 100 | Next Report Abuse » « Previous | Select Rating share: del.icio.us | digg | reddit | furl | facebook

Stefanos Moschidis - SAP Certified Technical Consultant - How to build a Form with SMARTFORMS

• Call the transaction SMARTFORMS . Enter a name of a new Form to be built with SMARTFORMS and press the Create command button.

(2)

• The Form Builder appears on the screen. Any node can be selected or expanded from the left hand side tree menu.

(3)
(4)

• Select the Form Interface node and provide the names of the internal tables containing the data. (In this example we have a Customer table and a Customer's Transaction Table connected with an one to many relationship).

(5)

• Select the Global Definitions and provide the names of two variables for controlling the page break after finishing a section of a Customer.

(6)
(7)

• In the initialization tab of the Global Definitions node, give the code calculating the number of Customers. Input and output parameters should be provided so that the code works correctly.

(8)

• After expanding the %PAGE1 node, we can notice that a Main Window exists. From the context menu (appearing by clicking the right mouse button) of the Main window select Create -> Complex Section.

(9)

• This Section has data which are processed repeatedly and the Output Type (the format) is Unstructured.

(10)

• The data of this Section are retrieved from the internal table I_ZCUST and are stored in the data structure I_ZCUST in each iteration.

(11)
(12)

• Type the names of the fields of the internal table in the General Attributes tab. The field names are enclosed in ampersands.

(13)
(14)

• This series of Program lines, (actually a single Program line), increases the index of Customers printed by one (Variable INDEX_CUST_PRN). Input and Output

(15)

parameters should be declared on the appropriate fields of the tab (In this case the Input and the Output parameter is the variable INDEX_CUST_PRN).

(16)
(17)

• This Section has data which are processed repeatedly. The Output Type (format) is a table.

(18)
(19)

• Select the Data tab and specify the Loop in the I_ZTRANSACTIONS table and the Where condition.

(20)

• On the Events tab select the Header and Footer events and specify a Height of the Footer.

(21)
(22)
(23)

• On the Global Attributes tab of the Text Element type the fields of the internal table we wish to show on the form enclosed in ampersands. The Text node is Appended directly (check the relevant radio button).

(24)
(25)

• Drag the %Command1 created and drop it on the %Section2 node. A popup window appears and select After the node %Section2.

(26)

• So the %Command1 is aligned to the Footer of %Section2. Check the Go to New Page checkbox.

(27)
(28)

• Select the Conditions tab of the Command element an set the condition that a new page is created if the last customer is not reached by the printing process (I e the Index of the Customers printed is less than the Number of Customers).

(29)
(30)

• Expand the Graphics node on the left hand side tree menu, select BMAP Grid screens node and double click on it. On the right hand side provide the SAP name of a new graphic and check the Color radio button. Press the Import command button.

(31)
(32)

• On the appearing popup window provide the path where the bitmap image is stored and check the checkbox stating that Resides in the Printer Memory. Press the Continue command button.

(33)

• The appearing screen shows that the graphic has been successfully imported into the SAP graphics management.

(34)

• Go back to the session of SMARTFORMS and select the %PAGE1 node. From the context menu select Create -> Graphic .

(35)

• On the General Attributes tab of the %Graphic1 created type the SAP Name of the graphic and provide the Object, ID, Color attribute and Resolution.

(36)
(37)

• The function module SSF_FUNCTION_MODULE_NAME has as its import parameter a name of a Form created with SMARTFORMS and gives as output a

(38)

function module name. The latter when executed with table parameters the internal tables of the SMARTFORMS Form, gives the final printout. The following code is an example of calling the Form created on the previous steps.

• Further reading in the SAP Library on link

http://help.sap.com/saphelp_46c/helpdata/en/a9/de6838abce021ae10000009b38f8 42/frameset.htm . Or through the path Basis Components -> Basis Services / Communication Interfaces (BC-SRV) -> SAP Smart Forms (BC-SRV-SCR) .

References

Related documents

Commercial aircraft programs inventory included the following amounts related to the 747 program: $448 of deferred production costs at December 31, 2011, net of previously

information to reap an unfair benefit. Many of these donations were made at a time when it would have been illegal to make a sale of the same securities due to their access to this

Protection Board: Install protection board over completed membrane, complying with manufacturer's recommendations for both waterproofing sheet and protection course materials..

(a) the entrant does not want the power exercised in relation to the entrant’s person or belongings and is prepared to leave the state building immediately and take the belongings;

The exclusion of sports and activities in the General Exclusions is deleted only with respect to cover under Medical and Other Expenses Section and under Curtailment Section

To extend the program services to additional students and increase the sample for the research study, in 2014 Inwood House expanded the pool of schools further to include small,