on 07-16-2008 1:29 PM
HI all,
I have a variable type DMBTR and populating some PRICE value into this.
I need to move this value to ITCSY_OUT_TAB-VALUE field(ITCSY is a structure we used to send value from sub routine program to scripts).
When i try to use MOVE stmt its not moving the value,
Can anybody help me reg this?
Sachin.
Edited by: Sachin on Jul 16, 2008 6:05 PM
Edited by: Sachin on Jul 16, 2008 6:06 PM
Hi,
Try to append the out tabe table,
check a sample code, hope this may help u.
FORM get_rfqtxt TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
READ TABLE in_tab INDEX 1.
w_ebeln = in_tab-value.
READ TABLE in_tab INDEX 2.
w_ebelp = in_tab-value.
READ TABLE in_tab INDEX 3.
w_spras = in_tab-value.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_ebeln
IMPORTING
output = w_ebeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_ebelp
IMPORTING
output = w_ebelp.
SELECT agmem
FROM ekpo INTO w_agmem
WHERE ebeln = w_ebeln AND
ebelp = w_ebelp.
SELECT SINGLE agtxt FROM tmamt INTO w_agtxt WHERE agmem = w_agmem AND
spras = w_spras.
ENDSELECT.
READ TABLE out_tab INDEX 1.
MOVE w_agtxt TO out_tab-value.
MODIFY out_tab INDEX sy-tabix.
ENDFORM. "get_rfqtxt
Regards,
Bala Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did you append the internal table: ITCSY_OUT_TAB
Regards,
ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.