<?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 to SAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751334#M639942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;for reading data from app server use&lt;/P&gt;&lt;P&gt;open dataset &amp;lt;filename&amp;gt; for input in text mode.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt;0.&lt;/P&gt;&lt;P&gt;  exit.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  do.&lt;/P&gt;&lt;P&gt;  read dataset &amp;lt;filename.&amp;gt; into &amp;lt;itab-fields&amp;gt;&lt;/P&gt;&lt;P&gt;   append itab..&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;now u r ready with internal table with data...from app server&lt;/P&gt;&lt;P&gt;example : &lt;/P&gt;&lt;P&gt;open dataset 'matdet.txt' in text mode encoding default for input.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;    read dataset 'matdet.txt' into v_rec.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    split v_rec at TAB into it_mara-matnr it_mara-mtart it_mara-ernam.&lt;/P&gt;&lt;P&gt;    append it_mara.&lt;/P&gt;&lt;P&gt;    clear it_mara.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset 'matdet.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Premalatha G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 06:51:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T06:51:04Z</dc:date>
    <item>
      <title>Application server to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751333#M639941</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 need to read a file from application server and then use  BAPI_EXCHRATE_CREATEMULTIPLE  to upload the currency exchange tables in SAP...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can any one guide me how i should proceed.&lt;/P&gt;&lt;P&gt; A code to run a BAPI will be helpful as i am quite new to using a BAPI..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Itz urgent..&lt;/P&gt;&lt;P&gt; Useful answers will be rewarded..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks,&lt;/P&gt;&lt;P&gt; Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 06:46:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751333#M639941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T06:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Application server to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751334#M639942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;for reading data from app server use&lt;/P&gt;&lt;P&gt;open dataset &amp;lt;filename&amp;gt; for input in text mode.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt;0.&lt;/P&gt;&lt;P&gt;  exit.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  do.&lt;/P&gt;&lt;P&gt;  read dataset &amp;lt;filename.&amp;gt; into &amp;lt;itab-fields&amp;gt;&lt;/P&gt;&lt;P&gt;   append itab..&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;now u r ready with internal table with data...from app server&lt;/P&gt;&lt;P&gt;example : &lt;/P&gt;&lt;P&gt;open dataset 'matdet.txt' in text mode encoding default for input.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;    read dataset 'matdet.txt' into v_rec.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    split v_rec at TAB into it_mara-matnr it_mara-mtart it_mara-ernam.&lt;/P&gt;&lt;P&gt;    append it_mara.&lt;/P&gt;&lt;P&gt;    clear it_mara.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset 'matdet.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Premalatha G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 06:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751334#M639942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T06:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Application server to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751335#M639943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;consider the bapi as a function module.&lt;/P&gt;&lt;P&gt;All you have to do is check the parameters to pass and whether the passed values are in correct format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jinesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 06:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751335#M639943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T06:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Application server to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751336#M639944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Thanks for the urgent reply..I am clear till now and have done the same..&lt;/P&gt;&lt;P&gt; But now how to use the BAPI to upload the tables..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Plz reeply with a sample code if u can..&lt;/P&gt;&lt;P&gt; Thanks &lt;/P&gt;&lt;P&gt; Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 06:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751336#M639944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T06:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Application server to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751337#M639945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;            First read file from application server using read dataset and then call FM &lt;/P&gt;&lt;P&gt;'BAPI_EXCHRATE_CREATEMULTIPLE'.&lt;/P&gt;&lt;P&gt;Refer this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_afile1 is not initial.&lt;/P&gt;&lt;P&gt;open dataset p_afile1 for input in text mode encoding default.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;READ DATASET p_afile1 INTO w_line.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;APPEND  w_line TO t_input.&lt;/P&gt;&lt;P&gt;clear w_line.&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 p_afile1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_tcurr type table of BAPI1093_0 with header line,&lt;/P&gt;&lt;P&gt;       it_bapiret type table of Bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       it_tcurr-RATE_TYPE = '1004'.&lt;/P&gt;&lt;P&gt;       it_tcurr-FROM_CURR = 'DEM'.&lt;/P&gt;&lt;P&gt;       it_tcurr-TO_CURRNCY = 'USD'.&lt;/P&gt;&lt;P&gt;       it_tcurr-VALID_FROM = '20060101'.&lt;/P&gt;&lt;P&gt;       it_tcurr-EXCH_RATE = 6.&lt;/P&gt;&lt;P&gt;       it_tcurr-FROM_FACTOR = 1.&lt;/P&gt;&lt;P&gt;       it_tcurr-TO_FACTOR = 10.&lt;/P&gt;&lt;P&gt;      APPEND IT_TCURR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_EXCHRATE_CREATEMULTIPLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;   UPD_ALLOW           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHG_FIXED           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEV_ALLOW           = '000'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    exchrate_list       = IT_TCURR[]&lt;/P&gt;&lt;P&gt;    return              = IT_BAPIRET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WAIT          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 06:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751337#M639945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T06:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Application server to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751338#M639946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 07:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-sap/m-p/2751338#M639946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T07:51:35Z</dc:date>
    </item>
  </channel>
</rss>

