Skip to Content

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

CURR to CHAR conversion

Below is my problem :

TYPES: BEGIN OF SOI_GENERIC_ITEM,

ROW(4) TYPE C,

COLUMN(4) TYPE C,

VALUE(256) TYPE C,

END OF SOI_GENERIC_ITEM.

data:

wa_cell_data TYPE soi_generic_item,

purch_pc type TPM_AMOUNT (of curr21 type).

when i move value from PURCH_PC TO WA_CELL_DATA-VALUE -

no value appears . Kindly help.

Thanks,

Sri

Tags:
Former Member
replied

Hi Sri,

The problem is with the Length of ur Target field which is of 256 Chars ..

You check this code... It is working fine. Hope this will be the perfect solution for u.

TYPES: BEGIN OF SOI_GENERIC_ITEM,

ROW(4) TYPE C,

COLUMN(4) TYPE C,

VALUE(256) TYPE C,

END OF SOI_GENERIC_ITEM.

data:

wa_cell_data TYPE soi_generic_item,

purch_pc type TPM_AMOUNT VALUE '123.45-'.

<b>WRITE PURCH_PC TO WA_CELL_DATA-VALUE LEFT-JUSTIFIED.</b>

WRITE: WA_CELL_DATA-VALUE.

<b>Reward points if Helpful</b>

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question