<?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: Return data from submit into an internal table with multiple column in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-data-from-submit-into-an-internal-table-with-multiple-column/m-p/485433#M16130</link>
    <description>&lt;P&gt;Either you parse/split the data into TWO internal tables (header and detail, REUSE_ALV_HIERSEQ_LIST_DISPLAY) or disguise as MIGO to trigger an export of data and prevent display:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  EXPORT flag    = 'X' TO MEMORY ID 'MB51_FLAG'.
  EXPORT no_list = 'X' TO MEMORY ID 'MB51_NOLIST'.
  " submit RM07DOCS or call transaction 'MB51'
  IMPORT export_list = lt_list FROM MEMORY ID 'MB51_EXPORT_LIST'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Look in RM07DOCS or LMIGOSR1 for export_list itab definition.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2017 12:27:40 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2017-06-13T12:27:40Z</dc:date>
    <item>
      <title>Return data from submit into an internal table with multiple column</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-data-from-submit-into-an-internal-table-with-multiple-column/m-p/485431#M16128</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am submitting MB51 and returning list to memory.&lt;/P&gt;&lt;P&gt;Next i am using FM: LIST_FROM_MEMORY to get data and finally using &lt;/P&gt;&lt;P&gt;FM: LIST_TO_ASCI to get it into an internal table.&lt;/P&gt;&lt;P&gt;But, this way, data returned in internal table is in a single column. i.e of type text.&lt;/P&gt;&lt;P&gt;Is there a way that i can get data in individual columns ?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul &lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 11:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-data-from-submit-into-an-internal-table-with-multiple-column/m-p/485431#M16128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-13T11:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Return data from submit into an internal table with multiple column</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-data-from-submit-into-an-internal-table-with-multiple-column/m-p/485432#M16129</link>
      <description>&lt;P&gt;No - you need to parse the result into your table.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 11:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-data-from-submit-into-an-internal-table-with-multiple-column/m-p/485432#M16129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-13T11:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Return data from submit into an internal table with multiple column</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-data-from-submit-into-an-internal-table-with-multiple-column/m-p/485433#M16130</link>
      <description>&lt;P&gt;Either you parse/split the data into TWO internal tables (header and detail, REUSE_ALV_HIERSEQ_LIST_DISPLAY) or disguise as MIGO to trigger an export of data and prevent display:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  EXPORT flag    = 'X' TO MEMORY ID 'MB51_FLAG'.
  EXPORT no_list = 'X' TO MEMORY ID 'MB51_NOLIST'.
  " submit RM07DOCS or call transaction 'MB51'
  IMPORT export_list = lt_list FROM MEMORY ID 'MB51_EXPORT_LIST'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Look in RM07DOCS or LMIGOSR1 for export_list itab definition.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 12:27:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-data-from-submit-into-an-internal-table-with-multiple-column/m-p/485433#M16130</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-06-13T12:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Return data from submit into an internal table with multiple column</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-data-from-submit-into-an-internal-table-with-multiple-column/m-p/485434#M16131</link>
      <description>&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;Try something like below,&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2012/11/30/getting-opening-and-closing-quantities-of-stock-with-accuracy-of-mb5b/" target="test_blank"&gt;https://blogs.sap.com/2012/11/30/getting-opening-and-closing-quantities-of-stock-with-accuracy-of-mb5b/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sijin&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 04:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-data-from-submit-into-an-internal-table-with-multiple-column/m-p/485434#M16131</guid>
      <dc:creator>Sijin_Chandran</dc:creator>
      <dc:date>2017-06-14T04:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Return data from submit into an internal table with multiple column</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-data-from-submit-into-an-internal-table-with-multiple-column/m-p/485435#M16132</link>
      <description>&lt;P&gt;Try Using below code you will get data in &amp;lt;lt_pay_data&amp;gt;:&lt;/P&gt;&lt;P&gt;DATA : i_selection TYPE STANDARD TABLE OF rsparams ,&lt;BR /&gt;
 lr_pay_data TYPE REF TO data ,&lt;/P&gt;&lt;P&gt;REFRESH : i_selection[] .&lt;BR /&gt;
