‎2012 Jan 10 10:08 AM
Hi all,
I have been given with a task like creating function module for sales return For that i am using standard BAPI BAPI_SALESORDER_CREATEFROMDAT1 .To this BAPI i am passing all necessary inputs with doc_type as RE.When i execute this Function module ,its showing Following error
EV1 761Unpermitted combination of business object BUS2032 and sales doc. category HThis BAPI is working for Sales order creation ,But for Sales return not working .what would be the problem?please help me out.
with regards
naresh bammidi
‎2012 Jan 10 10:33 AM
Unpermitted combination of business object BUS2032 and sales doc. category H
The business object for returns is BUS2102. TheBAPI you mentioned has a hard coded value of BUS2032 which is not for a return sale order. Have a look into the bapi function available in SWO1 for BUS2102, its BAPI_CUSTOMERRETURN_CREATE. Please try with that.
Kesav
‎2012 Jan 10 10:14 AM
‎2012 Jan 10 10:21 AM
Hi,
If I understood properly your requirement is to do the PRCN ( sales return).
In SD that can be done through the PRCN which is based on Invoice generated earlier for which we want to make the return.
to achive this we need to use BAPI : 'BAPI_CUSTOMERRETURN_CREATE'
‎2012 Jan 10 10:27 AM
Hi,
Try using the FM BAPI_OUTB_DELIVERY_CREATE_SLS.
Hope this helps
‎2012 Jan 10 10:33 AM
Unpermitted combination of business object BUS2032 and sales doc. category H
The business object for returns is BUS2102. TheBAPI you mentioned has a hard coded value of BUS2032 which is not for a return sale order. Have a look into the bapi function available in SWO1 for BUS2102, its BAPI_CUSTOMERRETURN_CREATE. Please try with that.
Kesav
‎2012 Jan 10 10:40 AM
Hi,
Use FM SD_SALESDOCUMENT_CREATE for creation of returns order.
As there is no internal commit, you need to call bapi_transaction_commit externally.
Regards,
Lokeswari
‎2012 Jan 10 11:17 AM
Hi ,
please find the belllow to get bapi error.
Thanks & Regards,
Goutam Kolluru.