BDC not working in Background mode

Hi All,
I have created a BDC. It is working fine in forground mode but not woking in background mode. Please any one know what could be the problem.
thanks,
Shweta

Hi,
I think there is some field in your screen is disabled for input. As it will not through you error.
Please run you BDC in foreground mode and check it and see if you get any message. it will be a sucess message.
this thing happend to me also as my ship to party was disbled in one of screen of VA02.
thanks,
Sarbpreet

Similar Messages

  • BDC Program is not working in background mode

    Hi All,
             I hv one bdc program for tcode fb02 which is working fine in foreground mode and data is updated to each screen properly. While running the same program in Background mode data is not updated. Can u seggust the solution.
    Regards,
    Rahul S

    Hi ,
    Remove the break point in the BDC performs.
    put the break point once u complete the BDC.... otherwise execute the BDC in MODE 'E'.. error mode.
    regards,
    Rama Reddy
    Edited by: ram reddy on Nov 16, 2009 5:37 AM

  • BDC is not working in background mode and working fine in Foreground mode

    Hi Experts,
    I have created a BDC in SHDB for the transaction code:CWBQM for creating and deleting the record and converted the BDC recording into the program using call transaction. It is working fine in both foreground and background. When I given the same program for users testing one for the user was able to delete the records but Creation is not working in the same BDC. He is able to create the same records in another PC and the problem is only in that PC and only during the creation of the record. When I change the mode to 'A' mode for testing and request the user to execute and it is working fine the records created successfully. What could be the issue ?
    Thanks,
    Hema

    Hello,
    While recording BDC in SHDB try setting "Simulate background mode" flag and give a try.
    Cheers,
    Nag

  • BDC not working in N mode due to 'S' Message but same working in 'E' & 'A'

    Hi ,
    I am using CALL Transaction method for doing a BDC of MBST Transaction ( sap-pp ) .
    When I perform the BDC for multiple items the same works in 'A' and 'E' mode but not in the 'N' mode .
    Please suggest how can I ignore system message in 'N' mode and make the bdc work in background irrespective whether the message comes or not .
    CODE USED :
        CALL TRANSACTION 'MBST' USING it_bdcdata  MODE p_mode " p_mode ( A,N,E)
             UPDATE p_mode MESSAGES INTO it_bdcmsg.

    Hi
    record your BDC for the message type S and try
    Thanks
    Shiva

  • MIR4- Invoice posting BDC not working in background

    Hi All,
    We have a requirement to create a BDC for posting an invoice and have created one. BDC is working in foreground and invoice is getting posted. But when we try to execute the BDC in background it is failing and invoice is not getting posted.
    Please help.
    Below is the dump in ST22.
    Category               ABAP Programming Error
    Runtime Errors         RAISE_EXCEPTION
    ABAP Program           SAPLMR1M
    Application Component  MM-IV
    A RAISE statement in the program "CL_GUI_DOCKING_CONTAINER======CP" raised the
      exception
    condition "CNTL_ERROR".
    Since the exception was not intercepted by a superior
    program, processing was terminated.
    Source code where the program terminated:
    CALL METHOD DOCK_AT_internal
         EXPORTING
             SIDE   = SIDE
             notify = space
         EXCEPTIONS
             CNTL_SYSTEM_ERROR = 1
             CNTL_ERROR = 2.
    CASE SY-SUBRC.
       WHEN 0.
       WHEN 1.
         RAISE CNTL_SYSTEM_ERROR.
       WHEN 2.
       >>>>  RAISE CNTL_ERROR.
       WHEN OTHERS.
         RAISE CNTL_ERROR.
    ENDCASE.

    When I tried checking, I understood that MIR4 transaction screen 6000 has docking container and when a screen has docking container the BDC fails in background. Any workaround other than BAPI for invoice posting as it is not of help in our requirement scenario as we have already checked.

  • BDC not working in N mode,working in A mode

    Hi,
    BDC workds fine in A Mode as i press enter on warning while uploading materials(MM01).
    But in N mode warning messages are captured,material not created.
    can anyone guide me how to supress warning messages in N mode so that materials get created.

    Hi,
    Use the Function Module
    Bapi's instead of BDC --
    BAPI_MATERIAL_SAVEREPLICA      BAPI for Mass Maintenance of Material Data
    BAPI_MATERIAL_SAVEDATA          Create and Change Material Master Data
    go to se37 and enter the above function module and see where used list and try to copy the code and Pass the fields what ever is necessary
    Prabhudas

  • BDC Not working in Background ?

    Hi ,
       we are having one RFC in which we have wriiten a BDC for Customer Mater creation. But this BDC is giving some problem with some screen when it has encountered Duplicate Address. We have taken a proper care in BDC with even this duplicate address recording. This even work fine when it is run in foreground.
    It is only giving problem when this RFC is been called from Other Application.
    Pl. help...
    Regards,
    Umesh

    hI,
           Many SAP transactions behave differently in online mode and in Batch mode and this mode is determined by the SY-BINPT variable that can be controlled using the OPTIONS command in addition to the CALL TRANSACTION.
    For example, the error message that usually comes in status bar while you are running the transaction online might appear in a popup window when you are running that in batch. This will make your fields disabled for input. This OPTIONS addition will remove this problem
    The way to use the OPTIONS addition.
    Declare a work area of type CTU_PARAMS.
    Fill the fields of CTU_PARAMS. The field NOBINPT should be set to ‘X’.
    This will set the SY-BINPT to space. So now the transaction which you will be calling will run in online mode.
    Example.
    clear X_OPTIONS.
    X_OPTIONS-DISMODE = 'E'.
    X_OPTIONS-UPDMODE = 'S'.
    X_OPTIONS-CATTMODE = ' '.
    X_OPTIONS-DEFSIZE = ' '.
    X_OPTIONS-RACOMMIT = ' '.
    X_OPTIONS-NOBINPT = 'X'.
    X_OPTIONS-NOBIEND = ' '.
    call transaction 'BP' using T_BDCDATA[] options from X_OPTIONS.
    Note:
    Do not use the MODE & UPDATE additions when you are using OPTIONS. The mode & update values are passed in the CTU_PARAMS structure.
    <b>Reward points</b>
    Regards

  • BDC is not working in background for Transaction COR6N

    Hi ,
       We have written the BDC program for transaction COR6N. BDC works perfectly in foreground but it's not working for background option.
        SELECT SINGLE AUFPL INTO W_AUFPL FROM AFKO
                  WHERE AUFNR = W_AUFNR.
        SELECT AUFPL VORNR INTO TABLE IT_PHASE FROM AFVC
                WHERE AUFPL = W_AUFPL
                  AND PHFLG = 'X'.
        LOOP AT IT_PHASE.
        WA_BDCDATA-PROGRAM  = 'SAPLCORU_S'.
        WA_BDCDATA-DYNPRO   = '0100'.
        WA_BDCDATA-DYNBEGIN = 'X'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-AUFNR'.
        WA_BDCDATA-FVAL     = W_AUFNR.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-VORNR'.
        WA_BDCDATA-FVAL     = IT_PHASE-VORNR.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'BDC_OKCODE'.
        WA_BDCDATA-FVAL     = '/00'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-PROGRAM  = 'SAPLCORU_S'.
        WA_BDCDATA-DYNPRO   = '0100'.
        WA_BDCDATA-DYNBEGIN = 'X'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-LMNGA'.
        WA_BDCDATA-FVAL     = w_qty. "'60'.
        APPEND WA_BDCDATA TO BDCDATA.
       CLEAR WA_BDCDATA.
       WA_BDCDATA-FNAM     = 'AFRUD-BUDAT'.
       WA_BDCDATA-FVAL     = w_date. "'31.12.2008'.
       APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'BDC_OKCODE'.
        WA_BDCDATA-FVAL     = '=BU'.
        APPEND WA_BDCDATA TO BDCDATA.
        clear X_OPTIONS.
        X_OPTIONS-DISMODE = 'N'.  ' works perfectly for 'A'
        X_OPTIONS-UPDMODE = 'S'.
        X_OPTIONS-CATTMODE = ' '.
        X_OPTIONS-DEFSIZE = ' '.
        X_OPTIONS-RACOMMIT = ' '.
        X_OPTIONS-NOBINPT = 'X'.
        X_OPTIONS-NOBIEND = ' '.
        CALL TRANSACTION 'COR6N'  USING BDCDATA  OPTIONS FROM X_OPTIONS
                           MESSAGES INTO ITAB.
                     MODE 'N'  MESSAGES INTO ITAB UPDATE 'S'.
       WAIT UP TO 3 SECONDS.
        COMMIT WORK AND WAIT.
        CLEAR:BDCDATA[],WA_BDCDATA.

    HI,
    COR6N is the Enjoy Transaction and sap does not suggest to write the BDC on these transaction as most of these transaction uses the GUI elements foe better display and which cannot be recorded while processing the BDC in back ground.
    Check for the Normal transaction and write the BDC for it.
    Or
    Pass X to Rcommit flag in the CTU_PARAMS option and check.

  • BDC not working in MODE "N"

    Hi All,
    I have written a BDC for F-37, which is working fine in all screen mode
    but not working in "N" mode..
    P.S. I have BDC as the only option.
    Thanks in advance,
    Kalyan Venigalla.

    If you look at the documentation of CALL TRANSACTION you can pass BDC options which is of type CTU_PARAMS. In this assign 'X' to field 'RACOMMIT' and try to run the BDC in 'N' mode.
    DATA: OPT TYPE CTU_PARAMS.
    OPT-DISMODE = 'N'.
    OPT-UPMODE = 'L'.
    OPT-RACOMMIT = 'X'.
    CALL TRANSACTION 'F-37' USING BDC_TAB OPTIONS FROM OPT MESSAGES INTO MESSTAB.
    Thanks and regards,
    S. Chandramouli.

  • Open dataset is not working in background in PRD

    Dear All,
    Open dataset is not working in background in PRD .
    OPEN DATASET filepath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    Whike running in foregroundits working dev as well as prd.
    but when i am running in background  its giving error like file not found .
    but al11 is working (i mean my file path is working ).
    Thanks N Regards,
    Srinivasa Reddy

    your authority team shall check the batch user of that abap!
    Could you please tell us the detailed error message?
    grx
    Andreas

  • BADI implementation is not working in background for MRRL

    Hai frnds,
    BADI: MRM_WT_SPLIT_UPDATE is used for deducting withholding tax in MRRL(Invoice verification). This BADI was implemented and working fine in foreground, but not working in background.
    After implementing the BADI, the standard method of calculating TDS(from vendor master) is over written by BADI implementation.Now standard deduction is also not workijng in background.Plz help me to solve it.
    Bala.V

    HI,
    COR6N is the Enjoy Transaction and sap does not suggest to write the BDC on these transaction as most of these transaction uses the GUI elements foe better display and which cannot be recorded while processing the BDC in back ground.
    Check for the Normal transaction and write the BDC for it.
    Or
    Pass X to Rcommit flag in the CTU_PARAMS option and check.

  • Gui_download Function module is not working in Background Scheduling

    Hi Experts,
    Function modules like GUI_DOWNLOAD are not working in background scheduled jobs, It is raising an exception. Though it is working fine in foreground execution.
    Please provide me solution for this challenging task.
    you could be rated well for this question.
    Thanks,
    Rama Krishna.

    Hello,
    work with open dataset and close dataset...
    just loop over itab and transfer itab field for field into a string field separated by ;
    Here is an extract of coding:
    OPEN DATASET p_dath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      LOOP AT itab_pos.
        CLEAR satz.
        MOVE itab_pos-vbeln TO satz-vbeln.
        MOVE ';' TO satz-fill1.
        MOVE itab_pos-kunnr TO satz-kunnr.
        MOVE ';' TO satz-fill2.
        MOVE itab_pos-ktgrd TO satz-ktgrd.
        MOVE ';' TO satz-fill3.
        MOVE itab_pos-fkdat TO satz-fkdat.
        MOVE ';' TO satz-fill4.
        MOVE itab_pos-budat TO satz-budat.
        MOVE ';' TO satz-fill5.
        MOVE itab_pos-cpudt TO satz-cpudt.
        MOVE ';' TO satz-fill6.
        MOVE itab_pos-fkimg TO satz-fkimg.
        MOVE ';' TO satz-fill7.
        MOVE itab_pos-netwr TO satz-netwr.
        MOVE ';' TO satz-fill8.
        MOVE itab_pos-vrkme TO satz-vrkme.
        MOVE ';' TO satz-fill9.
        MOVE itab_pos-ktgrm TO satz-ktgrm.
        MOVE ';' TO satz-fill10.
        MOVE itab_pos-matnr TO satz-matnr.
        MOVE ';' TO satz-fill11.
        MOVE itab_pos-mattxt TO satz-mattxt.
        MOVE ';' TO satz-fill12.
        MOVE itab_pos-gewei TO satz-gewei.
        MOVE ';' TO satz-fill13.
        MOVE itab_pos-brgew TO satz-brgew.
        TRANSFER satz TO p_dath.
      ENDLOOP.
      CLOSE DATASET p_dath.
    It is not so comfortable as it is with GUI_DOWNLOAD but it works in background!

  • SUBMIT does not work in background...

    Hi guys,
    We have a copy program of a standard transaction and once we use this copy program in the main program via SUBMIT... it does not work in background...
    Why is this so,,, Please advice...
    THanks!

    Hi,
    When executing some program using the statement like SUBMIT prog_2 WITH parameters and RETURN.
    In foreground PROG_2 is executed, and once you click on the BACK button the code written after this SUBMIT statement will be executed.
    If you are executing the same in the BACKGROUND mode, no feasibility of clicking on BACK button, hence control will remain in the PROG_2 only after executing its logic.
    Please code accordingly.

  • Program not working ib background

    Moderator message: background/foreground/GUI problems = FAQ, please search before posting.
    Hi All,
    I have a program which is not working in background.It actuly takes the file and using GUI_upload i upload it into ITAb and then modify the database table based on this. But when i process this in foreground it working and updating the table.But when i scedule in background the job is getting over in 1-2 sec and not updating the table.
    Please help me. below is the code for your refrence:
    data:begin of i_tab occurs 0,
          Bp1 like DATAbase table,
          Bp2 like  database table,
         trf1 type string,
         trf2 type string,
         status type string,
      end of i_tab.
    data: BP_ver type STANDARD TABLE OF DATAbase table      with header line ,
          w_ver type  ZVERS_BUT050_CUR .
    DATA: it_tab type filetable,
        gd_subrc TYPE i,
        file_name TYPE string,
        path TYPE string.
    DATA : lw_file TYPE file_table.
    DATA: LIN TYPE I.
    *Input File
    SELECTION-SCREEN begin of block blk with frame title text-100.
    SELECTION-SCREEN SKIP 2.
    parameters : p_file like rlgrap-filename .
    SELECTION-SCREEN end of block blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CLEAR:  file_name.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title     = 'Select only Text File'
          default_filename = '*.txt'
          multiselection   = ' '
        CHANGING
          file_table       = it_tab
          rc               = gd_subrc.
      READ TABLE  it_tab INTO lw_file INDEX 1.
      file_name = lw_file.
      p_file = file_name.
    START-OF-SELECTION.
    *Upload the file
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      = FILE_NAME
         FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
        TABLES
          DATA_TAB                    = i_tab
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      loop at i_tab.
        if i_tab-status = 'Yes'.
          i_tab-status = 'V'.
        else.
          i_tab-status = 'I'.
        endif.
        modify i_tab.
      endloop.
      if i_tab is not INITIAL.
        select * from DATAbase table into CORRESPONDING FIELDS OF TABLE  BP_ver FOR ALL ENTRIES IN i_tab
          where PARTNER1 = i_tab-Bp1 and PARTNER2 = i_tab-bp2  .
      endif.
    *Update the table
      loop at BP_ver .
        clear i_tab.
        read TABLE i_tab  with key bp1 = BP_ver-PARTNER1 bp2 = BP_ver-PARTNER2  .
       if i_tab-bp1 = w_ver-PARTNER1 and i_tab-bp2 = w_ver-PARTNER2.
        BP_ver-PARTNER1 = i_tab-bp1 .
        BP_ver-PARTNER2 = i_tab-bp2 .
        BP_ver-Z_CURRENTLY_VALI = i_tab-status .
        modify BP_ver TRANSPORTING Z_CURRENTLY_VALI .
       endif.
      endloop.
      update DATAbase table from table bp_ver[] .
      if sy-SUBRC eq 0.
        commit work.
        message 'Table DATAbase table Updated Sucsussfully' type 'S'.
      else.
        message 'Table Not Updated !!! Check the file data or input' type 'S'.
      endif.
    Edited by: Thomas Zloch on Nov 12, 2010 11:03 AM

    Hi,
         Look at the coding in FM GUI_UPLOAD ... This does not work in background ....
    Batch mode is not supported
      IF sy-batch = 'X'.
        MESSAGE ID 'FES' TYPE 'E' NUMBER '002' RAISING NO_BATCH.
      ENDIF.
    Regards,
    Srini.

  • In c200 chat is not working on background like 273...

    In 2730 c i will get sound alart when i get a im i will be 24hours online Chat is not working in background in c200 like 2730 c so i cant use im all time how to make it work like 2730 c in my c200 both are s40 no

    Dude, make sure u are on a 3G network to ensure clarity, then also, install skype so that you can get some of those neccessary files/apps to carry out voice stuffs...

Maybe you are looking for