<?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 getting data into internal table as per our format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228294#M1009888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends plz go through my requirement and provide me a solution for it.&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 :&lt;/P&gt;&lt;P&gt;   wa_t343j type t343j.&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 single *&lt;/P&gt;&lt;P&gt;            into wa_t343j&lt;/P&gt;&lt;P&gt;            from t343j&lt;/P&gt;&lt;P&gt;            WHERE lgnum =  'XYZ' and&lt;/P&gt;&lt;P&gt;                          lgtyp = 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the work area wa_t343j iam getting the following values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lgnum  lgtyp  ste01  ste02 ste03 st304 ste05 ste06 ste07 ste08&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  XYZ    ABC    5                  3        1               2        4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my requiremnt is i want this value in a sepearte internal table in the below format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : &lt;/P&gt;&lt;P&gt;   begin of it_temp,&lt;/P&gt;&lt;P&gt;     index type i,&lt;/P&gt;&lt;P&gt;     field type ltap-vlpla,&lt;/P&gt;&lt;P&gt;     value type ltap-vlpla,&lt;/P&gt;&lt;P&gt;   end   of it_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal table it_temp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index    field          value&lt;/P&gt;&lt;P&gt;  1        LGNUM        XYZ&lt;/P&gt;&lt;P&gt;  2        LGTYP        ABC&lt;/P&gt;&lt;P&gt;  3        STE01         5&lt;/P&gt;&lt;P&gt;  4        STE02       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  9        STE07      4&lt;/P&gt;&lt;P&gt;  10      STE08      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need those values in this format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: satish abap on Aug 12, 2008 8:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2008 15:28:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-12T15:28:57Z</dc:date>
    <item>
      <title>getting data into internal table as per our format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228294#M1009888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends plz go through my requirement and provide me a solution for it.&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 :&lt;/P&gt;&lt;P&gt;   wa_t343j type t343j.&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 single *&lt;/P&gt;&lt;P&gt;            into wa_t343j&lt;/P&gt;&lt;P&gt;            from t343j&lt;/P&gt;&lt;P&gt;            WHERE lgnum =  'XYZ' and&lt;/P&gt;&lt;P&gt;                          lgtyp = 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the work area wa_t343j iam getting the following values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lgnum  lgtyp  ste01  ste02 ste03 st304 ste05 ste06 ste07 ste08&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  XYZ    ABC    5                  3        1               2        4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my requiremnt is i want this value in a sepearte internal table in the below format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : &lt;/P&gt;&lt;P&gt;   begin of it_temp,&lt;/P&gt;&lt;P&gt;     index type i,&lt;/P&gt;&lt;P&gt;     field type ltap-vlpla,&lt;/P&gt;&lt;P&gt;     value type ltap-vlpla,&lt;/P&gt;&lt;P&gt;   end   of it_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal table it_temp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index    field          value&lt;/P&gt;&lt;P&gt;  1        LGNUM        XYZ&lt;/P&gt;&lt;P&gt;  2        LGTYP        ABC&lt;/P&gt;&lt;P&gt;  3        STE01         5&lt;/P&gt;&lt;P&gt;  4        STE02       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  9        STE07      4&lt;/P&gt;&lt;P&gt;  10      STE08      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need those values in this format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: satish abap on Aug 12, 2008 8:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 15:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228294#M1009888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T15:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: getting data into internal table as per our format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228295#M1009889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried reading directly into the new internal table with the INTO CORRESPONDING FIELDS OF TABLE statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 15:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228295#M1009889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T15:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: getting data into internal table as per our format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228296#M1009890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table (workarea) itab1&lt;/P&gt;&lt;P&gt;it1-field1 = 1.&lt;/P&gt;&lt;P&gt;it1-field2 = 'lgnum'.&lt;/P&gt;&lt;P&gt;it1-field3 = itab1-lgnum.&lt;/P&gt;&lt;P&gt;append it1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this for all fields....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 15:33:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228296#M1009890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T15:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: getting data into internal table as per our format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228297#M1009891</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;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your work area you have the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take the first field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count  = count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE count to it_temp-index.&lt;/P&gt;&lt;P&gt;MOVe 'LGNUM' to it_temp-field.&lt;/P&gt;&lt;P&gt;MOVe wa_t343j-lgnum to it_temp-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append it_temp.&lt;/P&gt;&lt;P&gt;clear: it_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the same thing for all the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkatesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 15:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228297#M1009891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T15:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: getting data into internal table as per our format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228298#M1009892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do something like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Types : begin of tt_temp,
        index type i,
        field type char30,
        value type char30,
        end of tt_temp.

data: it_temp type table of tt_temp.
data: wa_temp like line of it_temp.

data: it_fieldlist type table of rstrucinfo.
data: wa_fieldlist like line of it_fieldlist.

data: lv_repid type sy-repid.

FIELD-SYMBOLS: &amp;lt;fs&amp;gt; type any.

lv_repid = sy-repid.

call function 'GET_COMPONENT_LIST'
     exporting
          program    = lv_repid
          fieldname  = 'wa_t343j'
     tables
          components = it_fieldlist.

Loop at it_fieldlist into wa_fieldlist.
  clear wa_temp.
    wa_temp-index = sy-tabix.
    wa_temp-field = wa_fieldlist-compname.
    assign COMPONENT wa_temp-field  of STRUCTURE wa_t343j to &amp;lt;fs&amp;gt;.
    wa_temp-value = &amp;lt;fs&amp;gt;.
    append wa_temp to it_temp.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 15:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228298#M1009892</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-08-12T15:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: getting data into internal table as per our format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228299#M1009893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Rich Heilman .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with your valuable code iam able to move forward in solving my clients requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 16:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228299#M1009893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T16:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: getting data into internal table as per our format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228300#M1009894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very good.  Please make sure to mark this thread as answered/solved.  Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 16:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228300#M1009894</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-08-12T16:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: getting data into internal table as per our format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228301#M1009895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok sure Rich.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just posted one more question regardind looping T_QMAT internal table of LT03 transcation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go through it and plz provide a solution for it Rich.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 16:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-data-into-internal-table-as-per-our-format/m-p/4228301#M1009895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T16:30:39Z</dc:date>
    </item>
  </channel>
</rss>

