Skip to Content
0
Former Member
Aug 21, 2009 at 06:48 AM

not running in background mode 'N'

88 Views

hi experts,,,,,

i have a small issues in my BDC

where i face problem when running in background

if i update in 'A' mode its get updated

whereas in background 'N' mode it doesnt take the changes

and CHANGES NOT GETTING REFLECTED/...

can you pls help me out

thanks in advance

Rachel

piece of my code as follows...

============================

LOOP AT it_final INTO wa_final.


    PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '1000'.
    PERFORM bdc_field       USING 'BDC_CURSOR'   'RISA0-SERNR'.
    PERFORM bdc_field       USING 'BDC_OKCODE'   '/00'.

    PERFORM bdc_field       USING 'RISA0-MATNR'   wa_final-matnr.
    PERFORM bdc_field       USING 'RISA0-SERNR'   wa_final-sernr_in.

    PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.
    PERFORM bdc_field       USING 'BDC_OKCODE'   '=EQUI'.
    PERFORM bdc_field       USING 'BDC_CURSOR'   'ITOB-CHARGE'.

    PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.
    PERFORM bdc_field       USING 'BDC_OKCODE'   '=T\01'.
    PERFORM bdc_field       USING 'BDC_CURSOR'   'EQBS-B_LAGER'.

    PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.

    PERFORM bdc_field       USING 'BDC_CURSOR'   'ITOB-SERGE'.

if p_unpair is  initial .
    PERFORM bdc_field       USING 'ITOB-HERST'    wa_final-manf.
*    PERFORM bdc_field       USING 'ITOB-TYPBZ'    wa_final-part.
    PERFORM bdc_field       USING 'ITOB-TYPBZ'    wa_final-model.


    PERFORM bdc_field       USING 'ITOB-MAPAR'    wa_final-part.
    PERFORM bdc_field       USING 'ITOB-SERGE'    wa_final-man_ser.
    PERFORM bdc_field       USING 'ITOB-HERLD'    wa_final-country.
    PERFORM bdc_field       USING 'ITOB-BAUJJ'    wa_final-year.
    PERFORM bdc_field       USING 'ITOB-BAUMM'    wa_final-month.

else .
    PERFORM bdc_field       USING 'ITOB-SERGE'    ''.
endif.


    PERFORM bdc_field       USING 'BDC_OKCODE'   '=BU'.

    CALL TRANSACTION 'IQ02' USING bdcdat
                           MODE pr_mode UPDATE 'A'
                           MESSAGES INTO it_messtab.

    CLEAR: bdcdat[], bdcdat.
    CLEAR: wa_final, wa_messtab.

  ENDLOOP .



end-of-selection .