Log of Batch run, session processed ia RSBDCSUB

Hi All
I have used the below code to push the BDC sessions for processing:
SUBMIT RSBDCSUB
       WITH...
       WITH..
       EXPORTING TO MEMORY
       AND RETURN.
Now i want to get the detail if any errors in the processing.
How do i achieve that, i am unable to find.

You need to poll for the completion of the corresponding job(s), then read the batch session logs/statistics using the RSTS_* functions.  You can see the call sequence using runtime analysis on SM35.

Similar Messages

  • Sales Requisition - Log after batch input session

    Hi gurus,
    I have a batch input sessions (recording) that allows me to close/terminate sales requisitions.
    example:
    clear g_session.
      concatenate 'FECHA_OT' sy-uzeit(4) into g_session.
      perform open_session using g_session.
      loop at t_vbeln into wa_vbeln.
        perform bdc_dynpro      using 'SAPMV45A' '0102'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'VBAK-VBELN'
                                       wa_vbeln-vbeln.
        perform bdc_dynpro      using 'SAPMV45A' '4001'.
        perform bdc_field       using 'BDC_OKCODE'
                                      'BABS'.
        perform bdc_dynpro      using 'SAPMV45A' '0250'.
        perform bdc_field       using 'BDC_OKCODE'
                                      'SUEB'.
        perform bdc_field       using 'RV45A-S_ABGRU'
                                       c_augru.
        perform bdc_dynpro      using 'SAPMV45A' '4001'.
        perform bdc_field       using 'BDC_OKCODE'
                                      'SICH'.
        perform insert_session using 'VA02'.
        clear bdcdata. refresh bdcdata.
      endloop.
      perform close_session.
      if sy-subrc = 0.
        perform submit_session using g_session ' '.
      endif.
    Is it possible to write all the sales requisitions after this recording, for example the input data is this working area  "wa_vbeln-vbeln.",
    but in the end the log is:
    BDC_OPEN_GROUP                 returncode:      0    
    BDC_INSERT VA02 returncode:     0  RECORD:          0
    BDC_INSERT VA02 returncode:     0  RECORD:          0
    BDC_INSERT VA02 returncode:     0  RECORD:          0
    BDC_INSERT VA02 returncode:     0  RECORD:          0
    BDC_INSERT VA02 returncode:     0  RECORD:          0
    BDC_INSERT VA02 returncode:     0  RECORD:          0
    Is it possible to show all the sales requisitions that are terminated?
    Thanks in advance,
    Mário.

    1. Go to OBY6 and open company code 3000.
    2. Copy the Chart of Account assigned to company 3000
    3. Go to OBD4 and check all the account groups for copied COA
    4. Now compare all the account groups for COA EKCA
    5 Create the missing account groups for EKCA.
    Unfortunately i did the same steps and now i am stuck with several errors that i need to keep pressing Enter until all are done.    
                    So my question this time :  " How can i get myself out of this instead click Enter for another 200 times. "

  • How to check whether a batch input session is completed in ABAP program

    I have created a ABAP program to create a batch input session (reference to RSBDCSUB). After the creation of the batch input session, I kick it to start and read the execution log. However, sometimes I cannot read anything from the execution log as the execution of the batch input is a synchronized process to the execution of my program, i.e. at the time being that I try to read the log of a particular transaction, that transaction is being processing / haven't start processing.
    How can I check whether a batch input session is completed in the program?
    The code that corresponding to the triggering of batch input session:
    SUBMIT (SUBREPORT)
       USER MTAB-USERID
       VIA JOB MTAB-GROUPID
       NUMBER JNUMB
       WITH QUEUE_ID  EQ MTAB-QID
       WITH MAPPE     EQ MTAB-GROUPID
       WITH MODUS     EQ 'N'
       WITH LOGALL    EQ LMODUS
    Or is there any method to wait here until the process is completed before further processing?

    Hi gundam,
    1. Or is there any method to wait here until the process is completed before further processing?
    There is no such direct method to wait.
    2. Immediately after submitting in background,
       we cannot wait
      neither can we LOOP and go on detecting
      whether the b/g process has completed or not !
    3. To over come such problems,
      we have to use another technique.
    4. we have to submit another
       job which will get triggered
       on event SAP_END_OF_JOB
       ie. when the original job will finish,
      our new job will AUTOMATICALLY get triggered,
    5. This new job / program
       will do the FURTHER actions !
    regards,
    amit m.

  • Batch input session for FI postings

    At the time of batch input session processing for FI postings (Transaction FB01), session is terminated due to following error message -
    Message no. 00349
    Field BSEG-PRZNR. does not exist in the screen SAPMF05A 0302
    Batch session has been created using LSMW for data upload. As per field status of the GL account, some of the line items may or may not require an entry for particular field. How can we ignore this error during batch input session when a field is not required to be input for a particular GL account. However, flat file format contains this field because it is required for some of the GL accounts.
    Let me know if you need more information / example. I desperately need a solution.
    Regards,

    Dear Abhilasha,
    Lets assume you have two gl accounts gl1 and gl2. gl1 requires this field to be entered, whereas gl2 does not allow you to enter value.
    In this case, modify your logic as below:
    I believe you can write code in LSMW as well.
    However, if you are using BDC you can write logic as follows:
    if gl_account_field = gl1.
      PERFORM bdc_field       USING 'BSEG-PRZNR'
                                           value.
    endif.
    Hope this will help.
    Regards,
    Naveen.

  • SM35 - manual processing of the batch input session

    Hello,
    In SM35 I see that some batch input sessions were processed by user XXX-XXXX (user type:System) (in our case INT-3528) in N mode. The question is: how to determine the exact user who has really processed that session? We need to stop that - I guess - automatic processing of the sessions and process them manually.
    Thanks for help,
    Slawek

    Hi,
    also, you can check the logs directly in SM35. So if any documents were posted (or anyting updated in the system) information about what happened should be shown there.
    If there were acounting documents (table BKPF), I think the user name will be the same system user "who" has processed the sessions.
    I think that your basis team has set up the system in a way that batch input sessions are processed automatically. This is simialr when scheduled jobs are running under a pseudo user name (system user, IT user, not a real person behind). You can ask the basis team to switch off this automatic processing competely or only for selected sessions.
    Hope that helps, points welcome
    Csaba

  • LSMW Issue at step -Run Batch Input Session

    Dear gurus,
                     While uploading service master through lSMW while processing the system prompts a message specifying "Buffertable not upto date" at Run Batch Input Session step .So please investigate what is missing/wrong.
    Wirth regards,
    Raj

    I dont think that this has directly something to do with LSMW.
    It is more related to the transaction your try to post in the batch input.
    Search OSS with the error message number. I had seen some notes for number SE001, but your message is actually twice in the message table, and you did not tell the message number.
    If it is message SE001, then you may find programm corrections in OSS.
    Otherwise just log out and in again and try, or open a message at OSS yourself if the problem still persists

  • How to process batch input session through program

    Hi Friends,
    I am getting 5 batch input sessions in SM35,but  I want to process these all sessions through program without going to SM35.
    How it is possible through Program?
    Please Guide me!
    Thanks,
    Yogesh

    Hi,
    It's the report to run the batchinput sessions.
    When you create to B.I. session, you can execute it by transaction SM35 (but it uses rsbdcsub) or rsbdcsub.
    For example you can use it in the same program where you create B.I.:
    Here the code to fill the structures of FI batch input
    standard....
    ...here it creates session...
    SUBMIT RFBIBL00 WITH DS_NAME = VA_FILE
    WITH CALLMODE = CALLMODE AND RETURN.
    ....here it runs session....
    SUBMIT RSBDCSUB WITH MAPPE = P_NAME
    WITH VON = SY-DATUM
    WITH BIS = SY-DATUM
    WITH FEHLER = ' '
    TO SAP-SPOOL
    LIST NAME P_NAME
    LIST DATASET P_NAME
    COVER TEXT P_NAME
    NEW LIST IDENTIFICATION ' '
    EXPORTING LIST TO MEMORY
    AND RETURN.
    regards,
    Shiva.

  • Batch input session from F.05 has an 'in processing' status

    Hello all,
    We would like to ask for advice regarding an issue that we are facing right now. We ran F.05 on 9/30/2008. This transaction should create a batch input
    session and post revaluation at the end of the month and eventually
    reverse them at the beginning of the next month. Unfortunately, as of
    the date of the run, period 10 was not yet open. So, the results are
    the following:
    The batch input created, until now, has an 'in processing' status. 70
    transactions were supposed to be processed (but not sure if this is
    already the total or it still has some more to process -since we do not
    have a record of the supposed number of postings). Now, period 10 is
    already open and we are trying to reprocess the session, but it can't
    be because of its status.
    Looking at the transactions: total is 70 (but not sure if there are
    still more to be processed supposedly). 35 transactions (pertaining to
    the revaluation postings at the end of the month) have been processed and
    their revaluation documents were already produced. 35 transactions (pertaining to the
    supposed reversal on the first day of October) are in error because
    period 10 was not yet open as of run date. No logs have been created (blank).
    In the meantime, can we post manual reversals in October for the revaluation postings made in September? Is there a possibility that there are still revaluations to be processed for September? Let's say, instead of only 35, there are still more? Or another option: could we manually reverse the revaluation postings on September 30 and post on the same date, delete the batch input session (can it be deleted despite the status?), then run the revaluation transaction again for September?
    Thanks in advance for your advice.
    Regards,
    Peter

    Hi Peter,
    Go to SM35 > Select the session in process > Release session (Shift + F4)
    Now select the session again from "Overview" and process again in order to process the remaining documents. Ensure the period is opened.
    This should resolve the issue. Let me know how it goes.
    Rgds
    Nadini

  • Function to Release and Process a batch imput session.

    Hi experts,
    Does anibody know a function module that i caold use to release a batch imput session? And another to Process it? Like in Transaction SM35. I need this to do this in a certain case of an abap program i'm developing.
    Thank-you,
    Artur.
    Message was edited by:
            Artur Rodriguez

                       FORM lanzar_recuento                             *
          Función que actualiza la transaccion que le indicamos         *
    FORM lanzar_recuento USING value(p_mappe) LIKE biseg-mappe.
      DATA: lv_numero  LIKE tbtcjob-jobcount,   "ID de un job de fondo
            lv_jobname LIKE tbtco-jobname,      "Nombre job
            lv_jobbina LIKE tbtco-jobname,      "Nombre job BI
            lv_status  LIKE tbtcjob-status.     "Satus del job
      CONCATENATE 'JOB_SM35_' 'P_MAPPE' INTO lv_jobname.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname          = lv_jobname          "Nombre Job
        IMPORTING
          jobcount         = lv_numero           "Número Job
        EXCEPTIONS
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          OTHERS           = 4.
      SUBMIT rsbdcsub
               WITH mappe = p_mappe
               AND RETURN VIA JOB lv_jobname NUMBER lv_numero.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = lv_numero        "Número job
          jobname              = lv_jobname       "Nombre job
          strtimmed            = 'X'  "Inicio inmediato
        EXCEPTIONS
          cant_start_immediate = 1
          invalid_startdate    = 2
          jobname_missing      = 3
          job_close_failed     = 4
          job_nosteps          = 5
          job_notex            = 6
          lock_failed          = 7
          OTHERS               = 8.
      COMMIT WORK AND WAIT.
    *-----Comprobamos que el job se haya ejecutado para continuar.
      DO.
        CALL FUNCTION 'BP_JOB_STATUS_GET'
          EXPORTING
            jobcount                         = lv_numero
            jobname                          = lv_jobname
         IMPORTING
          status                           = lv_status
        HAS_CHILD                        =
         EXCEPTIONS
           job_doesnt_exist                 = 1
           unknown_error                    = 2
           parent_child_inconsistency       = 3
           OTHERS                           = 4.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        IF lv_status NE 'F'.
          WAIT UP TO 1 SECONDS.
          "espere fin trabajo
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    *----Comprobamos que se haya lanzado el BI para continuar.
      CLEAR lv_jobbina.
      lv_jobbina = p_mappe.
      DO.
        CALL FUNCTION 'BP_JOB_STATUS_GET'
          EXPORTING
           jobcount                         = lv_numero
            jobname                          = lv_jobbina
         IMPORTING
          status                           = lv_status
        HAS_CHILD                        =
         EXCEPTIONS
           job_doesnt_exist                 = 1
           unknown_error                    = 2
           parent_child_inconsistency       = 3
           OTHERS                           = 4.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        IF lv_status NE 'F'.
          WAIT UP TO 1 SECONDS.
          "espere fin trabajo
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.                    "lanzar_recuento

  • How to process a batch input session directly from the program

    Hi,
    I have developed a program which will create a batch input session.
    When the program is executed, the session should get processed . ie. the user need not have to go to sm35 to process the session. I am facing some problem in this.
    I am using BDC_INSERT by passing the tcode . The session is getting processed, but when i go to sm35, i noticed that the session is still listed under the "New" tab instead of the "Processed" tab.
    Also I am not getting the final window with the buttons " Session overview" and "Exit Batch Input".
    Please help me out in this.

    Hi
    U have to submit the program RSBDCSUB:
    SUBMIT RSBDCSUB WITH MAPPE = <session>
                    WITH VON   = SY-DATUM
                    WITH BIS   = SY-DATUM
                    WITH FEHLER = ' '
                        EXPORTING LIST TO MEMORY
                                        AND RETURN.
    Max

  • How to delete batch input session still in process since year 2000

    Hi All,
    in our productive system we have still batch input session in process from year 2000, and I would like to delete them, but how to do this, because the error message is "Unable to schedule session .....".
    Thanks for your help

    Hi Olivier  ,
    Such error occurs when you are trying to run session in foreground and some error occurs with connection.
    As such these session are not harmful in any way. You can request basis person to remove those sessions.
    Regards,
    Mohaiyuddin

  • How to run the Batch input session(SM35) in background thru Report program

    Hi Experts,
    I am working in one modification report requirement ,the report is Mass upload will update and run the file via batch input session. The client requirement is to implement the report execution in background mode , the batch input session will process automatically (ie. the job runs the batch input session in background and process the session ends).
    Currently, the report calls SM35 to write a batch input session and the user manually selects the session and record the transactions.
    Once the Transaction enters and the selection-screen inputs are given, then the transaction executed in background mode and all the above batch input process to be implemented.
    Please advise and guide me, how to proceed.
    I need your guidance to proceed via Call transaction using bdcdata statement, if it can be achieved the requirement.
    Thanks & Regards
    San.

    Hi Arabind Prasad,
    Thanks for your inputs.
    I know the process of the report Execution in background and job steps.
    I want the inputs for how to upload thru Batch input session in background job and the session should also processed automatically
    Currently the report logic declared like call transaction 'SM35' and skip first screen.Once the report (tcode) executed (not in background) It writes one session in SM35. The user should select the session and process the transaction manually.
    The new requirement is, if the report (tcode) executes in background mode...what and how the batch input session should be declared and how it process automatically (like you said mode 'N').
    Hope I am clear in my query.
    Please advise.
    Regards
    San.
    Edited by: San Learner on Mar 1, 2011 7:16 PM

  • Update error after all screens in Batch Input session is processed.

    Hi,
    I have a problem in processing the batch input session.  The batch input session is calling F-02 to post less than 999 line items (around 700) to a single financial document. The batch session is expected to have an error because tax code is missing for some line items but even after the tax code is added manually onto the batch screen, the update error message still happened at the end of the process. In the log, it said "System error: Error when inserting table BSET". Same account has been used to post 10+ line items manually with F-02, no error occurred.
    Does anyone have any idea what possible reason could cause the update error in updating the tax table?

    Hi Rob,
    That is exactly what happened to us. We already had note 521481 in our system but we also have OSS 558288 in which causes our scenario not generating an error message but an update termination instead.
    The other thing I found out is once tax code is entering in one of the line items, it will be copied to all the succeeding line items even for the accounts that does not require a tax code (i.e. posting without tax code allowed checked) which will significantly increase the amounts of data posted into BSET.
    We fixed the issue by changing the BDC program so it will take out the auto-copied tax code from other line items. Issue is solved. Thank you. I also rewarded the points.
    Minami

  • Error while Running BRS Batch input session

    Dear Gurus,
    When i am running Batch input session after BRS statement posted, system giving Error message:
    <b>No batch input data for screen SAPDF05X 3100</b>
    Entered, saved and posted the statement. after that while processing session getting error like this........How to overcome.
    Can we post statement directly without creating session.
    Regards,
    Venkat

    Hi,
    The ABAP Counterpart has to build an exception handling for this particular message.
    Normally these messages occur either after an upgrade or after a change in the account(different filed status)
    Provide points if usefull.
    Thanks,
    Praveen

  • How to display custom error message in Job log for batch processing

    Hi All,
    I am rexecuting one R/3 report in batch mode and i want to display all the custom error i have handled in job log when its executed from SM36,SM37. The custom error are like 'Delovery/Shipmet doe not exits' or others which we can display in online mode like message e100(ZFI) or any other way and accordingly we can handle the program control like come out of the program ro leave to transaction'Zxxx' or anything. But i want my program to be executed completely and accumulate all the error in job log of batch processing.
    Can anyone tell me how can i do so...
    Thanks,
    Amrita

    Hi,
    Thats what i have done from the begining. I have written message like this:
    Message i100(ZFI).
    I was hoping to see this message in the log. But i cant see. Can you help me pleae...

