<?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_INQUIRY_CREATEFROMDATA2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191199#M1001887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where does it say that the CREATE BAPI can be used to change an existing Inquiry?&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 16:59:37 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2008-07-21T16:59:37Z</dc:date>
    <item>
      <title>BAPI_INQUIRY_CREATEFROMDATA2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191195#M1001883</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 am changing an Enquiry using BAPI_INQUIRY_CREATEFROMDATA2. I came to know this bapi can be used to create and change inquiries. After succesfully chnaging the document i am getting message from SAP Office &lt;/P&gt;&lt;P&gt; "&lt;STRONG&gt;Express document "Update was terminated" received&lt;/STRONG&gt;". dont know why... can anybody help me in this issue... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i am using for same sales document change using bapi BAPI_CUSTOMERINQUIRY_CHANGE.. it is working fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lt_header like BAPISDHD1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      lt_header_x LIKE BAPISDHD1X OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      lt_partners LIKE BAPIPARNR OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      lt_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_header-doc_type = 'IN'.&lt;/P&gt;&lt;P&gt;lt_header-purch_date = '20080808'.&lt;/P&gt;&lt;P&gt;lt_header-purch_no_c = '7654321'.&lt;/P&gt;&lt;P&gt;append lt_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_header_x-updateflag = 'U'.&lt;/P&gt;&lt;P&gt;lt_header_x-purch_date = 'X'.&lt;/P&gt;&lt;P&gt;lt_header_x-purch_no_c = 'X'.&lt;/P&gt;&lt;P&gt;append lt_header_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_partners-partn_role = 'AG'.&lt;/P&gt;&lt;P&gt;lt_partners-partn_numb = '0000012345'.&lt;/P&gt;&lt;P&gt;append lt_partners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_INQUIRY_CREATEFROMDATA2'
  EXPORTING
    SALESDOCUMENTIN               = '0010012345'
    inquiry_header_in             = lt_header
    INQUIRY_HEADER_INX            = lt_header_x
*   SENDER                        =
*   BINARY_RELATIONSHIPTYPE       =
*   INT_NUMBER_ASSIGNMENT         =
*   BEHAVE_WHEN_ERROR             =
*   LOGIC_SWITCH                  =
*   TESTRUN                       =
*   CONVERT                       = ' '
* IMPORTING
*   SALESDOCUMENT                 =
  tables
   RETURN                        = lt_return
*   INQUIRY_ITEMS_IN              =
*   INQUIRY_ITEMS_INX             =
    inquiry_partners              = lt_partners
*   INQUIRY_SCHEDULES_IN          =
*   INQUIRY_SCHEDULES_INX         =
*   INQUIRY_CONDITIONS_IN         =
*   INQUIRY_CONDITIONS_INX        =
*   INQUIRY_CFGS_REF              =
*   INQUIRY_CFGS_INST             =
*   INQUIRY_CFGS_PART_OF          =
*   INQUIRY_CFGS_VALUE            =
*   INQUIRY_CFGS_BLOB             =
*   INQUIRY_CFGS_VK               =
*   INQUIRY_CFGS_REFINST          =
*   INQUIRY_TEXT                  =
*   INQUIRY_KEYS                  =
*   EXTENSIONIN                   =
*   PARTNERADDRESSES              =
          .

read table lt_return with key type = 'E'.
if sy-subrc ne 0.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
*   EXPORTING
*     WAIT          =
*   IMPORTING
*     RETURN        =
            .
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 16:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191195#M1001883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T16:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INQUIRY_CREATEFROMDATA2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191196#M1001884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;provide any kind of input which can help me....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 16:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191196#M1001884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T16:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INQUIRY_CREATEFROMDATA2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191197#M1001885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm pretty sure that you do not want to use this BAPI to change your inquiry, use the supplied BAPI for changing and only use the CREATE for creating.&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>Mon, 21 Jul 2008 16:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191197#M1001885</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-07-21T16:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INQUIRY_CREATEFROMDATA2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191198#M1001886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was in Dilemma, to use this or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why SAP given option to change Inquiry with this BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain .....if possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 16:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191198#M1001886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T16:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INQUIRY_CREATEFROMDATA2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191199#M1001887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where does it say that the CREATE BAPI can be used to change an existing Inquiry?&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 16:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191199#M1001887</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-07-21T16:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INQUIRY_CREATEFROMDATA2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191200#M1001888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In FM Document,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i click on the input parameter &lt;STRONG&gt;INQUIRY_HEADER_INX&lt;/STRONG&gt;.. the following description opens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checkbox for Header Data&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;This paramter fulfills the following two tasks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Controls processing functions with the value in the UPDATEFLAG field (change indicator).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The following entries are available:&lt;/P&gt;&lt;P&gt;' ' :  Create a new sales document&lt;/P&gt;&lt;P&gt;I:     Create a new sales document&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;U:     Change an existing sales document&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;     Delete an existing sales document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Controls the field entry with checkboxes&lt;/P&gt;&lt;P&gt;If the UPDATEFLAG field has been activated, the system only copies those fields from the SALES_HEADER_IN parameter that have been activated with 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this part made me assume to use this BAPI to change Inquiry also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 17:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-inquiry-createfromdata2/m-p/4191200#M1001888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T17:04:56Z</dc:date>
    </item>
  </channel>
</rss>

