Application Development and Automation 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: 
Read only

Regaring BAPI_SALESORDER_CREATEFROMDAT2 :

Former Member
0 Likes
732

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

4 REPLIES 4
Read only

Former Member
0 Likes
559

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

Read only

0 Likes
559

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.

Read only

Former Member
0 Likes
559

Hi Srinivas,

Please find this link :

I have the same problem as above. Is this BAPI doesnt support Pricing conditions for header.

Thanks,

Chitrakant

Read only

0 Likes
559

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.