cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Scripts Output Alignment

Former Member
0 Kudos

Hi Experts,

I have four fields to be displayed in a line in the main window in the script. 3 of them are text fields.

the output is appearing as below

AAAAAAA-----22/04/2008-INVOICE TEXT1----


435.53

AAAA---22/04/2008


INVOICE TEXT DISPLAY--


21.00

I want it to be like below

AAAAAAA---22/04/2008---INVOICE TEXT1--


435.53

AAAA--


22/04/2008---INVOICE TEXT DISPLAY-----21.00

Note: the dotted lines separating the text is just drawn to show the space.

the problem is only with the firstand the second field and not with thrid and fourth field

I have used a paragraph format which has tab positions as

0.40 CM LEFT

3.00 CM LEFT

7.30 CM LEFT

13.80 CM LEFT

The code used in the script is as below

&xblnr&,,&v_date&,,,,&bktxt&,,&t_regup-wrbtr&

and I am specifying the llength in the Call Function as welll, as you can see below,

CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'

EXPORTING

name = '&xblnr&'

value = bkpf-xblnr

value_length = 16.

I have tried a lot, now i thought of seeking your inputs.

appreciate your help.

Thanks

Help will be rewarded

Edited by: Sam Al on Apr 22, 2008 5:26 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

first of all you first tab is too small, 0.40 CM. thats why the second field is not fixed, the sapscript will try to print the date 0.40 CM from left, but it is adjusting since your first field is more than 0.40 CM. say adjust your first tab to 2 CM. 2 CM is referring to the position of your date. Remember that the tabs are measured absolutely from left margin.

Former Member
0 Kudos

Hi Tyken26,

Thank you for taking the time to reply,

your reply is very logical and in that case I dont need the 4th tab which i Have declared,

However I tried with the different tab positions and it doesn't help me at all.

for e.g.

3.00 CM LEFT

7.30 CM LEFT

13.50 Cm LEFT

The same problem with the first two fields.

Any clue ?

Former Member
0 Kudos

Hi Sam,

I suggest you try a longer length, just to see if it works. maybe try 5 cm. or limit your first field say &field1(10)&.

hope this helps.

reward points if helpful.

tyken

Former Member
0 Kudos

Hi Every one,

The issue is resolved,

hanks for your help.

I am copying the code from the Script layout and the Tab positions I used to get the required layout.

&xblnr&,,&v_date&,,&bktxt&,,&t_regup-wrbtr&

and

3.00 CM LEFT

7.30 CM LEFT

13.50 CM LEFT

thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

can u try with another lenth.

Regards

Sri