Application Development 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: 

SMARTFORMS

Former Member
0 Kudos
92

Hello,

how to generate smartforms when we give a select-options i.e when we gine a range.

i am getting the form for only parameter( single value )..plz suggest how to proceed further

1 ACCEPTED SOLUTION

Former Member
0 Kudos
67

You can start with selecting the data from table to your internal table and then looping through that table.

for each entry create one document.

3 REPLIES 3

Former Member
0 Kudos
68

You can start with selecting the data from table to your internal table and then looping through that table.

for each entry create one document.

Former Member
0 Kudos
67

Hi Arun,

Go through the following steps,

Step 1: Create a structure in SE11, say <b>ZSMART</b>, with fields

<b>Field_name    Datatype     Length</b>   
 SIGN             char         1
 OPTION           char         2
 LOW              char         18
 HIGH             char         18

Save and Activate this structure.

Step 2: In Transaction SMARTFORM, create a form, and specify under <b>Form Interface</b> -> <b>Table</b> ITAB_SMART LIKE ZSMART

Step 3: In <b>Global Defination</b> -> <b>Global Data</b>

VBAK   TYPE                   VBAK
ITAB   TYPE STANDARD TABLE OF VBAK
WA     TYPE                   MARA

Step 4: In your Program Line ( %CODE1 ) node of SMARTFORM,

 <b>Input Parameters          Output Parameters</b>
         ITAB_SMART                  ITAB

SELECT * FROM VBAK INTO TABLE ITAB WHERE VBELN IN <b>ITAB_SMART</b>.

Step 5: In LOOP ( %LOOP ) node -> Data

ITAB INTO WA

Step 6: Drag and drop the WA contents from the <b>field List</b> (as you do in case of Parameter) on the TEXT node ( %TEXT1 ) of SMARTFORM.

Step 7: In the Report Program take a select option for VBELN field of VBAK table, and call the function module of SMARTFORM.

Whenever you execute the report program with a valid selection criteria for VBELN entry, only that perticular records will be displayed on your SMARTFORM.

Regards,

Abdul.

P.S: Mark Points, if useful!

Let me know if you still have doubts.

Former Member
0 Kudos
67

THANKS