08-21-2007 10:04 AM
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
08-21-2007 10:08 AM
Hi
Use this statement to Copy from Curr to Char.
UNPACK PURCH_PC TO WA_CELL_DATA-VALUE.
<b>Reward if Helpful</b>
08-21-2007 10:08 AM
Hi
Use this statement to Copy from Curr to Char.
UNPACK PURCH_PC TO WA_CELL_DATA-VALUE.
<b>Reward if Helpful</b>
08-21-2007 10:29 AM
Still doens't work. The mail problem is with the sign '-' in the CURR Field.
08-21-2007 10:34 AM
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>
08-21-2007 11:15 AM