‎2006 Aug 11 3:10 PM
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
‎2006 Aug 11 3:16 PM
HI,
see the below link, this is having Step by step information
http://www.sap-basis-abap.com/sapsf001.htm
Thanks
Sudheer
‎2006 Aug 11 3:16 PM
HI,
see the below link, this is having Step by step information
http://www.sap-basis-abap.com/sapsf001.htm
Thanks
Sudheer
‎2006 Aug 11 4:02 PM
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.
‎2006 Aug 11 5:54 PM
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.