BDC VA01 in background mode error

Hi ,
I am psoting data into VA01 using BDC call transaction in background mode for two cases.
For one it is running successfully and for the other it is not.
I have compared the data in the table BDCDATA for both the cases and it is same.
Then I tried debugging in foreground mode and the same case which was not running earlier is running in foreground mode.
Please advice what could be the problem?

>
ABHI wrote:
> I am getting the following messages:
>
>
>
> TCODE     DYNAME     DYNUMB     MSGTYP     MSGID     MSGNR     MSGV1     MSGV2     MSGV3     ENV
> VA01     SAPMV45A     4001     W     VU     1          Purchase order date          CTU
> VA01     SAPMV45A     4001     W     V1     221     5/27/2010               CTU
> VA01     SAPMV45A     103     I     V1     81                    CD
> VA01     SAPMSSY3     131     S     0     344     SAPMSSY3     131          CTU
Hello ABHI,
The problem is because of some breakpoints created by you. So it is entering it to debugger in the background mode which cannot be handled by the BDC. Delete all your breakpoints before testing or open a new logon session to test it in background.
Hope this solves your problem.
Regards,
Karthik D

Similar Messages

  • FB05 CALL TRANSACTION BACKGROUND MODE ERROR

    Hi Experts,
                     I have a recording for FB05 transaction and I using call transaction to run it ..problem is its running fine in Foreground and not in background ...I am getting an error in screen..
    NO BATCH INPUT DATA FOR SCREEN SAPMF05A 0710 
    Actually I know the reason that is that screen has Additional selections in which I have to select the radio-button for Document number as by default always None would be selected. How to achieve this ?? Its urgent please...
    Full points will be rewarded for helpfull answer's..
    Raghav

    Hi,
    Waht ever you want to do do it manually.
    EX;
    Say you are unalbe to record radion button click.
    In your program read recording code  carefully and get confirm where to add your code. Now on your tcode(FB05)  click on F1 help and get the screen field name .Ex: T041T-AUGLT  pass thsi to below perform
    This is to put cursor on radio button
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                         'T041T-AUGLT'.
    This to check
    PERFORM bdc_field       USING 'ITOB-INVNR'
                                          'X'.
    In above code you can write conditions ,like  based on some conditons particular radio button has to check.
    Pls. reward if useful....

  • BDC in Background mode

    Hi
    After running a BDC program in background, next day morning when you see the results, few records
    are not updated(error records). So at that what we do to update the remaining error records.
    Waiting for reply...
    Regards.

    Hi,
            I am also using BDC Uploads in background mode. I move the error records to separate internal table based on MSTYP in call transaction method. After execution of Recording ,that internal table has set of error records .I will get a file path from the variant saved and upload in error records in tat file path in application server . So they Can Know which records are not created.Some Sample code for moving errors.
    CALL TRANSACTION 'VK11' USING it_BDCDATA MODE 'N'
      MESSAGES INTO IT_MESSTAB1.
         loop at IT_MESSTAB1 INTO WA_MESSTAB1 .
        WA_MESSTAB-MSGTYP =   WA_MESSTAB1-MSGTYP .
        WA_MESSTAB-SPRAS = WA_MESSTAB1-MSGSPRA .
        WA_MESSTAB-MES_ID =  WA_MESSTAB1-MSGID     .
        WA_MESSTAB-MES_NO = WA_MESSTAB1-MSGNR    .
        WA_MESSTAB-MSGV1 = WA_MESSTAB1-MSGV1    .
        WA_MESSTAB-MSGV2 = WA_MESSTAB1-MSGV2    .
        WA_MESSTAB-MSGV3  = WA_MESSTAB1-MSGV3     .
        WA_MESSTAB-MSGV4 =  WA_MESSTAB1-MSGV4  .
        WA_MESSTAB-e_rec1 = WA_head1-vtweg .
        WA_MESSTAB-e_rec2 = WA_head1-werks .
        APPEND  WA_MESSTAB TO IT_MESSTAB.
        endloop.
        CLEAR: WA_MESSTAB, WA_MESSTAB1,idx.
        REFRESH IT_MESSTAB1.
        REFRESH IT_BDCDATA.
    IDX = 01.
    ENDLOOP.
    Regards,
    Manesh.R

  • Error in BDC in background mode.

    Hello Experts,
    I am having a query related to BDC. I have written the BDC for TCode : CKMPRPN (Future Price Maintenance). When I execute the BDC thru Call transaction method it works properly.
    When I Create the Session and execute in foreground mode then also it woks but when i try to execute in background mode it gives me an error.
    Please suggest me the proper Solution.
    Thanks
    Swati

    Hi ,
    Check wheter the field names for the transaction recorded are correct sometimes the field names are not fully copied to se38, if the filed name is to long.However when you run the BDC in foreground it runs ,but when you execute in background it fails, Check for the field names for the recorded transaction in SHDB and in the program.
    Thanks,
    Ahsan

  • 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

  • SM35 Re-processing of Incorrect/Error session in Background Mode

    Hi all,
    I am trying to reprocess a session in SM35 which is in Error status. Here I am a facing an issue, if I reprocess this session in background mode then it says that Batch input data is not available for a screen which is already processed. Ideally it should start from the screen where it threw error in the first run. If I select mode as Foreground or Display error then session is getting processed correctly.
    Note:
    If the session is in Ready to Process state then processing in background works perfectly fine. Has anyone came across this problem ?
    Has anyone tried reprocessing Incorrect Session in background mode ??????
    Regrads,
    Antony

    Thanks Sandra,
    Indeed I understood the problem. And the problem is that transaction KEBC is always executed correctly & since its processed correctly its removed from the BDC Queue
    Here transaction KEBC, sets a Memory Parameter, and transaction KEU2, first checks whether the memory parameter is initial, if found intial it pops-up a screen and makes the user enter it. In my case KEBC  always run successfully
    As you rightly suggested when session is in error, transaction KEBC is not getting called again to set the memory parameter & its throwing the pop-up from the transaction KEU2 to be entered by the user. ( BDCDATA currently dosent handle this Pop-up).
    I could have omitted the KEBC transaction, but handling this pop-up from transaction KEU2 becomes tricky since it will only pop-up if the memory parameter is initial. And unfortunately Pop-up is the first screen in the sequence for transaction for KEU2 & nothing can be done in coding level to call KEU2 with the pop-up in all scenarios(Even when Memmory varaible is set) !
    So I am kind of in a dilema, how to handle this? What I am suggesting to the Functional consultant is that let the session be only run in background mode (as it will be always in a new internal session memory variable will always be inital ) & I will record this pop-up in my BDC omitting transaction KEBC.
    Do you have anyother solution for this?
    Or is there any option to re process even the successfull transacations ?

  • 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

  • Bdc in background mode PA30

    hi,
         I facing issue in BDC for PA30, My BDC is working in foreground mode but not running in background mode. purpose of bdc is based on value of itab of previous day data update on next day in backgound.
    below code i m using in BDC :
    INITIALIZATION.
    ctu = 'X'.
    session = ''.
    nodata = ''.
    ctumode = 'N'.
    cupdate = 'L'.
    FORM processs_bdc_data .
      DATA: v_date LIKE sy-datum,
                  begda type pa9004-endda.
      DATA:
            endda(10) TYPE c,
            stime(5) TYPE c,
            etime(5) TYPE c,
            loaddat(10) TYPE c.
      SORT itab BY taskno pernr.
    LOOP AT itab.
        tabix = sy-tabix.
       begda = sy-datum.
          PERFORM open_group.
          PERFORM bdc_dynpro      USING 'SAPMP50A' '1000'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                                '=INS'.
          PERFORM bdc_field       USING 'RP50G-PERNR'
                                                 itab-pernr.
          PERFORM bdc_field       USING 'RP50G-TIMR6'
                                     'X'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                         'RP50G-SUBTY'.
          PERFORM bdc_field       USING 'RP50G-CHOIC'
                                     'Employee Task  Monitoring'.
          PERFORM bdc_field       USING 'RP50G-SUBTY'
                                        '1'.
          PERFORM bdc_dynpro      USING 'MP900400' '2000'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                     'P9004-ZZREMARK'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                     '=UPD'.
          PERFORM bdc_field       USING 'P9004-ZSTATUS'
                                     'NEW TASK'.
          PERFORM bdc_field       USING 'P9004-ZPRIORITY'
                                     'MEDIUM'.
         PERFORM bdc_field       USING 'P9004-ZPERNO'
                                       itab-zperno.
          PERFORM bdc_field       USING 'P9004-BEGDA'
                                        begda.
         PERFORM bdc_field       USING 'P9004-STIME'  '083000'.
         PERFORM bdc_field       USING 'P9004-ENDDA'
                                         begda.
          PERFORM bdc_field       USING 'P9004-ETIME'  '082959'.
         PERFORM bdc_field       USING 'P9004-MNDAT'
                                          begda.
          PERFORM bdc_field       USING 'P9004-TERMN'
          PERFORM bdc_field       USING 'P9004-ZZTASK'
                                   itab-zztask.
          PERFORM bdc_field       USING 'P9004-ZZREMARK'
                                   itab-zzremark.
         call transaction 'PA30' using bdcdata mode ctumode  update cupdate messages into
                                                                         messtab.
    PERFORM messages.
    PERFORM close_group.
    REFRESH : messtab, bdcdata.
      ENDIF.
      ENDLOOP.
    ENDFORM.                    " PROCESSS_BDC_DATA
      What can be the possible reasons for not updating in backoground mode pls sugess me.
    Thanks in advance
    tarun

    Try the following:
    Replace your code
    call transaction 'PA30' using bdcdata mode ctumode update cupdate messages into messtab.
    with
    DATA: gs_options TYPE ctu_params.     "BIM Processing options
    * Set processing options.
      gs_options-dismode  = 'N'.        "N (back) A (Fore) / E (Error)
      gs_options-updmode  = 'S'.           "Synchronous update
      gs_options-defsize  = 'X'.           "Default screen-size (for texts!)
      gs_options-racommit = 'X'.           "COMMIT WORK
    * Perform the transaction 'PA30'
      CALL TRANSACTION 'PA30' USING bdcdata
                           OPTIONS FROM   gs_options
                           MESSAGES INTO messtab.
    Edited by: Rob Postema on Sep 6, 2010 11:00 AM
    Edited by: Rob Postema on Sep 6, 2010 11:00 AM
    Edited by: Rob Postema on Sep 6, 2010 11:00 AM
    Edited by: Rob Postema on Sep 6, 2010 11:01 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

  • Can we schedule BDC in Background Mode - SM37

    Hi Guru,
    Can we schedule our BDC in background - SM37 . Upload file will be on Local Sustem - C drive.
    Regards
    Durgesh
    Moderator message: background/GUI problems = FAQ, please search before posting.
    locked by: Thomas Zloch on Oct 6, 2010 2:14 PM

    GUI functions (like GUI_UPLOAD) will not work in background, they need an actual Gui active.
    There are plenty of threads on  this subject, search also in the wiki for threads/guide like [Working with files |http://wiki.sdn.sap.com/wiki/display/ABAP/Workingwithfiles] or [Communication to Presentation Server in Background Mode|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&overridelayout=true] or [Working with FTP Server |http://wiki.sdn.sap.com/wiki/display/ABAP/WorkingwithFTP+Server]
    (To execute a BDC in background use report RSBDCSUB.)
    Regards,
    Raymond

  • Error in batch session processing in background mode

    Hi ,
    I am trying to do data transfer using batch session for transaction FD32.
    Here the batch session is executing when I am processing the session in foreground.
    Whereas in background mode it is failing.
    Please check and assit.
    Regards
    Kishore

    Hi Kishore,
    Probably it will be some information or warning message which is coming in the background execution of the session.
    That is the reason your session is going into error. Run the errored out session once again in foreground mode. You will get to know the reason of failure.
    Please let us know of any doubts.
    Cheers
    VJ

  • Error in BIM when running in background mode

    Hi,
    I am facing an error when running a BIM in sm35.
    The BIM runs fine with my userid in all three modes( foreground,display error mode, background mode)....but fails when the functional person is testing in background mode. The BIM runs fine in all other modes.
    It gives the message when running in background mode
    "No batch input data for screen SAPLMGMW 4008"
    What should I check or do to correct it.
    Please help.
    Regards
    Rashi

    The BIM runs fine in Foreground mode and in Display error mode even for the functional..It is giving error only for Background mode.
    I also did the following
    1.   Created the BIM in my id and tried running( in background) it using the other id ...it was successful
    2.   Created the BIM in other id and ran ( in background) using my id....it failed.
    I will check again for authorisations also.
    Regards,
    Rashi

  • Call transaction KB21N processed by a program in background mode

    Hi to all,
    I call transaction KB21N using BDCDATA in a custom program. If I process this program in foreground mode all it's OK, but if I process the program in background mode, I have a runtime error with DUMP: RAISE EXCEPTION with exception condition CNTL_ERROR. This program has to be executed in background so a bapi exist to use instead of call transaction or something else?
    Thank you very much,
    regards
    Antonio

    HI Antonio,
    The transaction you are dealing with is an SAP Enjoy transaction and for such transactions it is not recommended to do a BDC. YOu should search for  a BAPI for the same as you have already identified. Basically the enjoy transactions uses GUI controls which cannot be handled by BDC.
    BAPI_ACC_ACTIVITY_ALLOC_POST may serve your purpose.
    Regards,
    ravi
    Message was edited by:
            Ravi Kanth Talagana

  • How to debugg in background mode

    Hi ,
         I have problem while running in background ,
    in mm01 transaction while crating a material in forground it is getting created ,and its perfect .but at the same time while trying to run the BDC in the background
    the same thing is going for dump,so i need to debugg in the background mode .
    can any one help me out on this how to debugg on the background mode.
    Thanks in advance ,
    vinay .

    Hi srinivas,
        Below is the dump iam getting .
    Error analysis
        A RAISE statement in the program "CL_GUI_TEXTEDIT===============CP" raised the
         exception
        condition "ERROR_CNTL_CREATE".
        Since the exception was not intercepted by a superior program
        in the hierarchy, processing was terminated.
        Short description of exception condition:
        For detailed documentation of the exception condition, use
        Transaction SE37 (Function Library). You can take the called
        function module from the display of active calls.
    How to correct the error
        You may able to find an interim solution to the problem
        in the SAP note system. If you have access to the note system yourself,
        use the following search criteria:
        "RAISE_EXCEPTION" C
        "CL_GUI_TEXTEDIT===============CP" or "CL_GUI_TEXTEDIT===============CM002"
        "CONSTRUCTOR"
        or
        "CL_GUI_TEXTEDIT===============CP" "ERROR_CNTL_CREATE"
    "CL_GUI_TEXTEDIT===============CP" "ERROR_CNTL_CREATE"
    or
    "SAPMMG01 " "ERROR_CNTL_CREATE"
    If you cannot solve the problem yourself and you wish to send
    an error message to SAP, include the following documents:
    1. A printout of the problem description (short dump)
       To obtain this, select in the current display "System->List->
       Save->Local File (unconverted)".
    2. A suitable printout of the system log
       To obtain this, call the system log through transaction SM21.
       Limit the time interval to 10 minutes before and 5 minutes
       after the short dump. In the display, then select the function
       "System->List->Save->Local File (unconverted)".
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, select the Editor function "Further Utilities->
       Upload/Download->Download".
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.
    Thanks,
    vinay

  • XLS from Application server in background mode to internal table

    Hi,
    I need to transfer the content of an excel file in the application server to an internal table while running my program in background. My file is xls, cant use csv. For dataset bin mode, I need to know how to transfer the data to my internal table, already searched on forum but didnt find answer, at least not for background..
    ow, I am using v6 here
    about the ALSM_EXCEL_TO_INTERNAL_TABLE, I get the upload_ole error all the time, and with TEXT_CONVERT_XLS_TO_SAP, conversion_failed all the time too...
    here is the code, just the load part and data declaration:
    REPORT zbeto.
    TYPE-POOLS: truxs.
    TYPES:
    BEGIN OF y_cot,
    text1(12) TYPE c,
    text2(12) TYPE c,
    text3(12) TYPE c,
    text4(12) TYPE c,
    text5(12) TYPE c,
    END OF y_cot.
    DATA: it_datatab TYPE STANDARD TABLE OF y_cot,
    wa_datatab TYPE y_cot,
    it_raw TYPE truxs_t_text_data.
    DATA:
    v_file TYPE rlgrap-filename,
    begin_col TYPE i VALUE '1',
    begin_row TYPE i VALUE '2',
    end_col TYPE i VALUE '5',
    end_row TYPE i VALUE '102',
    t_ctmp TYPE y_cot OCCURS 0 WITH HEADER LINE,
    t_xls TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
    PERFORM f_load_xls.
    FORM : f_load_xls
    FORM f_load_xls.
    v_file = '
    ZSAPDEV\SAPDEVINTERF$\COTACAO\TESTE.XLS'.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
    filename = v_file
    i_begin_col = begin_col
    i_begin_row = begin_row
    i_end_col = end_col
    i_end_row = end_row
    TABLES
    intern = t_xls
    EXCEPTIONS
    inconsistent_parameters = 1
    upload_ole = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    i_line_header = 'X'
    i_tab_raw_data = it_raw " WORK TABLE
    i_filename = v_file
    TABLES
    i_tab_converted_data = it_datatab[] "ACTUAL DATA
    EXCEPTIONS
    conversion_failed = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    t_ctmp[] = it_datatab[].
    ENDFORM. "f_load_xls
    both FM arent working, and when I try to execute in background mode, before anything, I recieve the following error:
    Message text:
    Error during import of clipboard contents
    Message class:
    ALSMEX
    Message no.:
    037
    Message type:
    A
    and without the ASLM FM, the TEXT_CONVERT give me the conversion_failed exception...
    the directories are right, that I am sure, because I just copy&paste it from CG3Z/CG3Y when I uploaded and downloaded to
    check the file in the server...
    am I missing something?
    thanks again,
    Roberto Macedo
    (PS: I made another topic because none replied the other in 4 days and wasnt solved yet)

    Hi!
    You didn't find answer for this, because it is not possible. If you run your program in background, it is running on the server, and does not have any connection to your local machine. That's why you can't upload/download in background mode.
    You might try to address somehow your local PC, with its IP or MAC address, but I don't think does this task worth so much time.
    Run your program in online mode, or if you want to run it in background, then upload your file into the SAP server.
    Regards
    Tamá

Maybe you are looking for