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

left justified

Former Member
0 Likes
890

just want to ask what command or function module do i need to use when im transferring data to make it left justified.

i declare as qty(23).then i move the s003-ummenge to qty. what will i do in order that the qty will be left-justified. i wont use WRITE bec qty is a field in an internal table.

thanks.

just want to ask what command or function module do i need to use when im transferring data to make it left justified.

i declare as qty(23).then i move the s003-ummenge to qty. what will i do in order that the qty will be left-justified. i wont use WRITE bec qty is a field in an internal table.

thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
777

if you can convert your field to character type then u can use the SHIFT statement...

DATA str(10) TYPE c VALUE' abf'.

write 😕 str.

SHIFT str LEFT DELETING LEADING space.

write 😕 str.

rgds,

PJ

Read only

Former Member
0 Likes
777

Hi,

you declared qty(23) and u didnot mentioned any thing , then it must be charater and for character the content is always left justified by default.

and even you said that you can't use write but we have

'write to' even in that we can say 'left-justified' or 'right-justified'.

<b>write '24' to qty left-justified.</b>(default)

i tried this with internal table too it's working fine just try it out.

regards

manohar

Read only

Former Member
0 Likes
777

hi,

what is the value of your quantity field

it is like

1 23.00

2 23.00 EA

1. define one character variable like l_quan(23)

l_quan = quan

condense l_quan

2. define two character variables like l_qty(23),l_unit(3)

l_qty = quan+0(20)

l_unit = quan+20(3)

condense l_qty

condense l_unit

concatenate l_qty l_unit into l_qty separated by space

cheers,

sasi