Application Development and Automation 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: 
Read only

Regarding SAP Scripts

Former Member
0 Likes
711

Hi All,

I have a issue related to SAP Scripts.

I have a internal table data with 10[Suppose] Records.

Each of 10 records data will be having mutiple lines depending upon standard text to be printed.

suppose 1st record will have 10 Lines, 2nd 5 lines so on.

Now i am going to print these records in MAIN Page one after other.

in first page i am able to print 1st record fully.

Then 2nd record i am able to print 3 lines.

Now i need to print rest of 2 lines in next page.

so my question here is how can i know how many lines of one record are printed on 1st page.

Is there anyway we can find out!

One More Issue:

Supppose I am printing My Main window from 20th line of page in PAGE1.

Now i want to print MAIN WINDOW from second page onwards from 5th line .

How can i achieve it.

Thanks in advance.

Thanks & Regards,

Prasad.

1 ACCEPTED SOLUTION
Read only

vinod_gunaware2
Active Contributor
0 Likes
686

/: DEFINE &symbol_name& = 'value'

regards

vinod

7 REPLIES 7
Read only

Former Member
0 Likes
686

Prasad,

If you use the INCLUDE TEXT option it automatically takes care of the page change over. I don't we should control that manually.

Regards,

Ravi

note : Please mark the helpful answers

Read only

naimesh_patel
Active Contributor
0 Likes
686

Hello,

If you are fatching std text then use INCLUDE TEXT in your main window.

Regards,

Naimesh

Read only

Former Member
0 Likes
686

Hi Prasad,

wen data in the main window exceeds the height of the window, it automatically goes to the next page, u need not keep a watch on the no. of lines.

for ur 2nd query, u need to design 2 pages in ur sapscript, first page as it is that u have, the 2nd page u can put the main window beginning from the 5th line or werever u want..,ie, the sapscript design decides where ur data gets displayed,.

Hope it helps,

Regards,

Bikash

Read only

0 Likes
686

Hi,

ACtually issue here is.

For every record i have to print a BOX so if 2nd record stops printing after 3 lines it should print BOX for 3 lines in first page.

Then we need to print remaining lines in a BOX for the lines yet to be printed in second page.

I hope i am clear by now.

Thanks & Regards,

Prasad.

Read only

0 Likes
686

u cannot create dynamic boxes in sapscript..but yes, u can accomplish ur task by using &ULINE& command after every record(one line item) which will draw horizontal lines. also mention the no. of characters to print a continuous line,

eg &uline(50)&

Hope it helps,

Regards,

Bikash

Read only

0 Likes
686

How can we assign one variable to other variable in Layout set!

&V_Page& = &SAPSCRIPT-FORMPAGES&

Read only

vinod_gunaware2
Active Contributor
0 Likes
687

/: DEFINE &symbol_name& = 'value'

regards

vinod