Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI to create credit memo requests in SAP

Former Member
0 Likes
14,618

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.

5 REPLIES 5
Read only

Former Member
0 Likes
7,124

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.

Read only

0 Likes
7,124

Hi Lokeswari,

Thanks a lot. i tried using SD_SALESDOCUMENT_CREATE and it meets the requirement.

Thanks,

Venkat.

Read only

former_member211679
Participant
0 Likes
7,124

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?

Read only

0 Likes
7,124

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

Read only

0 Likes
5,619

I have used Business object BUS2094 for credit note and worked

BR

Sohaib