cancel
Showing results for 
Search instead for 
Did you mean: 

Scrpits Coversion in subroutine pool?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member585060
Active Contributor
0 Kudos

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

former_member181962
Active Contributor
0 Kudos

Hi Bala,

Just make the high lighted change:

READ TABLE out_tab INDEX 1.

MOVE w_agtxt TO out_tab-value.

MODIFY out_tab INDEX 1.

Answers (1)

Answers (1)

former_member181962
Active Contributor
0 Kudos

did you append the internal table: ITCSY_OUT_TAB

Regards,

ravi

Former Member
0 Kudos

HI,

Yes i am not able to move this DMBTR type field value to the OUT_TAB-VALUE field.

Can you please suggest me the reason behind this.

Sachin.

former_member181962
Active Contributor
0 Kudos

can you show your code in the subroutine pool?