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

sap script

Former Member
0 Likes
538

my q is can i count Maximum no. of lines a window can accomdate? by looking at the form window or frm any otther means?

not when the data which is coming i want to count what maximum nuo. of lines a particluar window can accoudate how to see it that the window that is in frot of me say ship from how many lines it can accoumate at the max how to see it from form

Window width is 98.00 MM

Window height is 10.08 LN

can we count no. of lines from it?

and how to calculate

secondly

the address is comming by address end adress command

is is possible if hte third line is blank and fourth line data is coming can the fourth line can be shifted to third ( of any comand canbe used in betewee not to dsiplay the blank line)

1 ACCEPTED SOLUTION
Read only

former_member150733
Contributor
0 Likes
511

1. Based on your size of paragraph format or character format and the spacing the lines that can be accomodated in the window can be calculated.

2. Regarding blank lines - before priniting &variable_name& in the sapscript , check if this is initial. this can be done with the

/: IF &variable_name& is not initial

PF &variable_name&

/: endif

Regards,

Anish Thomas

3 REPLIES 3
Read only

former_member150733
Contributor
0 Likes
512

1. Based on your size of paragraph format or character format and the spacing the lines that can be accomodated in the window can be calculated.

2. Regarding blank lines - before priniting &variable_name& in the sapscript , check if this is initial. this can be done with the

/: IF &variable_name& is not initial

PF &variable_name&

/: endif

Regards,

Anish Thomas

Read only

Former Member
0 Likes
511

Hi,

Keep that window height also in MM... now go to the BASIC SETTINGS of the form and check there the no.of lines per inch ( by default it is 6 ).. Now take this calculation ..

1 inch = 2.5 cm..

suppose say your window height is 100 MM then it is = 10CM = 4 inches..

So the no.of lines u can print in this window is .. 6 (no.o lines per inch) x 4(inches) = 24 lines.

In this way u can calculate !!!

reward if it helps u...

sai ramesh

Read only

Former Member
0 Likes
511

problem resolved

we cannot shift fourth line to third if the c mmand of address endaddress is used

if explicitly mentioned it can be done