2010 Sep 02 11:05 AM
Hi,
I'm creating a sales order using the BAPI : BAPI_SALESORDER_CREATEFROMDAT1.
I'm passing the following values in ORDER_HEADER_IN parameter:
doc_type,sales_org,distr_chan,division,po_method,sales_off,req_date_h,data_type,purch_no,purch_date,price_date.
I'm passing the following values in SD_ORDER_PARTNERS:
partn_role,partn_numb,name,langu,region,country.
The following fields are passed in SD_ORDER_ITEMS:
material,req_qty,sales_unit,store_loc (space is passed for st.loc),req_date,po_method,req_date,plant.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
EXPORTING
order_header_in = sd_order_header
IMPORTING
return = return1
salesdocument = order_number
sold_to_party = sd_sold_to_party
ship_to_party = sd_ship_to_party
billing_party = sd_billing_party
TABLES
order_items_in = sd_order_items_in
order_partners = sd_order_partners
order_items_out = sd_order_items_out.
The system returns a message in RETURN1 saying that : 'Tax jurisdiction is not determined'.
Please let me know if I'm missing something.
Thanks,
Narsingh.
2010 Sep 02 12:28 PM
Hi,
I guess you are missing conditions in your function call.
sd_order_items_in-cond_type = 'PRXX'. "see trx VK13
sd_order_items_in-cond_value = 100. "e.g unit price
Edited by: Simo Mertsola on Sep 2, 2010 2:32 PM
2010 Sep 02 2:46 PM
Do you want to use the customer master address for the ship-to? Does the ship-to on the customer master haver a tax jurisdiction determined? Did you change the values in region/country from what they are on the customer master which would cause the tax jurisdiction determined on the customer master to be re-determined and thus rejected? You don't need to send address values in the partner table if you intend to use the customer master values...
2010 Sep 27 10:41 AM