<?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: Application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server/m-p/4105218#M981712</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;&lt;/P&gt;&lt;P&gt;Make the fields lengths so as to fit the both header and item values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each field the length should be maximum of header length and item value length should be taken.Note: These should be character types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If take like that the first record will give the the header info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;rama.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2008 14:30:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-03T14:30:36Z</dc:date>
    <item>
      <title>Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server/m-p/4105217#M981711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to separate the header data from the item data while reading the file from application server to internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 14:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server/m-p/4105217#M981711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T14:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server/m-p/4105218#M981712</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;&lt;/P&gt;&lt;P&gt;Make the fields lengths so as to fit the both header and item values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each field the length should be maximum of header length and item value length should be taken.Note: These should be character types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If take like that the first record will give the the header info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;rama.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 14:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server/m-p/4105218#M981712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T14:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server/m-p/4105219#M981713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chaitra,&lt;/P&gt;&lt;P&gt;Can u be more clear on the format of data ur file contains?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: If u have data like below then do like this to seperate the header and item data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H1,H2,H3,H4,I11,I12,I13,I14,I15,I21,I12,I23,I24,I25.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H1..H5 =&amp;gt;Header data.&lt;/P&gt;&lt;P&gt;I11...I15=&amp;gt;Item1 data&lt;/P&gt;&lt;P&gt;I21...I25=&amp;gt;Item2 data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
READ DATA SET file INTO l_string.

SPLIT l_string at ',' INTO wa_header-h1 wa_header-h2
wa_header-h3 wa_header-h4 wa_header-h5 l_item.
APPEND wa_header TI i_header.
DO.
IF NOT l_item IS INITIAL.
SPLIT l_item INTO wa_item-f1 wa_item-f2 wa_item-f3 wa_item-f4  wa_item-f5 l_item.
APPEND wa_item TO i_item.
ELSE.
EXIT.
ENDIF.
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;l_string, i_item are variables of string type.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 14:34:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server/m-p/4105219#M981713</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-07-03T14:34:49Z</dc:date>
    </item>
  </channel>
</rss>

