cancel
Showing results for 
Search instead for 
Did you mean: 

BUS2031 doc category error calling BAPI_QUOTATION_CREATEFROMDATA2

Former Member
0 Kudos

We are on ECC 6.0 with NO JAVA STACK and I am using Visual Studio 2010 to call the web service that I have made available.

I am successfully calling SAP because I can change the order type and a different msg than below appears, so "all the plumbing" is working.

I am having an issue with creating a quote. I have been able to execute BAPI_QUOTATION_CREATEFROMDATA2 in SE37 and pass the "same data" and actually get a quote created. However, when running from .Net I get the following BAPIRET2 values and have not found an answer.

BAPIRET2

TYPE: E

ID: V1

NUMBER: 761

MESSAGE: Unpermitted combination of business object BUS2031 and sales doc. category C

LOG_MSG_NO: 000000

MESSAGE_V1: BUS2031

MESSAGE_V2: C

I have set the value for sd doc category to B by setting the bapisdhd1 table and field SD_DOC_CAT before passing it to the web service.

Struggled with this error for > 8 hrs now and need some help desparately. Please help

Accepted Solutions (0)

Answers (2)

Answers (2)

sarthak_mohantysd
Active Contributor
0 Kudos

Hello Loren,

Please check the below LINK for the same error as reported by you and hope this gives you a clear Head start to trouble shoot and resolve the issue.

[BUS2031 doc category error|]

Regards,

Sarthak

Former Member
0 Kudos

I switched to nCo 3.0 and populate the doc_type field only and do not put anything in doc category and the quotation is created.

thanks for your help

Lakshmipathi
Active Contributor
0 Kudos

Check whether the following notes helps you

1) Note 438261 - BAPI SD: Error 'V1761' with BAPI_SALESDOCU_CREATEFROMDATA

2) Note 440966 - Error during business object determination

thanks

G. Lakshmipathi