<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: submit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908361#M684286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUBMIT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;SUBMIT {rep|(name)} [selscreen_options] &lt;/P&gt;&lt;P&gt;                    [list_options] &lt;/P&gt;&lt;P&gt;                    [job_options] &lt;/P&gt;&lt;P&gt;                    [AND RETURN]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition: &lt;/P&gt;&lt;P&gt;... AND RETURN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The SUBMIT statement accesses an executable program rep. The executable program is executed as described under Calling Executable Reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program name rep can either be specified directly or as the content of a character-like data object name. The data object name must contain the name of the program to be accessed in block capitals. If the program specified in name is not found, an irretrievable exception is generated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selscreen_options additions can be used to determine the selection screen for the program accessed and to supply it with values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list_options additions allow you to influence the output medium and the page size in the basic list for the program accessed. &lt;/P&gt;&lt;P&gt;SUBMIT - selscreen_options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... [USING SELECTION-SCREEN dynnr] &lt;/P&gt;&lt;P&gt;    [VIA SELECTION-SCREEN] &lt;/P&gt;&lt;P&gt;    [selscreen_parameters] ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... USING SELECTION-SCREEN dynnr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... VIA SELECTION-SCREEN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The addition USING SELECTION-SCREEN specifies the selection screen, VIA SELECTION-SCREEN specifies whether it is displayed. The additions selscreen_parameters provide values for the parameters, selection criteria, and the free selection of the called selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values are transferred to the selection screen between the events INITIALIZATION and AT SELECTION-SCREEN OUTPUT The following hierarchy applies for transferring values: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, the variant of the addition USING SELECTION-SET is transferred, which sets all parameters and selection criteria to the values of the variant. The values previously set in the called program are overwritten. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values of the table of the addition WITH SELECTION-TABLE are then transferred. All parameters and selection criteria specified there are overwritten accordingly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, the values of the additions WITH sel value are transferred. All parameters and selection criteria are overwritten accordingly. If the addition WITH sel value is used more than once for the same parameter, this is overwritten with the last specified value. If the addition WITH sel value is used more than once for the same selection criterion, a selection table with the corresponding number of lines is transferred. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Providing values for free selections is independent of this hierarchy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;The options for parameter transfer enable a selection screen to be viewed as a parameter interface of an executable program. This applies particularly for background selection screen processing and for parameters and selection criteria that are defined without screen elements using the addition NO-DISPLAY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When transferring data, note that any adjustments made to the screen format, such as abbreviations or the execution of conversion routines, are not executed for fields for which there are no screen elements on the selection screen. This applies for all parameters and selection criteria defined with NO DISPLAY. It also applies for all lines of a selection table with the exception of the first line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The additions selscreen_parameters only work the first time the called program is executed. If a selection screen is displayed in the called program, the runtime environment calls the program again after it is finished, thereby replacing the values specified in selscreen_parameters with the previous input values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... USING SELECTION-SCREEN dynnr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This addition specifies which selection screen is called. dynnr is a data object that must contain the screen number of a selection screen defined in the called program when the SUBMIT statement is called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the addition USING SELECTION-SCREEN is omitted or the screen number 1000 is entered, the standard selection screen is called. If no standard selection screen is defined in the called program, no selection screen is called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a screen number that is not 1000 is entered in the addition USING SELECTION-SCREEN, the corresponding independent selection screen is called. If no selection screen with this screen number is defined in the called program, this leads to an untreatable exception. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... VIA SELECTION-SCREEN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If this addition is specified, the selection screen is displayed on the screen. Otherwise, background selection screen processing takes place. In background selection screen processing, the selection screen events are triggered without the selection screen being displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT - list_options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... [LINE-SIZE width] &lt;/P&gt;&lt;P&gt;    [LINE-COUNT page_lines] &lt;/P&gt;&lt;P&gt;    { [EXPORTING LIST TO MEMORY] &lt;/P&gt;&lt;P&gt;    | [TO SAP-SPOOL spool_options] } ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... LINE-SIZE width &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... LINE-COUNT page_lines &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... EXPORTING LIST TO MEMORY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ... TO SAP-SPOOL spool_options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: &lt;/P&gt;&lt;P&gt;These additions affect the basic list in the program accessed. While LINE-SIZE and LINE-COUNT influence the formatting, the other two additions determine the output type of the list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING LIST TO MEMORY saves the list to the ABAP Memory and TO SAP-SPOOL sends it as a print list to the SAP spool system. If you do not specify these additions, the basic list is displayed as a screen list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;The additions only take effect the first time the program accessed is executed. If a selection screen is displayed in the program accessed, the runtime environment accesses the program again after completion, without taking account of the list_options additions. This is particularly important to the addition TO SAP-SPOOL, because the basic list is displayed as a screen list and not as a print list when the program is accessed again. For this reason, it is advisable not to use the addition VIA SELECTION-SCREEN when using list_options. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... LINE-SIZE width &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... LINE-COUNT page_lines &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;These additions define the line width and page length of the basic list. They have the same effect as the additions of the same name in the program initiating statement for the program accessed. If the program accessed has the same additions in the program initiating statement, these overwrite the values specified for SUBMIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... EXPORTING LIST TO MEMORY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This addition stores the basic list for the program accessed in the ABAP Memory. It can only be used together with the addition AND RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list is stored in the ABAP Memory as an internal table of the row type ABAPLIST, ABAPLIST being a structured data type in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calling program can access the list stored once program access is completed, using function modules belonging to the function group SLST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module LIST_FROM_MEMORY loads the list from the ABAP Memory to an internal table of the row type ABAPLIST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module WRITE_LIST inserts the content of an internal table of the row type ABAPLIST in the current list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module DISPLAY_LIST displays the content of an internal table of the row type ABAPLIST in a separate list screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The addition can only work provided the function key Enter is not linked to a function code in the GUI status last defined for the program accessed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Once the program report has been accessed, the list stored there in the ABAP Memory is read by means of function modules and inserted in the current list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA list_tab TYPE TABLE OF abaplist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT report EXPORTING LIST TO MEMORY &lt;/P&gt;&lt;P&gt;              AND RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LIST_FROM_MEMORY' &lt;/P&gt;&lt;P&gt;  TABLES &lt;/P&gt;&lt;P&gt;    listobject = list_tab &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;    not_found  = 1 &lt;/P&gt;&lt;P&gt;    OTHERS     = 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WRITE_LIST' &lt;/P&gt;&lt;P&gt;    TABLES &lt;/P&gt;&lt;P&gt;      listobject = list_tab. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 4 &lt;/P&gt;&lt;P&gt;... TO SAP-SPOOL spool_options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This addition causes a new print list level to be opened in the internal session of the program called and assures that the first output statement for the basic list creates a new spool request. All list outputs of the program called are transferred as print lists, page by page, to the SAP spool system. Using the spool_options additions, the print parameters and archiving parameters of the spool request are specified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;It is not possible to switch from the print list to a screen list in the program called. The statement NEW-PAGE PRINT OFF does not work on print list levels created using SUBMIT TO SAP-SPOOL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Accessing an executable program and creating a spool request. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: print_parameters TYPE pri_params, &lt;/P&gt;&lt;P&gt;      archi_parameters TYPE arc_params, &lt;/P&gt;&lt;P&gt;      valid_flag(1) TYPE c. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS' &lt;/P&gt;&lt;P&gt;  EXPORTING &lt;/P&gt;&lt;P&gt;    archive_mode           = '3' &lt;/P&gt;&lt;P&gt;  IMPORTING &lt;/P&gt;&lt;P&gt;    out_parameters         = print_parameters &lt;/P&gt;&lt;P&gt;    out_archive_parameters = archi_parameters &lt;/P&gt;&lt;P&gt;    valid                  = valid_flag &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;    invalid_print_params   = 2 &lt;/P&gt;&lt;P&gt;    OTHERS                 = 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF valid_flag = 'X' AND sy-subrc = 0. &lt;/P&gt;&lt;P&gt;  SUBMIT submitable TO SAP-SPOOL &lt;/P&gt;&lt;P&gt;                    SPOOL PARAMETERS print_parameters &lt;/P&gt;&lt;P&gt;                    ARCHIVE PARAMETERS archi_parameters &lt;/P&gt;&lt;P&gt;                    WITHOUT SPOOL DYNPRO. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2007 04:37:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-17T04:37:39Z</dc:date>
    <item>
      <title>submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908357#M684282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any one pls give sample code for submit statement with example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 04:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908357#M684282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T04:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908358#M684283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample code for SUBMIT statement which works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this to fix FBL3N issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  submit ztest to sap-spool keep in spool 'X'&lt;/P&gt;&lt;P&gt;                            without spool dynpro&lt;/P&gt;&lt;P&gt;                            with s_batid  in r_batch&lt;/P&gt;&lt;P&gt;                            with s_mpo in r_mp&lt;/P&gt;&lt;P&gt;                            and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here S_BATID and S_MPO are select options in selection screen of program ZTEST. These are getting populated by ranges R_BATCH and R_MP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 04:32:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908358#M684283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T04:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908359#M684284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If ur report ZFFMR006A is displaying a ALV grid then it is not possible to avoid the display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is using the ALV LIST or WRITE Sattement then u can avaoid it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: LISTOBJECT LIKE ABAPLIST OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  SUBMIT  Z48R_PROJEKTSTATUS WITH SO_WWSTO IN SO_WWSTO&lt;/P&gt;&lt;P&gt;                             WITH SO_ISTAT IN SO_ISTAT&lt;/P&gt;&lt;P&gt;                             EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;                             AND RETURN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Import the list from memory and store it in table listobject&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            LISTOBJECT = LISTOBJECT&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            NOT_FOUND  = 1&lt;/P&gt;&lt;P&gt;            OTHERS     = 2.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE  'Error in list_from_memory.'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LIST_TO_ASCI'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           LIST_INDEX         = -1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            LISTASCI           = LT_TXT&lt;/P&gt;&lt;P&gt;            LISTOBJECT         = LISTOBJECT&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            EMPTY_LIST         = 1&lt;/P&gt;&lt;P&gt;            LIST_INDEX_INVALID = 2&lt;/P&gt;&lt;P&gt;            OTHERS             = 3.&lt;/P&gt;&lt;P&gt;  CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  DATA: LV_LINES LIKE SY-TABIX.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE LT_TXT LINES LV_LINES.&lt;/P&gt;&lt;P&gt;  LOOP AT LT_TXT INTO W_TEXTLINE.&lt;/P&gt;&lt;P&gt;    CHECK SY-TABIX &amp;gt; 3.&lt;/P&gt;&lt;P&gt;    CHECK W_TEXTLINE(5) &amp;lt;&amp;gt; 'Keine'.&lt;/P&gt;&lt;P&gt;    CHECK W_TEXTLINE(5) &amp;lt;&amp;gt; '-----'.&lt;/P&gt;&lt;P&gt;    DO 120 TIMES. REPLACE ' |' WITH '|' INTO W_TEXTLINE.  ENDDO.&lt;/P&gt;&lt;P&gt;    "WRITE / w_textline(255).&lt;/P&gt;&lt;P&gt;    PERFORM HANDLE_LINE USING W_TEXTLINE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Free memory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'LIST_FREE_MEMORY'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            LISTOBJECT = LISTOBJECT&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS     = 1.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE  'Error in list_free_memory.'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="269339"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="336849"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="489886"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward points...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 04:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908359#M684284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T04:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908360#M684285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT report2. 

