Use of submit in report programming

What is submit ..how it is used to pass parameters to reports....In what scenario we will use submit .
can anyone guide me ???
Helpful answers will be rewarded.

when we have to run some other report from any report then we are using submit statement. there are lot of options to use submit command bellow you can check this. But the prime concern is running another report from your report.
SUBMIT
Basic forms:
1. SUBMIT rep.
2. SUBMIT (name).
Extras:
1. ... LINE-SIZE col
2. ... LINE-COUNT line
3. ... TO SAP-SPOOL List output to the SAP spool database
4. ... USING SELECTION-SCREEN scr
5. ... VIA SELECTION-SCREEN
6. ... AND RETURN
7. ... EXPORTING LIST TO MEMORY
8. ... USER user VIA JOB job NUMBER n
9. ...Various additions for passing parameters to rep
10. ... USING SELECTION-SETS OF PROGRAM prog
Effect
Calls report rep.
The system leaves the active program and starts the new report rep. In basic form 2, you can specify the name of the report in the field name. You must specify the name in uppercase, otherwise a runtime error occurs.
Note
You can only start programs with type '1' using SUBMIT. If the program has a different type, the system triggers a runtime error.
Please consult Data Area and Modularization Unit Organization documentation as well.
Addition 1
... LINE-SIZE col
Effect
The list generated by the report has the line width col.
Addition 2
... LINE-COUNT line
Effect
The list generated by the report has line lines per page.
Addition 4
... USING SELECTION-SCREEN scr
Effect
When you execute the report, the system uses the selection screen number that you specify in the scr field. This must be a selection screen defined using the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements.If you omit the addition, the system uses the standard selection screen 1000.
This addition allows you to start the same report in different situations, using a different selection screen each time.
Notes
The addition VIA SELECTION SCREEN determines whether the report is processed in the foreground or the background.
What happens if the required screen does not exist or is not a selection screen?
Screen 1000:
If you want to use the standard selection screen (... USING SELECTION-SCREEN 1000 or do not specify a ... USING SELECTION-SCREEN) addition, the system does not process a selection screen.
Other selection screens:
The system triggers a runtime error.
Addition 5
... VIA SELECTION-SCREEN
Effect
The selection screen is displayed. In this case, the selection screen is displayed again after the report list has been displayed. The values entered by the user remain displayed.
Addition 6
... AND RETURN
Effect
Returns to the calling transaction or program after the called program has been executed. SUBMIT ... AND RETURN creates a new internal session.
Addition 7
... EXPORTING LIST TO MEMORY
Effect
Does not display the output list of the called report, but saves it in ABAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. In addition, you must not assign a function code to the ENTER key in the current GUI status. The saved list is read from the SAP memory using the function module 'LIST_FROM_MEMORY' and can then be saved to the database using EXPORT, for example. You can process this list further with the function modules 'WRITE_LIST', 'DISPLAY_LIST' ... of the function group "SLST".
Addition 8
... USER user VIA JOB job NUMBER n
Effect
Schedules the specified report in the job specified by the job name job and the job number n. The job runs under the user name user and you can omit the addition USER user. The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT). This addition can only be used with the addition ...AND RETURN.
Note
When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.
SY-SUBRC = 0:
Job scheduled successfully
SY-SUBRC = 4:
Job scheduling terminated by user
SY-SUBRC = 8:
Error in job scheduling (JOB_SUBMIT)
SY-SUBRC = 12:
Error in internal number assignment
Addition 10
... USING SELECTION-SETS OF PROGRAM prog
Effect
Uses variants of the program prog when executing the program rep.
Note
Important
The programs prog and rep must have the same SELECT-OPTIONS and PARAMETERs. Otherwise, variants of the program prog may be destroyed.
Note
When using this addition, the specified variant vari of the program prog is taken in USING SELECTION-SET vari. On the other hand, all variant-related actions on the selection screen of rep (Get, Save as variant, Display, Delete) refer to the variants of prog.
Example
SUBMIT REPORT01
       VIA SELECTION-SCREEN
       USING SELECTION-SET 'VARIANT1'
       USING SELECTION-SETS OF PROGRAM 'REPORT00'
       AND RETURN.
Effect
Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00.
Exceptions
Non-Catchable Exceptions
Cause: The specified program was not found.
Runtime Error: LOAD_PROGRAM_NOT_FOUND
Cause: Invalid value passed to a selection with SIGN.
Runtime Error: SUBMIT_WRONG_SIGN
Cause: The specified program is not a report.
Runtime Error: SUBMIT_WRONG_TYPE
Cause: More than one value passed to a report parameter.
Runtime Error: SUBMIT_IMPORT_ONLY_PARAMETER
Cause: Table passed to a selection with WITH sel IN itab that has an unexpected structure.
Runtime Error: SUBMIT_IN_ITAB_ILL_STRUCTURE
regards
shiba dutta

