Dear Gurues,
Im writing a program for mass update the Budget Price in Transaction Code KO22 using a BDC.
I have complete my codings but,when i execute in foreground i found that the amount is not updated in the field.I belived is something wrong with my codings which i dont know how to solve it.
Can anyone review my BDC codes and let me know whats wrong with my code. Im only having problem in updating BPDY-WERT1(01) field. ( Which is Amount Field ).
Below is my codes for BDC :-
LOOP AT ITAB_BDC.
perform bdc_dynpro using 'SAPMKBUD' '0300'.
perform bdc_field using 'BDC_OKCODE'
'/EEOKS'.
perform bdc_field using 'BDC_CURSOR'
'CODIA-AUFNR'.
perform bdc_field using 'BDC_CURSOR'
'SVALD-VALUE(01)'.
perform bdc_field using 'BDC_OKCODE'
'=FURT'.
perform bdc_field using 'SVALD-VALUE(01)'
p_kokrs.
perform bdc_dynpro using 'SAPMKBUD' '0300'.
perform bdc_field using 'BDC_CURSOR'
'CODIA-AUFNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'CODIA-AUFNR'
ITAB_BDC-order.
'E11101000100'.
perform bdc_dynpro using 'SAPLKBPP' '0320'.
perform bdc_field using 'BDC_CURSOR'
'BPDY-WERT1(01)'.
perform bdc_field using 'BDC_OKCODE'
'=POST'.
perform bdc_field using 'DROPT-PTIME'
'1'.
perform bdc_field using 'BPDY-WERT1(01)'
ITAB_BDC-amt.
' 110.00'.
perform bdc_transaction using 'KO22'.
PERFORM BDC_REPORT.
ENDLOOP.