Problem submitting RFEBKA00 via Job

Hi experts
  I have a requirement to create a Z program to upload 3 different files by using RFEBKA00.
  For this purpouse, I have created a Z program which creates 3 Z jobs (ZA, ZB, ZC one per file) using JOB_OPEN / SUBMIT program VIA JOB / JOB_CLOSE.
  Once every job is finished, I need to read logs using BP_JOBLOG_READ,and if there are no errors, move files to other folder.
  My questions are:
    1.- When using JOB_OPEN and SUBMIT VIA JOB name NUMBER n, as far as I know n is the number returned by jobcount parameter from JOB_OPEN and should be the same for both jobs (the Zjob created by JOB_OPEN and the one created by program RFEBKA00).When I debbug the program, it is OK, but when accessing table TBTCO sometimes there are 2 different jobcounts. Seems that jobcount is created based on sy-uzeit and sometimes there is some delay between JOB_OPEN and SUBMIT. Is there any way to ensure both jobs have the same jobcount?.
    2.- As I need to read the log for each file, and because of the fact that the job created by submitting RFEBKA00 has always the same name, if the answer to my first question is NO, how can I link each of my Z jobs with its corresponding RFEBKA00 job?.
Many thanks in advance for your answers.
BR,
Carlos.

Hi Thomas
  Thanks for your answer.
  For your first question, there is not BD key problem beacuse of my job is ZJOB and the one created when doing submit via job is RFEBKA00-EXTR.CTA.EL. (standard job) have different names.
  But job number should be the same, because I'm using JOB_OPEN (which return the job number in parameter jobcount) and SUBMIT VIA JOB . 
  For the second question, and based on SAP documentation about SUBMIT , when submitting a program vía job, the submitted program is executed as a background task, which means creating a new job, so the answers is yes, the standard program schedules a new job.

