<?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: Create Idoc from Custom BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-idoc-from-custom-bapi/m-p/2675246#M618021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reposted on ABAP General because no-one responded on Data Transfer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2007 00:41:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-23T00:41:52Z</dc:date>
    <item>
      <title>Create Idoc from Custom BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-idoc-from-custom-bapi/m-p/2675245#M618020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble with BDBG and generating an idoc from a custom BAPI.  Our requirement is to receive a file from an XI system, and to run the file into Core R/3 via an idoc (as an TRFC will result in a synchronous update and XI will wait for it to complete, whereas my XI consultant wants XI to forget about the file after the idoc is sent, and we wish to use IDoc error handling if there are any problems).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consequently, I have 2 questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)  In my RFC which I have converted to a BAPI, should I cater for the inbound file as a table type, or do I need to define the file line as import parameters;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)  If I define the file structure as the import parameter, do I need to specify each field of the line as a separate import parameter&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ZRCTI_NO    type   ZFRCTI_INB_STRUC-RCTI
ZCUSTOMER type ZFRCTI_INB_STRUC-KUNNR
ZDELIVERY  type ZFRCTI_INB_STRUC-VBELN
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or can I use a line structure for the import &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ZBAPI_INB   TYPE  ZFRCTI_INB_STRUC
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Presently I have the line structure as a single import parameter, but I'm getting the pop-up message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the object Zxxxxx has no key fields, no links to Idocs can be written...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I need to separate out each field as a seperate import parameter in the Function Module, how do I go about regenerating the BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it's really 3 questions, but nonetheless, points will be rewarded for helpful responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 06:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-idoc-from-custom-bapi/m-p/2675245#M618020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T06:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create Idoc from Custom BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-idoc-from-custom-bapi/m-p/2675246#M618021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reposted on ABAP General because no-one responded on Data Transfer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 00:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-idoc-from-custom-bapi/m-p/2675246#M618021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T00:41:52Z</dc:date>
    </item>
  </channel>
</rss>