Maybe you are looking for

  • Error while Posting Physical Inv Document

    Dear All, While posting physical Inventory Document contains only 776 items only i got this error Maximum number of items in FI reached Message no. F5727 Regards, Pardeep Malik

  • Does SAP offer an equivalent of the PREPARE  command in ORACLE

    Hi Experts, Does anyone knows the equivalent of PREPARE statement in SAP. I'm currently coding using Native SQL & the DB is ORACLE. Here is the code: SQLSTMT = 'SELECT PARTNER FROM BUT000'. EXEC SQL.    PREPARE STATEMENT_NAME FROM :SQLSTMT    DECLARE

  • How to install and use oracle schemas

    Hi, I am trying to prepare for Oracle PL/SQL Developer Associate Exams. I need to download and use Oracle sample schemas like oe, etc. and I don't know how. I have the following on my PC: Oracle® Database Express Edition 10g Release 2 (with the HR sc

  • Import video in iPhoto 11 with Automator workflow

    Hello, I'm trying to do a workflow to convert and import video into a new iPhoto 11 album but the Automator action import only photos in. How can i do that? Thanks.

  • Accessing private field of Derived object in Base class

    Hi, I have this piece of code I wrote a while ago to test something. The issue is accessing a private field of Base class in Base but of a Derived object. Here is the code: class Base      private int x;      public int getX()           return x;