‎2010 Jul 14 7:40 AM
Hi All,
I have a requirement to create Credit memo request in SAP SD. I'm trying to use the BAPI which is used for Sales order creation - BAPI_SALESORDER_CREATEFROMDAT2 since credit memos are also sales orders of diff. sales document type. However, the BAPI throws an error as follows
"Unpermitted combination of business object BUS2032 and sales doc. category K".
Does this mean that the business object BUS2032 does not support creation of cerdit memo request ? If yes, can anyone suggest an alternate BAPI to be used to address this requirement ?
Thanks,
Venkat.
‎2010 Jul 14 8:04 AM
Hi,
BAPI_SALESORDER_CREATEFROMDAT2 will support only BUS2032 object . it won't support for credit memo request.
try using sd_salesdocument_create. or BAPI_SALESDOCU_CREATEFROMDATA
Thank you.
Regards,
Lokeswari.
‎2010 Jul 14 8:33 AM
Hi Lokeswari,
Thanks a lot. i tried using SD_SALESDOCUMENT_CREATE and it meets the requirement.
Thanks,
Venkat.
‎2014 Oct 09 1:09 PM
Hi Venkatesh,
Thanks you for your post, your post has helped me a ton in my work, Infact I was working on BAPI to
Create Credit Memo request i.e BAPI_SALESORDER_CREATEFROMDAT2 as expected i got the same error as "Unpermitted combination of business object BUS2032 and sales doc. category K" and i tried on other BAPI it worked, Just i need to know BUS2032 doesn't support Credit Memo Request, How we can find it
to what Sales document it support?
‎2014 Oct 09 3:11 PM
Hi Sumit,
well, that's SAP. You never know.
We just copied the BAPI BAPI_SALESORDER_CREATEFROMDAT2 to our Z_BAPI_CREDITMEMO_CREATE and removed the lines preventing processing.
The FUNCTION 'SD_SALESDOCUMENT_CREATE' does not care if it's order or credit memo.
Regards,
Clemens
‎2024 Jul 20 11:27 PM
I have used Business object BUS2094 for credit note and worked
BR
Sohaib