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

sales return BAPI error

naresh_bammidi
Contributor
0 Likes
1,594

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 H

This 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

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,335

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,335

try using the BAPI SD_SALESDOCUMENT_CREATE

Read only

umashankar_sahu
Active Participant
0 Likes
1,335

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'

Read only

Former Member
0 Likes
1,335

Hi,

Try using the FM BAPI_OUTB_DELIVERY_CREATE_SLS.

Hope this helps

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,336

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

Read only

Former Member
0 Likes
1,335

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

Read only

Former Member
0 Likes
1,335

Hi ,

please find the belllow to get bapi error.

Thanks & Regards,

Goutam Kolluru.