Similar Messages

  • How to submit a  report program to a standard program.

    I want to submit a report program to a slection screen program which is standard with some values. can any one help me out.
    here is the code.
    CONSTANTS:  w_object(10)   type c value  'ZCOST2',
               k_projet(10)   TYPE c VALUE 'AIN_AUSA2',
               k_ssprojet(10) TYPE c VALUE 'ZCOST2'.
    SUBMIT /sapdmc/sap_lsmw_bi_recording
                     via selection-screen
                     WITH p_keep = 'X'
                     WITH p_object = w_object
                     WITH p_projec = k_projet
                     WITH p_subpro = k_ssprojet and return.

    Hi
    Try this...
    SUBMIT /sapdmc/sap_lsmw_bi_recording
                 WITH p_keep = 'X'
                 WITH p_object = w_object
                 WITH p_projec = k_projet
                 WITH p_subpro = k_ssprojet
                  AND return.
    Note:  No need to mention 'VIA Selection Screen', it's not a mandatory.....

  • Submit a report program with same selection screen with some values exclude

    Dear All,
    I have to  submit a stndard report program from a copied zprogram with same slection screen values ,
    and in some slect-options some values will be excluded depending upon the zprogram.
    How to make it.
    I mean when i submit , same selction screen values should go along with , depending upon some condions i have to exclude some values .
    for ex: selection screen from a to b
    posting date should go same
    but may be along with it i have to pass movem,ent type <> 202 to the submit screen ,.
    how to do this?

    Hi Rajendra
    >What if i have to pass the movement type also 200 to 250 , with 202 and 203 exluded .
    Use BT ( between ) operator for 200 to 250 :
    lr_move_type-sign = 'I'.
    lr_move_type-option = 'BT'.
    lr_move_type-low = '200'.
    lr_move_type-high = '250'.
    COLLECT lr_move_type.
    And use NE ( not equal )  operator to exclude 202 and 203 :
    lr_move_type-sign = 'I'.
    lr_move_type-option = 'NE'.
    lr_move_type-low = '202'.
    COLLECT lr_move_type.
    lr_move_type-low = '203'.
    COLLECT lr_move_type.
    It works just this way.
    > Secondly,
    >
    > If i have the selction sreen same in both the screen , is it possible to pass the same values as it is with out writing one by one selct-option and parameter?
    No I don't think there is way to do it without writing one by one
    but you may not specify for empty select-options.
    Edited by: Bulent Balci on Aug 21, 2010 11:46 AM

  • Using Text module in report programs

    Hi All,
    Is it possible to use Text modules created in Smartforms in our report programs. if yes, please share some details on the same.
    Regards,
    Booma Ganesan

    i am giving you a test data for READ_TEXT.
    pass as per your requirements.
    Function module              READ_TEXT
      Import parameters               Value
      CLIENT                          400
      ID                              F29
      LANGUAGE                        EN
      NAME                            320000128500003
      OBJECT                          EKPO
      Export parameters               Value
      HEADER                             EKPO      320000128500003                      F29 EN
      Tables                          Value
      LINES                              0 Entries
                       Result:           1 Entry

  • How can i use bapi in my report program

    hi
    am new to this forum , i have doubt in bapi's how can i call bapi into my report program and what is the difference between normal function module and bapi, and bdc plz clear my doubts
    Moderator message: please search for available information/documentation.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    Edited by: Thomas Zloch on Apr 12, 2011 7:12 PM

    i have the same problem...
    anybody can help us??
    it`s urgent...
    thanks

  • Submit function pool program

    hi all,
    i am using submit statement in Z program and calling standard program of SM37, but problem is that it is going for dump and saying that we cant use submit for function-pool.
    can anyone please tell me that how can i submit? can i call this by using call transaction? actually i have to pass selection screen parameters also from my Z program and have to skip standard selection screen.
    plz help.
    regards.

    saurabh srivastava,
    There are few things regarding your query, which I need to clarify
    <li>Submit statements can be used to call Report programs (Type 1 means executable). So program for SM37 transaction is SAPLBTCH which means you can not use SUBMIT statement. SAPLBTCH is module pool program. You can not use Selection-screen statement for module pool program.
    <li>Call transaction can be used to call either report programs or module programs. Which means if transaction is assigned to them, we can use. As I said before program is module pool program. You can still use below statement.
    CALL TRANSACTION 'SM37' and SKIP FIRST SCREEN.
    <li>If you want to use AND SKIP FIRST SCREEN statement , need to follow the below conditions
    "1.For the initial dynpro, in the Screen Painter the own dynpro number must not be specified as the next screen number.
    "2.All mandatory input fields of the initial dynpro must be filled completely and with the correct values by the SPA/GPA parameters
    <li>Please press F1 help on * and SKIP FIRST SCREEN* statement to see how to use.
    Thanks
    Venkat.O

  • TABLES statement in report program

    Hi,
    Is there any performance issue in using TABLES statement in report program? Because I have got an review point from QA insisting me to avoid TABLES statement. Is it recommended by SAP to avoid TABLES statement in report program?
    Thanks in advance.
    Regards,
    Balaji Viswanath.

    Balaji,
    If you use TABLE statement it will provide the work area of the given table.
    EX: Decalre  any fields of table in slection scereen
    without declarin g the tabel name in TAble statement.It will give error.
    This will give error.
    SELECT-OPTIONS : s_matnr LIKE MARA-matnr.
    This will work.
    TABLES: mara.
    SELECT-OPTIONS : s_matnr LIKE MARA-matnr.
    It means it will occupy some area.
    Don't forget to reward if useful.

  • Calling a Report Program In Web Dynpro Using Submit statment

    Hi all,
             Can any one suggest how can i call a report program form Web Dynpro using Submit statment. I tried to call it its showing Field symbols not defined error. Is their any other ways to call Report in a Web Dynpro?. I have posted the error message when i tried using SUBMIT ZRR AND RETURN CONTROL
    Field symbol has not yet been assigned.
    The error occurred on the application server mnghcmsap_HRS_00 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: CHECKBOX_OUT of program SAPLKKBL
    Form: GEN_LINE_OUT of program SAPLKKBL
    Form: DATA_OUT_SIMPLE of program SAPLKKBL
    Form: LIST_OUTPUT_NEW of program SAPLKKBL
    Form: FIRST_LIST_DISPLAY of program SAPLKKBL
    Module: LIST_DISPLAY of program SAPLKKBL
    Function: K_KKB_LIST_DISPLAY of program SAPLKKBL
    Method: PRINT_BACKEND of program CL_GUI_ALV_GRID===============CP
    Method: SET_TABLE_FOR_FIRST_DISPLAY of program CL_GUI_ALV_GRID===============CP
    Form: PBO of program SAPLSLVC_FULLSCREEN
    Edited by: VINMANO on Jul 22, 2009 2:54 PM

    HI,
    Its possible to call report program from Web dunpro...
    chk out dis link,
    calling report(se38) in webdynpro abap
    By the way are using field symbol anywhere and left it unassigned?
    Thanks,
    Divya.S

  • Want to use ouput of a report in my program

    Hi all,
          I want to use the output of report rm07mlbd(stock on posting date) in my report program. How do I get the same done.

    Hi Kaushal,
    Follow this logic if you want to use the output
    *--> Submit VL04 Report and store output in Memory
        SUBMIT rv50sbt1
                WITH vstel   EQ lw_vstel
                WITH s_ledat IN lr_ledat
                WITH s_ebeln IN lr_ebeln
                WITH allea   EQ lw_allea
                WITH alleb   EQ lw_alleb
                WITH samml   EQ lw_samml
                WITH anzei   EQ lw_anzei
                EXPORTING LIST TO MEMORY
           AND RETURN.
        IF sy-subrc NE 0.
          MOVE text-e09 TO ztastolog-zerrmsg.
          PERFORM insert_message USING c_chare text-i09.
          EXIT.
        ENDIF.
    *-->  Import List output from Memory
        CALL FUNCTION 'LIST_FROM_MEMORY'
          TABLES
            listobject = lt_list
          EXCEPTIONS
            not_found  = 1
            OTHERS     = 2.
    *--> Convert list output to ASCI format
        CALL FUNCTION 'LIST_TO_ASCI'
          TABLES
            listasci           = lt_asci
            listobject         = lt_list
          EXCEPTIONS
            empty_list         = 1
            list_index_invalid = 2
            OTHERS             = 3.
    *--> Free Memory
        CHECK sy-subrc EQ 0.
        CALL FUNCTION 'LIST_FREE_MEMORY'
          TABLES
            listobject = lt_list.
    Thanks,
    Vinay

  • How to call Outbound interface using report programs

    Hi experts,
        i want to call outbound i/f prog using 2 report programs...one report prg passing 2 parameters to outbond i/f prg & another report prg simply calling the outbond i/f prg... either report1 or report2 call this outbond i/f prg.
    for instance,
    1.report1 has following parameters                                            
             param: tknum,vbeln
    2.report2 does not have any parameters
             No param
    3.outbound i/f prog for some calculation
    points will be given..............
    thanks in advance,
    regards
    vijay

    Hi vijay,
         To call a program in another program you have to use the Keyword <b>Submit</b>.
    EX; Report zprg.
          SUBMIT zprg1.
       So, where you require a program you can call that program by this keyword.
    Regards,
    Narendra.

  • How to use SUBMIT for transaction program?

    Hello,
    Please help me with following requirement.
    I need to pass selection screen values from ZReport to transaction F.01 and collect displayed data output in internal table in ZReport and use internal table for further processing.
    Please let me know,
    1) How to use SUBMIT with transaction code or modulepool program (<b>remember I don't want to submit report program</b>)?
    2) How to collect F.01 output data and bring back to Zreport ?
    Thanks in advance.

    Hi ab,
    1.  How to collect F.01 output data and bring back to Zreport
    The data (of output) can be collected,
    for display purpose.
    We cannot get the full data, which makes sense.
    2. The data shall be collected, in a printable format only,
       ie. with vertical lines, horizontal lines (if any) etc.
    regards,
    amit m.

  • REP-50134 occurs when using the submit button on the Reports Parameter Form

    Good Morning,
    I get the "REP-50134: Cache subitem reports does not exist" error after clicking on the Submit Button from a Reports parameter form.
    I am using Forms/Reprots 9i.
    Using the source code given in the Whitepaper 'Oracle Forms Services - Using Run_Report_Object() to call Reports with a parameter form', all works well when paramform=no, but when I have a Form print a report with paramform=yes, the parameter form appears correctly, but generates the error after clicking the Submit Button.
    Any inputs as to causation or possible places to look to solving this problem would be greatly appreciated.
    Thank you

    Hello and thanks.
    The value in the tag is <form method=post action="reports?">
    Looking at this I suspect my problem is related to this setting. I am trying to follow all the instructions in the White Papers but they are a little confusing as they are not all exactly the same. Each attempts to explain a specific functionality without regards to the whole.
    For instance I believe I need to have the variables P_ACTION, P_USER_CONNECT and P_SERVER_NAME in the report being called and then add a Before Parameter Form trigger to reset the values. But this seems to duplicate and override what has already been sent via the REPORT_OTHERS property. It is a tad bit confusing.
    Can you confirm?
    Thanks for any clarification you can provide.

  • Background program is not working properly,when i am using job_open ,submit

    hai ,
    i am using job_open ,submit and job_close for scheduling one program background and use submit to another program ,all are working properly but it is working as a forground program not as abackground program. i want to work it as a background program.
    plz give a solution.

    Hi,
    Please find a sample program format for executing a submit program in background.
    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.
    Thanks & Regards,
    Harish

  • Use abap report program to print bar code instead of smartforms

    Do anyone know how to use abap report program to print bar code?

    Hi Celina,
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci839063,00.html
    I hope this will help, also it depends on the barcode type like ARTNR-code 128...
    Regards,
    Sudhi

  • Creation of Generic Data source using function module based on the program which was used to created ABAP report

    Hi,
    We have a requirement to create a BI report based on plant maintenance report. The plant maintenance report is based on a ABAP program with complex logic. My question is i want create a Generic Datasource using Function module and can I include the logic(Abap Program) that is used for plant maintenance report in the function module? Please share your thoughts.
    Thanks,
    Ravi

    Hi,
    Step1-Create a table structure which you need to create same as the fields you require in you data source.
    Step 2-create a custom abap program and inside that call the Client abap program with the selections as required and save the result data in some table
    Step 3-create infoset query.In the infoset query give your table structure name and  program name which you developed.
    Step4-create data source on top of that query

Maybe you are looking for

  • RV220W, VPN client, and Full Tunnel vs Split Tunnel capabilities

    For an RV220W, which VPN client mode (of the three possibilities) supports which Tunnel mode?  This is mostly a question, and partly "in use" observations. Background: I have been able to get all three different VPN clients to work with an RV220W, bu

  • How do i save a picture on my,iPad from an email that was sent to me

    How do I save a picture on my iPad  from an email that was sent to me

  • KE5Z after change in T156W

    Hi, We had a problem with KE5Z report. Some accounts do not displays or have zero quantities. This was explained in table T156W, the reason is the field XMFRW was not filled for transaction keys BSV and FRL. I found a solution for this kind of proble

  • Bug Report: Color labels on nested groups not maintained if parent renamed

    Steps to reproduce: Create a layer group named foo Create a layer group named bar and place it INSIDE of foo label bar a color rename foo observe that the color for bar disappears System Info: Adobe Photoshop Version: 13.0 (13.0 20120305.m.415 2012/0

  • URL link not working on client PCs

    Hi All, I created an APEX application and gave the URL to users to access the app. from their desktop. It worked fine for a while and now I can only access the app. from the server using that URL. Any idea why this is happening? Albert