<?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: Calling Standard Program Using  Keyworkd 'SUBMIT'. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-using-keyworkd-submit/m-p/3002600#M709355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Submit to spool &amp;amp; read the spool data into internal table using FM "RSPO_RETURN_ABAP_SPOOLJOB".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
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 &amp;lt;&amp;gt; 0. 
      ... 
    ENDIF. 
  ENDIF. 
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2007 04:19:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-02T04:19:20Z</dc:date>
    <item>
      <title>Calling Standard Program Using  Keyworkd 'SUBMIT'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-using-keyworkd-submit/m-p/3002599#M709354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have the requirement where i have to capture the output of Tcode: MC.5 into an internal table and then i have to manupulate that data.&lt;/P&gt;&lt;P&gt;I have used 'submit' keyword with the proper addition keywords to transfer the output into the memory and then picking it from the memory using FM 'LIST_FROM_MEMORY'  and then converting it into the ASCI format using FM&lt;/P&gt;&lt;P&gt;'LIST_TO_ASCI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the output with null values but when i am executing the MC.5 with the same selection there are no values for the output fields.Please help me in this ....&lt;/P&gt;&lt;P&gt;Attached is the code which i have used....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selpr-selname = 'SL_WERKS'.&lt;/P&gt;&lt;P&gt;selpr-kind = 'S'.&lt;/P&gt;&lt;P&gt;selpr-sign = 'I'.&lt;/P&gt;&lt;P&gt;selpr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;selpr-low = '1100'.&lt;/P&gt;&lt;P&gt;append selpr.&lt;/P&gt;&lt;P&gt;clear selpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selpr-selname = 'SL_MATNR'.&lt;/P&gt;&lt;P&gt;selpr-kind = 'S'.&lt;/P&gt;&lt;P&gt;selpr-sign = 'I'.&lt;/P&gt;&lt;P&gt;selpr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;selpr-low = '100000005'.&lt;/P&gt;&lt;P&gt;append selpr.&lt;/P&gt;&lt;P&gt;clear selpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selpr-selname = 'SL_SPMON'.&lt;/P&gt;&lt;P&gt;selpr-kind = 'S'.&lt;/P&gt;&lt;P&gt;selpr-sign = 'I'.&lt;/P&gt;&lt;P&gt;selpr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;selpr-low = '082007'.&lt;/P&gt;&lt;P&gt;selpr-high = '082007'.&lt;/P&gt;&lt;P&gt;append selpr.&lt;/P&gt;&lt;P&gt;clear selpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selpr-selname = 'SLV_NO'.&lt;/P&gt;&lt;P&gt;selpr-kind = 'P'.&lt;/P&gt;&lt;P&gt;selpr-sign = 'I'.&lt;/P&gt;&lt;P&gt;selpr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;selpr-low = 'Z001'.&lt;/P&gt;&lt;P&gt;*selpr-high = '082007'.&lt;/P&gt;&lt;P&gt;append selpr.&lt;/P&gt;&lt;P&gt;clear selpr.&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;submit rmcb0100&lt;/P&gt;&lt;P&gt;       with selection-table selpr&lt;/P&gt;&lt;P&gt;       and return&lt;/P&gt;&lt;P&gt;       exporting list to memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: ws_list, it_asc.&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       =  ws_list&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 &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       endif.&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;     IF SY-SUBRC = 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;"convert it to ASCI&lt;/P&gt;&lt;P&gt;    call function 'LIST_TO_ASCI'&lt;/P&gt;&lt;P&gt;         tables&lt;/P&gt;&lt;P&gt;              listasci           = it_asc&lt;/P&gt;&lt;P&gt;              listobject         = ws_list&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Ganga B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 04:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-using-keyworkd-submit/m-p/3002599#M709354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T04:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Standard Program Using  Keyworkd 'SUBMIT'.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-using-keyworkd-submit/m-p/3002600#M709355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Submit to spool &amp;amp; read the spool data into internal table using FM "RSPO_RETURN_ABAP_SPOOLJOB".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
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 &amp;lt;&amp;gt; 0. 
      ... 
    ENDIF. 
  ENDIF. 
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 04:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-using-keyworkd-submit/m-p/3002600#M709355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T04:19:20Z</dc:date>
    </item>
  </channel>
</rss>

