Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

char and n types can I use

I have commented and coded as below

  • Commented - start - 20081008

  • DATA: lv_order_qty TYPE wmeng,

  • lv_cancelled1 TYPE wmeng,

  • lv_cancelled2 TYPE wmeng,

  • lv_delivery TYPE lfimg,

  • lv_open_qty TYPE lfimg,

  • lv_neworderqty TYPE lfimg,

  • lv_pickedqty TYPE lfimg,

  • lv_unshipped_qty TYPE lfimg,

  • Commented - End - 20081008

  • Code addition - start - 20081008

DATA: lv_order_qty(13) TYPE c,

lv_cancelled1(13) TYPE c,

lv_cancelled2(13) TYPE c,

lv_delivery(13) TYPE c,

lv_open_qty(13) TYPE c,

lv_neworderqty(13) TYPE c,

lv_pickedqty(13) TYPE c,

lv_unshipped_qty(13) TYPE c,

  • Code addition - End - 20081008

The quantities are not working .

Means space is coming as CHAR type has by default SPACE.

SO CAN I USE all n TYPES instead of c ? like below

lv_order_qty(13) TYPE

n

,

instead of

lv_order_qty(13) TYPE c,

Tags:
replied

if you don;t want the decimals you have to do like this

DATA: lv_qty TYPE wmeng.

DATA: lv_order_qty(13) TYPE c.

lv_qty = '10.00'.

write lv_qty to lv_order_qty decimals 0.

write lv_order_qty.

if the char declaration has space then check using the intial condition..

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question