Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

sap script problem

I have data in the internal table like

1 A 1-1 100.00

1 A 1-1 200.00

1 A 1-1 300.00

2 B 1-2 100.00

2 B 1-2 200.00

2 B 1-2 300.00

3 C 1-3 100.00

3 C 1-3 200.00

3 C 1-3 300.00

4 D 1-4 100.00

4 D 1-4 200.00

i have to print this data in the script like

*First page

*subject window

A 1-1

*main window

1 A 1-1 100.00

1 A 1-1 200.00

1 A 1-1 300.00

total 600.00

*second page

*subject window

B 1-2

*main window

2 B 1-2 100.00

2 B 1-2 200.00

2 B 1-2 300.00

total 600.00

*Third page

*subject window

C 1-3

*main window

3 C 1-3 100.00

3 C 1-3 200.00

3 C 1-3 300.00

total 600.00

*Fourth page

*subject window

D 1-4

*main window

4 A 1-4 100.00

4 A 1-4 200.00

total 300.00

GrandTotal 2100.00

can anyone help me to get this

iam getting the output as

*First page

*subject window

B 1-2

*main window

1 A 1-1 100.00

1 A 1-1 200.00

1 A 1-1 300.00

total 600.00

*second page

*subject window

C 1-3

*main window

2 B 1-2 100.00

2 B 1-2 200.00

2 B 1-2 300.00

total 600.00

*Third page

*subject window

D 1-4

*main window

3 C 1-3 100.00

3 C 1-3 200.00

3 C 1-3 300.00

total 600.00

*Fourth page

*subject window

D 1-4

*main window

4 A 1-4 100.00

4 A 1-4 200.00

total 300.00

GrandTotal 2100.00

In subject window iam getting the next page record value

can anyone tell me how to avoid this

its urgent requirement

Thanks & regards

Former Member
Not what you were looking for? View more on this topic or Ask a question