Submit PROG

Hi Friends,
   I am facing problem in submit statement,
       I have to submit my report internal table records into 'F.13'  transaction through SUBMIT statement without selection-screen of F.13,
my internal table having fields,
                                        bukrs
                                        gjahr
                                        zuonr
                                        budat
after processing of this records again i have to come to my program.
Please give me the solution for the same.....
Regards,
Saleem.......

HI Saleem,
Use following syntax to process record from selection-screen
<b>submit <REP> using selection-screen <Screen Number>.</b>
This will help you to solve your problem.
<b>Rewards with points if useful</b>
Regards,
Kinjal

Similar Messages

  • Exceptions handling  for  "submit of  Insert Report "

    Dear Experts,
    i need to handle Exception "syntax Error" when Submit the inserted report.
    i tried " try and Catch " but failed to catch Dump Error.
    for example:
    Data  CODE TYPE  TABLE OF String .
    APPEND   'REPORT ZDYN.'                                 TO Code .
    APPEND 'Data Var1 type I   .'          TO Code .
    append 'if var > 10 '                         to Code .
    append 'Write ''Success''  .  '            to Code .
    append 'else. '                                  to Code .
    append 'Write ''Failed'' . '                   to Code .
    append 'EndIf . '                               to Code .
    TRY .
        data Prog TYPE c LENGTH 50 VALUE  'ZDYN'.
        INSERT REPORT Prog FROM CODE .
        SUBMIT Prog AND RETURN .
      CATCH CX_ROOT  .
        raise SYNTAX_ERROR .
    ENDTRY.
    " in the inserted Report the Variable Name is Var1 NOT Var So it will be Syntax error " DUMP Error ".
    Thanks in advance

    Hi,
    First write the code in a program and check what error you get and try to handle that particular error.
    Also a full stop is missing in the code ...
    REPORT ZDYN.
    Data Var1 type I.
    if var > 10 .
    Data CODE TYPE TABLE OF String .
    APPEND 'REPORT ZDYN.' TO Code .
    APPEND 'Data Var1 type I .' TO Code .
    append 'if var > 10 .' to Code . <--  Put a full stop here ..
    append 'Write ''Success'' . ' to Code .
    append 'else. ' to Code .
    append 'Write ''Failed'' . ' to Code .
    append 'EndIf . ' to Code .
    Regards,
    Srini.

  • Debugging a submit program

    Hi Experts,
    I have a wrapper program inside which there is a Submit prog via job is used.
    Please let me know if there is any possibility to debug this called program.
    Thanks for your time.
    Regards.
    Sridevi

    Hi,
    Put EndLOOP IN IT.
    DATA : LV_FLAG TYPE C.
    DO.
    IF LV_FLAG = 'X'.
    EXIT.
    ENDIF.
    ENDDO.
    GO TO : SM66
    Click on debugging and your cursor will be postionted at Do statement.
    Change value of lv_flag from inital to 'X'.
    Then you will able to debug.
    Thanks and Regards,
    Dular Sharma.

  • Background processing thru submit

    Dear All,
    I am using Job_open, Submit <> via Jobname <> and job_close option. but still I am unable to execute the report in background as the same doesn't get schedule. I wanted to konw how the name of the job should be specified as it is not creating any job with the name i am providing.
    regards
    ag

    Hello Friend,
    Try this code for example.
    Say you have two programs prog-1 and prog-2 may or may not have same selection-screen parameters. And you are calling prog-1 from prog-2.
    Write the below code in prog-2.
    Select-options:...................
    DATA:   jobnam TYPE btcjob value 'JOB1',
                 job_released TYPE c,
                 cnt LIKE tbtcjob-jobcount,
                 stpn LIKE tbtcjob-stepcount,
                 strim TYPE c VALUE 'X',
                 p_params like pri_params.
    initialization.         
    start-of-selection.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
       JOBNAME                = jobnam
       SDLSTRTDT              = sy-datum
       SDLSTRTTM              = sy-uzeit
       JOBCLASS               = 'A'
    IMPORTING
       JOBCOUNT               = cnt
    EXCEPTIONS
       CANT_CREATE_JOB        = 1
       INVALID_JOB_DATA       = 2
       JOBNAME_MISSING        = 3
       OTHERS                 = 4
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          expiration             = 8
          immediately            = ' '
          new_list_id            = 'X'
          no_dialog              = 'X'
          release                = 'X'
        IMPORTING
          out_parameters         = p_params
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      SUBMIT prog-1 TO SAP-SPOOL
      SPOOL PARAMETERS p_params
      WITHOUT SPOOL DYNPRO
      VIA selection-screen
      USER sy-uname
      VIA JOB jobnam NUMBER cnt AND RETURN.
    CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobcount             = cnt
                jobname              = jobnam
                strtimmed            = 'X' 
           IMPORTING
                job_was_released     = 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               = 8.
    end-of-selection.
    Hope this is helpful, if so reward.
    Regards,
    Vijay

  • Add the Z report to the Navigation Link

    We are working on the SAP CRM 4.0 with Web client as a interaction center.
    As per our requirement we need to add custom report to the navigation link.When the user clicks on this link the report should appear in Web client.
    At present i am trying with SAP provided display customer functionality.That link is fetching me SAP Netweaver website instead of CRM BP transaction.
    Pls advise as how i can i achieve this.
    Thanks.

    Hi -
    Changes to be done in Z_QUINNOX_PAYMENT_SUMMARY
    methods:
    1. GET_ACTION_DEFINITION
      class cl_crm_ic_abox_constants definition load.
      concatenate cl_crm_ic_abox_constants=>bor_action
                  'REPORT'  "#EC NO_TEXT
                  'EXECUTE'  "#EC NO_TEXT
                  'CRMSYS'  "#EC NO_TEXT
             into rv_result.
    2. CLASS_CONSTRUCTOR
      class cl_crm_ic_abox_constants definition load.
      gv_atype =
        cl_crm_ic_abox_constants=>bor_action.
      gv_method  =
        'EXECUTE'. "#EC NOTEXT
      gv_bortype =
        'REPORT'. "#EC NOTEXT
      gv_mappedlogsys =
       'CRMSYS'.  " 'R3SYS46C'. "#EC NOTEXT
      gv_version =
        '2.0'. "#EC NOTEXT
    Is return data flow requested?
      gv_is_return_df_requested =
        'X'. "#EC NOTEXT
    similarly set the BOR obj name et all in the CONSTRUCTOR also....check the class 'CL_CRM_IC_ABOXSAMPLE_CREATESO' and make the changes accordingly.....you can ignore the t.code parameters which they have passed, jus add the relavant BOR obj details and the log sys details in the relavant places....
    Now in ur BOR obj method 'EXECUTE', call the report using the SUBMIT prog stmt.....
    This shd work.....
    _Aarthi.

  • How to Call general ABAP Report in WDA?

    Hi All,
    Is it possible to run our general ABAP report in our WDA.
    If yes how can i move....
    Thanks & regards,
    Ravi

    David Pietroniro wrote:
    > Hello,
    >
    > You can call your report using the SUBMIT command to call it like a job. Follow an example on how to do this (from ABAP Help).
    > But this is only usefull if this report only process data and don't show data on screen, because this data can´t be showed in the web dynpro via write commands like described in the threads before.
    >
    > Regards.
    Actually with a few changes you are close to a solution here.  There is way to get the output of the report and convert it to HTML.  You will need to have a little wrapper application around your report. You will have to run this wrapper as a background job or via RFC (pointing to destination NONE). Here is a sample:
    * SELECTION SCREEN LAYOUT                                              *
    selection-screen begin of block two with frame title text-002.
    parameter: prog like sy-repid.
    parameter: vari1 like raldb-variant.
    selection-screen end of block two.
    .....Other Processing....
    submit (prog) and return
               exporting list to memory
               using selection-set vari1.
      call function 'LIST_FROM_MEMORY'
           tables
                listobject = itab
           exceptions
                not_found  = 1.
      if sy-subrc ne 0.
        leave program.
      endif.
      call function 'WWW_HTML_FROM_LISTOBJECT'
       exporting
    *    REPORT_NAME         =
         template_name       = 'WEBREPORTING_REPORT'
        tables
          html                = html_tab
          listobject          = itab.
    Once the data is converted into HTML it is more usable from WD.  You can't really display it directly within WD, but you could push it out as a file attachment from WD using cl_wd_runtime_services=>attach_file_to_response.
    This is a lot of work and I still think it might be easier to fire a linkToURL or Exit Plug and navigate to the ITS/WebGUI.

  • PASS DATA TO A REPORT BEING SCHEDULED AS A BACKGROUND JOB

    Moderator message: please do not use ALL CAPITALS in your subject
    Hi All,
    I need to pass some data to a Zreport_submit which I would be calling using SUBMIT statement from another Zreport_main. The report being called through the SUBMIT statement i.e. Zreport_submit will be scheduled as a backgroung job i.e. using addition VIA JOBNAME xx JOBNUMBER yy.
    How can I pass data from Zreport_main to Zreport_submit. There are 2 values that are required to be passed.
    Thanks-
    Harmeet,
    Edited by: Matt on Dec 16, 2008 11:26 AM

    Hi Harmeet,
    What I get from your question is
    is that u need to call a program using SUBMIT statement in the background and u need to feed some values into the program may be into the selection-acreen so u can use
    SUBMIT <prog name>
    with parameter1 = value1 .
    where parameter1 is the part of selection-acreen of the prog which was calld.
    Thnks
    Sahil

  • Calling selection screen from another selecton screen.

    Hi guys,
    I want to call default selection screen of one program from default selection screen of another program.
    Is that possible . would appreciate some helpful answers.
    Thanks,
    Venkat.

    it is possiable.
    1.submit
    2. call transcation t_code.
    Syntax
    SUBMIT <prog>.
    For more information about the SUBMIT statement, see Calling Executable Programs (Reports)
    Assume the following simple report:
    REPORT ZDYN3.
    WRITE / 'Dynamic Program!'.
    The following executable program (report) starts, modifies, and restarts ZDYN3:
    REPORT ZMASTER1.
    DATA CODE(72) OCCURS 10.
    DATA LIN TYPE I.
    READ REPORT 'ZDYN3' INTO CODE.
    SUBMIT ZDYN3 AND RETURN.
    DESCRIBE TABLE CODE LINES LIN.
    MODIFY CODE INDEX LIN FROM
    'WRITE / ''Dynamic Program Changed!''.'.
    INSERT REPORT 'ZDYN3' FROM CODE.
    SUBMIT ZDYN3.
    The output of this program is displayed on two subsequent output screens. The first screen displays:
    Dynamic Program!
    The second screen displays:
    Dynamic Program Changed !
    When you use the SUBMIT statement, all modifications made to a program during runtime take immediate effect before they are submitted. In the above example, ZDYN3 is submitted from ZMASTER1 first in its original and then in its modified form, generating different results.
    This is not the case if you change the codes of include programs or subroutines dynamically.
    Assume the following include program:
    INCLUDE ZINCLUD1.
    WRITE / 'Original INCLUDE program!'.
    and an executable program (report) for modifying and including it:
    REPORT ZMASTER2.
    DATA CODE(72) OCCURS 10.
    DATA LIN TYPE I.
    READ REPORT 'ZINCLUD1' INTO CODE.
    DESCRIBE TABLE CODE LINES LIN.
    MODIFY CODE INDEX LIN FROM
                'WRITE / ''Changed INCLUDE program!''.'.
    INSERT REPORT 'ZINCLUD1' FROM CODE.
    INCLUDE ZINCLUD1.
    If you run ZMASTER2, the source code of include program ZINCLUD1 is changed and replaced in the system. However, the last line of ZMASTER2 executes the older version since the runtime object of ZMASTER2 is generated before ZINCLUD1 is modified. Only when ZMASTER2 is run a second time, does the system determine that ZINCLUD1 has been changed. Exactly the same is true if you dynamically modify the source code of a subroutine and call it from within the same program.
    One way to solve this problem is to use the INCLUDE statement within an external subroutine that is called by the program. This allows you to create or modify include programs or subroutines and use the updated versions directly in the same program.
    Assume the following include program:
    INCLUDE ZINCLUD1.
    WRITE / 'Original INCLUDE program!'.
    and an external subroutine:
    PROGRAM ZFORM1.
    FORM SUB1.
         INCLUDE ZINCLUD1.
    ENDFORM.
    The following program reads the include program, modifies it, enters it back into the system, and calls the subroutine.
    REPORT ZMASTER3.
    DATA CODE(72) OCCURS 10.
    READ REPORT 'ZINCLUD1' INTO CODE.
    APPEND 'WRITE / ''Extension of INCLUDE program!''.' TO CODE.
    INSERT REPORT 'ZINCLUD1' FROM CODE.
    PERFORM SUB1(ZFORM1).
    This produces the following output:
    Original INCLUDE program!
    Extension of INCLUDE program!
    In this case, the updated version of the include program is used in the subroutine because its time stamp is checked when the subroutine is called, and not when the calling program is generated.

  • Call two programs from one program.

    HI all,
    I have two BDC interface in seperate programs.
    I want to call that two programs from one program based on a condition.
    Is there any way.
    I tried with call transaction 'SE38'.
    set parameter ID but it is taking buffered value.
    Thanks,
    sri

    use submit program to call other program.
    SUBMIT prog|(field) [AND RETURN] [options].
    also if you want BDC prog, then probably you can call the BDC recording using PERFORM bdc_prog (in program name).
    PERFORM (<fsubr>)[IN PROGRAM (<fprog>)][USING   ... <pi>... ]
                                           [CHANGING... <pi>... ]
                                           [IF FOUND].
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm

  • I get short dump, please help~

    Hi!
    I get the short dump , for the code below.
    Since I have exported to memory, why i get this short dump when i try to list it from the memory?
    SUBMIT (prog) with SELECTION-TABLE (seltab)
                          EXPORTING LIST TO MEMORY
                          AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = abaplist.
    and the short dump is as follows
    A RAISE statement in the program "SAPLSLST" raised the exception
    condition "NOT_FOUND".
    Since the exception was not intercepted by a superior
    program, processing was terminated.
    Short description of exception condition:
    No list found in memory
    For detailed documentation of the exception condition, use
    Transaction SE37 (Function Library). You can take the called
    function module from the display of active calls.

    Hi,
      I have given a saple code for SUBMIT
    SUBMIT RMCB0300 WITH SL_WERKS-LOW  EQ SO_WERKS-LOW
                      WITH SL_MATNR      IN SO_MATNR
                      WITH VA            EQ 'X'
                      WITH SL_SPMON-LOW  EQ W_BUDAT1
                      WITH SL_SPMON-HIGH EQ W_BUDAT1
                      WITH SL_MTART-LOW  EQ 'ROH'
                      WITH SLV_NO        EQ 'STOCK'
                      EXPORTING LIST TO MEMORY AND RETURN.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          LISTOBJECT = LISTTAB
        EXCEPTIONS
          NOT_FOUND  = 1
          OTHERS     = 2.
      CALL FUNCTION 'LIST_TO_ASCI'
        TABLES
          LISTASCI           = I_LISTASCI
          LISTOBJECT         = LISTTAB
        EXCEPTIONS
          EMPTY_LIST         = 1
          LIST_INDEX_INVALID = 2
          OTHERS             = 3.
      IF SY-SUBRC <> 0.
      ENDIF.
    Which im using currently .PLease reward points if solved
    Thanks
    Shankar S

  • Get information of nested jobs

    Hello,
    If I run a program in background and the program itself issue an inner program by "submit prog" , I don't know how to get
    the two job names\ids.
    I tried to find some information in tables like TBTCO , TBTCP but I didn't fine any link key.
    My need is to retrieve the spools of the two programs.
    Thanks,
    koby.

    Hi Koby,
    I don't think the spool output of the inner program is saved to the spool at all in this case.  I did a test using this approach and I can see in SP01 that there is only the spool output from the first program.  I think you cannot just do a simple SUBMIT - you have to specify spool and job options.  See the F1 help for SUBMIT statement, there's an example of how to submit a job into background.
    Jim

  • Hi i want to add three reports so pls provide the solution

    Hi Friends,
         Actually iam having three reports so the requirement is i want to execute those three reports under one click ie... when iam executing first one the remaing two also wants to execute  under that one only\
    So pls provide the solution and at the same time logic also
    Thanks & Regards
    Mohan Reddy

    Hello,
    Create a new report eg ZTEST.
    Put in following sample code
    the sample code is.
    submit <prog-name> with parameter1 = val1
                                   with parameter   = val2......and so on
    Use the above statement 3 times and execute it.
    All 3 reports will be executed 1 by 1 without user intervention.
    Hope this helps,
    Rajat

  • Ranges in Reports

    Hi,
    What is the use of declaring Ranges,explain?
    Thanks.

    RANGES tables
    You can use the following variants of the TYPES and DATA statements to create internal tables of the same type as selection tables.
    TYPES|DATA <rangetab> TYPE RANGE OF <type>.
    or
    TYPES|DATA <rangetab> LIKE RANGE OF <obj>.
    This defines internal standard tables whose line type is a structure as follows:
    SIGN(1) TYPE C
    OPTION(2) TYPE C
    LOW TYPE <type> bzw. LIKE <obj>
    HIGH TYPE <type> bzw. LIKE <obj>
    You can also use the RANGES statement to create internal tables of the same type as selection tables.
    RANGES <rangetab> FOR <f>.
    This statement is simply a shortened form of the following statements:
    DATA: BEGIN OF <rangetab> OCCURS 0,
             sign(1) TYPE c,
             option(2) TYPE c,
             low  LIKE <f>,
             high LIKE <f>,
          END OF <rangetab>.
    Because the statement represents an obsolete form of defining internal tables with headers and headers should not to be used, you should use above variants of TYPES and DATA statements instead of RANGES.
    Tables defined in this way have the same structure as selection tables, but they do not have the same functionality. They are not part of the selection screen: No corresponding input fields are generated and these tables cannot be used as a data interface in a program <prog> called using
    SUBMIT <prog> WITH <rangetab> IN <table>.
    . However, you can use the above statements to create the table <table> in the calling program. The main function of these tables is to pass data to the actual selection tables without displaying the selection screen when executable programs are called.
    The above tables are like actual selection tables in the WHERE clause of Open SQL statements and can be used in combination with the IN operator in logical expressions, but they are not linked to a database table. They:
    are not passed like selection criteria to logical databases
    cannot be used with the shortened form of selection tables in logical expressions
    cannot be used like selection criteria in GET events
    Obsolete version:
    REPORT demo_sel_screen_tables_ranges.
    RANGES s_carrid1 FOR spfli-carrid.
    s_carrid1-sign = 'I'.
    s_carrid1-option = 'EQ'.
    s_carrid1-low = 'LH'.
    APPEND s_carrid1.
    SUBMIT demo_selection_screen_ldb_1 WITH carrid IN s_carrid1
    VIA SELECTION-SCREEN AND RETURN.
    Korrekte Version:
    REPORT demo_sel_screen_tables_ranges.
    DATA: s_carrid2 TYPE RANGE OF spfli-carrid,
    s_carrid2_wa LIKE LINE OF s_carrid2.
    s_carrid2_wa-sign = 'I'.
    s_carrid2_wa-option = 'EQ'.
    s_carrid2_wa-low = 'AA'.
    APPEND s_carrid2_wa TO s_carrid2.
    SUBMIT demo_selection_screen_ldb_1 WITH carrid IN s_carrid2
    VIA SELECTION-SCREEN AND RETURN.
    A selection table S_CARRID is created with reference to column CARRID of database table SPFLI. Fields S_CARRID-LOW and S_CARRID-HIGH have the same type as CARRID. The work area of the internal table S_CARRID is filled and appended to the table. Program DEMO2 is called. If DEMO2 is linked to logical database F1S, its selections screen contains the fields of selection criterion CARRID from the logical database. These fields are filled with the contents of the internal table.

  • Parallel Processing Issue : call function starting new task

    Hi
    I am using the parallel processing functionality using the call function new task  destination in group default  Performing    on end of task  inside a loop ( i am splitting the internal table )
    However when i am debugging the code, i am able to see the function module( it opens a new session in debugging ) ,  and i see that new task is started after the RFC Function module is executed .
    How is this parallel processing ? I mean the new task starts after control returns back to main program , after the execution of the RFC FM.
    I thought the idea was to have the same FM executing in multi threads. So that time is saved.

    Thanks for the answers.
    There were too many  complications in the 'call function in new task '  option.
    So we are trying it with the job submit option. So we are splitting up the data into smaller tables and submiting it with this statement : Submit  'prog' with selection-table 's_sel' via job 'job' and return .
    Thanks

  • Program called via RFC

    hi,
    how to find out that a program is called directly i.e within the system <b>or</b> from an external system via <b>RFC</b>? Is there any function module or any other method to find out ?
    thanks in advance.

    You can find it by seeing the SUBMIT statement of the program..
    SUBMIT <PROG> .. via <RFC Destination>
    It indicates that we are calling that program through RFC...
    Reward if helpful....

Maybe you are looking for

  • How can I move an iweb website to another computer?

    I'd like to move my iweb website that's on my desktop computer to my laptop, so I can work on when I travel.  How can I do this?

  • Airport card needed?

    i'm moving in with friends who have wi-fi and i need to know if i need an airport card for my powerbook g4 in order to pick up the signal. does this labtop already come equipped with airport card and is it compatible with wi-fi that isnt an airport b

  • Iphone not connecting to 3G

    I have an iphone version 2 which has been currently update though i can not connect to 3g. I have used another iphone in a 3g area and that one connects to 3g whereas mine will still only connect to edge. been through all the setting and they are bot

  • QR Code in J2ME

    Hi everyone, I am trying to implement a QR code generator and a QR Code Reader in J2ME. Does anyone know of any library for QR Code in J2me? I have already gone through ZXing library and JP (from sourceforge) but both of them have the following issue

  • Problem with jdk

    hi, im using j2sdk 1.4.2 with realJ as my IDE. the problem is that when i try to compile servlet codes with realJ, it shows errors when I import the servlet classes. eg: C:\Documents and Settings\kovenant\Desktop\servlet.java:2: package javax.servlet