2005 Oct 27 5:12 AM
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.
2005 Oct 27 5:16 AM
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
2005 Oct 27 6:19 AM
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
2005 Oct 27 7:01 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |