SUBMIT statement doesnt work

hi
I want to execute program RIMODGEN ( CFM1 transaction ) with some values filled in MA_MATNR
But this program is not able to execute the program with SUBMIT statement and return & close the job, please tell me whats the problem with this....
Points for all helpful answers
* Job open
  call function 'JOB_OPEN'
       exporting
            delanfrep        = ' '
            jobgroup         = ' '
            jobname          = jobname
            sdlstrtdt        = sy-datum
            sdlstrttm        = sy-uzeit
       importing
            jobcount         = jobcount
       exceptions
            cant_create_job  = 01
            invalid_job_data = 02
            jobname_missing  = 03.
  if sy-subrc ne 0.
                                       "error processing
  endif.
* Insert process into job
* CALL TRANSACTION
SUBMIT cfm1  with MA_MATNR in MA_MATNR
                  WITH I_MODID  = 'TEST_RAJ'
                  WITH I_LOGSYS = 'D41030'
                  with I_APPL   = 'TEST_RAJ'
                  user sy-uname
                  via job jobname
                  number jobcount
                  and RETURN.
  if sy-subrc > 0.
      message e200(zz) with 'RIMODGEN call failed'. "error processing
  endif.
* Close job
  starttime-sdlstrtdt = sy-datum + 1.
  starttime-sdlstrttm = '220000'.
  call function 'JOB_CLOSE'
       exporting
            event_id             = starttime-eventid
            event_param          = starttime-eventparm
            event_periodic       = starttime-periodic
            jobcount             = jobcount
            jobname              = jobname
            laststrtdt           = starttime-laststrtdt
            laststrttm           = starttime-laststrttm
            prddays              = 1
            prdhours             = 0
            prdmins              = 0
            prdmonths            = 0
            prdweeks             = 0
            sdlstrtdt            = starttime-sdlstrtdt
            sdlstrttm            = starttime-sdlstrttm
            strtimmed            = starttimeimmediate
            targetsystem         = host
       exceptions
            cant_start_immediate = 01
            invalid_startdate    = 02
            jobname_missing      = 03
            job_close_failed     = 04
            job_nosteps          = 05
            job_notex            = 06
            lock_failed          = 07
            others               = 99.
  if sy-subrc eq 0.
     MESSAGE i200(zz) with 'Done !!'.    "error processing
     stop.
  endif.

Rob and I were pointing out that you have the transaction name in the SUBMIT statement in your code that you posted above, so if you are not currently using the program name in your program, make sure that you are.  Also, you may want to use the extension  "     to sap-spool without spool dynpro"  of the SUBMIT statement, the ouput will then go to the spool.  Here is an example program where I am creating a background job .
report zrich_0004 .
data:   sdate type sy-datum,
        stime type sy-uzeit,
        l_valid,
        ls_params like pri_params,
        l_jobcount like tbtcjob-jobcount,
        l_jobname  like tbtcjob-jobname.
start-of-selection.
* Get Print Parameters
  call function 'GET_PRINT_PARAMETERS'
       exporting
            no_dialog      = 'X'
       importing
            valid          = l_valid
            out_parameters = ls_params.
* Open Job
  l_jobname = 'ZRICH_0005'.
  call function 'JOB_OPEN'
       exporting
            jobname  = l_jobname
       importing
            jobcount = l_jobcount.
* Submit report to job
  submit zrich_0005
       via job     l_jobname
           number  l_jobcount
       to sap-spool without spool dynpro
           spool parameters ls_params
              and return.
* Kick job off 30 seconds from now.
  sdate = sy-datum.
  stime = sy-uzeit + 30.
* Schedule and close job.
  call function 'JOB_CLOSE'
       exporting
            jobcount  = l_jobcount
            jobname   = l_jobname
            sdlstrtdt = sdate
            sdlstrttm = stime
*            strtimmed = 'X'
Regards,
Rich Heilman         .

