cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Forms need to be generated

Former Member
0 Kudos

Hi Friends,

I have a requirement to issue the Smartfrom for each material in the delivery(I will display some characterstics of each material as a form). This would be called from VL02N through configuration. I have written a driver program and i am calling Smartform's function module as many times as many Number of materials i have inside the loop. But i am not getting all smartforms. I am only getting First material smartform.

Please suggest me proper method.

Thanks,

Sekhar.J

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Instead of putting a loop on function module....you can put all your contents in

the main window and loop it...moreover you can also check the condition...

On change of material number try to put a page break......

You will have to check the number of lines in your internal tables that you are using in the smartforms. see this code i have written using program lines.

flag = 'N'.

DESCRIBE TABLE it_final LINES count.

n = n + 1.

IF n = count.

flag = 'Y'.

ENDIF.

and then for the page break you must hae use 'COMMAND' . in the condition tab for command give condition :

Flag = 'N'.

Try this , this will solve your problem and let me know about it.

Edited by: Sudhanshu Jain on Dec 26, 2007 1:00 PM