cancel
Showing results for 
Search instead for 
Did you mean: 

problem workin on loops in SAP SMART FORMS

Former Member
0 Kudos

hi experts ,

im actually rite now working on loops in smart forms , scenario is that , need to develop a FORM , ___TO WRITE A LETTER _______TO 'X' no of employees in company , so in form , INITIALIZATION i selectd name1 from kna1 table upto 10 rows into internal table ITAB ....and under MAIN WINDOW i looped to work area IS_ITAB....for loop i added text node to it and having text .

dear &ls_kna1-name1&

how are you doing , hope letter finds u in pink of health -


thanking you

yours sincerly

management

when i m trying to execute this form im getting text for 10 employees in single page , like this

dear john

-


-


dear miachel

-


-


could any one please help me out such that i get this in seperate page perr employee

Edited by: kiran.kumar on Apr 11, 2011 1:59 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

In u r case u r using the Loop to display the customer information.

So in loop after writing the inforamtion... In smartform there is option called command...in form right click and select create->flowlogic->command, once u select it one node will created as command. Select it in general attribute tab check the option go to new page and provide the page name in it. (ex page1). This command shoul in loop at end.

so that for next record form will go to that page which u specified above.

Regards,

Raghu.

Former Member
0 Kudos

hi

thanks a lot it relly working fine

thanq

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

In Loop at the end ...use the command in smartform.

In that commad specifiy the option Go to new page : for this pass the page name.

so in loop it will display new page for every record.

Regards,

Raghu.

Former Member
0 Kudos

hi

could you please tell in detail

thanq