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

Credit memo using BAPI

Former Member
0 Likes
1,043

Hi,

In transaction VA01 we are able to create credit memo request (ZRCR order type) with order category K (credit memo). Is this possible to create this order using "BAPI_SALESORDER_CREATEFROMDAT2" and BAPI_SALESORDER_CREATEFROMDAT1 function module.?

If we try to excute using this function module, following return message is appearing. "Unpermitted combination of business object BUS2032 and sales doc. category K". Any one please give me solution.

Thanks in advance,

Murali

4 REPLIES 4
Read only

Former Member
0 Likes
803

Use the below FM. It will slove ur problem.

"SD_SALESDOCUMENT_CREATE".

Read only

Former Member
0 Likes
803

Hi Priyanka,

Check out this link, I think it will surely help you.

[Sales Order creation using BAPI |http://abap.wikiprog.com/wiki/Category:BAPI_SalesOrder]

Regards,

Amit.

Read only

Former Member
0 Likes
803

Hi,

Using below FM we can create SD.

BAPI_SALESDOCU_CREATEFROMDATA

BAPI_SALESORDER_CREATEFROMDAT1

BAPI_SALESORDER_CREATEFROMDAT2

BAPI_SALESORDER_CREATEFROMDATA

Regards

Md.MahaboobKhan

Read only

Former Member
0 Likes
803

Hello Priyanka and SAP gurus!

I see this is marked as answered. I am trying to do the same thing but cannot see from the thread what the solution is.

From my investigations FM SD_SALESDOCUMENT_CREATE is called byI BAPI_SALESORDER_CREATEFROMDAT2.

Can you point me in the right direct please?

Thank you.