<?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: Submititng the program to another program  using internal table values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963945#M396043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way would be to export all internal tables and import in the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2007 12:45:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-07T12:45:52Z</dc:date>
    <item>
      <title>Submititng the program to another program  using internal table values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963944#M396042</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;How to Submit from one program to another program using internal table values minimum 7 int tables without using the seletion screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 12:40:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963944#M396042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T12:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Submititng the program to another program  using internal table values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963945#M396043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way would be to export all internal tables and import in the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 12:45:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963945#M396043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T12:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Submititng the program to another program  using internal table values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963946#M396044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data:  it001 type table of MARA.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select * into table it001 from MARA.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;export it001 = it001 to memory id 'ABCD'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In the other program you can import these values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this statement in the INITIALISATION event.&lt;/P&gt;&lt;P&gt;import it001 = it001 from memory id 'ABCD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to supress the selection screen,  if you do not use "VIA SELECTION SCREEN" addition in submit command, SUBMIT statement should suppress the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont forget to award points if found helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 12:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963946#M396044</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2007-02-07T12:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Submititng the program to another program  using internal table values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963947#M396045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u need to use import and export statements in ur programs....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur first program use export and in ur second program use import...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur first program....&lt;/P&gt;&lt;P&gt;declare the 7 internal tables.&lt;/P&gt;&lt;P&gt;export &amp;lt;internal table1&amp;gt; to memory id 'IT1'.&lt;/P&gt;&lt;P&gt;export &amp;lt;internal table2&amp;gt; to memory id 'IT2'.&lt;/P&gt;&lt;P&gt;export &amp;lt;internal table3&amp;gt; to memory id 'IT3'.&lt;/P&gt;&lt;P&gt;export &amp;lt;internal table4&amp;gt; to memory id 'IT4'.&lt;/P&gt;&lt;P&gt;export &amp;lt;internal table5&amp;gt; to memory id 'IT5'.&lt;/P&gt;&lt;P&gt;export &amp;lt;internal table6&amp;gt; to memory id 'IT6'.&lt;/P&gt;&lt;P&gt;export &amp;lt;internal table7&amp;gt; to memory id 'IT7'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur second program....&lt;/P&gt;&lt;P&gt;declare the 7 internal tables as same structure used in ur first program.&lt;/P&gt;&lt;P&gt;import &amp;lt;internal table1&amp;gt; from memory id 'IT1'.&lt;/P&gt;&lt;P&gt;import &amp;lt;internal table2&amp;gt; from memory id 'IT2'.&lt;/P&gt;&lt;P&gt;import &amp;lt;internal table3&amp;gt; from memory id 'IT3'.&lt;/P&gt;&lt;P&gt;import &amp;lt;internal table4&amp;gt; from memory id 'IT4'.&lt;/P&gt;&lt;P&gt;import &amp;lt;internal table5&amp;gt; from memory id 'IT5'.&lt;/P&gt;&lt;P&gt;import &amp;lt;internal table6&amp;gt; from memory id 'IT6'.&lt;/P&gt;&lt;P&gt;import &amp;lt;internal table7&amp;gt; from memory id 'IT7'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 13:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963947#M396045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T13:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Submititng the program to another program  using internal table values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963948#M396046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Export and Import with Memory id .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 14:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963948#M396046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T14:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Submititng the program to another program  using internal table values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963949#M396047</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;Thank you very much for your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am facing another issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each 10,000 records it should trigger a job  (we are trying to call a program)  were the validation will be done only through the other program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find the code mentioned below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : but000.&lt;/P&gt;&lt;P&gt;DATA:  int_bp LIKE but000 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;data released like BTCH0000-CHAR1.&lt;/P&gt;&lt;P&gt;DATA: jobnumber LIKE tbtcjob-jobcount, " Job ID and&lt;/P&gt;&lt;P&gt;      jobname LIKE tbtcjob-jobname, " job name.&lt;/P&gt;&lt;P&gt;      startdate LIKE tbtcjob-sdlstrtdt, " Start-time&lt;/P&gt;&lt;P&gt;      starttime LIKE tbtcjob-sdlstrttm, " window specs.&lt;/P&gt;&lt;P&gt;      laststartdate LIKE tbtcjob-laststrtdt,&lt;/P&gt;&lt;P&gt;      laststarttime LIKE tbtcjob-laststrttm,&lt;/P&gt;&lt;P&gt;      job_released LIKE btch0000-char1. " JOB_CLOSE: Was job released?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : l1 TYPE i,&lt;/P&gt;&lt;P&gt;       b_size TYPE i,&lt;/P&gt;&lt;P&gt;       b_cursor TYPE cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  b_size = 5000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN CURSOR WITH HOLD b_cursor&lt;/P&gt;&lt;P&gt;     FOR&lt;/P&gt;&lt;P&gt;     SELECT *&lt;/P&gt;&lt;P&gt;     FROM but000&lt;/P&gt;&lt;P&gt;     WHERE bpkind = 'AA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      FETCH NEXT CURSOR b_cursor INTO TABLE int_bp&lt;/P&gt;&lt;P&gt;                                           PACKAGE SIZE b_size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : here in this point  we are getting a dump for the second job trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        CLEAR jobname.&lt;/P&gt;&lt;P&gt;        CONCATENATE sy-repid sy-datum sy-uzeit INTO jobname.&lt;/P&gt;&lt;P&gt;export int_bp to memory id 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  jobname          = jobname&lt;/P&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;P&gt;                  jobcount         = jobnumber.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 cant_create_job  = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 invalid_job_data = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 jobname_missing  = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                 OTHERS           = 4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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; CALL FUNCTION 'JOB_SUBMIT'&lt;/P&gt;&lt;/LI&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;           authcknam = sy-uname&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           jobname   = jobname&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           jobcount  = jobnumber&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           report    = 'YTEST_RRR'.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;           variant   = lv_variant.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SUBMIT ytest_rrr&lt;/P&gt;&lt;P&gt;      VIA JOB jobname NUMBER jobnumber&lt;/P&gt;&lt;P&gt;      AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       event_periodic                    = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        jobcount                          = jobnumber&lt;/P&gt;&lt;P&gt;        jobname                           = jobname&lt;/P&gt;&lt;P&gt;        strtimmed                         = 'X'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        job_was_released                  = released&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calling program :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT YTEST_RRR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab1 like but000 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data l type i.&lt;/P&gt;&lt;P&gt;import itab1 from memory id 'ABC' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table itab1 lines l.&lt;/P&gt;&lt;P&gt;free memory id 'ABC'.&lt;/P&gt;&lt;P&gt;write:/ 'total records are:', l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give your suggestion why its going for  dump in the second iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 17:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submititng-the-program-to-another-program-using-internal-table-values/m-p/1963949#M396047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T17:32:27Z</dc:date>
    </item>
  </channel>
</rss>

