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: 

Sales orders create BAPI (BAPI reference BAPI_SALESORDER_CREATEFROMDAT2.) not populating the right item category when referencing contract items.

Former Member
0 Kudos

Dear All,

I need to create sales order through BAPI (BAPI reference BAPI_SALESORDER_CREATEFROMDAT2.) not populating the right item category when referencing contract items.

We filled contract details in item structure ORDER_ITEMS_IN-REF_DOC ( Document number) ,ORDER_ITEMS_IN-REF_DOC_IT ( Contract item position) and ORDER_ITEMS_IN-REF_DOC_CA ( Document category).

for creating order. The sales order is getting created successfully with right reference of contract # and item number, but item category is not reflecting correctly.

Thank you very much.

Nagireddy.

6 REPLIES 6

Former Member
0 Kudos


Please check the value of order type which you are passing during BAPI call.

BR,

Prakash

0 Kudos

Problem here is in a sales order item category is

different compared to configuration

Former Member
0 Kudos

very urgent pls..

Here ,I am able to create order with reference to contract ,every thisng gettgin correctly except item category

0 Kudos

How its behaving when you are doing the same manually ? Whether the item category get populated correctly when you are creating with refrence using Transaction code VA01 ? Most probabaly the issue is with config in sales copy. Will suggest please contact functional team also for the same.

BR,

Prakash

0 Kudos


Yes, manually its comming correct.

through bapi only getting item category is incorrect.

Many many thanks .......for keepon helping on this issue.

Former Member
0 Kudos

If manual execution is correct then you are passing wrong parameters during BAPI call there is no issue with configuration. Please share your code or try to call BAPI with different parammeters. Even you can check whether same BAPI is called during manual execution also by keeping break point inside BAPI and compare the parameters for both the case.

BR,

Prakash