DATA: text       TYPE c LENGTH 10, 
      rspar_tab  TYPE TABLE OF rsparams, 
      rspar_line LIKE LINE OF rspar_tab.


rspar_line-selname = 'SELCRIT1'. 
rspar_line-kind    = 'S'. 
rspar_line-sign    = 'I'. 
rspar_line-option  = 'EQ'. 
rspar_line-low     = 'ABAP'. 
APPEND rspar_line TO rspar_tab. 

SUBMIT report1 USING SELECTION-SCREEN '1100' 
               WITH SELECTION-TABLE rspar_tab 
               WITH selcrit2 BETWEEN 'H' AND 'K' 
               AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 04:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908360#M684285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T04:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908361#M684286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUBMIT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;SUBMIT {rep|(name)} [selscreen_options] &lt;/P&gt;&lt;P&gt;                    [list_options] &lt;/P&gt;&lt;P&gt;                    [job_options] &lt;/P&gt;&lt;P&gt;                    [AND RETURN]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition: &lt;/P&gt;&lt;P&gt;... AND RETURN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The SUBMIT statement accesses an executable program rep. The executable program is executed as described under Calling Executable Reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program name rep can either be specified directly or as the content of a character-like data object name. The data object name must contain the name of the program to be accessed in block capitals. If the program specified in name is not found, an irretrievable exception is generated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selscreen_options additions can be used to determine the selection screen for the program accessed and to supply it with values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list_options additions allow you to influence the output medium and the page size in the basic list for the program accessed. &lt;/P&gt;&lt;P&gt;SUBMIT - selscreen_options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... [USING SELECTION-SCREEN dynnr] &lt;/P&gt;&lt;P&gt;    [VIA SELECTION-SCREEN] &lt;/P&gt;&lt;P&gt;    [selscreen_parameters] ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... USING SELECTION-SCREEN dynnr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... VIA SELECTION-SCREEN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The addition USING SELECTION-SCREEN specifies the selection screen, VIA SELECTION-SCREEN specifies whether it is displayed. The additions selscreen_parameters provide values for the parameters, selection criteria, and the free selection of the called selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values are transferred to the selection screen between the events INITIALIZATION and AT SELECTION-SCREEN OUTPUT The following hierarchy applies for transferring values: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, the variant of the addition USING SELECTION-SET is transferred, which sets all parameters and selection criteria to the values of the variant. The values previously set in the called program are overwritten. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values of the table of the addition WITH SELECTION-TABLE are then transferred. All parameters and selection criteria specified there are overwritten accordingly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, the values of the additions WITH sel value are transferred. All parameters and selection criteria are overwritten accordingly. If the addition WITH sel value is used more than once for the same parameter, this is overwritten with the last specified value. If the addition WITH sel value is used more than once for the same selection criterion, a selection table with the corresponding number of lines is transferred. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Providing values for free selections is independent of this hierarchy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;The options for parameter transfer enable a selection screen to be viewed as a parameter interface of an executable program. This applies particularly for background selection screen processing and for parameters and selection criteria that are defined without screen elements using the addition NO-DISPLAY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When transferring data, note that any adjustments made to the screen format, such as abbreviations or the execution of conversion routines, are not executed for fields for which there are no screen elements on the selection screen. This applies for all parameters and selection criteria defined with NO DISPLAY. It also applies for all lines of a selection table with the exception of the first line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The additions selscreen_parameters only work the first time the called program is executed. If a selection screen is displayed in the called program, the runtime environment calls the program again after it is finished, thereby replacing the values specified in selscreen_parameters with the previous input values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... USING SELECTION-SCREEN dynnr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This addition specifies which selection screen is called. dynnr is a data object that must contain the screen number of a selection screen defined in the called program when the SUBMIT statement is called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the addition USING SELECTION-SCREEN is omitted or the screen number 1000 is entered, the standard selection screen is called. If no standard selection screen is defined in the called program, no selection screen is called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a screen number that is not 1000 is entered in the addition USING SELECTION-SCREEN, the corresponding independent selection screen is called. If no selection screen with this screen number is defined in the called program, this leads to an untreatable exception. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... VIA SELECTION-SCREEN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If this addition is specified, the selection screen is displayed on the screen. Otherwise, background selection screen processing takes place. In background selection screen processing, the selection screen events are triggered without the selection screen being displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT - list_options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... [LINE-SIZE width] &lt;/P&gt;&lt;P&gt;    [LINE-COUNT page_lines] &lt;/P&gt;&lt;P&gt;    { [EXPORTING LIST TO MEMORY] &lt;/P&gt;&lt;P&gt;    | [TO SAP-SPOOL spool_options] } ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... LINE-SIZE width &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... LINE-COUNT page_lines &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... EXPORTING LIST TO MEMORY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ... TO SAP-SPOOL spool_options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: &lt;/P&gt;&lt;P&gt;These additions affect the basic list in the program accessed. While LINE-SIZE and LINE-COUNT influence the formatting, the other two additions determine the output type of the list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING LIST TO MEMORY saves the list to the ABAP Memory and TO SAP-SPOOL sends it as a print list to the SAP spool system. If you do not specify these additions, the basic list is displayed as a screen list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;The additions only take effect the first time the program accessed is executed. If a selection screen is displayed in the program accessed, the runtime environment accesses the program again after completion, without taking account of the list_options additions. This is particularly important to the addition TO SAP-SPOOL, because the basic list is displayed as a screen list and not as a print list when the program is accessed again. For this reason, it is advisable not to use the addition VIA SELECTION-SCREEN when using list_options. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... LINE-SIZE width &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... LINE-COUNT page_lines &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;These additions define the line width and page length of the basic list. They have the same effect as the additions of the same name in the program initiating statement for the program accessed. If the program accessed has the same additions in the program initiating statement, these overwrite the values specified for SUBMIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... EXPORTING LIST TO MEMORY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This addition stores the basic list for the program accessed in the ABAP Memory. It can only be used together with the addition AND RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list is stored in the ABAP Memory as an internal table of the row type ABAPLIST, ABAPLIST being a structured data type in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calling program can access the list stored once program access is completed, using function modules belonging to the function group SLST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module LIST_FROM_MEMORY loads the list from the ABAP Memory to an internal table of the row type ABAPLIST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module WRITE_LIST inserts the content of an internal table of the row type ABAPLIST in the current list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module DISPLAY_LIST displays the content of an internal table of the row type ABAPLIST in a separate list screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The addition can only work provided the function key Enter is not linked to a function code in the GUI status last defined for the program accessed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Once the program report has been accessed, the list stored there in the ABAP Memory is read by means of function modules and inserted in the current list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA list_tab TYPE TABLE OF abaplist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT report EXPORTING LIST TO MEMORY &lt;/P&gt;&lt;P&gt;              AND RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LIST_FROM_MEMORY' &lt;/P&gt;&lt;P&gt;  TABLES &lt;/P&gt;&lt;P&gt;    listobject = list_tab &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;    not_found  = 1 &lt;/P&gt;&lt;P&gt;    OTHERS     = 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WRITE_LIST' &lt;/P&gt;&lt;P&gt;    TABLES &lt;/P&gt;&lt;P&gt;      listobject = list_tab. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 4 &lt;/P&gt;&lt;P&gt;... TO SAP-SPOOL spool_options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This addition causes a new print list level to be opened in the internal session of the program called and assures that the first output statement for the basic list creates a new spool request. All list outputs of the program called are transferred as print lists, page by page, to the SAP spool system. Using the spool_options additions, the print parameters and archiving parameters of the spool request are specified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;It is not possible to switch from the print list to a screen list in the program called. The statement NEW-PAGE PRINT OFF does not work on print list levels created using SUBMIT TO SAP-SPOOL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Accessing an executable program and creating a spool request. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: print_parameters TYPE pri_params, &lt;/P&gt;&lt;P&gt;      archi_parameters TYPE arc_params, &lt;/P&gt;&lt;P&gt;      valid_flag(1) TYPE c. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS' &lt;/P&gt;&lt;P&gt;  EXPORTING &lt;/P&gt;&lt;P&gt;    archive_mode           = '3' &lt;/P&gt;&lt;P&gt;  IMPORTING &lt;/P&gt;&lt;P&gt;    out_parameters         = print_parameters &lt;/P&gt;&lt;P&gt;    out_archive_parameters = archi_parameters &lt;/P&gt;&lt;P&gt;    valid                  = valid_flag &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;    invalid_print_params   = 2 &lt;/P&gt;&lt;P&gt;    OTHERS                 = 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF valid_flag = 'X' AND sy-subrc = 0. &lt;/P&gt;&lt;P&gt;  SUBMIT submitable TO SAP-SPOOL &lt;/P&gt;&lt;P&gt;                    SPOOL PARAMETERS print_parameters &lt;/P&gt;&lt;P&gt;                    ARCHIVE PARAMETERS archi_parameters &lt;/P&gt;&lt;P&gt;                    WITHOUT SPOOL DYNPRO. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 04:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908361#M684286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T04:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908362#M684287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HOW TO POPULATE THE RANGES IN PROGRAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 05:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2908362#M684287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T05:08:32Z</dc:date>
    </item>
  </channel>
</rss>

