<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1645201#M287159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can 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;data: iekpo type table of ekpo with header line.


select * into table iekpo from ekpo
              where ebeln = p_ebeln  "  &amp;lt;--- THe PO Number&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>Thu, 19 Oct 2006 19:22:54 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-10-19T19:22:54Z</dc:date>
    <item>
      <title>BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1645198#M287156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI_GOODSMVT_CREATE &lt;/P&gt;&lt;P&gt;Posted: Oct 18, 2006 10:57 AM      Reply      E-mail this post  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, All I am new to BAPI can one suggest me how to do this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to create a function module Z_BAPI_GOODSMVT_CREATE in which i should call BAPI_GOODSMVT_CREATE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason for this is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever a file is received, SAP XI will call the new function module Z_BAPI_GOODSMVT_CREATE to accomplish a goods movement and equipment record creation. this function will, in large part, consist of simply passing parameters to and from BAPI_GOODSMVT_CREATE. In addition, this process will need to derive the plant and storage location prior to calling the BAPI, and Z_BAPI_GOODSMVT_CREATE need to send an email alert to a distribution list should the BAPI fail for any reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program should process every item on the file, when there is an error in processing any of the items, an email (subject and email content) should send out according to the alias in the email table. Then the program should continue to process the items in the file until the end of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MY FILE FORMAT WILL BE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GOODSMVT_HEADER&lt;/P&gt;&lt;P&gt;Parameters	Sample data	Data from File/Default&lt;/P&gt;&lt;P&gt;PSTNG_DATE		Current Date&lt;/P&gt;&lt;P&gt;DOC_DATE		File Date&lt;/P&gt;&lt;P&gt;REF_DOC_NO		Message ID&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters	Sample data	Data from File/Default&lt;/P&gt;&lt;P&gt;SENDER_ID		sender ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GOODSMVT_ITEM&lt;/P&gt;&lt;P&gt;Parameters	Sample data	Data from File/Default&lt;/P&gt;&lt;P&gt;MATERIAL	1000-CABINET	Data from File &lt;/P&gt;&lt;P&gt;PLANT	1200	Get from PO line item in SAP&lt;/P&gt;&lt;P&gt;STGE	W810	Get from PO line item in SAP&lt;/P&gt;&lt;P&gt;MOVE_TYPE	101	Default&lt;/P&gt;&lt;P&gt;ENTRY_QNT	1	Quantity data from File&lt;/P&gt;&lt;P&gt;PO_NUMBER	450983457	Purchase Order Number&lt;/P&gt;&lt;P&gt;PO_IT	00001	PO line item number data from File&lt;/P&gt;&lt;P&gt;MVT_IND	B	Default&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GOODSMVT_SERIALNUMBER&lt;/P&gt;&lt;P&gt;Parameters	Sample data	Data from File/Default&lt;/P&gt;&lt;P&gt;MATD	0001	Data from File&lt;/P&gt;&lt;P&gt;SERIALNO	TEST2	Serial Number Data from File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND TELL ME HOW TO GET THE PLANT AND STORAGE DETAILS FROM THE POLINE ITEM BEFORE CALLING THE BAPI. AFTER GETTING THE PLANT AND STORAGE LOCATION HOW DO I STORE ALL THE DATA IN THE INT TABLE AND PASS THE DATA TO BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 18:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1645198#M287156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T18:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1645199#M287157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the plant(WERKS) and storage location (LGORT) from table EKPO.&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>Thu, 19 Oct 2006 19:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1645199#M287157</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-19T19:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1645200#M287158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; and could u tell me the logic after selecting the plant and stg location how will i store the data in a single internal table so that i can pass it to bapi. i mean the same internal table should have all the item details including plant and stg location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 19:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1645200#M287158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T19:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1645201#M287159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can 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;data: iekpo type table of ekpo with header line.


select * into table iekpo from ekpo
              where ebeln = p_ebeln  "  &amp;lt;--- THe PO Number&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>Thu, 19 Oct 2006 19:22:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1645201#M287159</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-19T19:22:54Z</dc:date>
    </item>
  </channel>
</rss>

