Application Development 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: 

/AFS/BAPI_SALESORDER_CREATE

Former Member

Hi,

Can any throw some light on this BAPI, It gives me an error like unpermitted combination of 'BUS2032' and the document category(k, L, & A) that i have used till now.

Thanks in advance.

2 REPLIES 2

Former Member
0 Kudos

I don't know about the AFS BAPI, but if it is a sales order that you are trying to create, it's document category should be 'C'. I think you are trying to create something else using this BAPI, instead of a sales order, or you are passing the wrong category. If you are trying to create some other SD document(K = Credit memo request, L = Debit memo request and A = Inquiry), then you should try other BAPIs.

In regular R/3, you have BAPI_SALESDOCU_CREATEFROMDATA1 to create other SD documents. See if there is an equivalent in AFS industry specific solution.

Please close the post if answered.

Regards,

Srinivas

Former Member
0 Kudos

Hi

I don't know your BAPI, but I had the same problem with a BAPI (BAPI_SALESDOCU_CREATEFROMDATA1) as your.

My BAPI call BAPI BAPI_SALESDOCU_CREATEFROMDATA where the object BUS2032 is always moved.

So I directly used that BAPI passing the business object I needed, it worked fine.

See fm SD_OBJECT_TYPE_DETERMINE to determine the business object.

Max

Message was edited by: max bianchi