<?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 Err.Message sales document type 'OR' not defined in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453614#M1249908</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 trying to create an order using standard bapi BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I manually enter the below given data (minimum required as per documentation), it creates an order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;order_header_in-distr_chan = '12'.&lt;/P&gt;&lt;P&gt;order_header_in-division   = '00'.&lt;/P&gt;&lt;P&gt;order_header_in-sales_org  = '1000'.&lt;/P&gt;&lt;P&gt;order_header_in-doc_type   = 'OR'.&lt;/P&gt;&lt;P&gt;order_partners-partn_role = 'SP'.&lt;/P&gt;&lt;P&gt;order_partners-partn_numb = '0000001000'.          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to call the same BAPI from an SE38 program with exactly the same data, I get an error message &lt;STRONG&gt;_sales document type 'OR' not defined&lt;/STRONG&gt;_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone konw where I am going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestions or feedback will be highly 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>Mon, 06 Apr 2009 15:53:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-06T15:53:33Z</dc:date>
    <item>
      <title>Err.Message sales document type 'OR' not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453614#M1249908</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 trying to create an order using standard bapi BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I manually enter the below given data (minimum required as per documentation), it creates an order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;order_header_in-distr_chan = '12'.&lt;/P&gt;&lt;P&gt;order_header_in-division   = '00'.&lt;/P&gt;&lt;P&gt;order_header_in-sales_org  = '1000'.&lt;/P&gt;&lt;P&gt;order_header_in-doc_type   = 'OR'.&lt;/P&gt;&lt;P&gt;order_partners-partn_role = 'SP'.&lt;/P&gt;&lt;P&gt;order_partners-partn_numb = '0000001000'.          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to call the same BAPI from an SE38 program with exactly the same data, I get an error message &lt;STRONG&gt;_sales document type 'OR' not defined&lt;/STRONG&gt;_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone konw where I am going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestions or feedback will be highly 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>Mon, 06 Apr 2009 15:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453614#M1249908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T15:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Err.Message sales document type 'OR' not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453615#M1249909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;doc_type s 4 characters.... you are entering only 2 characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use convertion routins:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_AUART_INPUT  " for input&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_AUART_OUTPUT  "for output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 15:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453615#M1249909</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-06T15:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Err.Message sales document type 'OR' not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453616#M1249910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a conversion Exit on the DOC_TYPE field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  order_header_in-doc_type = 'TA'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 15:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453616#M1249910</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-04-06T15:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Err.Message sales document type 'OR' not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453617#M1249911</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;Use this FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : l_doctype type AUART.

Function module              CONVERSION_EXIT_AUART_INPUT
  Import parameters               Value
  INPUT                           'OR'

  Export parameters               Value
  OUTPUT                          l_auart.

order_header_in-doc_type = l_auart.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 16:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453617#M1249911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T16:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Err.Message sales document type 'OR' not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453618#M1249912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for all the responses. I appreciate it. I tried each and every suggestions and here are my responses to those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J@Y, I tried adding blanks but still got the same error.&lt;/P&gt;&lt;P&gt;Naimesh Patel, I tried 'TA' instead of 'OR' and I got an error that said &lt;/P&gt;&lt;P&gt;                                    &lt;STRONG&gt;enter 'sold-to-party' or 'ship-to-party'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                       However, I have already entered the partner number which works when I &lt;/P&gt;&lt;P&gt;                                     manually tested this BAPI. Also the same set of data works with&lt;/P&gt;&lt;P&gt;                                    quote creating BAPI. My understanding is that Partner-number&lt;/P&gt;&lt;P&gt;                                    can be used as ship-to or sold-to party.&lt;/P&gt;&lt;P&gt;I also tried calling CONVERSION_EXIT_AUART_INPUT function but again got the same above&lt;/P&gt;&lt;P&gt;                          error message asking for 'sold-to' or ship-to-party'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would also like to add that I have added the transaction commit in my code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions or feedback will be greatly 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>Mon, 06 Apr 2009 16:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453618#M1249912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T16:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Err.Message sales document type 'OR' not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453619#M1249913</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;Pass AG instead of SP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;order_partners-partn_role = 'AG'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use this Fm CONVERSION_EXIT_PARVW_INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Function module              CONVERSION_EXIT_PARVW_INPUT

  Import parameters               Value
  INPUT                           'SP'

  Export parameters               Value
  OUTPUT                          order_partners-partn_role&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 17:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453619#M1249913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T17:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Err.Message sales document type 'OR' not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453620#M1249914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot guys, Avinash's suggestion of using AG instead of SP did the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again to everyone for responding. I appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 17:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/err-message-sales-document-type-or-not-defined/m-p/5453620#M1249914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T17:11:13Z</dc:date>
    </item>
  </channel>
</rss>

