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

Processing a Internal Table in SmartForms

Former Member
0 Likes
443

Good Afternoon,

I need to print a letter using my smartform for each line of a internal table.

I'm seeing some examples on how to do that but i still don't understand well the logic and how to define the interface of the form...

Do i need to call the form for each loop line or i only need to pass the table to the form (if so, how do i do it?).

I know this is basic but the examples and stuff i'm searching aren't helping much...

Best Regards,

Pedro Gaspar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
409

HI,

see the below link, this is having Step by step information

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

Thanks

Sudheer

3 REPLIES 3
Read only

Former Member
0 Likes
410

HI,

see the below link, this is having Step by step information

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

Thanks

Sudheer

Read only

Former Member
0 Likes
409

under the table node, create a command node and trigger NEW PAGE. Need to make sure that for the very first time this node should not be triggered as it would created a blank page.

Read only

Former Member
0 Likes
409

Actually you could do it either way.

You could pass the table to the smartform and use a table node to loop through the table into a work area. (or you could use a loop node, however you would like to do it) and use a command node to call a new page as suggested by Siddharth.

Or you could loop through your table in your print program and call your smartform inside the loop, passing the work area to the smartform.