‎2009 Nov 19 5:33 AM
Hi Friends,
I am creating Sales Order through BAPI_SALESORDER_CREATEFROMDAT2, I can sucessfully create it manually, but
through BAPI_SALESORDER_CREATEFROMDAT2, i am not getting structure to populate Header Pricing Condition and Item
Pricing Condition separatly.
I have 4 Condition type for populating Header pricing condition while creating one sales order, and i have one pricing condition
for populating on each line item.
There is ORDER_CONDITIONS_IN to populate pricing, i am entering all the header and Items pricing Condition type all together
in this table, but error which i am getting is :
E Condition YPR0 is not allowed as header condition
E Sales Document was not Changed
Can anybody suggest me urgently
Thanks,
Chitrakant
‎2009 Nov 19 5:46 AM
Hello Chitrakant ,
better to have a chat with ur functional consultant , so he is only one who can help you with ur SAP system configs.
regards
prabhu
‎2009 Nov 19 6:08 AM
Hi,
Please dnt pass any pricing condition in the header level or Item level. Please use the exit MV45AFZZ to write the logic to pick the pricing conditon.
Pass the values in header order_header_in like doc_type ,sales_org,distr_chan,division.
In the item order_items_in pass
ls_item_in-itm_number = w_tabix * 10.
ls_item_in-material = is_bat-matnr.
ls_item_in-plant = is_bat-werks.
ls_item_in-batch = is_bat-charg.
ls_item_in-target_qty = is_bat-boqal.
ls_item_in-store_loc =
ls_item_in-purch_no_c
Try to pass above vlaues as per u r requirement.
Regards,
Srinivas.
‎2009 Nov 19 6:27 AM
‎2009 Nov 19 6:30 AM
Hi Chitrakant,
If u r passing any value in the header pricing it will take the same for all the materials.
The abve bapi wnt support for pricing. It will support unique pricing...
Regards,
Srinivas.