cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI can't to create SO,But used bapi data with manual can?

Former Member
0 Kudos

Hi,I created a customized program used BAPI_SALESORDER_CREATEFROMDAT2 to create SO, and the so types is return w/c .the item category is u2018RENu2019,now when I run this code then an error has occurred u2018Unpermitted combination of business object bus2032 and sales doc.category H u2018.

But I used the data from bapi goto va01 then can created a SO manual?

Is it the bapi BAPI_SALESORDER_CREATEFROMDAT2 problem or some data in this BAPI,I filled a wrong data lead to thins error.

Thank for all

Sun

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for all

Hi,Raghu.

why i can't assgin point to you

Edited by: sun on Jul 22, 2008 10:49 AM

Former Member
0 Kudos

Hello Sun,

BUS2032 is for Sales Orders...for Returns, it is BUS2012..plz use BUS2012 to create Returns using the BAPI..

Plz assign suitable points, if this helps.

Rgds,

Raghu.

Former Member
0 Kudos

hi,Raghu,

Thanks for your help.

I check the BUS2012,it's for purchase orders not for sales orders. can BAPI_SALESORDER_CREATEFROMDAT2 use BUS2012 in it's code?

I checked the BAPI found 'BUSINESS_OBJECT ='BUS2032' is a fix value ,can't change.

becasue my program want to create SO,so i need find a another BAPI to instead this BAPI.

could you give me more help about for this?

Thansk

Sun

Former Member
0 Kudos

Hello Sun,

Plz check note 93091:

Summary

Symptom

This note contains information on BAPIs in Sales and Distribution.

I. General information:

-


In Release 3.1G, BAPIs had been delivered for business object BUS2032 for the first time, but not released yet.

The following BAPIs are affected:

1. BAPI_CUSTOMERORDER_CREATE

2. BAPI_CUSTOMERORDER_SIMULATE

3. BAPI_CUSTOMERORDER_GET_STATUS

4. BAPI_CUSTOMERORDER_GETLIST

So that the methods have correct names, the BAPIs were renamed as follows:

1. BAPI_SALESORDER_CREATEFROMDATA

2. BAPI_SALESORDER_SIMULATE

3. BAPI_SALESORDER_GETSTATUS

4. BAPI_SALESORDER_GETLIST

BAPI BAPI_SALESORDER_CREATEFROMDATA can also create quotations and inquiries. Consequently, this method can be used by several business objects. This is contradictory to the BAPI principles.

As of Release 4.0A, the following BAPIs are available for creation of the Sales and distribution documents:

- BAPI_SALESORDER_CREATEFROMDAT1 Create sales order BUS2032

- BAPI_QUOTATION_CREATEFROMDATA Create customer quotation BUS2031

- BAPI_INQUIRY_CREATEFROMDATA Create customer inquiry BUS2030

For other business objects of SD, BAPIs do not exist yet. For these, you can use BAPI_SALESDOCU_CREATEFROMDATA.

It has not been released but can be used in production like the BAPIs listed under IV) and is supported.

Example: Creation of returns BUS2102; to do this fill parameter

BUSINESS_OBJECT with BUS2102.

The following document categories can be created with BAPI_SALESDOCU_CREATEFROMDATA:

BUS2034 Contracts

BUS2094 Credit memo request

BUS2096 Debit memo request

BUS2102 Returns

BUS2103 Subsequent delivery free of charge

I hope this helps.

Rgds,

Raghu.

Former Member
0 Kudos

Hi,Raghu.

Thanks a lot,

Tommory i will close this question,and assign point to you.

Sun