Similar Messages

  • Submit button doesnt work in android

    Hi everyone,
    I created a form with using livecycle designer ES3 and ı added e-mail submit button.  it works in pc. However, it doesnt work in android. Other field is working ratio button, text field etc. Just submit button doesnt work. Adobe reader x installed. Also air installed. it doesnt again. Do you have any suggestion ?
    Thank you

    Moved from the Adobe Reader forum.

  • Submit button doesnt work in ipad

    I created a form with using livecycle designer ES3 and ı added e-mail submit button.  it works in pc. However, it doesnt work in ipad. Other field is working ratio button, text field etc. Just submit button doesnt work. Adobe reader x installed. Also air installed. it doesnt again. Do you have any suggestion
    Thanks

    Thank you, Gaurav Jain.
    Are there any opportunities to use submit button on pdf in iOS. Because, i can use ratio button, or any fields. My purpose is; to send pdf file with using submit button in iOS. İs this possible or is there any option for sending pdf.
    Best Regars

  • Form submit button doesnt work in firefox 7.0.1 but works fine in IE and Chrome.

    I have a site that the add to shopping cart submit button isnt working in firefox 7.0.1. I tested it in other browsers like ie, chrome and safari and it works fine. Even hitting enter doesnt submit the form in forefox. Can anyone look at this page and let me know how to fix this please so it works in firefox. Thanks

    That line is looking for a form element and there isn't one on http://host0152.csmhosting.com/IW_Products.m4p.pvx?;ITEM?company=tr1&source=psdtl&ItemCode=B33NMK - you need to put the add to cart button into a form element

  • TS1702 I tunes Match doesnt work on my IOS devices. It states I'm not subscribed

    I tunes Match doesnt work on my IOS devices. It states I'm not subscribed

    On the other device setup an other email address; Settings > Messages > Receive on.

  • Statement after endform doesnt work

    why the write statement doesnot work after endform statement.
    ENDFORM.
    write:/ 'syed'.
    Moderator message: please read ABAP documentation.
    Edited by: Thomas Zloch on Dec 7, 2010 11:48 AM

    Hi,
    Check the following link:
    http://help.sap.com/saphelp_wp/helpdata/en/9f/db986035c111d1829f0000e829fbfe/content.htm
    Regards,
    Bhaskar

  • How to skip the alv list when submit a report by SUBMIT statement?

    Dear Experts,
    I  have  to submit a report(RMVKON00) for a special request in my  add-on program,  I use the following statment:
    SUBMIT RMVKON00
    AND RETURN EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        LISTOBJECT = ABAPLIST_TAB
      EXCEPTIONS
        NOT_FOUND  = 1
        OTHERS     = 2.
    CALL FUNCTION 'LIST_TO_ASCI'
    * EXPORTING
    *   LIST_INDEX               = -1
    *   WITH_LINE_BREAK          = ' '
      TABLES
        LISTASCI                 = LISTASCI_TAB[]
       LISTOBJECT                = ABAPLIST_TAB
    EXCEPTIONS
       EMPTY_LIST               = 1
       LIST_INDEX_INVALID       = 2
       OTHERS                   = 3
    But  it still display the alv list , and I must click  button 'BACK' ,then it return my add on program.
    I hope to skip the alv list  (does not display the alv list ) .
    Would you like to help me?
    Thanks and Best Regards,
    Colin.
    Edited by: Colin on Jan 8, 2010 10:09 AM

    Hi Colin,
    I dont think you would be able to skip the ALV output using SUBMIT. However try changing the value of sy-lsind after the submit statement.
    SUBMIT RMVKON00
    AND RETURN EXPORTING LIST TO MEMORY.
    sy-lsind = sy-lsind - 1.
    If that doesnt work then try using JOB_START JOB_SUBMIT, JOB_CLOSE...
    Thanks,
    Best regards,
    Prashant

  • SUBMIT does not work in background...

    Hi guys,
    We have a copy program of a standard transaction and once we use this copy program in the main program via SUBMIT... it does not work in background...
    Why is this so,,, Please advice...
    THanks!

    Hi,
    When executing some program using the statement like SUBMIT prog_2 WITH parameters and RETURN.
    In foreground PROG_2 is executed, and once you click on the BACK button the code written after this SUBMIT statement will be executed.
    If you are executing the same in the BACKGROUND mode, no feasibility of clicking on BACK button, hence control will remain in the PROG_2 only after executing its logic.
    Please code accordingly.

  • Every time i connect my iphone to itunes and trying to do a backup or get the new update it says i have to restore my iphone. and then that doesnt work, i tried to reinstall itunes but it doesnt work. i get this all the time. fix it please.

    Every time i connect my iphone to itunes and trying to do a backup or get the new update it says i have to restore my iphone. and then that doesnt work, i tried to reinstall itunes but it doesnt work. i get this all the time. fix it please.

    iTunes states " There's a problem with your Iphone, please contact apple service center " Also i took my iphone to a local service man and he told me the IMEI code has been corrupted and there's nothing that can be done about it. Please help, if you have any solution.
    Thank you

  • Problem in submit statement ?

    hi friends..
    i have one report program (for eg zpgm1) from that i call another program (for eg zpgm2) by using submit statement.
    in zpgm1  i have only one radio button
    in zpgn2 i have one parameter with obligatory.
    the issue is
    while executing from zpgm1 it will call the zpgm2 but it show error message like "parameter is required field" because its an mandatory field.
    i don't want that message while submit ..
    can you plz..
    thanx  in advance

    try this if it works.
    in the zpgm2 , instead of making the parameter as OBLIGATORY , do a validation on that field
    eg
    <b>instead of this</b>
    parameters : p_matnr like mara-matnr <b>obligatory</b>.
    <b>use this</b>
    parameters : p_matnr like mara-matnr.
    at selection-screen.
    if p_matnr is initial.
      message e001(ZE) with 'Matnr is mandatory field'.
    endif.

  • Submit is not working in direct execution

    Hi All,
    I want to pass multiple values to the order number(select-options) in the selection screen,
    and skip this first screen and should change these order values in the screen.
    for this i am using submit statement,it is working in debug mode but not working in direct execution.
    Could please any one tell me why it's happening like this.
    Below is the code for submit if there is any wrong correct me.
              SUBMIT riaufk20 USING SELECTION-SCREEN '1000'
                                    WITH SELECTION-TABLE lt_rsparams
                                    WITH dy_tcode = lc_tcode
                                    AND  RETURN.
    Thanks,
    Suresh.

    Hi Suresh,
    Your question has been asked many times but there is no direct solution found till now.
    Your one option is Copy the code from RIAUFK20 after event START-OF-SELECTION. and call it in your own program
    Note that you will have to also declare the data(selection criteria and other tables) as well fill them in your program
    Example.
    RANGES: gr_date  FOR sy-datum.
    DATA: datuv TYPE i_termab,
          datub TYPE i_termbi.
    PERFORM create_date_range_f67(riaufk20) TABLES gr_date
                                    USING  datuv datub.
    Regards,
    Jovito

  • Enter key doesnt work in SQL developer

    enter key doesnt work in sql developer so cant creat new line in code.
    enter key works fine when use word etc
    Can I fix this in the SQL developer settings somewhere.?
    thanks in advance.

    Hi Sue,
    Just to let you know, your solution worked... My SQL Developer got into a state again where the backspace key stopped working... doing 'load preset, default' on the accelerators did fix it. Strange, because I don't use/configure the accelerators at all. Thanks for that, and hopefully this will be permanently fixed in the next version.
    To echo what I think someone else was trying to say... I also have the issue that sql developer will 'lock up' or get bogged down sometimes, when i'm just typing away in the worksheet. Any keystrokes I entered in though will always get entered into the worksheet, once sqldeveloper 'unfreezes' itself. Of course, this issue is an annoyance factor only (little bit of impact on productivity though), but hopefully it gets fixed as well.

  • Regarding SUBMIT Statement

    Hi,
    I am calling a batch job (B) (in back groung) using SUBMIT statement, from a report program (Say A). But I have to Pass some internal tables and few variable to the Batch job (B).
    Can someone tell me how I can pass the Internal tables and variables ? Is it possible to pass through SUBMIT statement only? Is there some other than the use of Import-Export statement?
    Thanks and regards,
    Pankaj Bist.

    Hi pankaj,
      SUBMIT <PROGRAM NAE>   =   ds_name            " Creating batch input session
                      WITH  fl_check  =   fl_check
                      WITH  os_xon    =   os_xon
                      WITH  xnonunic  =   xnonunic
                      WITH  callmode  =   callmode
                      WITH  max_comm  =   max_comm
                      WITH  pa_xprot  =   pa_xprot
                      WITH  anz_mode  =   anz_mode
                      WITH  update    =   update
                      WITH  xpop      =   xpop
                      WITH  xlog      =   xlog
                      WITH  xinf      =   xinf  AND RETURN.
    u can pass the variables like this.
    the variables which i have pass to the program all are the selection screen aprameteers of the program .
    I hope this will work for you.
    Thanks,

  • Catalog Index doesnt work on alias columns

    We have a table with a text column on which we have created a catalog index. The catalog index doesnt work when I create a view of the table with alias column names. Any ideas suggestions.

    Interestingly it looks like it does use the index, at least in 11g, as demonstrated below. Can you post a similar demonstration showing exactly what it is that you are trying that does not use the index, along with your version?
    SCOTT@orcl_11g> CREATE TABLE a_table (text_column  VARCHAR2 (60))
      2  /
    Table created.
    SCOTT@orcl_11g> INSERT INTO a_table VALUES ('rainbow bridge')
      2  /
    1 row created.
    SCOTT@orcl_11g> CREATE INDEX catalog_index ON a_table (text_column)
      2  INDEXTYPE IS CTXSYS.CTXCAT
      3  /
    Index created.
    SCOTT@orcl_11g> CREATE VIEW a_view AS
      2  SELECT text_column AS alias_column
      3  FROM   a_table
      4  /
    View created.
    SCOTT@orcl_11g> SET AUTOTRACE ON EXPLAIN
    SCOTT@orcl_11g> SELECT * FROM a_view WHERE CATSEARCH (alias_column, 'rainbow', '') > 0
      2  /
    ALIAS_COLUMN
    rainbow bridge
    Execution Plan
    Plan hash value: 2287020511
    | Id  | Operation                   | Name          | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |               |     1 |    44 |     3   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| A_TABLE       |     1 |    44 |     3   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX              | CATALOG_INDEX |       |       |            |          |
    Predicate Information (identified by operation id):
       2 - access("CTXSYS"."CATSEARCH"("TEXT_COLUMN",'rainbow','')>0)
    Note
       - dynamic sampling used for this statement
    SCOTT@orcl_11g>

  • Catching an error in SUBMIT Statement

    Hi,
    I am using SUBMIT (REPORT) and RETURN.
    How to catch an error when there is one in the  REPORT Program that i am calling.

    hi
    Calling Programs
    If you need to program an extensive application, one single program can become very complex. To make the program easier to read, it is often a good idea to divide the required functions among several programs.
    As well as using external modularization, in which you store procedures in special non-executable ABAP programs like function groups, you can also call independent programs from within an ABAP program.
    The following ABAP statements allow you to start an executable program or transaction. You can either exit the calling program, or have the system return to it when the called program finishes running.
    Executable Program
    Transaction
    Call without return
    SUBMIT
    LEAVE TO TRANSACTION
    Call with return
    SUBMIT AND RETURN
    CALL TRANSACTION
    You can use these statements in any ABAP program. For example, while processing a user action in the output list of an executable program, you might call a transaction whose initial screen is filled with data from the selected list line.
    The event LOAD-OF-PROGRAM is triggered each time a program is called. If a corresponding event block is defined in the framework program, it is executed once before the first other processing block is executed.
    An interesting remark at this point is that each execution of an executable program actually has a SUBMIT statement as its source. When you enter the program name in a transaction like SE38 or SA38 and choose Execute, a SUBMIT statement occurs in the transaction. Technically speaking, therefore, executable programs have the attribute of being able to be called using SUBMIT, although their principal characteristic from a useru2019s point of view is that they are started in the foreground.
    Memory Organization in Program Calls
    The first ABAP program in a session on the application server opens its own internal session (roll area) within the main session. All externally-called procedures run in the same internal session as the calling program, that is, the main program and working data of the procedure are loaded into the same memory area in the internal session.
    When you call an executable program or a transaction, the system opens a new internal session for each program. Here, there are two possible cases: If the second program does not return control to the calling program when it has finished running, the called program replaces the calling program in the internal session. The contents of the memory of the calling program are deleted. If the second program does return control to the calling program when it has finished running, the session of the called program is not deleted. Instead, it becomes inactive, and its memory contents are placed on a stack. The system can open up to 9 further internal sessions in external program calls.
    As well as executable programs and transactions, dialog modules also open a new internal session. Dialog modules were previously used for modularizing screen sequences.
    Program Calls and SAP LUWs
    An SAP LUW is a logical unit consisting of dialog steps, whose changes are written to the database in a single database LUW. There are various bundling techniques that you can use to ensure that all of the database updates belonging to an SAP LUW are made in the same single database LUW.
    Externally-called procedures do not open a new SAP LUW.
    However, when you start a new executable program or transaction, a new SAP LUW starts. Database updates belonging to these programs are collected in their own database LUW. If the new program does not return control to the calling program, the SAP LUW of the old program concludes when the new program is called. If, on the other hand, the new program does return control to the calling program, the new SAP LUW runs parallel to the SAP LUW of the calling program.
    No new SAP LUW is opened when you call a dialog module. Bundling techniques in a dialog module add the database updates to the database LUW of the calling program. You may sometimes need to call a transaction that runs in the same SAP LUW as the calling program. One technique for doing this is to use the existing transaction as a dialog module. To do this, you need to create a new dialog module with the same main program and initial screen as the transaction. Transactions that are used both as transactions and as dialog modules must be programmed to obey certain rules. For further information, refer to Calling Screen Sequences.
    The fact that an external program shares (or does not share) the SAP LUW with its caller has special consequences if the program calls update-task functions or uses COMMIT WORK. For further information, refer to Special LUW Considerations.
    syntax:
    SUBMIT REPORT01     VIA SELECTION-SCREEN     USING SELECTION-SET 'VARIANT1'     USING SELECTION-SETS OF PROGRAM 'REPORT00'     AND RETURN.

