cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying line items in main window

Former Member
0 Kudos

Hi

I want to create a sapscript from scratch. How do one display multiple line items in a one window.

Do i loop the internal table in the print program and write to scapscript?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

These are things to be taken care.

1.How many pages u have in ur form.

If u have 2 pages then page2 should be set as next page to page1.

If u have 1 page only then set page1 as next page to page1.

2.In both the cases the main window should be same .That is u have to maintain the same main window for page1 and page2.

3.Once these setting are done, then display the line items in the main window with help of text element as said above.

U will get the required out put.

Check and let me know if u face any problem.

Regards

Former Member
0 Kudos

Hi,

Make a Main window in sapscript.

Make a text element say ITEM.

and then give the name of ur variable to be printed as &<variable>&

Now in Program side make a new prog...

get the lineitems in itab

open_form....

loop across the itab

write_form

endloop

close_form

Pls ping me if unclear... i think it helps...

Regards,

Abhishek

raymond_giuseppi
Active Contributor
0 Kudos