cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript: position inside the window

Former Member
0 Kudos

Hi developers,

I have 2-3 lines in a window that I want to put at the bottom of this window even if the space between the the beginning and the bottom is variable. I can't use another window.

How can I do that?

thanks,

Simone

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Write the lines between

/:Bottom

lines.

/:End Bottom.

hope this helps you

Regards,

Rajani

Former Member
0 Kudos

just for completeness. /: BOTTOM

........

/: ENDBOTTOM

works only in the MAIN window.

If it does not concern the main you have 2 options:

1:You lnow the exact place where your text has to be situated. Make a new (small) window on that place and put your text in.

2:Counting the lines is a possibility but a lot more difficult.

Gr., Frank

Former Member
0 Kudos

try this,

/: BOTTOM

P1: Text

/:ENDBOTTOM

Regards,

Joan

Former Member
0 Kudos

Use:

/: BOTTOM
P1: LInes
/:ENDBOTTOM

Note: Use the Above in TEXT EDITOR(SE71>WINDOW->TEXT EDITOR).

P1 standard paragraph.

Regards,

Gurpreet

Former Member
0 Kudos

Thanks,

but does it work with ITEM ( /E ) ??

I made mistake before and I need to move to the buttom more than 2-3 lines..

I have just tryied as follow:

/: BOTTOM

/E ITEM_1

...

/E ITEM_2

...

/E ITEM_n

/: ENDBOTTOM

but it's not working... I'm new at Sapscript and I'm modifying an old one so I don't know if there's something wrong!

Former Member
0 Kudos

Why don't create one more window and assign height and width according to your requirement.

This will solve your issue.

Thank you

Seshu

Former Member
0 Kudos

/E Items will not work within Bottom----Endbutton

Instead use the following

/E ITEM_1
/: BOTTOM
.......
/: ENDBOTTOM
...
/E ITEM_2
/: BOTTOM
.......
/: ENDBOTTOM

/E ITEM_n

/: BOTTOM
.......
/: ENDBOTTOM

Regards,

Gurpreet

Former Member
0 Kudos

Thanks,

it seems to work now with /E items, but I still have some problems because I'm able to display in this way only the last one... Is there something that allows me to append this line or to choose positions inside the bottom area?

Former Member
0 Kudos

You cannot collect elements or give position within bottom ..Endbottom because once it is called for the first time

Position is fixed and cannot be replaced by another ..

Either you have to give blank lines manually

Or

Set a Flag in the main program.instead of calling with elements

In the script coding instead of using any /E items Use:

Bottom
If &Flag& 
code...to print
Endif
Endbottom

Regards,

Gurpreet