cancel
Showing results for 
Search instead for 
Did you mean: 

How to print a window (ex:total)only after end of main window in SAP Script

Former Member
0 Kudos
49

How to print a window(ex: total) only after end of main window in SAP Script

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

Create a total window and place it after your main window, get the number of lines in your main window and place counter

Ex,&SAPSCRIPT-COUNTER_1(+)&,

IF SAPSCRIPT-COUNTER_1& EQ <number of lines in main window>

**print total

ENDIF.

Regards,

Sairam

Former Member
0 Kudos

Hi

Create a separate window for totals Called TOTAL

give its co ordinates after MAIN window such that its data will be printed just after the Main window

Calculate the totals in a varaible and print this in this TOTALS window

Regards

Anji