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

about right-aligned

Former Member
0 Likes
721

data: ldf_data1(5) type c,

ldf_data2(5) type c.

the ldf_data2 will be send to the xi,

my requirement is the date of ldf_data2 should be right-aligned.

Any advice will be appriated.

I used the SHIFT command. sometimes error happened

for example

ldf_data1 is 9.999

ldf_data2 = ldf_data1.

shift ldf_data2 right.

result is 9.99, the rightest will be cut

any other way to realize the function.

7 REPLIES 7
Read only

Former Member
0 Likes
700

do this way

write : v_matnr right-justified.

regards,

Santosh

Read only

0 Likes
700

shift <var> right deleting trailing ' ' .

this will right justify it

Raja

Read only

Former Member
0 Likes
700

try this....

ldf_data1 is 9.999

WRITE ldf_data1 TO ldf_data2 RIGHT-JUSTIFIED.

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
700

Hi,

Please try this.


...

WRITE ldf_data2 TO ldf_data2 RIGHT-JUSTIFIED.

...

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
700

Hi ,

1. If ldf_data1 is 9.999 and you want to move it to ldf_data2, do this way...

WRITE ldf_data1TO ldf_data2 RIGHT-JUSTIFIED.

This will move the data from ldf_data1 to ldf_data2 with right justified.

2. If you want to display the value use the following statement.

WRITE : ldf_data2 RIGHT-JUSTIFIED.

Regards,

Jayaram...

Read only

0 Likes
700

if the data2 is multiple-layer veraint. how to do

Read only

0 Likes
700

any other method?