<?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: problem in concatenate in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenate/m-p/2906873#M683856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Asish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using only one field in table header, so only way is CONCATENATE statement  to get result .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need  to send all header to one NEW table(line type string) using CONCATENATE statement saperated by  TAB, after that all the data to same NEW table using CONCATENATE statement saperated by  TAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you know how to send as above  plz help me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 05:18:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-16T05:18:03Z</dc:date>
    <item>
      <title>problem in concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenate/m-p/2906871#M683854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am facing one problem that is i have 2 internal tables one is  with field lables, 2nd one is with data. i have to get these table  data to one single table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after getting the data i should send it to &lt;/P&gt;&lt;P&gt; CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD to display data with  filed lables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;client  salesdocument&lt;/P&gt;&lt;P&gt; 140      5545&lt;/P&gt;&lt;P&gt; 140      5546&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code i wrote here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: BEGIN OF t_it,&lt;/P&gt;&lt;P&gt;         mandt type mandt,&lt;/P&gt;&lt;P&gt;         vbeln type vbeln_va,&lt;/P&gt;&lt;P&gt;       END OF t_it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it type TABLE OF t_it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of itt ,&lt;/P&gt;&lt;P&gt;      header type string,&lt;/P&gt;&lt;P&gt;      end of itt.&lt;/P&gt;&lt;P&gt;data: w_itt type itt,&lt;/P&gt;&lt;P&gt;      it1 type table of itt.&lt;/P&gt;&lt;P&gt;types: begin of st_pro,&lt;/P&gt;&lt;P&gt;      line type string,&lt;/P&gt;&lt;P&gt;      end of st_pro.&lt;/P&gt;&lt;P&gt; data: wa_pro type st_pro,&lt;/P&gt;&lt;P&gt;      it_pro type table of st_pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-POOLs: slis.&lt;/P&gt;&lt;P&gt;data: gt_fieldcat type SLIS_T_FIELDCAT_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: r_alvtab type ref to cl_salv_table,&lt;/P&gt;&lt;P&gt;      r_col TYPE REF TO CL_SALV_COLUMNS_TABLE,&lt;/P&gt;&lt;P&gt;      r_cols TYPE SALV_T_COLUMN_REF,&lt;/P&gt;&lt;P&gt;      wa_col type SALV_S_COLUMN_REF,&lt;/P&gt;&lt;P&gt;      ref_col type ref to CL_SALV_COLUMN,&lt;/P&gt;&lt;P&gt;      lv_text type string.&lt;/P&gt;&lt;P&gt;&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;SELECT mandt vbeln INTO TABLE it UP TO 10 rows from vbak.&lt;/P&gt;&lt;P&gt;*select kunnr name1 land1 from kna1 into table itab up to 10 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform get_header1 using  it[] changing it1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   loop at it1 into w_itt.&lt;/P&gt;&lt;P&gt;    loop at it_pro into wa_pro.&lt;/P&gt;&lt;P&gt;   concatenate w_it1 into wa_pro saparated by space.&lt;/P&gt;&lt;P&gt;   append wa_pro to it_pro.&lt;/P&gt;&lt;P&gt;   loop at it into t_it.&lt;/P&gt;&lt;P&gt;   concatenate t_it into wa_pro saparated by space&lt;/P&gt;&lt;P&gt;   append wa_pro to it_pro.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;     endloop.&lt;/P&gt;&lt;P&gt;   endloop.&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;FORM get_header1  USING p_TAB type any table&lt;/P&gt;&lt;P&gt;                   changing P_HEADER type any table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: begin of lv_tab occurs 0,&lt;/P&gt;&lt;P&gt;           line type string,&lt;/P&gt;&lt;P&gt;        end of lv_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD cl_salv_table=&amp;gt;factory&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      r_salv_table   = r_alvtab&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      t_table        = p_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD r_alvtab-&amp;gt;get_columns&lt;/P&gt;&lt;P&gt;    receiving&lt;/P&gt;&lt;P&gt;      value  = r_col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD r_col-&amp;gt;get&lt;/P&gt;&lt;P&gt;    receiving&lt;/P&gt;&lt;P&gt;       value  = r_cols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at r_cols into wa_col.&lt;/P&gt;&lt;P&gt;    ref_col = wa_col-r_column.&lt;/P&gt;&lt;P&gt; CALL METHOD ref_col-&amp;gt;get_medium_text&lt;/P&gt;&lt;P&gt;   receiving&lt;/P&gt;&lt;P&gt;     value  = lv_text.&lt;/P&gt;&lt;P&gt;   lv_tab-line = lv_text.&lt;/P&gt;&lt;P&gt;    append lv_tab.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; p_HEADER[] = lv_tab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_header1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above code i am not able to send the data from it1 to it_pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so plz any one tell me how to send the data from one table  to another  table using CONCATENATE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankx in advance &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mahesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 16:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenate/m-p/2906871#M683854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T16:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem in concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenate/m-p/2906872#M683855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can insert Headings into your data table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IT_HEADER INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_DATA = IT_HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT IT_DATA INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here IT_HEADER and IT_DATA should have same structure else you will get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you will have headings and data in same table and you can download the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also pass headings using HEADER Parameter of the Method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashish Gundawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 16:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenate/m-p/2906872#M683855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T16:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem in concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenate/m-p/2906873#M683856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Asish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using only one field in table header, so only way is CONCATENATE statement  to get result .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need  to send all header to one NEW table(line type string) using CONCATENATE statement saperated by  TAB, after that all the data to same NEW table using CONCATENATE statement saperated by  TAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you know how to send as above  plz help me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 05:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenate/m-p/2906873#M683856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T05:18:03Z</dc:date>
    </item>
  </channel>
</rss>

