Hello Gurus!!
Greetings !!
Having a problem. Using BDC record i need to complete PGI against Delivery order.
Problem is its skipping one line every time to updated data. I can not find out the problem.Sample code is given here as reference. Please help me to sort it out. Also item number not perfectly maintain which is given in the attachment even its take an extra line also.Its an urgent issue. Please help me.
LOOP AT it_lips INTO wa_lips.
indx = indx + 1.
PERFORM bdc_dynpro USING ‘SAPMV50A’ ‘1000’.
PERFORM bdc_field USING ‘BDC_OKCODE’
‘=POPO_T’.
PERFORM bdc_dynpro USING ‘SAPMV50A’ ‘0111’.
PERFORM bdc_field USING ‘BDC_CURSOR’
‘RV50A-POSNR’.
PERFORM bdc_field USING ‘BDC_OKCODE’
‘=WEIT’.
PERFORM bdc_field USING ‘RV50A-POSNR’
wa_lips–posnr.
***WHEN ON Below code ONE LINE SKIP & SCROLL WORK PERFECTLY WITH UPDATED VALUES
****WHEN OFF ITS SCROLL WORKS PERFECTLY BUT DATA NOT UPDATED
PERFORM bdc_dynpro USING ‘SAPMV50A’ ‘1000’.
PERFORM bdc_field USING ‘BDC_OKCODE’
‘/00’.
DATA(txt_lg) = |LIPS–LGORT({ indx })|.
PERFORM bdc_field USING txt_lg
‘0004’.
DATA(txt_dlqt) = |LIPSD–G_LFIMG({ indx })|.
txt_qt = wa_lips–lfimg.
PERFORM bdc_field USING txt_dlqt
txt_qt.
DATA(txt_pk) = |LIPSD–PIKMG({ indx })|.
PERFORM bdc_field USING txt_pk
txt_qt.
ENDLOOP.
PERFORM bdc_dynpro USING ‘SAPMV50A’ ‘1000’.
PERFORM bdc_field USING ‘BDC_OKCODE’
‘=WABU_T’.
PERFORM bdc_field USING ‘BDC_CURSOR’
‘LIPSD-PIKMG(01)’.
PERFORM bdc_transaction USING ‘VL02N’ ‘A’.