BDC Page scroll Issue

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_lipsposnr.


***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|LIPSLGORT({ indx })|.
    PERFORM bdc_field       USING txt_lg
                                  ‘0004’.

    DATA(txt_dlqt|LIPSDG_LFIMG({ indx })|.
    txt_qt wa_lipslfimg.
    PERFORM bdc_field       USING txt_dlqt
                                  txt_qt.

    DATA(txt_pk|LIPSDPIKMG({ 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’.

Screenshot (41).pngScreenshot (42).pngScreenshot (40).png

Scroll to Top