cancel
Showing results for 
Search instead for 
Did you mean: 

displaying header and item data using script

Former Member
0 Kudos

Hi friends,

I have to display data using script.

for each and every customer record i have to print the adress of the customer in a address window. the custoemr name and related details in the info window. all the item data should get printed in the main window. i have defined a select option for custoemer. For each and every customer related address , info and data should be printed.all the customers should be displayed in a single form. totally there are 9 records at header level. How can i do this using SAP Scripts.

Accepted Solutions (0)

Answers (1)

Answers (1)

srinivas_akiri
Active Participant
0 Kudos

Hi you can try it as below:

for each customer details start a new page.

to idendity the address needs to be printed in the address widow and info windows, declare two variables integer variables adds, info.

In the address window:

if adds = 1.

print first customer address.

else if adds = 2.

print 2nd customer address.

so ...

endif.

In the main window.

print the item details.

In print program

when ever customer changes call new page using CONTROL_FORM

and increment the values of adds and info by one.

Thanks

Srini