Skip to Content
author's profile photo Former Member
Former Member

BAPI_SALESORDER_CREATEFROMDAT2

hi

i use BAPI_SALESORDER_CREATEFROMDAT2 to create sales order!

this sales document type = 'CR' or 'DR' but

i will get return :Unpermitted combination of business object BUS2032and sales doc. category K and error number is 761

why BAPI_SALESORDER_CREATEFROMDAT2 can't create CR of SO.

and how to resolve!

urgent !

thank you your help!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 07:28 AM

    i have resolve it!

    Add a comment
    10|10000 characters needed characters exceeded

    • Weel, if xiaobing does not explain, I could do:

      BAPI_SALESORDER_CREATEFROMDAT2 calls 'SD_SALESDOCUMENT_CREATE' with parameter

      business_object = 'BUS2032'.

      We had the same problem and used a wrapper function where we passed the business object.

      Then we proceed without change and it works perfectly.

      Here is the business type assignment:

        case lv_vbtyp.
          when gc_vbtyp_order.
            lv_oj_name = 'BUS2032'.
          when gc_vbtyp_return.
            lv_oj_name = 'BUS2102'.
          when gc_vbtyp_credit_req.
            lv_oj_name = 'BUS2094'.
          when gc_vbtyp_debit_req.
            lv_oj_name = 'BUS2096'.
          when others.
      * no good
        endcase." lv_vbtyp.
      
      

      Regards,

      Clemens

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 02:36 PM

    hi

    please could you explain the resolution.

    Many tanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.