SUBMIT issue in background

Hi experts,
       I am submitting the other program which is using the LDB in my program. When i execute the program in foreground it is working properly. But when i execute the same program in background, the job is getting cancelled by giving the error message as 'fill in all required entry fields'. But there are no mandatory fields in calling program. I have been strugling with this from last one week. please help me regarding this issue

u have to enter job name.
SUBMIT <REPORT>
       USER <USER> VIA JOB <JOB NAME> NUMBER <JOB NUMBER>
       WITH PARAM1 =
       WITH PARAM2 =
          AND RETURN
Refer this Thread:
how to pass parameters to a background job?

Similar Messages

  • Issue in submit program via background. data is not appearing in spool.

    hi all,
    i am submitting a program in bachground. the output data needs to be written in the spool.
    when  i try using my ID i am getting desired result. when others execute it it is going to printer instead of spool as they have default printers assigned to them. i tried defaulting print parameters to a dummy printer. still the problem is not solved.
    please advice. the code is as follows......
    print_parameters-PDEST = 'oooo'.
        SUBMIT /pbs/riaufk20
                            WITH strno IN r_tplnr
                            WITH auart IN r_auart
                            WITH datuv EQ '19000101'
                            WITH datub EQ '99990101'
                            WITH pbs_apar EQ '3'
                            WITH dy_ofn EQ 'X'
                            WITH dy_his EQ 'X'
                            WITH dy_iar EQ 'X'
                            WITH dy_mab EQ 'X'
                            WITH variant EQ '/ZPM_POM_ORD'
    TO SAP-SPOOL SPOOL PARAMETERS print_parameters
    WITHOUT SPOOL DYNPRO
    VIA JOB v_jobname NUMBER v_number_l AND RETURN.

    print_parameters-PDEST = 'oooo'. dont mention the any thing related to print settings...
    SUBMIT <zprg> WITH s_matnr = wmara-matnr
                     WITH s_werks = wmarc-werks
                     WITH p_diff  = lv_diff
             VIA JOB <Name> NUMBER lv_jcount
             AND RETURN.

  • Select list with submit issue when they are referred in report region query

    I have a page with a reporting region. Same region also has 3 different list items and depending on the value selected in each item, the report is refreshed. All the 3 list items are "Select list submit with submit"
    Out of 3 items, 2 (say item2 and item3) are populated through dynamic LOV using the value in item1.
    Additionally, when I select a default "ALL" value in in item1, I ignore values in item2 and item3.
    With this background, I am a following issue:
    1. I select a value other than Default value in item1 which filters the report.
    2. Then I select some value in item2 which further shrinks the reports.
    3. Now if I go back to item1 and select the default "All" value, the report is not refreshed with the new values of item1, item2 and item3. But it still shows the report based on value of item2 that I selected in step2.
    How do I set the value of item2/item3 to null if value of item1 is default which is "All"
    Any word of advise will be a great help!
    Thanks,
    Girish

    Hi,
    Make two computations each with the computation text NULL; or
    Make one process with code like:
    BEGIN
    :P1_ITEM2 := NULL;
    :P1_ITEM3 := NULL;
    END;With the condition "Value of Item in Expression 1 = Expression 2"
    Expression 1: P1_ITEM1
    Expression 2: ALL
    (or whatever the return value of ALL is...remember that this is case sensitive)
    Mike

  • Submit RSEOUT00 as background job

    Hi all,
    Here is my requirement.There is a Z program from which RSEOUT00 program has to be called , so that it will change the Idoc status to '03'. I tried using Submit RSEOUT00..and return and also tried JOB_open and then SUBMIT rseout00 WITH docnum EQ p_idocno  user sy-uname  via  job jobname number jobcount and return and then JOB_CLOSE .I checked SM37 also where i can see this job as finished..
    I tried COMMIT WORK statement and also WAIT statement .
    But still the idoc status wont change to '03' .
    Can anyone plase advise on how to correct this .
    Regards,
    Sudheer

    Hi,
    I have created background job for RSEOUT00 and written the below code. It worked.
    DATA: w_number           TYPE tbtcjob-jobcount,
               w_name              TYPE tbtcjob-jobname VALUE 'ZTEST_JOB'.
       CALL FUNCTION 'JOB_OPEN'
         EXPORTING
           jobname          = w_name
         IMPORTING
           jobcount         = w_number
         EXCEPTIONS
           cant_create_job  = 1
           invalid_job_data = 2
           jobname_missing  = 3
           OTHERS           = 4.
       IF sy-subrc = 0.
         SUBMIT rseout00  VIA JOB w_name NUMBER w_number AND RETURN.
         IF sy-subrc = 0.
           CALL FUNCTION 'JOB_CLOSE'
             EXPORTING
               jobcount             = w_number
               jobname              = w_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.
    Thanks,
    Appanaboina

  • How to get data from the called program using SUBMIT in a background job?

    Hi Experts,
    I've a program which creates a background job using JOB_OPEN and JOB_CLOSE function modules.
    Between the above function modules I need to call a program using SUBMIT VIA JOB statement.
    My problem is, How do I fetch some data in an internal table in the called program to the calling program after the SUBMIT statement?
    I tried to EXPORT and IMPORT the data, but they are giving a failed sy-subrc when using this background job.
    Kindly let me know your inputs and valuable suggestions.

    Kumar,
    When we execute a program as a background job then the output will be sent to Spool which needs to be fetched again.I guess we need to use Submit via spool as mentioned by Rajat.
    Check these threads to get some idea
    submit report to spool & import spool id
    Re: Generate Spool for a report
    K.Kiran.

  • Issue in background job for call transaction

    Dear All,
    I am facing a strange issue with call transaction. I need to add some Purchase requisitons in the APO using Call transactionmethod. It is working fine In All screen mode and No Screen Mode. But when I schedule the program in BAckground processing it is not wokring fine. It is not creating any Purchase requisitioins. When I debug the background Job it is creating Purchase requisitions.
    Please find the code below
        DATA: l_wa_params TYPE ctu_params.
        l_wa_params-dismode = l_c_mode.
        l_wa_params-updmode = 'A'.
        l_wa_params-defsize = 'X'.
        l_wa_params-racommit = 'X'.
        CALL TRANSACTION '/SAPAPO/RRP3' USING fp_i_bdcdata OPTIONS FROM l_wa_params
                                            MESSAGES INTO l_i_bdcmsgcoll.

    Hi,
    I have exactly the same problem with transaction /SAPAPO/RRP5.
    Thanks in advance for your help,
    Yannick CAREL

  • Submit + LIST_FROM_MEMORY in background mode

    Hi,
    I need to capture the output results from standard program RFKORK00 and hence I designed a wrapper program that calls the standard program.
    RFKORK00 generates a report output and I am able to capture the results correctly using the FM LIST_FROM_MEMORY and FM LIST_FROM_ASCI in foreground mode. But when I try to run the same job in background, the FM LIST_FROM_MEMORY does not return any results (I have checked the log by inserting information messages at various points in the program).
    I have searched for similar contexts here on SDN and everyone is in agreement that LIST_FROM_MEMORY would work well even in the background mode too but I am unable to find the fault in this case. Could you please help, attached is the code -
    SUBMIT RFKORK00
          USING SELECTION-SET c_variant
          EXPORTING LIST TO MEMORY
          AND RETURN.
        CALL FUNCTION 'LIST_FROM_MEMORY'
          TABLES
            listobject = lt_abaplist
          EXCEPTIONS
            not_found  = 1
            OTHERS     = 2.
        IF sy-subrc = 0.
          CALL FUNCTION 'LIST_TO_ASCI'
            EXPORTING
              list_index         = '-1'
              with_line_break    = ' '
            TABLES
              listasci           = lt_vlist[]
              listobject         = lt_abaplist[]
            EXCEPTIONS
              empty_list         = 1
              list_index_invalid = 2
              OTHERS             = 3.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          MESSAGE i099(z1) WITH 'LIST TO ASCI CALL'.
       ENDIF.

    Well, RFKORK00 is indeed a print program that triggers spool in the background.
    I gave up playing around memory id, instead I am using the following code to check whether a spool was created in table TSP03.
    CLEAR r_rqcretime[].
        r_rqcretime-sign    = 'I'.
        r_rqcretime-option  = 'BT'.
        CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
          EXPORTING
            i_datlo     = sy-datlo
            i_timlo     = sy-uzeit
            i_tzone     = 'EST'
          IMPORTING
            e_timestamp = v_tzntstmps.
        r_rqcretime-low = v_tzntstmps.
    **Submit job with changed variant
        SUBMIT (p_prog)
          USING SELECTION-SET c_variant
          EXPORTING LIST TO MEMORY
          AND RETURN.
        WAIT UP TO 5 SECONDS.
    **Fetch the spool number generated by the program
        CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
          EXPORTING
            i_datlo     = sy-datlo
            i_timlo     = sy-uzeit
            i_tzone     = 'EST'
          IMPORTING
            e_timestamp = v_tzntstmps.
        r_rqcretime-high = v_tzntstmps.
        CONDENSE: r_rqcretime-low,r_rqcretime-high.
        CONCATENATE r_rqcretime-low   '00' INTO r_rqcretime-low.
        CONCATENATE r_rqcretime-high  '00' INTO r_rqcretime-high.
        APPEND r_rqcretime.
        SELECT SINGLE rqident FROM tsp01
                      INTO v_rqident
                     WHERE rqowner = sy-uname
                       AND rqcretime IN r_rqcretime.

  • SUBMIT rkaep000 in background

    Hi Guru's,
    I've created a selection wirh differents parameters :
    1)Controlling area - KOKRS
    2)Partner Object -PAROB
    3)Posting date - BUDAT
    4)Debit TYPE-BELTP
    5)Business Transaction - VRGNG
    I try to pass those parameters in background to the report rkaep000  but the names in this reports are completely differents.
    For the Controlling area, posting date and the cost it is ok but not for the others. I don't find them.
    *  "Partner Object
      LOOP AT s_parob.
        CLEAR wa_p.
        wa_p-selname = 'PAROB1'.
        wa_p-kind = 'S'.
        wa_p-sign = s_parob-sign.
        wa_p-option = s_parob-option.
        wa_p-low = s_parob-low.
        wa_p-high = s_parob-high.
        APPEND wa_p TO i_tab.
      ENDLOOP.
    *  "Posting Date
      LOOP AT s_budat.
        CLEAR wa_p.
        wa_p-selname = 'R_BUDAT'.
        wa_p-kind = 'S'.
        wa_p-sign = s_budat-sign.
        wa_p-option = s_budat-option.
        wa_p-low = s_budat-low.
        wa_p-high = s_budat-high.
        APPEND wa_p TO i_tab.
      ENDLOOP.
    *  "Debit Type
    *  CLEAR wa_p.
    *  wa_p-selname = 'BELTP'.
    *  wa_p-kind = 'P'.
    *  wa_p-sign = 'I'.
    *  wa_p-option = 'EQ'.
    *  wa_p-low = p_beltp.
    *  APPEND wa_p TO i_tab.
    *  "Bus. Transaction
    *  LOOP AT s_vrgng.
    *    CLEAR wa_p.
    *    wa_p-selname = 'VRGNG'.
    *    wa_p-kind = 'S'.
    *    wa_p-sign = s_vrgng-sign.
    *    wa_p-option = s_vrgng-option.
    *    wa_p-low = s_vrgng-low.
    *    wa_p-high = s_vrgng-high.
    *    APPEND wa_p TO i_tab.
    *  ENDLOOP.
        SUBMIT rkaep000
          WITH p_tcode = 'KSB1'
         WITH SELECTION-TABLE i_tab
           TO SAP-SPOOL
             SPOOL PARAMETERS print_parameters
             ARCHIVE PARAMETERS archi_parameters
             WITHOUT SPOOL DYNPRO
             VIA JOB w_name NUMBER w_number
           AND RETURN.
    Anybody could help me please?
    Regards,
    Mohamed.

    Of course but the problem it is it doesn't help me.
    I tried also to expand the submit but I don't for which of those fields I have to enter the parameters.
    SUBMIT rkaep000
            with aufgr ...
            with aufnr ...
            with f_belnr ...
            with gr_wrttp ...
            with g_tname ...
            with g_values ...
            with i_kstrg ...
            with i_matnr ...
            with i_posnr ...
            with i_procnr ...
            with i_salor ...
            with i_werks ...
            with koagr ...
            with kostl ...  * Cost Center
            with kstar ...
            with kstgr ...
            with przgr ...
            with prznr ...
            with p_actvrs ...
            with p_afabe ...
            with p_arobj ...
            with p_aufnr ...
            with p_disvar ... * Layout
            with p_fixvar ...
            with p_gesw ...
            with p_infsys ...
            with p_item ...
            with p_kokrs ... * COntrolling Area
            with p_maxsel ...
            with p_obj ...
            with p_open ...
            with p_tcode ...
            with p_usear ...
            with p_usedb ...
            with p_usegrd ...
            with p_valtyp ...
            with r_arsel ...
            with r_awvrs ...
            with r_belnr ...
            with r_budat 
            with r_budat1 ...
            with r_budat2 ...
            with r_gjahr ...
            with r_gjahr1 ...
            with r_gjahr2 ...
            with r_obdat ...
            with r_perio ...
            with r_perio1 ...
            with r_versa ...
            with r_versn ...
    But I don't know where are the Partner Object (PAROB), Business Transaction (VRGNG) and the Debit Type (BELTP).

  • Submit RIMODGEN in Background

    Does anyone know how to submit RIMODGEN in the background?  Here's a small clip of my code.  I don't think the problem is with my parameters.  The program executes but the integration model is not created.
        CLEAR gt_params.
        PERFORM load_params USING 'I_INCR'   'P' 'I' 'EQ' 'X'.  "Dark Mode
        PERFORM load_params USING 'I_MODID'  'P' 'I' 'EQ'  p_model.
        PERFORM load_params USING 'I_LOGSYS' 'P' 'I' 'EQ'  p_lsys.
        PERFORM load_params USING 'I_APPL'   'P' 'I' 'EQ' 'MATERIALS'.
        PERFORM load_params USING 'I_MATINC' 'P' 'I' 'EQ' 'X'.
        LOOP AT gt_mara INTO gs_mara.
          PERFORM load_params USING 'MA_MATNR' 'S' 'I' 'EQ' gs_mara-matnr.
        ENDLOOP.
        SUBMIT rimodgen
          WITH SELECTION-TABLE gt_params
           AND RETURN.
    Thanks in advance for any help someone can provide.
    Mike

    Could you please elaborate on your requirement. In general we use SM36 and SM37 for IM creation and scheduling. For IM activation you have to use program RIMODAC2 and create and schedule job using SM36 and SM37
    Thanks
    Aparna
    Edited by: Saradha Ramesh on Jun 12, 2009 6:15 PM

  • Submit job in background

    Hi All
    I have a program with selection screen. The selection screen has Job name as one of the parameters. When I press F8 (Execute), this program should get scheduled in the background with the job name taken from selection screen. How to submit a program by itself in background.
    Please suggest.
    Thanks
    Shakir

    Hi,
    Press F9 from the program itself after entering the selection parameters
    Or
    Create a selection variant and go to SM36 and give some valid name , program name with variant and save and schedule.
    Regards,
    Nandha

  • Submit Trnsc in Background and know the Sucess/failure status

    Hello All,
    I need to submit a transaction with variants in the background. I need to knwo whether the transaction completed successfully or failed in my Program and then send an email to a list of people based on the status .
    Can anyone tell me how to achieve this? How to know in the program that the transaction completed/failed?
    Thanks

    Hello,
    If you had scheduled a transaction with some variants as a background job then I believe you should be able to see whether that is successful or not using transaction se37.
    If you want to send an email of the output of that job then you may have to set up groups in lotus notes or outlook and the people in that group will receive an email when the job is succesfully finished or failed otherwise.
    There is a FM which will help you to display the detail log of the background jobs. Do a displaylog* in se37 transaction.
    Thanks,
    Message was edited by: Naren Somen

  • Submit report in background on specific server

    Hi,
    I like to execute a report on a specific server in background. Is there a FM to do this. I know I can use SM36, but that's not the way I want it.
    Regards,
    GJ van Holland

    Hi,
    Here is a sample code.
    Report bkgnd.
    Perform dobackground.
    FORM dobackground.
    Local parameters declaration
      DATA : jobname    LIKE tbtcjob-jobname,
             jobcount   LIKE tbtcjob-jobcount.
      DATA : ws_spld    LIKE pri_params-pdest,
             ws_lstname LIKE pri_params-plist,
             ws_listext LIKE pri_params-prtxt.
      DATA : params     LIKE pri_params,
             arparams   LIKE arc_params,
             days(1)    TYPE n VALUE 2,
             valid      TYPE c.
      jobname    = 'job_name'.
      ws_lstname = 'list_name'.
      ws_listext = 'List_text'.
    Create a job
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname          = jobname
           IMPORTING
                jobcount         = jobcount
           EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                OTHERS           = 4.
    Set print parameters
      SELECT SINGLE spld INTO ws_spld FROM usr01 WHERE bname = sy-uname.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING destination       = ws_spld
                  list_name         = ws_lstname
                  list_text         = ws_listext
                  immediately       = ' '
                  line_size         = 200
                  line_count        = 65
                  no_dialog         = c_true
        IMPORTING out_parameters         = params
                  out_archive_parameters = arparams
                  valid                  = valid.
    Submit the report to create spool with retreived print parameters
      SUBMIT your_program
        WITH    parameters_if_any
        TO      SAP-SPOOL
        SPOOL   PARAMETERS params
        ARCHIVE PARAMETERS arparams
        WITHOUT SPOOL DYNPRO
        VIA     JOB jobname NUMBER jobcount
        AND     RETURN.
    Close job
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobcount             = jobcount
                jobname              = 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
                invalid_target       = 8
                OTHERS               = 9.
    ENDFORM.
    Hope this was of use to you.
    Thanks,
    Susmitha

  • Submit report in background

    Hai friends,
    Requirement is " I need to submit the report in background and program should execute only on every monday of the week.
    Pl do the needful and clarify with hard coding.
    Good answers expect good points.
    Regards,
    Vamsykrishna.

    Hi Vamshy,
    Execute Program with some values in selection-screen and save the selection screen values as some variant.
    Goto SM36 tcode and give some job name,job class ..etc.Then Press
    Start_Conidtion Button in Application tool bar.Here you choose Date/Time button and select Period_Values button in the same screen after choosing some coming Monday's date selected_start option.
    here you can provide Weekly option in period_values option.
    dont forget to save all those values you entered.
    Execute the job in SM37 tcode
    If its not solved your problem feel free to ask further.
    You can achieve the same thing thru function modules like job_submit,job_close..
    Reward if it useful to you
    Thanks
    Sivaparvathi

  • Submit Report (Regarding Background Processing)

    Hi Guru's,
    I want help regarding Background Processing.
    I have developed a program which is running fine in forground but in Background mode no values are comming.
    All values are becomig Zero.
    Plz help.
    *--- Submit Report for 'COGI' (Postprocessing of Error Records from Automatic Goods Movements)
      SUBMIT coruaffw USING SELECTION-SCREEN '1000'
                      WITH  r_cumul = 'X'
                      EXPORTING LIST TO MEMORY
                    AND RETURN.
    *---- Get the List
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = it_list_tab
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc = 0.
    *--- Convert to Ascii
        CALL FUNCTION 'LIST_TO_ASCI'
          TABLES
            listobject         = it_list_tab
            listasci           = it_asci_tab
          EXCEPTIONS
            empty_list         = 1
            list_index_invalid = 2
            OTHERS             = 3.
        IF sy-subrc <> 0.
    *      MESSAGE i000 WITH 'Problem in converting LIST to ASCII'.
        ENDIF.
        DESCRIBE TABLE it_asci_tab LINES w_cogi.
        w_cogi = w_cogi - 5.
      CALL FUNCTION 'LIST_FREE_MEMORY'
        TABLES
          listobject = it_list_tab.

    Hi Arbind,
                  You have used return you need to add the addition with.Try this way hope it works
    SUBMIT zreport EXPORTING LIST TO MEMORY
                    AND RETURN
                    WITH P_1 = P_1
                    WITH P_2 = P_2
                    WITH P_3 = P_3
                    WITH S_4  IN S_4
                    WITH S_5 IN S_5
                    WITH S_6 IN S_6.

  • Problem in Submit Program in background

    Hi Expert,
    I have one progam which fetch the sales order data as per input selection and pass it to COOISPI  T.Code.
    Through the program
          SUBMIT PPIO_ENTRY
                  USING SELECTION-SCREEN '1000'
                      WITH P_TCODE = 'COOISPI'
                      WITH P_AUTYP = '40'
                      USING SELECTION-SET 'SAP&COOISPI'
                      WITH SELECTION-TABLE rspar_tab
                     AND RETURN.
    But when i schedule the job of program then it is not running.
    Submit statement is running in background mode or not.
    Is there any other way to doing this work.

    HI ,
      yes it works
    You check the statement SY-BATCH  ..
    Or u can call the transaction and pass the values...
    Please see the sample code :

Maybe you are looking for

  • HOW TO DISABLE ONBOARD VIDEO - K9N SLI PLATINUM

    I've searched in BIOS and can't find where's it! any ideas? PD. I'm trying' to get better performance when playing CRYSIS on my rig  /whitout expense 400$ in a nvidia 8800GTS series...

  • I need a DVD reader/writer to connect to my iMac

    I need to add a DVD reader/writer to connect to my new iMac. Any suggestions or good things to know? Janice

  • Dual monitor screen isn't detecting any signal!

    Hello My computer doesn't have any VGA ports, so im using an 3.0 usb to VGA adapter. Whenever i plug in the adapter, the second monitor detects no signal, and also having trouble with screen resolution for the second monitor is it because of the adap

  • As soon as I open Firefox, wheel infinitely spins until I force quit. What do I do? ??

    As soon as I open Firefox and my homepage (Google) loads, the spinning wheel starts and never stops. I can't reset Firefox because the wheel starts before I can click Help. This has never happened before. I haven't updated or installed anything new t

  • Submit form in a div to a cfdiv

    Hi all, I have a page with a search form at the top, and the search results at the bottom. I would simply like to have the form, which is currently in a div, submit to the search results cfdiv. I know I could put the form and search results together