‎2014 Nov 28 12:20 PM
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.
‎2014 Nov 28 12:24 PM
Please check the value of order type which you are passing during BAPI call.
BR,
Prakash
‎2014 Nov 28 1:48 PM
Problem here is in a sales order item category is
different compared to configuration
‎2014 Dec 01 4:56 AM
very urgent pls..
Here ,I am able to create order with reference to contract ,every thisng gettgin correctly except item category
‎2014 Dec 01 5:49 AM
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
‎2014 Dec 01 12:16 PM
Yes, manually its comming correct.
through bapi only getting item category is incorrect.
Many many thanks .......for keepon helping on this issue.
‎2014 Dec 01 12:22 PM
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