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: 

CURR to CHAR conversion

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

varma_narayana
Active Contributor
0 Kudos

Hi

Use this statement to Copy from Curr to Char.

UNPACK PURCH_PC TO WA_CELL_DATA-VALUE.

<b>Reward if Helpful</b>

4 REPLIES 4

varma_narayana
Active Contributor
0 Kudos

Hi

Use this statement to Copy from Curr to Char.

UNPACK PURCH_PC TO WA_CELL_DATA-VALUE.

<b>Reward if Helpful</b>

0 Kudos

Still doens't work. The mail problem is with the sign '-' in the CURR Field.

0 Kudos

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 Kudos

Thanks ..this works.