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: 

BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Kudos

hello,

what are the maddatory fields for using this bapi to create the sales orde. i am pasing

condition type = ZUCD

sles org = 7000.

Distrubution channel = 60

division = 20.

this in ORDER_HEADER_IN

then in ORDER_ITEMS_IN:

material

quantity

item

but when i run this it says

Unpermitted combination of business object BUS2032 and sales doc. category K

cheers

4 REPLIES 4

Former Member
0 Kudos

Hi Kumar,

The mandatory fields/structures are:

1. Order_header_in

2. Order_items_in

3. Order_partners

Regards,

Raj

former_member181962
Active Contributor
0 Kudos

HI Kumar,

The following are the mandatory parameters,

1. Mandatory entries:

ORDER_HEADER_IN : DOC_TYPE Sales document type

SALES_ORG Sales organization

DISTR_CHAN Distribution channel

DIVISION Division

ORDER_PARTNERS..: PARTN_ROLE Partner role, SP sold-to party

PARTN_NUMB Customer number

ORDER_ITEMS_IN..: MATERIAL Material number

Regards,

ravi

Former Member
0 Kudos

Hi,

I think there is no answer on your question. It depends on the customizing.

As I know

Header

doc_type

Item

material

target_qty

Partners

partn_role = 'AG'.

partn_numb = xxx

are necessary.

Do you use any type of reference?

Cheers, Dirk

Former Member
0 Kudos

Hi Kumar,

I got your problem. The Business object 'BUS2032' is a standard order and category 'K' corresponds to 'CREDIT MEMO REQUEST'(Business object 'BUS2094').

Now the problem would be with the condition type 'ZUCD' which is customized for the category 'K', and because of this it the document is not posted.

Now to make your BAPI work and post the document, pass the field 'SD_DOC_CAT' of the 'ORDER_HEADER_IN' with the value 'K'. This should work.

Naveen.