Skip to Content
author's profile photo Former Member
Former Member

not running in background mode 'N'

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 .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 21, 2009 at 06:52 AM

    Hi,

    After the CALL TRANSACTION just do the COMMIT WORK.

    Hope this helps you

    Regards

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 21, 2009 at 07:00 AM

    Hi,

    After looping your internal table i.e it_final

    REFRESH IT_BDCDATA.

    and then proceed with the performs

    and endloop.

    Regards,

    sirisha tummala

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 21, 2009 at 07:03 AM

    use update mode as S....and display mode as N...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 21, 2009 at 09:01 AM

    Hi,

    After looping your internal table i.e it_final

    REFRESH BDCDAT. as per your code

    and then proceed with the performs

    and endloop.

    Regards,

    sirisha tummala

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 21, 2009 at 09:54 AM

    Give default values to all the input fields in the selection screen....

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Rachel..

      While running the BDC in 'A' Mode check the message that come in the status bar. There could be any screen where just becuase u press enter it is going to the next screen. That is because of your intercation.

      But in the case of background this is not hapening and it fails..

      So make sure whether when u run in foreground you are pressing any additional enter which is not in your recording. This could be the only problem why it is not updating in background.

      Another reson could be that you dont have access to back ground jobs. Check that also..

      Regards

      Ansari

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.