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: 

Problem in SAP-script alignment

0 Kudos

Hi Experts,

Need your help in aligning script.

in the script output , one field "BAPIESLL-QUANTITY" in not getting display properly.

Problem is if it fetches 6 digit value e.g.100000, it displays proprly aligned but if it fetches 2 digit values its not coming in proper alignment.

I have maintained its left margin as 0.40 CM and TAB as 1CH left alignment.

output is like

1st Output 2nd Output

ACCOM ALLOW HYDRAULIC SERV ACCOM ALLOW HYDRAULIC SERV

60 100000

I am not getting why its showing 2 different alignment format for same filed.

Could you please help me in this issue.

Thanks in advance.

Regards,

Rachna

2 REPLIES 2

Former Member
0 Kudos

Not sure what you are asking, but are you saying that it's left aligned and you need it right aligned, like a number? Have you tried the command (R) for right aligned. I think this addition (like &field(6R)& ) requires a length component following the right-justified 'R' command.

Former Member
0 Kudos

Rachna,

Welcome to SDN.

All quantity and currency fields should be provided with Right-justified.

also in ur code in sapscript hope u used tab notations.

&FIELD1& ,, &FIELD2&

here ' ,, ' will be tab of 0.40 CM

other wise ur field 2 will be starting after the field1.

Regards

Syed A