<?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_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168470#M1196891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_quotation_partners-partn_numb = '1012'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before passing partner no to ls_quotation_partners, use conevrsion function module 'CONVERSION_EXIT_ALPHA_INPUT' and then pass the converted value to ls_quotation_partners .    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 05:45:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-24T05:45:58Z</dc:date>
    <item>
      <title>'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168465#M1196886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run the bapi 'BAPI_QUOTATION_CREATEFROMDATA2' and 'BAPI_TRANSACTION_COMMIT' in proper sequence as recommended by SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am entering the minimum data recommended by SAP help on this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the above senario manually from transaction SE37 and selecting&lt;/P&gt;&lt;P&gt;from the menu  Function Module -&amp;gt; Test -&amp;gt; Test Sequence,&lt;/P&gt;&lt;P&gt;everything works fine and this also creates a quote and when I check, it&lt;/P&gt;&lt;P&gt;is adding lots of extra related data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I call the same two functions from another program (SE38),&lt;/P&gt;&lt;P&gt;even though I am entering the same Data, I get different behaviour and&lt;/P&gt;&lt;P&gt;also the quote is not getting created. When I check the ls_return value,&lt;/P&gt;&lt;P&gt;it says that 'sold-to-party' is missing.  I don't know why this problem&lt;/P&gt;&lt;P&gt;doesn't arise when I run the BAPI manually from SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate if you can please give me any feedback or some expert comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the SE38 program that I am using to test these two BAPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==========================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZQUOTECREATE_TEST&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zquotecreate_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ls_quotation_header_in        type  bapisdhd1,&lt;/P&gt;&lt;P&gt;      ls_behave_when_error          type  bapiflag-bapiflag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_quotation_partners         like  bapiparnr occurs 1 with header line,&lt;/P&gt;&lt;P&gt;      ls_return                     like  bapiret2  occurs 1 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_quotation_header_in-distr_chan = '12'.&lt;/P&gt;&lt;P&gt;ls_quotation_header_in-division = '00'.&lt;/P&gt;&lt;P&gt;ls_quotation_header_in-sales_org = '1000'.&lt;/P&gt;&lt;P&gt;ls_quotation_header_in-doc_type = 'AG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_behave_when_error              = 'P'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_quotation_partners-partn_role = 'SP'.&lt;/P&gt;&lt;P&gt;ls_quotation_partners-partn_numb = '1012'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_QUOTATION_CREATEFROMDATA2'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    quotation_header_in            = ls_quotation_header_in&lt;/P&gt;&lt;P&gt;    BEHAVE_WHEN_ERROR              = ls_BEHAVE_WHEN_ERROR&lt;/P&gt;&lt;UL&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;  salesdocument                  =  ls_salesdocument&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    return                         = ls_return&lt;/P&gt;&lt;P&gt;    quotation_partners             = ls_quotation_partners&lt;/P&gt;&lt;P&gt;   .          .&lt;/P&gt;&lt;P&gt;call function 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;P&gt;   wait          = ' '&lt;/P&gt;&lt;UL&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 16:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168465#M1196886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T16:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168466#M1196887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured out the conversion problem involving 'QT' and 'AG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is this flag 'CONVERT' which doesn't affect while running manually but while calling from SE38, I have to turn it on by putting a value 'X" and so the AG-QT issue is resolved &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you can please respond to the other problem with error 'Please enter sold-to-party or ship-to-party', I would appreciate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again with the same test data, the above error message doesn't show up while running the BAPI manually from SE37 and QUOTE gets created successfully. However, when the same BAPI is called from SE38 program I get the above error message and QUOTE doesnt get created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 16:39:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168466#M1196887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T16:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168467#M1196888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just fill is_quotation_header_inx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ls_quotation_header_in*x*-distr_chan = 'X'.
ls_quotation_header_in*x*-division = 'X'.
ls_quotation_header_in*x*-sales_org = 'X'.
ls_quotation_header_in*x*-doc_type = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Pratik Vora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 04:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168467#M1196888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T04:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168468#M1196889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pratik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.   I tried your suggestion by putting the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_quotation_header_inx-updateflag = 'I'.&lt;/P&gt;&lt;P&gt;ls_quotation_header_inx-doc_type   = 'X'.&lt;/P&gt;&lt;P&gt;ls_quotation_header_inx-sales_org  = 'X'.&lt;/P&gt;&lt;P&gt;ls_quotation_header_inx-distr_chan = 'X'.&lt;/P&gt;&lt;P&gt;ls_quotation_header_inx-division   = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, still I get the same error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions or feedback will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 05:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168468#M1196889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T05:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168469#M1196890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ram prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUOTATION_PARTNERS is internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you have to declare it as a internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: IS_QUOTATION_PARTNERS TABLE OF QUOTATION_PARTNERS with header line..

Then after filling values for parteners,

 append IS_QUOTATION_PARTNERS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then just pass it to function module.&lt;/P&gt;&lt;P&gt;Hope it will resolve your problem.&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;Pratik Vora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 05:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168469#M1196890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T05:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168470#M1196891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_quotation_partners-partn_numb = '1012'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before passing partner no to ls_quotation_partners, use conevrsion function module 'CONVERSION_EXIT_ALPHA_INPUT' and then pass the converted value to ls_quotation_partners .    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 05:45:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168470#M1196891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T05:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168471#M1196892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I have defined the internal table. I didn't paste the whole program since it will be too long and thought people may not be interested in going thro' the whole program :-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try other suggestions and see if that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 06:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168471#M1196892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T06:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168472#M1196893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have resolved your query, Kindly share it with us, that what was the problem &amp;amp; how have you solved it??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratik Vora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 11:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168472#M1196893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T11:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168473#M1196894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pratik &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the suggestions. I have tried them but unfortunately that hasn't helped, but good thing is that I am learning new things. I will wait and see if anybody else has any other comments or suggestions. I am also trying other sources to resolve this issue and once I get this resolved, I wil definitely share with forum members.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168473#M1196894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168474#M1196895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Values for some of the mandatory fields were missing while calling the BAPI and once I sent all the values needed, it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2009 13:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quotation-createfromdata2-behaves-different-while-called-from-se38/m-p/5168474#M1196895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-19T13:32:15Z</dc:date>
    </item>
  </channel>
</rss>

