<?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: Upload the data from application server with bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521322#M570719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your requirement is two fold.&lt;/P&gt;&lt;P&gt;1) Get the file from the Application server into an internal table.&lt;/P&gt;&lt;P&gt;2) Populate the BAPI's interface parameters and call the BAPI FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;/P&gt;&lt;P&gt;open dataset &amp;lt;file&amp;gt; for input in text mode encoding default.&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;read dataset &amp;lt;file&amp;gt; into wa.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;close dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) fill bapi interface parameters and call the bapi using the call function statement&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;x_exp1-field1 = itab-field1.&lt;/P&gt;&lt;P&gt;x_exp1-field2 = itab-field2.&lt;/P&gt;&lt;P&gt;call function 'BAPI_XXXXXXXXXXXXXXXX'&lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;exp1 = x_exp1&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;table1 = t_itab1&lt;/P&gt;&lt;P&gt;return = t_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2007 16:25:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-16T16:25:11Z</dc:date>
    <item>
      <title>Upload the data from application server with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521321#M570718</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;can anyone paste some sample code to upload the data from a file which is in applicaiton server with the use of a BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please its bit urgent....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your anticipation.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 16:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521321#M570718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T16:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Upload the data from application server with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521322#M570719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your requirement is two fold.&lt;/P&gt;&lt;P&gt;1) Get the file from the Application server into an internal table.&lt;/P&gt;&lt;P&gt;2) Populate the BAPI's interface parameters and call the BAPI FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;/P&gt;&lt;P&gt;open dataset &amp;lt;file&amp;gt; for input in text mode encoding default.&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;read dataset &amp;lt;file&amp;gt; into wa.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;close dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) fill bapi interface parameters and call the bapi using the call function statement&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;x_exp1-field1 = itab-field1.&lt;/P&gt;&lt;P&gt;x_exp1-field2 = itab-field2.&lt;/P&gt;&lt;P&gt;call function 'BAPI_XXXXXXXXXXXXXXXX'&lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;exp1 = x_exp1&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;table1 = t_itab1&lt;/P&gt;&lt;P&gt;return = t_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 16:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521322#M570719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T16:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Upload the data from application server with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521323#M570720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no BAPI specifically for this purpose.  Why is a BAPI required?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look to FM  -ARCHIVFILE_SERVER_TO_TABLE.  You could make a custom BAPI of it - if you TRULY need a BAPI.  No real reason that I can thought of, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points.... don't forget those points.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 16:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521323#M570720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T16:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Upload the data from application server with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521324#M570721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not specifically asking anything....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just I need some sample program to upload the data which is in the application server with the use of a BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let us take one case i will get the AR line item data into applicaiton server. I have to upload the data into sap system with the use of a bapi.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u help me plzzzzzzzzzz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 16:33:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521324#M570721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T16:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Upload the data from application server with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521325#M570722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no BAPI specifically for this purpose in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI are Business Objects that relate to business activities - creating a sales order, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to use a Func Mod (like the one cited above).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 16:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521325#M570722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T16:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Upload the data from application server with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521326#M570723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are not catching my point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let us take one bapi BAPI_ACC_BILLING_POST... this is used to upload the open AR items and G/L items. So i will take the file from applicaiton server read that data into one int. table n will do the validations and call that above bapi.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i need some sample program like this if u have any......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 16:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521326#M570723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T16:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Upload the data from application server with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521327#M570724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreed... I was not getting your point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi's pseudo-code above is exactly what you are looking for then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 16:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521327#M570724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T16:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Upload the data from application server with bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521328#M570725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to bapi's can u post the sample code if u have any related to my requirement.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 16:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-the-data-from-application-server-with-bapi/m-p/2521328#M570725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T16:52:18Z</dc:date>
    </item>
  </channel>
</rss>