Maybe you are looking for

  • Note oss 994326 - IAOM 028 Object not known in CO

    Hi, i would use note 994326 - IAOM 028 Object not known in CO to clear the field EXT_OBJECT_ID, but the changing parameter C_GL_ACCOUNT is the field (type BILL_ACC_ACGL09-GL_ACCOUNT )e not the structure (type BILL_ACC_ACGL09). Can any one help me abo

  • In iMessage, why does a contact name come up red?

    When I'm in iMessage, what does it mean when the contact name comes up red?

  • Mail.03 will download received mail from Gmai uising pop but not sent mail

    After upgrading to Leonard, I decided to reconfigure my gmail with Mail.03 (hopping to eliminate the non sound issue when new mail arrives. Prior to this Gmail downloaded all received and sent mail. After, only received mail is downloaded but sent ma

  • TFS Version Control?

    Has anybody tried setting up VCS (Version Control System) in CIS (Cisco/Composite Information Server [6.2], using a TFS backend? I'm having trouble finding documentation on any VCS topics, but a TFS [scripts] example would be magnificent. Thanks

  • ICal data suddenly vanished (unrelated to MobileMe issues)

    I discovered a couple of days ago that my iCal events prior to August 2010 had suddenly vanished. Entries from subscribed calendars were still there, but no entries I had made. Unfortunately, the most recent iCal archive I had made was about 12 month