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: 

Display towards right side

Former Member
0 Kudos
97

Hi,

When the delete flag is set I have to write the amount as '0.00', I tried the following with right justified but it is not working. The value '0.00' is comming to the left. How can I make it to display towards right.

Thanks,

veni.

*lv_amount(5) TYPE c VALUE '0.00',

CONSTANTS lv_amount TYPE p LENGTH 4 DECIMALS 2

VALUE '0.00'.

If not gs_zcoop-delflag IS INITIAL.

WRITE: 155 lv_amount. '

else.

write: 155 gs_zcoop-coopamt.

endif.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
75

Hi,

Try like this:

data: dflg type c.

constants: v_amount type p decimals 2 value '0.00'.

clear dflg.

dflg = 'X'.

if not dflg is initial.

WRITE: 'Amount:', v_amount RIGHT-JUSTIFIED.

endif.

Regards,

Bhaskar

4 REPLIES 4

Former Member
0 Kudos
75

Hi,

just write: 155(6) lv_amount right-justified.

Hope this helps.

Regards,

Bharati

0 Kudos
75

I tried that first only but it did not work. Any other solution...

Thanks,

Veni.

0 Kudos
75

SHIFT lv_amount RIGHT DELETING TRAILING space.

Regards,

Darshan

Former Member
0 Kudos
76

Hi,

Try like this:

data: dflg type c.

constants: v_amount type p decimals 2 value '0.00'.

clear dflg.

dflg = 'X'.

if not dflg is initial.

WRITE: 'Amount:', v_amount RIGHT-JUSTIFIED.

endif.

Regards,

Bhaskar