‎2007 Dec 11 6:39 AM
Hi everybody im searching for a function module for the Transaction va01.
I found BAPI_SALESORDER_CREATEFROMDAT1.
But here i got a problem with the Sold-to and Ship-to Partner i everytime got this error Message: "No customer master record exists for customer 1650".
But if i use this customer with va01 everything works fine ....
Here the hole code for the Transaction:
greetings
Moritz
‎2007 Dec 11 6:43 AM
try passing '0000001650' instead of '1650' in the partner. use conversion exit to append '0' infront of the Partner number.
‎2007 Dec 11 6:43 AM
try passing '0000001650' instead of '1650' in the partner. use conversion exit to append '0' infront of the Partner number.
‎2007 Dec 11 6:51 AM
Hi,
u need to fill the update tables also
CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
EXPORTING
sales_header_in = p_p_header
---> sales_header_inx = p_p_headerx
IMPORTING
salesdocument_ex = w_vbeln
TABLES
return = t_return
sales_items_in = p_pt_item
---> sales_items_inx = p_pt_itemx
sales_schedules_in = p_p_lt_schedules_in
-
> sales_schedules_inx = p_p_lt_schedules_inx
sales_partners = p_pt_partner.
if u have any queries again post me.
plzz reward points if it helps.
Message was edited by:
manjari kotta
‎2007 Dec 11 6:52 AM
Thx for the Answers the first post solved the problem but the second one gives me also important hints.
So now i can work on
Thanks a lot.
Greetings
Moritz