11-30-2007 6:24 AM
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!
11-30-2007 7:28 AM
12-04-2007 3:07 PM
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
12-04-2007 2:36 PM