Similar Messages

  • Problem submitting PDF via HTTPS

    I'm an Adobe Acrobat newbie, and am having issues submitting a PDF form to an HTTPS server.  My basic setup is as follows:
    1)  PDF Form with one text field and a single submit button pointing to a https URL.  The button submits in the XDP format.
    2)  A server which can only be accessed through SSL and has a valid SSL certificate
    I get the following error when I hit the submit button in Adobe Reader 9:
    "An error has occurred during the submit process.  The server has an invalid SSL certificate."
    I tried the following:
    1)  Adding the SSL certificate to the Manage Trusted Identities, and pressing the submit button.  Same error.
    2)  After installing the certificate, going to Edit -> Preferences -> Security -> Advanced Preferences, and checking the box for Enable searching the Windows Certificate store for certificates other than your own.  Same error.
    I've tested the servlet by posting through a .NET application and it works fine. Am I missing something here?

    I've fixed this problem.  Turns out my windows certificate store didn't have the Root certificate for my website added in it.  I just found the root certificate online and installed it into the "Trusted Root Certification Authorities" store in windows.  I then went to Edit -> Preferences -> Security -> Advanced Preferences, and checked the box for Enable searching the Windows Certificate store.  Works like a charm now.

  • Problems submitting order via iphoto

    Hi,
    I have a problem placing orders with iphoto. Ordering procedure ok till sending files. Then nothing happens. Internet, email, itunes, account everything ok. security - firewall ok. husband is having same comp. and no problems with his or my account when ordering prints, calendars or books. on my computer its seems impossible. ilife 08 already removed and reinstalled, problem stays the same. helpdesk till now unable to help me.
    I hope some one can help me, and if possible ASAP
    Thanks

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    Regards
    TD

  • Problem in submiting standard program via job

    Hi Experts ,
       I have developed  programs for creating and posting return lots and payment lots for multiple incoming  files. For this i have submited standard  program of FPB3 and FPB5 transaction .  What happened is ,  if the child program fails due to some reason for one file , it is not coming back to the mother program and as a result other files remain unprocessed . So for this i tried with submiting the child program Via job so that if child program fails , only that job will fail and the mother program will not fail , so rest  files will be processed .
    But the problem is the child program (standard program of FPB3/FPB5 )  is not working by this i.e.  the lots are not getting created adn.
    Awaiting for any respone .

    Hi,
    If you are using Submit via Job, you need to use JOB_OPEN and JOB_CLOSE FM's.
    JOB_OPEN : Create a new job and return you the job number which you use in Submit
    JOB_CLOSE: Will set the release conditions of the job.
    Example:
    DATA: number TYPE tbtcjob-jobcount,
          name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          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.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    Jovito

  • Regarding HR_INFOTYPE_OPERATION fm submiting VIA JOB

    Hello Experts,
      I am submitting a program VIA job, in side my submit program i m using this FM HR_INFOTYPE_OPERATION, but this function module not updating any values.
    when i goto the job and tryed debug the job that time  the values are updating.
    is this FM will work only in fore ground.
    and also we i have passed the dialog_mode parameter as "1" also.
    any inputs...
    Thanks,
    Suresh

    see this:
    tables: pa0105.
    infotypes: 0105.
    DATA : I_RETURN TYPE BAPIRETURN1,
           I_KEY TYPE BAPIPAKEY,
           PERNR TYPE P0001-PERNR,
           I_P0105 TYPE TABLE OF P0105 WITH HEADER LINE,
           ENDDA TYPE P0105-ENDDA,
           BEGDA TYPE P0105-BEGDA.
    MOVE '00000010' TO PERNR.
    BEGDA = SY-DATUM + 1.
    ENDDA = SY-DATUM + 1.
    i_p0105-pernr = PERNR.
    i_p0105-infty = '0105'.
    i_p0105-subty = '0002'.
    i_p0105-endda = ENDDA.
    i_p0105-begda = BEGDA.
    I_P0105-USRTY = '0002'.
    I_P0105-USRID = id.
    APPEND i_p0105.
    CALL FUNCTION 'DEQUEUE_ALL' .
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
      EXPORTING
        NUMBER = PERNR.
    IF SY-SUBRC = 0.
       WRITE 'Employee Locked Successfully'.
    ENDIF.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY         = '0105'
        NUMBER        = PERNR
        SUBTYPE       = '0002'
        VALIDITYEND   = BEGDA
        VALIDITYBEGIN = ENDDA
        RECORD        = i_p0105
        OPERATION     = 'INS'
        TCLAS         = 'A'
        DIALOG_MODE   = '0'
        NOCOMMIT      = 'X'
      IMPORTING
        RETURN        = I_RETURN
        KEY           = I_KEY.
    IF SY-SUBRC = 0.
       WRITE : 'FM returns sy-subrc 0'.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'.
    Edited by: pratyush v on Feb 19, 2009 11:31 AM
    Edited by: pratyush v on Feb 19, 2009 11:31 AM

  • Problem Submit Via Job in BADI

    Hello All
    I am using SUBMIT VIA JOB in BADI "work order update" and but no job is created....also sy-subrc is 0.
    Here is the code
      call function 'JOB_OPEN'
        exporting
          jobname          = name
        importing
          jobcount         = number
        exceptions
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          others           = 4.
      if sy-subrc = 0.
        submit z_idoc_create_process_order and return
                              via job name number number
                                   with p_aufnr = it_header1-aufnr
                                   with p_werks = it_header1-werks
                                   with p_autyp = c_autyp
                                   with p_auart = it_header1-auart
                                   with p_dispo = it_header1-dispo
                                   with p_opt   = c_opt
                                   with p_mestyp = c_mestyp.
        if sy-subrc = 0.
          call function 'JOB_CLOSE'
            exporting
              jobcount             = number
              jobname              = name
              strtimmed            = 'X'
            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.
          if sy-subrc <> 0.
          endif.
    Any reason why job is not created?
    Thanks in advance.
    regads
    VInit

    Hi guys,
    I tried this
        SUBMIT z_idoc_create_process_order USER creator using selection-set lv_variant TO SAP-SPOOL
                               SPOOL PARAMETERS print_parameters
                               WITHOUT SPOOL DYNPRO
                               WITH p_aufnr EQ it_header1-aufnr
                               WITH p_werks EQ it_header1-werks
                               WITH p_autyp EQ c_autyp
                               WITH p_auart EQ it_header1-auart
                               WITH p_dispo EQ it_header1-dispo
                               WITH p_opt   EQ c_opt
                               WITH p_mestyp EQ c_mestyp
                               VIA JOB name NUMBER number
                               AND RETURN.
    Now the job is getting created but my Variant has no values
    How to pass values to variant? below values are not getting tranferred.
                               WITH p_aufnr EQ it_header1-aufnr
                               WITH p_werks EQ it_header1-werks
                               WITH p_autyp EQ c_autyp
                               WITH p_auart EQ it_header1-auart
                               WITH p_dispo EQ it_header1-dispo
                               WITH p_opt   EQ c_opt
                               WITH p_mestyp EQ c_mestyp

  • Submit via Job- problem in code

    I need to convert the PR to PO automatically, we can do this by me59n, so iam scheduling the job for the me59n program. here iam using Badi's, iam getting the PR, plant, vendor from IM_Eban from the method of Badi, reading this in internal table, zeban. now when the execute the transaction(va01) and saving, PR shouls be converted to PO. i would like to have guys look into the code, and pl correct this.
    method IF_EX_ME_REQ_POSTED~POSTED .
      DATA: ACTUAL_JOBNAME type tbtcjob-JOBNAME value 'Z_TEST2',
            JOBCOUNT type tbtcjob-JOBCOUNT,
            MSG(60) TYPE C,
            STIME TYPE SY-UZEIT.
      DATA: ZEBAN TYPE UEBAN.
      DATA: P_BANFN(10) TYPE N.
      read table IM_EBAN into Zeban index 1.
    *Open the Job
      CALL FUNCTION 'JOB_OPEN'             " OPENING JOB
             EXPORTING
                  JOBNAME  = ACTUAL_JOBNAME  " JOB NAME
             IMPORTING
                  JOBCOUNT = JOBCOUNT.
      DATA SELTAB type table of RSPARAMS.
      data : sel_wa type rsparams.
    Populate internal table.
      MOVE: 'S_EKGRP'       TO SEL_wa-SELNAME,
            'I'             TO SEL_WA-SIGN,
            'EQ'            TO SEL_WA-OPTION,
            'S'                 TO SEL_wa-KIND,
             Zeban-ekgrp         TO sel_wa-LOW.
      APPEND sel_wa to  SELTAB.
      CLEAR SEL_WA.
      MOVE: 'S_FLIEF'       TO SEL_wa-SELNAME,
            'I'             TO SEL_WA-SIGN,
            'EQ'            TO SEL_WA-OPTION,
            'S'                 TO SEL_wa-KIND,
             Zeban-flief         TO sel_wa-LOW.
      APPEND sel_wa to  SELTAB.
      CLEAR SEL_WA.
      MOVE: 'S_WERKS'       TO SEL_wa-SELNAME,
      'I'             TO SEL_WA-SIGN,
            'EQ'            TO SEL_WA-OPTION,
            'S'                 TO SEL_wa-KIND,
             Zeban-werks         TO sel_wa-LOW.
      APPEND sel_wa to  SELTAB.
      CLEAR SEL_WA.
      MOVE: 'P_GBANFN'          TO SEL_WA-SELNAME,
            'P'                 TO SEL_WA-KIND,
            'X'                 TO SEL_WA-LOW.
      APPEND SEL_WA TO SELTAB.
      CLEAR SEL_WA.
      MOVE: ZEBAN-BANFN TO P_BANFN.
      MOVE: 'S_BANFN'       TO SEL_WA-SELNAME,
            'I'             TO SEL_WA-SIGN,
            'EQ'            TO SEL_WA-OPTION,
            'S'             TO SEL_WA-KIND,
            P_BanfN          TO SEL_WA-LOW,
            SPACE            TO SEL_WA-HIGH.
      APPEND SEL_WA TO SELTAB.
    CLEAR SEL_WA.
    MOVE: 'P_VRTYPK'         TO SEL_WA-SELNAME,
           'P'                TO SEL_WA-KIND,
           'X'                TO SEL_WA-LOW.
    APPEND SEL_WA TO SELTAB.
      SUBMIT RM06BB30 VIA JOB ACTUAL_JOBNAME
                                        NUMBER JOBCOUNT
                                     TO SAP-SPOOL DESTINATION 'NULL'
                                     WITHOUT SPOOL DYNPRO
                                        WITH  SELECTION-TABLE SELTAB
                                        AND RETURN.
    STIME = SY-UZEIT + 900.
    *Schedule the job after 15 min and Close the job.
      CALL FUNCTION 'JOB_CLOSE'            " CLOSING JOB
             EXPORTING
                  JOBNAME      = ACTUAL_JOBNAME
                  JOBCOUNT     = JOBCOUNT
                  STRTIMMED    = 'X'
                  TARGETSYSTEM = SY-HOST.
                 LASTSTRTTM   = STIME.
    endmethod.

    Hi,
    Could you please let us know, what is the error you are getting.
    Best regards,
    Prashant

  • Submit via job without popups

    Hello everyone,
    I have a problem with the submit statement. I am submitting a report in the background so it won't show popup messages. The problem is that the popup messages are still displayed. When I debug, the report gets executed immediately at the submit statement, and possibly also afterwards in the background.
    There are a few similar threads here, but none seem to have a solution. Here is my code:
    CONCATENATE 'Create_material_' i_stockid INTO v_jobname .
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
      DELANFREP              = ' '
      JOBGROUP               = ' '
          jobname                = v_jobname
      SDLSTRTDT              = NO_DATE
      SDLSTRTTM              = NO_TIME
      JOBCLASS               =
       IMPORTING
         jobcount               = v_jobcount
    CHANGING
      RET                    =
       EXCEPTIONS
         cant_create_job        = 1
         invalid_job_data       = 2
         jobname_missing        = 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.
      SUBMIT zfl046_mm_flex_stock_matact AND RETURN
             USER sy-uname
             WITH pa_stid = i_stockid
             VIA JOB v_jobname
                 NUMBER v_jobcount
             TO SAP-SPOOL KEEP IN SPOOL 'X'
             WITHOUT SPOOL DYNPRO.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobname              = v_jobname
                jobcount             = v_jobcount
                strtimmed            = 'X'
           IMPORTING
                job_was_released     = v_job_released
           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               = 99.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Any ideas why the popups still show, or why it executes the submit in the foreground?
    Thanks for everything that might help
    Message was edited by: Vandersteen Jorg
    Message was edited by: Vandersteen Jorg

    I've tried your suggestions, but it does not seem to help.
    This is my code now:
    DATA: v_jobcount     TYPE tbtcjob-jobcount,
             v_jobname      TYPE tbtcjob-jobname,
             v_job_released TYPE  btch0000-char1,
             g_print_params LIKE pri_params,
             g_valid_flag.
      CONCATENATE 'Create_material_' i_stockid INTO v_jobname .
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
           EXPORTING
                archive_mode   = '1'
                mode           = 'BATCH'
                report         = 'ZFL046_MM_FLEX_STOCK_MATACT'
                no_dialog      = 'X'
           IMPORTING
                out_parameters = g_print_params
                valid          = g_valid_flag.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
      DELANFREP              = ' '
      JOBGROUP               = ' '
          jobname                = v_jobname
      SDLSTRTDT              = NO_DATE
      SDLSTRTTM              = NO_TIME
      JOBCLASS               =
       IMPORTING
         jobcount               = v_jobcount
    CHANGING
      RET                    =
       EXCEPTIONS
         cant_create_job        = 1
         invalid_job_data       = 2
         jobname_missing        = 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.
      SUBMIT ZFL046_MM_FLEX_STOCK_MATACT
             TO SAP-SPOOL SPOOL PARAMETERS g_print_params
             WITHOUT SPOOL DYNPRO
             USER sy-uname
             WITH pa_stid = i_stockid
             VIA JOB v_jobname
                 NUMBER v_jobcount
             AND RETURN.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobname              = v_jobname
                jobcount             = v_jobcount
                strtimmed            = 'X'
           IMPORTING
                job_was_released     = v_job_released
           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               = 99.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • DYNPRO_SEND_IN_BACKGROUND when submitting a background job, when creating a

    Hi.
    We create sales orders via EDI.   When certain sales orders are created, we execute user exists on the Sales Order save.  During the User Exit, we submit/create (job_open_adk function, the submit command, and the job_close_adk function) a background job. 
    The background, is created and executed successfully, but we get 2
    short dumps everytime.
    The short dump is:
    DYNPRO_SEND_IN_BACKGROUND
    The description is:
    Screen output without connection to user.
    The short dump is for the user WF-BATCH.
    I've used DEBUG and the shortdump occurs on the submit command.
    submit zsd
    to sap-spool
    destination 'null'
    immediately ''
    keep in spool 'X'
    without spool dynpro
    and return
    user l_user via job tbtcjob-jobname
    number tbtcjob-jobcount
    with p_vbeln = l_order
    with p_ebeln = l_po
    with p_uname = l_user.
    Nothing should be displayed on the screen.
    I used 'without spool dynpro' to prevent the 'Print Screen List' window
    from appearing.
    I've put this code into a TEST program. I ran the test program
    myself. (under my ID) The program run perfectly. No
    shortdump.
    Similar code is used in other programs and it works perfectly - no shortdumps.
    The short dump occurs when we use ALE/EDI to create a sales order.
    The short dump has the ID WF-BATCH on it.
    I'm guessing the problem is with the WF-BATCH ID. Are printer setting
    missing on a Work Flow ID?
    Any ideas why the 'without spool dynpro' parameter doesn't work for the
    WF-BATCH ID?
    I've tried searching OSS and I looked at the on-line help/documentation
    on Submit. I saw a recommentation to use the
    fuction 'GET_PRINT_PARAMETERS' to set all of the print parameters. I
    tried this, but still got the short dumps.
    Any suggestion on how I can run the Submit command and not get a short dump?
    thanks,
    Michelle

    Hi,
    Try this notes:
    0100915 RSBDCREO: System hangs or parameters not effective
    0377038 HR-CA-ALE: DYNPRO_SEND_IN_BACKGROUND for HR doc. d
    0105165 Dump "DYNPRO_SEND_IN_BACKGROUND" in prog.SAPMSSY0
    0169303 Warning messages displayed for settlement mass pro
    0428489 VL10: Dump 'DYNPRO_SEND_IN_BACKGROUND' with backgr
    [[http://forums.sdn.sap.com/thread.jspa?threadID=14875|http://forums.sdn.sap.com/thread.jspa?threadID=14875]]
    Regards
    HM

  • Run a job via job schedular, got the error message Connection to Agentlost"

    Hi,
    I have created a job with 60 scripts and trried to run a job via job schedular after executed some scripts i got error message as " Connection to Agent lost". what is the problem here. how to slove the probelm. please help me.
    Thanks in Advance.
    ra
    Edited by: user4502901 on Nov 9, 2009 6:02 AM

    Hi,
    Try increasing your machines Virtual Memory and then run the scripts.
    Thanks
    Edited by: Openscript User 100 on Nov 10, 2009 9:31 PM

  • Create Functional Area via Job Architecture in Non-English language

    Dear Experts,
    We're running following environment.
    - Windows Server 2003 Std SP2 64bit (32bit conversion completed)
    - SAP ERP 6.0 EhP 4 Unicode system as back-end system for STVN
    - STVN 2.1 SP1 with Japanese Language pack
    - Language = Japanese and English
    - TREX setting is not ready (will be ready soon)
    The problem is we cannot create Functional Area via Job Architecture
    if we log on Job Architecture module with JAPANESE.
    (We can create Functional Area if we log on with ENGLISH)
    [Procedure]
    1. Launch Job Architecture module with Japanese
    2. Job Architecture => Create Functional Area (under Tasks)
    3. Key in [Title] and [Abbreviation], and then click [Add]
    4. Error message "Not able to load DLL or CLASS" appears
    I have already confirmed that if I do same thing with English,
    Functional Area was created in ECC environment.
    What settings am I missing?
    Best Regards,
    Masaya Iizumi

    Dear Luke and Eugene
    Thank you very much for the reply.
    I have understood that it is known issue for .NET platform for 2.1 SP1.
    I will communicate with Nakisa Support.
    Again, thank you very much for your kind cooperation.
    Best Regards,
    Masaya

  • DUMP via JOB happens but via SE38 doesn't happen

    Hi Experts!
    I created an ABAP program (SE38 Transaction) and when I execute this program in background (JOB) a dump happens (CONVT_NO_NUMBER) .
    However, if I execute this same program using SE38 or call the Z transaction, this dump doesn't happen and the programa run smoothly.
    I've already checked compability of fields. But I believe if the problem were this, I would not be able to execute it anyway.
    Does anybody know what's going on?
    Thank you all
    Rubens

    Hi!
    code:
    *t_total-valor is a decimal field.
    *t_data-signeddata is a char field.
    TRANSLATE t_data-signeddata USING '.  '.
    CONDENSE t_data-signeddata NO-GAPS.
    TRANSLATE t_data-signeddata USING ',.'.
    t_total-valor = t_data-signeddata.
    APPEND t_total.
    CLEAR: t_total.
    end code.
    Sorry if I'm wrong but wouldn't it dump executing via JOB and SE38?
    Thank you all!
    Rubens

  • SUBMIT VIA JOB MESSAGE TYPE 'E'

    Hi!
    Please help me, I can't use submit via background job, because he can't handle message errors of type 'E'. When this kind of message occurs, all background processing stops and I get a report screen with this message in the status bar.
    Is there any solution?

    Let me understand this. You have a program A from which you submit a program B in the background and if in program B an error is raised, your program A execution stops. Is this true?
    Did you do a job close in your code. Here is a sample program ZTEST1 that submits another program ZTEST2 in the background. If there is an error message thrown out in ZTEST2, the job submitted is cancelled, with the job log showing the error message. The processing of ZTEST1 continues even after that.
    I don't know why yours is not. Please let us know.
    <u>Program ZTEST1</u>
    REPORT ztest1 .
    PARAMETERS: p_matnr1 LIKE mara-matnr.
    DATA: v_jobcount LIKE tbtcjob-jobcount,
          v_jobname  LIKE tbtcjob-jobname.
    START-OF-SELECTION.
      v_jobname = 'TESTJOB'.
    *-- open the job
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname          = v_jobname
           IMPORTING
                jobcount         = v_jobcount
           EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 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.
    *-- submit the report
      SUBMIT ztest2 WITH p_matnr2 = p_matnr1
                    USER sy-uname VIA JOB v_jobname
                  NUMBER v_jobcount AND RETURN.
    *-- close the job
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobcount             = v_jobcount
                jobname              = v_jobname
                strtimmed            = 'X'
           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.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      WRITE:/ 'Job submitted successfully.'.
    <u>Program ZTEST2</u>
    REPORT ztest2 MESSAGE-ID zz.
    PARAMETERS: p_matnr2 LIKE mara-matnr.
    DATA: itab LIKE mara OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT * INTO TABLE itab FROM mara
                              WHERE matnr = p_matnr2.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH 'Invalid material number'.
      ENDIF.
      LOOP AT itab.
        WRITE:/ itab-matnr.
      ENDLOOP.

  • Submit via JOB job NUMBER n

    I have an ABAP wrapper program that generates a job with multiple steps using JOB_OPEN, SUBMIT...VIA JOB and JOB_CLOSE. The generated job will have multiple steps and each step can have an error message. How do I code SUBMIT statement to allow processing of subsequent steps even if error or do I have to use JOB_SUBMIT and then what setting would I then use for that scenario?

    I think it will not be possible to continue to the next step in a multi-step job if the previous one has ended in error.
    If you need this, you shall probably define these as independent jobs.

  • JOB_OPEN, SUBMIT REPORT VIA JOB, JOB_CLOSE, How to get result?

    Hi Friends,
    I am calling reports using jobs as calling job_open, submit report via job.., and job_close. But I want to the output/result of the report. How can I do this?
    Thanks.

    Hello nkara,
    Welcome to SDN!!!
    Check this thread:
    background grid
    REgards,
    Vasanth

Maybe you are looking for

  • Hard Drive Compatibility issue?

    Hi My hard drive died, and I purchased another one to replace it.  The specs looked the same - but I have never attempted to replace a hard drive before, so I don't really know what I am doing.  Not surprisingly... the hard drive doesn't work. My com

  • Photoshop elements 11 question

    I tried a practice file yesterday with PhotoShop 11 using with my Windows Vista system.  I used one of my set of photos, selected a few, and chose one to work with.  I was impressed with the changes I could make using Photoshop for the first time eve

  • Need Help with Creating the SQl query

    Hi, SQL query gurus... INFORMATION: I have two table, CURRENT and PREVIOUS.(Table Defs below). CURRENT: Column1 - CURR_PARENT Column2 - CURR_CHILD Column3 - CURR_CHILD_ATTRIBUTE 1 Column4 - CURR_CHILD_ATTRIBUTE 2 Column5 - CURR_CHILD_ATTRIBUTE 3 PREV

  • Choppy Playback while Streaming to My PS3

    I have HD content which I am attempting to stream from my iMac to my PS3. I have wired connection from my Mac to my TC and then from my TC to my PS3. Some files stream flawlessly while others become choppy or stall during playback of the file. I have

  • Sharing in Editing from two different countries

    Does anyone know if I can upload the photo's for a photo book to Apple from the Punjab and my friend in BC, Canada can edit the file and do the writing and print them from there? Does Apple have a server where we can do that? Does Shutterfly.com? Tha