<?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: bapi for po upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967250#M1157816</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;say suppose wa1 is having fields f1,f2,f3 and wa2 is having g1,g2,g3,g4.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs1&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fs1&amp;gt; = 'wa1-'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if wa1-f1 eq 'a'.&lt;/P&gt;&lt;P&gt;    concatenate &amp;lt;fs1&amp;gt; 'g4' into &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;assign (itab-fieldvalue) to &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jan 2009 10:58:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-02T10:58:22Z</dc:date>
    <item>
      <title>bapi for po upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967244#M1157810</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;i have a requirement in which i hav to upload file which has field names in the 1st row and the actual data starts from the second row..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this i need to create two work areas w1(each field with 40 char length) to move field names of first row..and work area w2 (of actual length of data) to move actual data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when coming to file there will be any number of fields like, it might contain 30 fields or 10 fields. for both the cases it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the file the fields might be shuffled i.e., i did coding for field sequence f1 f2 f3 f4. and in future this might be f2 f4 f3 f1...&lt;/P&gt;&lt;P&gt;so i have to move field values from second row to  2nd work area based on the field name of work area w1..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have to use case statement like&lt;/P&gt;&lt;P&gt;case w1-field&lt;/P&gt;&lt;P&gt;  when indicator &lt;/P&gt;&lt;P&gt;  w2-ind = file-ind&lt;/P&gt;&lt;P&gt;  when company code&lt;/P&gt;&lt;P&gt;  w2-bukrs = file-bukrs.....etc&lt;/P&gt;&lt;P&gt;like this i hav to use its seems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me in getting this logic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 11:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967244#M1157810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-31T11:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: bapi for po upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967245#M1157811</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;u can use as follows....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case seq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'seq1'&lt;/P&gt;&lt;P&gt;wa-fld1 = field1,&lt;/P&gt;&lt;P&gt;wa-fld2 = field2,&lt;/P&gt;&lt;P&gt;wa-fld3 = field3,&lt;/P&gt;&lt;P&gt;wa-fld4 = field4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'seq2'&lt;/P&gt;&lt;P&gt;wa-fld1 = field2,&lt;/P&gt;&lt;P&gt;wa-fld2 = field4,&lt;/P&gt;&lt;P&gt;wa-fld3 = field1,&lt;/P&gt;&lt;P&gt;wa-fld4 = field3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'seq3'&lt;/P&gt;&lt;P&gt;................ so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; where you have seq as parameter. &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;sateesh kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 11:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967245#M1157811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-31T11:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: bapi for po upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967246#M1157812</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;i hav to fill second work area based on the field name of first work area.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 06:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967246#M1157812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T06:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: bapi for po upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967247#M1157813</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;For this requirement, you can use Field symbols.&lt;/P&gt;&lt;P&gt;Based on the value of the workarea1, assign the field name(field name in work area2) to a field symbol and pass the correspoding value to the field using the field symbol.Hope it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 08:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967247#M1157813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T08:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: bapi for po upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967248#M1157814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi prasanna, &lt;/P&gt;&lt;P&gt;can u plz send the sample code for which u have explained.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 10:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967248#M1157814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T10:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: bapi for po upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967249#M1157815</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 with  READ_BY_LINE parameter in FM then it reads 2nd row directly from fupload file.&lt;/P&gt;&lt;P&gt;&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;Md.MahaboobKhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 10:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967249#M1157815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T10:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: bapi for po upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967250#M1157816</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;say suppose wa1 is having fields f1,f2,f3 and wa2 is having g1,g2,g3,g4.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs1&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fs1&amp;gt; = 'wa1-'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if wa1-f1 eq 'a'.&lt;/P&gt;&lt;P&gt;    concatenate &amp;lt;fs1&amp;gt; 'g4' into &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;assign (itab-fieldvalue) to &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 10:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967250#M1157816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T10:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: bapi for po upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967251#M1157817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry ignore the previous post. It was accidently sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa1,&lt;/P&gt;&lt;P&gt;        f1 type string,&lt;/P&gt;&lt;P&gt;        f2 type string,&lt;/P&gt;&lt;P&gt;        f3 type string,&lt;/P&gt;&lt;P&gt;      end of wa1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      begin of wa2,&lt;/P&gt;&lt;P&gt;        g1 type string,&lt;/P&gt;&lt;P&gt;        g2 type string,&lt;/P&gt;&lt;P&gt;        g3 type string,&lt;/P&gt;&lt;P&gt;        g4 type string,&lt;/P&gt;&lt;P&gt;      end of wa2.&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;field-symbols: &amp;lt;fs1&amp;gt; type any.&lt;/P&gt;&lt;P&gt;data: w_string type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     assign 'wa2-' to &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      wa1-f1 = 'a'.&lt;/P&gt;&lt;P&gt;      wa1-f2 = 'b'.&lt;/P&gt;&lt;P&gt;      wa1-f3 = 'c'.&lt;/P&gt;&lt;P&gt;      if wa1-f1 = 'a'.&lt;/P&gt;&lt;P&gt;      concatenate &amp;lt;fs1&amp;gt; 'g2' into w_string.&lt;/P&gt;&lt;P&gt;      assign (w_string) to &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;      &amp;lt;fs1&amp;gt; = wa1-f3.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      write: &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 11:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-po-upload/m-p/4967251#M1157817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T11:06:26Z</dc:date>
    </item>
  </channel>
</rss>

