Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Lineitem problem in SAPSCRIPT

Simha_
Employee
Employee
0 Kudos

Hi All,

I have designed a SAPSCRIPT in which for each document there will be no of lineitemss.

I am facing a problem regarding the lineitem print for a particular document. In this if there a five lineitems then 1 lineitem is getting printed on onepage and remaining four on other page.

I want all the lineitems of a particular document on onepage.

How can i incorporate the condition for that.

Please help.

Regards,

Simha.

3 REPLIES 3

Former Member
0 Kudos

Hi narasimha,

1. there might be a NEW-PAGE logic

either in the sapscript layout

, or your driver program.

2. write the line item under a ELEMENT (/E)

and call it in a loop using WRITE_FORM.

3. there is some minor mistake,

either in your program, or layout .

regards,

amit m.

Former Member
0 Kudos

hai,

put a breakpint in the subroutine where the logic for these line item is wriiten and also you can debugg the Sapscript to see after printing the first line the control passes to which line.

cheers

Former Member
0 Kudos

Hi,

Avoiding pagebreaks in a paragraph

/: PROTECT

:

:

/: ENDPROTECT

The text lines to be protected are enclosed between the two commands

Regards

Abhishek