&lt;BR /&gt;
 CLEAR : wa_selection.&lt;BR /&gt;
 wa_selection-selname = 'MATNR'.&lt;BR /&gt;
 wa_selection-kind = 'S'.&lt;BR /&gt;
 wa_selection-sign = 'I'.&lt;BR /&gt;
 wa_selection-option = 'BT'.&lt;BR /&gt;
 wa_selection-low = '1000000' .&lt;BR /&gt;
 wa_selection-high = '99999999' .&lt;BR /&gt;
 APPEND wa_selection TO i_selection.&lt;BR /&gt;
 CLEAR wa_selection.&lt;BR /&gt;
&lt;BR /&gt;
 CLEAR : wa_selection.&lt;BR /&gt;
 wa_selection-selname = 'NOZERO'.&lt;BR /&gt;
 wa_selection-kind = 'P'.&lt;BR /&gt;
 wa_selection-low = 'X' .&lt;BR /&gt;
 APPEND wa_selection TO i_selection.&lt;BR /&gt;
&lt;BR /&gt;
 CLEAR : wa_selection.&lt;BR /&gt;
 wa_selection-selname = 'PA_FLT'.&lt;BR /&gt;
 wa_selection-kind = 'P'.&lt;BR /&gt;
 wa_selection-low = 'X' .&lt;BR /&gt;
 APPEND wa_selection TO i_selection.&lt;BR /&gt;
 CLEAR wa_selection.&lt;BR /&gt;
&lt;BR /&gt;
 wa_selection-selname = 'PA_HSQ'.&lt;BR /&gt;
 wa_selection-kind = 'P'.&lt;BR /&gt;
 wa_selection-low = '' .&lt;BR /&gt;
 APPEND wa_selection TO i_selection.&lt;BR /&gt;
 CLEAR wa_selection.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 wa_selection-selname = 'PA_SOND'.&lt;BR /&gt;
 wa_selection-kind = 'P'.&lt;BR /&gt;
 wa_selection-low = 'X' .&lt;BR /&gt;
 APPEND wa_selection TO i_selection.&lt;BR /&gt;
 CLEAR wa_selection.&lt;BR /&gt;
&lt;BR /&gt;
 CLEAR : wa_selection.&lt;BR /&gt;
 wa_selection-selname = 'P_VARI'.&lt;BR /&gt;
 wa_selection-kind = 'P'.&lt;BR /&gt;
 wa_selection-low = 'MONTH_END' .&lt;BR /&gt;
 APPEND wa_selection TO i_selection.&lt;BR /&gt;
 CLEAR wa_selection.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;lt_pay_data&amp;gt; TYPE ANY TABLE ,&lt;BR /&gt;
 &amp;lt;ls_pay_data&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt; cl_salv_bs_runtime_info=&amp;gt;set(&lt;BR /&gt;
 EXPORTING display = abap_false&lt;BR /&gt;
 metadata = abap_false&lt;BR /&gt;
 data = abap_true ).&lt;BR /&gt;
* Submit MB52&lt;BR /&gt;
 SUBMIT rm07mlbs&lt;BR /&gt;
 WITH SELECTION-TABLE i_selection&lt;BR /&gt;
 AND RETURN.&lt;BR /&gt;
 TRY.&lt;BR /&gt;
 cl_salv_bs_runtime_info=&amp;gt;get_data_ref(&lt;BR /&gt;
 IMPORTING r_data = lr_pay_data ).&lt;BR /&gt;
 IF lr_pay_data IS NOT INITIAL.&lt;BR /&gt;
 ASSIGN lr_pay_data-&amp;gt;* TO &amp;lt;lt_pay_data&amp;gt;.&lt;BR /&gt;
 IF &amp;lt;lt_pay_data&amp;gt; IS ASSIGNED.&lt;BR /&gt;
 PERFORM convert_data.&lt;BR /&gt;
 PERFORM write_file_to_app USING p_filename.&lt;BR /&gt;
 CLEAR : lr_pay_data.&lt;BR /&gt;
 REFRESH : &amp;lt;lt_pay_data&amp;gt;[].&lt;BR /&gt;
 ENDIF.&lt;BR /&gt;
 ENDIF.&lt;BR /&gt;
 CATCH cx_salv_bs_sc_runtime_info.&lt;BR /&gt;
 MESSAGE 'Unable to retrieve ALV data' TYPE 'E'.&lt;BR /&gt;
 ENDTRY.&lt;BR /&gt;
 cl_salv_bs_runtime_info=&amp;gt;clear_all( ).&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 05:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-data-from-submit-into-an-internal-table-with-multiple-column/m-p/485435#M16132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-14T05:17:30Z</dc:date>
    </item>
  </channel>
</rss>

