Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

develop a simple smartforms

Former Member
0 Likes
1,913

what are the steps to develop a simple smartforms

1 ACCEPTED SOLUTION
11 REPLIES 11
Read only

Former Member
0 Likes
1,630

SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.

SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can configure forms with data from an SAP System for the relevant business processes.

Execute transaction SMARTFORMS to start SAP Smart Forms.

Key Benefits of SAP Smart Forms:

SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time. You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.

To make changes, use Drag & Drop, Copy & Paste, and select different attributes. These actions do not include writing of coding lines or using a Script language.

Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one. For Web publishing, the system provides a generated XML output of the processed form. Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.

To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.

You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.

You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.

SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.

SAP Smart Forms also support postage optimizing.

Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C

Example Forms Available in Standard SAP R/3

SF_EXAMPLE_01

Simple example; invoice with table output of flight booking for one customer

SF_EXAMPLE_02

Similar to SF_EXAMPLE_01 but with subtotals

SF_EXAMPLE_03

Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request.

Also check this step by step procedure to create SMARTFORMS:

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.h...

Read only

Former Member
0 Likes
1,630

Hi Babu

I'm having a nice document along with screen shots which will help u to develop a smartform ina more easy way so if u provide me your mail id i can provide u the material

Reward all helpfull answers

Regards

Pavan

Read only

0 Likes
1,630

Hi Pavan,

Can you please send me the documentation for the smartform for my reference I am new to smartform.

email : smparvezg@yahoo.com

Regards,

Line

Read only

0 Likes
1,630

Hi Line

I had forwarded u those documents plz check ur mail box

Reward all helpfull answers

Regards

Pavan

Read only

Former Member
0 Likes
1,630

Hi,

Check these step-by-step links

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501...

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-001...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501...

Check these links also.

http://www.sap-basis-abap.com/sapsf001.htm

http://www.sap-press.com/downloads/h955_preview.pdf

http://www.ossincorp.com/Black_Box/Black_Box_2.htm

http://www.sap-img.com/smartforms/sap-smart-forms.htm

http://www.sap-img.com/smartforms/smartform-tutorial.htm

http://www.sapgenie.com/abap/smartforms.htm

for Smartforms material

http://www.sap-basis-abap.com/sapsf001.htm

http://www.sap-press.com/downloads/h955_preview.pdf

http://www.ossincorp.com/Black_Box/Black_Box_2.htm

http://www.sap-img.com/smartforms/sap-smart-forms.htm

http://www.sap-img.com/smartforms/smartform-tutorial.htm

http://www.sapgenie.com/abap/smartforms.htm

How to trace smartform

http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF

http://www.sap-img.com/smartforms/smart-006.htm

http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

Go through the following Links, here u can find example with step

by step.

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.h...

http://www.sap-img.com/smartforms/smart-006.htm

http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

Regards,

Priyanka.

Read only

Former Member
0 Likes
1,630

hi

just follow the link below .

http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g

regards

ravish

<b>plz dont forget to reward points if helpful</b>

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,630

Take a look at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985">Template, Table, Loop, Command in Smartforms</a> and <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2320e790-0201-0010-5788-b6de414b9e5e">ABAP Code Sample for Reporting with Smart Forms</a>

Regards

Read only

former_member188827
Active Contributor
0 Likes
1,630

if u r new to smartforms , den follow da steps...

1. go to trasactio smartforms ad create a new form giving it some name.

2. then i the form buider, right click on main window and:

create--->text.

3. in the general attributes of text give any text say "abc".

4.activate the form

5. in the enviroment menu, click on function module name ad note the number.

6.go to se 38 ad create an exe type report.

7.click on pattern and give the number u noted in step 5 against the call fuction radio button.

8.activate and execute ur report.

u'll get the smartform u created...

for further help u can chck demoform and reports "ssf* ".

Read only

Former Member
0 Likes
1,630

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

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

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). Select the Global Definitions and provide the names of two variables for controlling the page break after finishing a section of a Customer.

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.

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.

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

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.

At this point select the context menu of the Section and create a Text Element.

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

From the context menu of the Text Element create a series of Program lines.

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 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).

From the context menu of the Program Lines create a second Complex Section.

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

Specify a Table Width and a Line Type.

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

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

Select the Header node and check the New Line checkbox.

At this point from the %Section2 context menu select Create -> Text.

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).

From the context menu of the Footer Event select Create -> Command .

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

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

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).

Start another session and call the transaction SE78.

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.

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.

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

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

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.

Activate the Form from the menu path Form -> Activate.