Doubt in SUBMIT command

Hi,
  I am calling rvv50r10a program in my report using submit command. I created a variant in the selection screen of rvv50r10a. Now I want Deliv.creation date to have space for both low and high value. Am not able to save the high value as SPACE in the variant. How to make the high value as space.
Please advice.
Regards,
Vanathi

Have a look at the following code and put space as high and low value in the range table for delivery creation date. Instead of creating a variant try doing it as in the following code.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = JOBNAME1
IMPORTING
JOBCOUNT = JOBCOUNT1
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.
ELSE.
SUBMIT RHALEINI
WITH SELECTION-TABLE RSPAR_TAB1
WITH PCHOTYPE EQ 'P'
WITH PCHPLVAR EQ '01'
WITH PCHZTR_D EQ 'X'
WITH RCVPRN EQ S_PART
VIA JOB JOBNAME1 NUMBER JOBCOUNT1
AND RETURN.
IF SY-SUBRC EQ 0.
WRITE / TEXT-A00.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = JOBCOUNT1
JOBNAME = JOBNAME1
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.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Similar Messages

  • Reg Submit command

    I have used the submit command  in my program as follows:
    SUBMIT rbdapp01 WITH SELECTION-TABLE rspar_tab EXPORTING LIST TO
    MEMORY  AND RETURN.
    This is working fine. But I want the updated values present in the program rbdapp01 populated in my internal table.
    i.e in the program rbdapp01 the idoc status is changed from 64 to 53. I want this new status to be updated to my internal table. How can I do that? Please do help me.

    Hi you always free the memory id as
    FREE mEMORY ID <NAMEOF ID>
    and refresh the itab.

  • Submit command in configuration of apple tv

    After entering my password during apple tv setup, I cannot move to the submit command under the password

    Well, I got the answer to my question from apple support. Nicole told me a common problem is that the right arrow must be repeatedly pressed in order to advance to the submit command. The down arrow was the logical choice but that never worked. Nor did the right arrow unless you repeately pressed it. So all is well now.

  • SUBMIT COMMAND ERROR

    Dear All,
    I am using submit command with selection screen parameters of the called program and making a spool out of it and then converting spool output to pdf and sending it on through mail. While running the program in Development client it gives the full output but when I run it in Quality client it is not giving the output . I debugged it and found out that when submit command returns the output in development it gives the full output but in quality it is not giving the output . I have executed the called program separately with the same parameters it is running fine but not with submit command.
    Regards,
    Amber Bhatia

    Here is the code where i am using Submit Command .
    *opening a job to be send to spool
      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 the created job with selection parameters
        SUBMIT HINCEDT0 TO SAP-SPOOL
                        SPOOL PARAMETERS PRINPAR
                        WITHOUT SPOOL DYNPRO
                        WITH PNPXABKR = P0001-ABKRS
                        WITH PNPPERNR = PERNR-PERNR
                        WITH PNPBEGDA = PN-BEGDA
                        WITH PNPENDDA = PN-ENDDA
                        WITH PNPABKRS = P0001-ABKRS
                        WITH FORMULAR = 'ZJK9'
                        VIA JOB NAME NUMBER NUMBER
                        AND RETURN.
      ENDIF.
      IF SY-SUBRC = 0.
    *closing the job which was send earlier
        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.
    I am executing the program HINCEDT0 using the above parameters ..
    Regards,
    Amber Bhatia

  • Doubt in SUBMIT with job

    Hi all,
    I am confused in one scenario while using submit statement..
    In my requirement i have two report programs say "X" and "Y".
    X calls the report Y with some inputs .......and X is scheduled as a job.
    Y calls a standard SAP program with some inputs and that output is what actually needed....
    so my doubt is if i schedule X as job will the outpur from srandard sap program will be available in spool or should i schedule a job for Y also.
    If i need to schedule a job for both x and y shud i use the same job name.
    Please help!!!

    Hi people,
    Thanks for your reply.
    But i checked it is not working .i mean i am not getting the spool output .
    for your reference i will give sample code
    <b>ZCALLMARK</b>
    DATA:  jobname LIKE tbtcjob-jobname VALUE 'hemajob4',
               jobcount LIKE tbtcjob-jobcount VALUE 1,
              start_time LIKE sy-uzeit,
              params LIKE pri_params,
              w_prog(30),
              v_commit TYPE c,
            variant_name(14) type c,
              stringlen type i value 0,
              temp_string(18) type c,
              msg_string(50) type c.
    move 'ZCTE0010_MARK' to w_prog.
    perform open_job using jobname.
    perform submit_job.
    perform job_close.
          Form  open_job
    FORM open_job using jobname.
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname  = jobname
           IMPORTING
                jobcount = jobcount
           EXCEPTIONS
                others   = 8.
      IF sy-subrc NE 0.
        WRITE: /1 'Error Opening Job ', jobname.
      ENDIF.
    ENDFORM.                                                    " open_job
          Form  submit_job
    FORM submit_job.
      SUBMIT (w_prog) TO SAP-SPOOL
                      WITH crun  = 'TEST4000'
                      WITH cdate = '20070701'
                      WITH rb1 = 'X'
                      SPOOL PARAMETERS params
                      WITHOUT SPOOL DYNPRO
                      USER sy-uname VIA JOB jobname NUMBER jobcount
                      AND RETURN.
      if sy-subrc > 4.
         WRITE: /1 'Error Submitting Job ', jobname.
      endif.
    ENDFORM.                    " submit_job
          Form  job_close
    FORM job_close.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobcount             = jobcount
                jobname              = jobname
                strtimmed            = 'X'  "start immediately
           EXCEPTIONS
                cant_start_immediate = 1.
    <b>ZCTE0010_MARK</b>
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
    PARAMETERS : crun   TYPE kala-kalaid OBLIGATORY,
                 cdate  TYPE kala-kaladat OBLIGATORY.
    PARAMETERS : rb1    RADIOBUTTON GROUP rb USER-COMMAND rbut,
                 rb2    RADIOBUTTON GROUP rb                  .
    SELECTION-SCREEN END OF BLOCK b1.
    SUBMIT saprck23
                      USING SELECTION-SET 'SAP&15'
                      WITH p_buper = '10'
                      WITH p_gjahr = '2007'
                      WITH kaladat = cdate
                      WITH kalaid  = crun
                      WITH p_ckvo  = 'X'
                      WITH p_test  = ' '
                      WITH p_listau = 'X'
                      WITH p_batch = ' '.
    Please refer this and tell me where i am going wrong!!!

  • How to run batch programs using SUBMIT command without any interaction need

    Hello ABAP gurus,
    I have created a batch program in SE38 which calls many other SE38 Programs (Reports).
    I have used the command SUBMIT to call the sub programs. There are about 15 sub programs that this main batch program is calling.
    It works fine, but after calling each subprogram it stops and I have to manually click on 'Back Button' in green on the sap screen to run the next program in the list. Like this I have to do 15 times to run all the programs in the batch.
    Is there a way to avoid this manual intervention and make the program run all the sub programs on its own.
    Your feedback will be highly appreciated.
    Thanks
    Ram

    Thanks Sampath for the response.
    Yes I am using the option "AND RETURN". So it is coming out of each sub program, and it is at this stage it waits for me to click on 'backward green arrow' to continue to the next.
    Here is the code I have used
      SUBMIT Z_AS_BI_F0005_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_DIVISION_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_COMPANY_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_CUSTOMER_EXTRACT WITH  S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_BRANCH_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_BUS_UNIT_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_ADDRESS_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_CUSTOMER_GROUP_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_GROUP_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_PMT_TERMS_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_REGION_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_TERRITORY_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
    Any other suggestions or feedback will be appreciated.
    Tks
    Ram

  • Submit command

    ii have 2 fields  tanum tapos
    in the first screen the mark is in tanum
    after i enter data to tanum tapos i make submit and the mark is in tapos
    i want him in <b>tanum</b>
    like in lt11
    what the solution

    Hi !
    The code construction "SUBMIT.... " only works if:
    - The called program has to be a REPORT
    - Every data the called report needs can be given via
      PARAMETER-ID to the transaction
    - No other action then "pressing F8" is neccesery on the entry screen
    If ther's an input to do that is NOT on the entry screen "SUBMIT...." will not work here !!
    In these cases you'll have to work with "CALL TRANSACTION .... using bdcdata".
    (See Code-Online-Help for that command)
    Regards
    Rainer
    Some points would be nice if that helped....

  • HT3176 How do you use the submit command?

    HOw do I use the Apple TV remote to submit after typing?

    You can use Runtime.exec to execute other processes from Java. You'll want to read this though:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Doubt in Submit...return

    Hi all,
    i am trying a simple program .See below
    REPORT  Ztest.
    data: begin of itab occurs 0,
          za(3) type c,
          end of itab.
    export itab[] to memory id 'ZPARA'.
    submit ztestcall and return.
    write:/ itab-za.
    In the pgm ztestcall, i have written,
    report ztestcall.
    data: begin of itab occurs 0,
          za(3) type c,
          end of itab.
    itab-za = 'ABC'.
    append itab.
    itab-za = 'XYZ'.
    append itab.
    import itab[] from memory id 'ZPARA'.
    Now, when i execute the first pgm ztest, the contents of itab is not getting populated...
    It will be very helpful if u help me out in this.
    TIA,
    sinthu

    Hi,
    REPORT Ztest.
    data: begin of itab occurs 0,
    za(3) type c,
    end of itab.
    export itab[] to memory id 'ZPARA'. <u><b>==> here u r exporting empty records.</b></u>
    submit ztestcall and return.
    write:/ itab-za. <u><b>==> Use READ TABEL ITAB or LOOP AT ITAB. after that u display the records</b></u>
    In the pgm ztestcall, i have written,
    report ztestcall.
    data: begin of itab occurs 0,
    za(3) type c,
    end of itab.
    itab-za = 'ABC'.
    append itab.
    itab-za = 'XYZ'.
    append itab.
    import itab[] from memory id 'ZPARA'. <u><b>==> Here u import the empty records from itab using Memory ID 'ZPARA'</b></u>
    Thats why u are not getting any value.
    May be u can try this program:
    REPORT Ztest.
    data: begin of itab occurs 0,
    za(3) type c,
    end of itab.
    itab-za = 'ABC'.
    append itab.
    itab-za = 'XYZ'.
    append itab.
    export itab[] to memory id 'ZPARA'.
    submit ztestcall and return.
    In the pgm ztestcall,
    report ztestcall.
    data: begin of itab occurs 0,
    za(3) type c,
    end of itab.
    import itab[] from memory id 'ZPARA'.
    loop at itab.
      write: / itab.
    endloop.
    - Selvapandian Arunachalam

  • Possible to Modify Submit Commands?

    I am a new user to Adobe products.  Currently I am working in Adobe Acrobat 9 Professional.  I am in the process of creating a multi page form for users to complete & email back to myself and other department members in my group.  The forms include fill in data fields and the document has been saved to extend features to Adobe Reader users.  Is it possible to include different submit fields throughout the same document?  For example, can a submit button be added for pages 1 to 2 where only that portion of the document is emailed to specific members of our department and not others.  We would also want to create a different submit button for pages 3 to 4 to go to a different email distribution listing & include only those pages and not the first two.  Presently, the forms are saved as separate documents, but we would like to merge into a single document since there is duplicate data that users have to enter.
    Also, I noticed that when users select the submit button the document is attached to an email & is removed from their screen.  If multiple submit buttons are a possibility, can the document continue to remain on the user's screen to allow them to finish & submit the remaining portions of the form?
    Thank you for any help you can offer.

    You cannot do what you want. To get that level, you are better off placing the form on a website (No worries about number of instances being used, extended rights limit you to 500 instances). With a properly written script the information from the pdf file can import the information from the fields and either sent to the appropriate people or inputted into a database which people can then query. You can restrict who sees what in the database. This is the best way to handle forms that have information that must be used by different people.

  • Submit command in BSP

    i m using submit repname.....exporting list to memory in my BSP page..then using write_list / disply_list  i want to disply the exported abaplist .
    But write_list / display_list doesnt work in layout..
    can not display screen with plugins is the error.
    please give me a solution on this...
    My aim is to call a ABAP report program from a bsp and display the results.

    Hi Seshadri,
    please have a look at the following thread:
    Re: Conversion ABAP Report to BSP Application
    The answer given by Thomas Jung is important for your problem.
    Regards,
    Rainer

  • Doubt in "FOR command in DOS"

    All,
    I have set of files starting with the name, e.g. xxx and the extension depends on the date. For example the extension of the current date is xxx.518. 5 is the month and 18 is the day of month.
    I am creating one application that would delete the xxx.* files depends on the retention days. If I give retention days as 10, it will keep 10 xxx.*(e.g. 508 to 518) files and delete remaining files.
    So I am using FOR command of DOS. I am using runtime.getRuntime to execute this.
    I am using
    (e.g.)
    FOR %%V in (pinpad.50?, pinpad.51?) do (command)
    Using this I can get only the files not to delete. But I want the filenames which needs to be deleted from the directory. (One option is there to give the range of all the files to delete in the SET. But it is some what difficult.)
    My question is
    Can we give get the filenames not specified in the IN SET (pinpad.50?, pinpad.51?) ?
    Is it possible ??
    namanc

    I agree with others, this should be done using Java...
    This said, you can use the following BATCH files to achieve your goal (not tested, sorry):
    BDELFILES.BAT
       rem TESTS AND DELETES FILES IF NEEDED
       rem
       FOR %%F in (*.*) call BDELFILE.BAT %%F
    BDELFILE.BAT
       rem TESTS AND DELETES A FILE IF NEEDED
       rem file name is in parameter 1
       rem
       set TODEL=1
       FOR %%F in (*.50? *.51?) do IF "%1" == "%%F" set TODEL=0
       IF "%%TODEL" == "1" DEL %%F

  • Doubt in BOX command

    Hi,
    While defining the BOX command in script, is it necessary that we give the X and Y positions in aphostropies?
    please comfirm.
    Thanks

    hi,
    Yes it is necessary to draw a box.... here are all the possible ways to use it
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shadowing having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW

  • Problem Submit command

    Hi All,
    I am calling the standard report in the fumctiom module using submitt command. After that one i am using LIST_FROM_MEMORY  after that i am using below function module
    CALL FUNCTION 'LIST_TO_ASCI'
    TABLES
    listobject = list_tab
    listasci = txtlines.
    But in the table txtlines i am getting the report output but some fields are not coming in  txtlines  table. For example  original report giving 45 fields in the output but in txtlines table i am getting 20 fileds only.
    Please tell me how to solve this issue.

    It is solved .

  • Doubt reg submit in a program and transportation.

    Hi Folks,
    I have a report  XYZ in which 2 other reports named ABC and DEF
    were submitted using SUBMIT.
    I had made some corrections in the report DEF and duly transported
    the same DEF to Quality and prodcution.
    My question is, do I need to transport the program XYZ too as it
    is using this program DEF(for which the corrections were made) again
    to quality and production.
    Kindly let me know.
    Thanks,
    K.Kiran.

    Amit,
    The submit is like this
    SUBMIT zmm_rept_rg1_det_003_new WITH
               SELECTION-TABLE fp_it_rsparams AND RETURN.
    And in the above submit program there is a date field in the selection-screen.
    and we have done a minor change in the where clause of this program
    SELECT * FROM z2irg1bal
        APPENDING CORRESPONDING FIELDS OF TABLE it_bal1
             WHERE matnr = itab6-matnr
                   AND datum LE p_stdate
    <b>           AND datum < p_stdate</b>
                    AND exgrp = itab6-exgrp.
    earlier it used to be EQ.
    So, you mean to as the submit done with the selection screen I need to transport even the program which is  using this program.
    Am I getting you right?
    Thanks.
    K.Kiran.

Maybe you are looking for

  • I can't not open up my firefox a dialog box pops up and say Mozilla crash report

    I tried everyting... I could not check if it is a safemode issue because when I click on fire fox it won't let me in just a dialog box that say that mozilla has crashed. This is the lastest crash report. Crash ID: bp-80765d76-e647-44e9-8f45-473b82130

  • U2 Ipod says Canot be synced The required folder can not be foud?

    Any one experience this if so how do i fix it?

  • RV180 - DDNS behind 2nd NAT router

    Hello community, is it possible to use the DDNS feature (dyndns.com) behind a 2nd NAT router? Network is as follows: INTERNET - NAT-Router (unknown device) - Cisco RV-180 (NAT) - Clients Kind Regard, Michael

  • Problem in Deployment

    I have a problem in the deployment of applications in managed server which was started by the Admin Server via Node Manager. Configuration information of Admin and Managed Servers Admin Server----> Standalone Server installation Windows 2000 Env Mana

  • ANN: New Design Pattern (DAO)

    Hello, Thanks for your overwhelming response to our previous sample applications demonstrating various [url http://www.oracle.com/technology/sample_code/tech/java/j2ee/designpattern/index.html]design patterns. Continuing with the series, this month w