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

Similar Messages

  • Batch imput session.

    Hi.
    I was running a Batch imput session.
    And suddenly my system crashed in the middle of a BDC batch session?
    What shall I do now?
    Thank You

    Hi,
    You can rerun the Session again, so whatever there the records which already processed will come as error records because those were already existed, you can know by seeing the error description of the records or you can delete the records by username or the Date of the records and reprocess the records,
    To eliminate this type of problems you need to use perform <Name> on commitwork
    <b>example:</b>
    PERFORM n ON COMMIT
    Executes the specified subroutine when a COMMIT WORK occurs. This allows you to execute a subroutine only if the logical transaction has ended successfully. The subroutine is not executed until the key word COMMIT WORK is called. FORMs specified several times are executed only once on COMMIT WORK...
    If you call <b>ROLLBACK WORK</b> , you delete all the specified routines...
    Regards
    Sudheer

  • 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

  • SM35: Batch-Input Session cannot be released / RSBDCBTC

    Hi,
    a job with ABAP RSBDCBTC, which processed a batch input session, was cancelled due to system shutdown.
    Now the sm35-session has got status 'In processing' and cannot be released ( Message 00299: Could not release folder MM06_XXXX, since it still contains a background job).
    A new Job finishes with 'The requested session cannot be processed'.
    Is there a possibility to get the batch-input-session released ?
    Wolfrad

    Hi,
    It seems the Batch Input Session had schedule a background job which is still running & hence cannot be released.
    Could you please check in transaction SM37 whether any related background job is still running.
    Select the job & click on Cancel to stop the job. Then retry to release.
    Best regards,
    Prashant

  • How can we correct and process errorrecords in session and call transaction

    hai all
    how ca we correct and process error records  in session and call transaction method . tell me with coding.
    Edited by: swamy katta on May 14, 2008 10:25 AM
    Edited by: swamy katta on May 14, 2008 10:26 AM
    Edited by: swamy katta on May 14, 2008 10:27 AM

    hi,
    Check out the below sample code ...Here are the records are getting posting with call transaction method and a session is getting created with erroreneous records....
    REPORT  ztest_report
    NO STANDARD PAGE HEADING
                            LINE-SIZE 255
                            MESSAGE-ID ZRASH.
    *                 Internal Table Declarations                          *
    *--Internal Table for Data Uploading.
    DATA : BEGIN OF IT_FFCUST OCCURS 0,
             KUNNR(10),
             BUKRS(4),
             KTOKD(4),
             ANRED(15),
             NAME1(35),
             SORTL(10),
             STRAS(35),
             ORT01(35),
             PSTLZ(10),
             LAND1(3),
             SPRAS(2),
             AKONT(10),
           END OF IT_FFCUST.
    *--Internal Table to Store Error Records.
    DATA : BEGIN OF IT_ERRCUST OCCURS 0,
             KUNNR(10),
             EMSG(255),
           END OF IT_ERRCUST.
    *--Internal Table to Store Successful Records.
    DATA : BEGIN OF IT_SUCCUST OCCURS 0,
             KUNNR(10),
             SMSG(255),
           END OF IT_SUCCUST.
    *--Internal Table for Storing the BDC data.
    DATA : IT_CUSTBDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    *--Internal Table for storing the messages.
    DATA : IT_CUSTMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : V_FLAG1(1) VALUE ' ',
    "Flag used for opening session.
           V_TLINES LIKE SY-TABIX,
           "For storing total records processed.
           V_ELINES LIKE SY-TABIX,
           "For storing the no of error records.
           V_SLINES LIKE SY-TABIX.
           "For storing the no of success records.
    *          Selection screen                                            *
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS : V_FNAME LIKE RLGRAP-FILENAME,
                 V_SESNAM  LIKE RLGRAP-FILENAME.
    SELECTION-SCREEN END OF BLOCK B1.
    *          Start-of-selection                                          *
    START-OF-SELECTION.
    *-- Form to upload flatfile data into the internal table.
      PERFORM FORM_UPLOADFF.
    *        TOP-OF-PAGE                                                   *
    TOP-OF-PAGE.
      WRITE:/ 'Details of the error and success records for the transaction'
      ULINE.
      SKIP.
    *          End of Selection                                            *
    END-OF-SELECTION.
    *-- Form to Generate a BDC from the Uploaded Internal table
      PERFORM FORM_BDCGENERATE.
    *--To write the totals and the session name.
      PERFORM FORM_WRITEOP.
    *&      Form  form_uploadff
    *     Form to upload flatfile data into the internal table.
    FORM FORM_UPLOADFF .
    *--Variable to change the type of the parameter file name.
      DATA : LV_FILE TYPE STRING.
      LV_FILE = V_FNAME.
    *--Function to upload the flat file to the internal table.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      =  LV_FILE
    *     FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
    *     HEADER_LENGTH                 = 0
    *     READ_BY_LINE                  = 'X'
    *     DAT_MODE                      = ' '
    *   IMPORTING
    *     FILELENGTH                    =
    *     HEADER                        =
        TABLES
          DATA_TAB                      = IT_FFCUST
        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.
    *--Deleting the headings from the internal table.
        DELETE IT_FFCUST INDEX 1.
    *--Getting the total number of records uploaded.
        DESCRIBE TABLE IT_FFCUST LINES V_TLINES.
      ENDIF.
    ENDFORM.                    " form_uploadff
    *&      Form  Form_bdcgenerate
    *     Form to Generate a BDC from the Uploaded Internal table
    FORM FORM_BDCGENERATE .
    *--Generating the BDC table for the fields of the internal table.
      LOOP AT IT_FFCUST.
        PERFORM POPULATEBDC USING :
                                    'X' 'SAPMF02D' '0105',
                                    ' ' 'BDC_OKCODE'  '/00' ,
                                    ' ' 'RF02D-KUNNR' IT_FFCUST-KUNNR,
                                    ' ' 'RF02D-BUKRS' IT_FFCUST-BUKRS,
                                    ' ' 'RF02D-KTOKD' IT_FFCUST-KTOKD,
                                    'X' 'SAPMF02D' '0110' ,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    ' ' 'KNA1-ANRED'  IT_FFCUST-ANRED,
                                    ' ' 'KNA1-NAME1' IT_FFCUST-NAME1,
                                    ' ' 'KNA1-SORTL'  IT_FFCUST-SORTL,
                                    ' ' 'KNA1-STRAS' IT_FFCUST-STRAS,
                                    ' ' 'KNA1-ORT01' IT_FFCUST-ORT01,
                                    ' ' 'KNA1-PSTLZ' IT_FFCUST-PSTLZ,
                                    ' ' 'KNA1-LAND1' IT_FFCUST-LAND1,
                                    ' ' 'KNA1-SPRAS' IT_FFCUST-SPRAS,
                                    'X' 'SAPMFO2D' '0120',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0125',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0130',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0340',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0360',
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0210',     
                                    ' ' 'KNB1-AKONT'  IT_FFCUST-AKONT,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0215',
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0220',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0230',     
                                    ' ' 'BDC_OKCODE'  '=UPDA'.
    *--Calling the transaction 'fd01'.
        CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'
        MESSAGES INTO IT_CUSTMSG.
        IF SY-SUBRC <> 0.
    *--Populating the error records internal table.
          IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_ERRCUST.
          CLEAR IT_ERRCUST.
    *--Opening a session if there is an error record.
          IF V_FLAG1 = ' '.
            PERFORM FORM_OPENSESSION.
            V_FLAG1 = 'X'.
          ENDIF.
    *--Inserting the error records into already open session.
          IF V_FLAG1 = 'X'.
            PERFORM FORM_INSERT.
          ENDIF.
    *--Populating the Success records internal table.
        ELSE.
          IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_SUCCUST.
          CLEAR IT_SUCCUST.
        ENDIF.
    *--Displaying the messages.
        IF NOT IT_CUSTMSG[] IS INITIAL.
          PERFORM FORM_FORMATMSG.
        ENDIF.
    *--Clearing the message and bdc tables.
        CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].
      ENDLOOP.
    *--Getting the total no of error records.
      DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.
    *--Getting the total no of successful records.
      DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.
    *--Closing the session only if it is open.
      IF V_FLAG1 = 'X'.
        PERFORM FORM_CLOSESESS.
      ENDIF.
    ENDFORM.                    " Form_bdcgenerate
    *&      Form  populatebdc
    *       FOrm to Populate the BDC table.
    FORM POPULATEBDC  USING    VALUE(P_0178)
                               VALUE(P_0179)
                               VALUE(P_0180).
      IF P_0178 = 'X'.
        IT_CUSTBDC-PROGRAM = P_0179.
        IT_CUSTBDC-DYNPRO = P_0180.
        IT_CUSTBDC-DYNBEGIN = 'X'.
      ELSE.
        IT_CUSTBDC-FNAM = P_0179.
        IT_CUSTBDC-FVAL = P_0180.
      ENDIF.
      APPEND IT_CUSTBDC.
      CLEAR IT_CUSTBDC.
    ENDFORM.                    " populatebdc
    *&      Form  FORM_OPENSESSION
    *       Form to Open a session.
    FORM FORM_OPENSESSION .
    *--Variable to convert the given session name into reqd type.
      DATA : LV_SESNAM(12).
      LV_SESNAM = V_SESNAM.
    *--Opening a session.
      CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
         CLIENT                    = SY-MANDT
         GROUP                     = LV_SESNAM
         HOLDDATE                  = '20040805'
         KEEP                      = 'X'
         USER                      = SY-UNAME
         PROG                      = SY-CPROG
    *  IMPORTING
    *    QID                       =
       EXCEPTIONS
         CLIENT_INVALID            = 1
         DESTINATION_INVALID       = 2
         GROUP_INVALID             = 3
         GROUP_IS_LOCKED           = 4
         HOLDDATE_INVALID          = 5
         INTERNAL_ERROR            = 6
         QUEUE_ERROR               = 7
         RUNNING                   = 8
         SYSTEM_LOCK_ERROR         = 9
         USER_INVALID              = 10
         OTHERS                    = 11
      IF SY-SUBRC <> 0.
        WRITE :/ 'Session not open'.
      ENDIF.
    ENDFORM.                    " FORM_OPENSESSION
    *&      Form  FORM_INSERT
    *       fORM TO INSERT ERROR RECOED INTO A SESSION.
    FORM FORM_INSERT .
    *--Inserting the record into session.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          TCODE                  = 'FD01'
    *     POST_LOCAL             = NOVBLOCAL
    *     PRINTING               = NOPRINT
    *     SIMUBATCH              = ' '
    *     CTUPARAMS              = ' '
        TABLES
          DYNPROTAB              = IT_CUSTBDC
        EXCEPTIONS
          INTERNAL_ERROR         = 1
          NOT_OPEN               = 2
          QUEUE_ERROR            = 3
          TCODE_INVALID          = 4
          PRINTING_INVALID       = 5
          POSTING_INVALID        = 6
          OTHERS                 = 7
      IF SY-SUBRC <> 0.
        WRITE :/ 'Unable to insert the record'.
      ENDIF.
    ENDFORM.                    " FORM_INSERT
    *&      Form  FORM_CLOSESESS
    *       Form to Close the Open Session.
    FORM FORM_CLOSESESS .
      CALL FUNCTION 'BDC_CLOSE_GROUP'
        EXCEPTIONS
          NOT_OPEN    = 1
          QUEUE_ERROR = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
      ENDIF.
    ENDFORM.                    " FORM_CLOSESESS
    *&      Form  FORM_FORMATMSG
    *       Form to format messages.
    FORM FORM_FORMATMSG .
    *--Var to store the formatted msg.
      DATA : LV_MSG(255).
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          ID        = SY-MSGID
          LANG      = SY-LANGU
          NO        = SY-MSGNO
          V1        = SY-MSGV1
          V2        = SY-MSGV2
          V3        = SY-MSGV3
          V4        = SY-MSGV4
        IMPORTING
          MSG       = LV_MSG
        EXCEPTIONS
          NOT_FOUND = 1
          OTHERS    = 2.
      IF SY-SUBRC = 0.
        WRITE :/ LV_MSG.
      ENDIF.
      ULINE.
    ENDFORM.                    " FORM_FORMATMSG
    *&      Form  form_writeop
    *       To write the totals and the session name.
    FORM FORM_WRITEOP .
      WRITE :/ 'Total Records Uploaded :',V_TLINES,
               / 'No of Error Records :',V_ELINES,
               / 'No of Success Records :',V_SLINES,
               / 'Name of the Session :',V_SESNAM.
      ULINE.
    ENDFORM.                    " form_writeop
    *  if routeindicator is initial.
    *   LOOP AT IT_YMMEE00090.
    *      LV_LENGTH = STRLEN( IT_YMMEE00090-CHANGETYPE ).
    *      IF SY-TABIX = '1'.
    *        IF  IT_YMMEE00090-CHANGETYPE = 'B' AND LV_LENGTH = 1.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE = 'R' AND LV_LENGTH = 1.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE = 'S' AND LV_LENGTH = 1.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE CA 'BRSCD' AND LV_LENGTH GT 1
    *                                          AND LV_LENGTH LE 5.
    *          ROUTEINDICATOR = 'S'.
    *        ENDIF.
    *      ELSE.
    *        IF  IT_YMMEE00090-CHANGETYPE = 'B' AND LV_LENGTH = 1 AND
    *                                         ROUTEINDICATOR = 'S'.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE = 'R' AND LV_LENGTH = 1 AND
    *                                         ROUTEINDICATOR = 'S'.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE = 'S' AND LV_LENGTH = 1 AND
    *                                         ROUTEINDICATOR = 'S'.
    *          ROUTEINDICATOR = 'S'.
    *        ELSEIF IT_YMMEE00090-CHANGETYPE CA 'BRSCD' AND LV_LENGTH GT 1
    *                  AND LV_LENGTH LE 5 AND ROUTEINDICATOR = 'S'.
    *          ROUTEINDICATOR = 'S'.
    *        ENDIF.
    *      ENDIF.
    *  ENDLOOP.
    * endif.

  • 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

  • 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

  • Batch input session to FB01 using standard program RFBIBL00

    Hi all,
    I am creating a batch input session using the standard program RFBIBL00 to simulate transaction FB01.
    My problem is when I process the "batch input session" (using transaction SM35), this finish ok, but in the log I am retrieving the following message:
      "Field BSEG-DMBTR. does not exist in the screen SAPMF05A 0300"
    This is a success message and the document is created ok,and the field DMBTR is informed ok.
    Has somebody some idea?.
    Thanks so much in advance for any answer.

    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.

  • Running Batch Input sessions in One program

    Hi Guys.
    I am sure this question might have come up before. Reall y  need quick help in this hence posted the same.
    I need to develop a program which creates several batch input sessions.
    At the end of the program all these sessions should ve triggerred in the background.
    Please let me know if this can be done and if yes can someone send me psuedocode for same.
    This is very urgent.
    thx

    Hi Vijay,
    Using the following function modules you can create a batch input session.
    BDC_OPEN_GROUP
    BDC_INSERT
    BDC_CLOSE_GROUP
    Example - http://www.sap-img.com/abap/auto-disallowed-back-posting-to-previous-period.htm
    You can use the program RSBDCSUB to schedule batch input sessions in background.
    http://www.sap-img.com/abap/learning-bdc-programming.htm - How to write BDC program
    Executing batch-input sessions in background jobs - Example for how to call the bdc session.
    Hope these are helpful.
    Thanks
    Vinod

  • Failed to start server domain and process scheduler in the App/Batch VM

    Hi,
    after the modification of /etc/tnsnames.ora in the App/Batch VM :
    [psadm2@psovmab LOGS]$ more /etc/tnsnames.ora
    H91TMPLT=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.133)(PORT=1521)))
    (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=H91TMPLT.corp.peoplesoft.com))
    I can't start server domain and process scheduler :
    NLS:4: Cannot open message catalog TMADMIN_CAT, set 1, num 197; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    NLS:4: Cannot open message catalog TMADMIN_CAT, set 1, num 198; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    INFO: Oracle Tuxedo, Version 10.3.0.0, 64-bit, Patch Level (none)NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 793; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec BBL -A :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 773; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    NLS:4: Cannot open message catalog TMADMIN_CAT, set 1, num 495; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    Attempting to boot ... INFO: Oracle Tuxedo, Version 10.3.0.0, 64-bit, Patch Level (none)
    NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 801; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSWATCHSRV -o ./LOGS/stdout -e ./LOGS/stderr -A -- -ID 55021 -D APPDOM -S PSWATCHSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSAPPSRV -o ./LOGS/stdout -e ./LOGS/stderr [email protected] -- -D APPDOM -S PSAPPSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSAPPSRV -o ./LOGS/stdout -e ./LOGS/stderr [email protected] -- -D APPDOM -S PSAPPSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSQRYSRV -o ./LOGS/stdout -e ./LOGS/stderr [email protected] -- -D APPDOM -S PSQRYSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSSAMSRV -o ./LOGS/stdout -e ./LOGS/stderr -A -- -D APPDOM -S PSSAMSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSBRKHND -o ./LOGS/stdout -e ./LOGS/stderr -s PSBRKHND_dflt:BrkProcess -- -D APPDOM -S PSBRKHND_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSBRKDSP -o ./LOGS/stdout -e ./LOGS/stderr -s PSBRKDSP_dflt:Dispatch -- -D APPDOM -S PSBRKDSP_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSPUBHND -o ./LOGS/stdout -e ./LOGS/stderr -s PSPUBHND_dflt:PubConProcess -- -D APPDOM -S PSPUBHND_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSPUBDSP -o ./LOGS/stdout -e ./LOGS/stderr -s PSPUBDSP_dflt:Dispatch -- -D APPDOM -S PSPUBDSP_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSSUBHND -o ./LOGS/stdout -e ./LOGS/stderr -s PSSUBHND_dflt:SubConProcess -- -D APPDOM -S PSSUBHND_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSSUBDSP -o ./LOGS/stdout -e ./LOGS/stderr -s PSSUBDSP_dflt:Dispatch -- -D APPDOM -S PSSUBDSP_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSMONITORSRV -o ./LOGS/stdout -e ./LOGS/stderr -A -- -ID 55021 -D APPDOM -S PSMONITORSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec JSL -o ./LOGS/stdout -e ./LOGS/stderr -A -- -n //hrapp.xflash.com:9000 -m 5 -M 7 -I 5 -j ANY -x 40 -S 10 -c 1000000 -w JSH :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec JREPSVR -o ./LOGS/stdout -e ./LOGS/stderr -A -- -W -P /home/psadm2/ps/pt/8.50/appserv/APPDOM/jrepository :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 774; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    Thanks

    Hi,
    - Which user are you connected with when running psadmin ?
    psadmin2
    - the output :
    {[psadm2@hrapp appserv]$ ./psadmin
    PSADMIN -- Tools Release: 8.50.02
    Copyright (c) 1988, 2009, Oracle. All rights reserved.
    PeopleSoft Server Administration
    1) Application Server
    2) Process Scheduler
    3) Search Server
    q) Quit
    Command to execute (1-3, q): 1
    PeopleSoft Application Server Administration
    1) Administer a domain
    2) Create a domain
    3) Delete a domain
    4) Import domain configuration
    q) Quit
    Command to execute (1-4, q) : 1
    Tuxedo domain list:
    1) APPDOM
    Select domain number to administer: 1
    PeopleSoft Domain Administration
    Domain Name: APPDOM
    1) Boot this domain
    2) Domain shutdown menu
    3) Domain status menu
    4) Configure this domain
    5) TUXEDO command line (tmadmin)
    6) Edit configuration/log files menu
    7) Messaging Server Administration menu
    8) Purge Cache
    9) Preload File Cache
    10) Clean IPC resources of this domain
    q) Quit
    Command to execute (1-10, q) : 1
    PeopleSoft Domain Boot Menu
    Domain Name: APPDOM
    1) Boot (Serial Boot)
    2) Parallel Boot
    q) Quit
    Command to execute (1-2, q) [q]: 1
    psappsrv.cfg has changed archiving old one...
    Copying APPDOM/Archive/psappsrv.cfg to APPDOM/Archive/psappsrv_123109_1116_13.cfg
    Attempting to boot bulletin board...
    tmadmin - Copyright (c) 2007-2008 Oracle.
    Portions * Copyright 1986-1997 RSA Data Security, Inc.
    All Rights Reserved.
    Distributed under license by Oracle.
    Tuxedo is a registered trademark.
    INFO: Oracle Tuxedo, Version 10.3.0.0, 64-bit, Patch Level (none)NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 793; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec BBL -A :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 774; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    Attempting to boot ... INFO: Oracle Tuxedo, Version 10.3.0.0, 64-bit, Patch Level (none)
    NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 801; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSWATCHSRV -o ./LOGS/stdout -e ./LOGS/stderr -A -- -ID 55021 -D APPDOM -S PSWATCHSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 820; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSAPPSRV -o ./LOGS/stdout -e ./LOGS/stderr [email protected] -- -D APPDOM -S PSAPPSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSAPPSRV -o ./LOGS/stdout -e ./LOGS/stderr [email protected] -- -D APPDOM -S PSAPPSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSQRYSRV -o ./LOGS/stdout -e ./LOGS/stderr [email protected] -- -D APPDOM -S PSQRYSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSSAMSRV -o ./LOGS/stdout -e ./LOGS/stderr -A -- -D APPDOM -S PSSAMSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSBRKHND -o ./LOGS/stdout -e ./LOGS/stderr -s PSBRKHND_dflt:BrkProcess -- -D APPDOM -S PSBRKHND_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSBRKDSP -o ./LOGS/stdout -e ./LOGS/stderr -s PSBRKDSP_dflt:Dispatch -- -D APPDOM -S PSBRKDSP_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSPUBHND -o ./LOGS/stdout -e ./LOGS/stderr -s PSPUBHND_dflt:PubConProcess -- -D APPDOM -S PSPUBHND_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSPUBDSP -o ./LOGS/stdout -e ./LOGS/stderr -s PSPUBDSP_dflt:Dispatch -- -D APPDOM -S PSPUBDSP_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSSUBHND -o ./LOGS/stdout -e ./LOGS/stderr -s PSSUBHND_dflt:SubConProcess -- -D APPDOM -S PSSUBHND_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSSUBDSP -o ./LOGS/stdout -e ./LOGS/stderr -s PSSUBDSP_dflt:Dispatch -- -D APPDOM -S PSSUBDSP_dflt :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec PSMONITORSRV -o ./LOGS/stdout -e ./LOGS/stderr -A -- -ID 55021 -D APPDOM -S PSMONITORSRV :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec JSL -o ./LOGS/stdout -e ./LOGS/stderr -A -- -n //hrapp.xflash.com:9000 -m 5 -M 7 -I 5 -j ANY -x 40 -S 10 -c 1000000 -w JSH :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    exec JREPSVR -o ./LOGS/stdout -e ./LOGS/stderr -A -- -W -P /home/psadm2/ps/pt/8.50/appserv/APPDOM/jrepository :
         NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 821; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8
    NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 773; check TUXDIR=/opt/oracle/psft/appbatch/bea/tuxedo, LANG=en_US.UTF-8}
    -Are you able to connect onto the database from there with the same user ?
    {[psadm2@hrapp appserv]$ sqlplus sysadm/SYSADM@H91TMPLT
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 31 11:40:12 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>}
    thank you in advance
    JM

  • Process Orders, send idoc (LOIPRO) when its released and saved.

    Hi ,
    Here is my requirement.
    For process Orders, send idoc (LOIPRO) when its released and saved. (COR2).
    Here are the options I have tried.
    - Create an enhancement spot after the commit statement, and submit RCCLORD
    For some strange reason Submit to RCCLORD isn't working. Even I have tried to execute it independently, It isn't working properly. It is working fine from POIT, but not independently...
    - Call CLOI_MASTERIDOC_CREATE_LOIPRO function module, but for this I have to get all the related data into proper tables, and I am not sure if it works either.
    I have searched here in SDN to for some help, the closest thread talks about creating a ZFM for IDOC creation, but I dont have much of the details of that.
    Re: Process Orders, send idoc (LOIPRO) while creation/modification(COR1+BADI)
    Need some help on this.
    Thanks & Regards,
    Kalyan Venigalla.

    Hi!
    not sure, but maybe it will help you:
    RCCLORD have code with check already sent orders
    Try add this code before submit RCCLORD
    *         -> free global table for collecting order numbers
              free memory id 'LOIAUFNRTAB'.                        "

  • I cant seem to download and install the latest iphone software update. I have tried since the release and have been unsuccessful on more than 7 occasions and lost all the data on the process. Anyone have that problem an how do I fix this problem?

    I cant seem to download and install the latest iphone software update. I have tried since the release and have been unsuccessful on more than 7 occasions and lost all the data on the process. Anyone have that problem an how do I fix this problem?

    Hi
    Thanks but I have tried doing the above - when I said 7 times I was modest, its more like 15 times.
    And I am referring to the 5.1 software update. I dont have wifi so I guess I will have to try that seeing that my husband also has the same problem - he has also tried downloading several times. It always times out en says that the connection is lost but yet there are always an internet connection and a decent signal once it stopped. Think it said error 32052 or something!
    I am disappointed because the update includes inprovement on the battery life - did you guys notice any difference?

  • ACR use of workdisk and scratchdisk when batch processing images

    I am setting up a new PC optimized for PS, and I and pondering on the optimal disk setup for ACR when I batch process several images:
    Alternative 1
    2 physical disk in raid 0 with 2 partitions, partition 1 for scratch and the second for images to work on.
    The question is if there ever will be a conflict in the sence that PS/ACR wants to access both scratch- and work partitions at the same time? If this should occure, I guess the following is a better setup??:
    Alternative 2
    1 physical disk for scratch
    1 physical disk for images to work on
    Christopher

    Thank you Ramón,
    I am not limited to 2 drives. I am planning on having OS and programs on a third separate disk.
    The point of using alternative 1 would be to use RAID 0 to obtain faster read/write (both for scratch and for reading and saving images on the work partition. However, if scratch usage competes with read/write to the work partition, I'm probably better off with alternative 2. If I work on one image this is simple, however I frequently batch process several RAW images. How does ACR/PS handle this? If all the images initially are read from the work partition and loaded into RAM + scratch and processed there, there will be no competition between the two partitions and I will benefit from the RAID solution. However, if the images are read one or just a few at a time, processed in RAM/scratch and then saved to the work partition, I imagine scratch and work partition could be competing for the the disks read/write head when finished images are being saved and ACR is "waiting" for more images to process??

  • Q. Any command-line options for Digimarc and Elements 7 batch file processing?

    Q. Any command-line options for Digimarc and Elements 7 batch file processing?

    Are you a digimarc subscriber? You would be better off asking them, if so.

  • HT4437 If our company would like to design a device that can meet AirPlay function, what's the process and requirement?

    If our company would like to design a device that can meet AirPlay function, what's the process and requirement?

    Contact Apple instead of posting to these user to user support forums.

Maybe you are looking for

  • Http 401 error starting a managed server

    Hi, I'm new to wl and am setting up a managed server on wl6.0. I read and followed the instructions in the admin guide - really! I have an admin server running under the petstore domain, on port 7001 and am trying to run a managed server under "devdo

  • Serial port vi taking too much time to communicate?

    i am using visa vis for serial communication the read vi takes too much time to give me the bytes at serial port.what should i do to decrease the delay?

  • Oracle 11g ASM - looking for some answers

    Hello, I reviewed a bunch of stuff about Oracle 11g ASM from various sources, but still haven't figured out some answers. Perhaps someone could help me to find the missing links please. Q1) ASMLib seems to require partitions. ASM recognizes partition

  • Pricing Condition Type - Not visible to the customer

    Dear All, What all the config need to set up in the pricing procuder for a condition type to ensure customer did not wish to see the value for the particular condition type on the invoice. However it should have the ability to value in the condition

  • Upgrading to cs4 help needed

    So i downloaded the trial for adobe photoschop cs3, and now i bought photoshop cs4 extended. what is the best way to remove cs3 and install cs4 without losing everything iv done while in the trial period? thanks