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

Function Module for va01

Former Member
0 Likes
1,278

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:

http://phpfi.com/282430

greetings

Moritz

1 ACCEPTED SOLUTION
Read only

former_member195698
Active Contributor
0 Likes
764

try passing '0000001650' instead of '1650' in the partner. use conversion exit to append '0' infront of the Partner number.

3 REPLIES 3
Read only

former_member195698
Active Contributor
0 Likes
765

try passing '0000001650' instead of '1650' in the partner. use conversion exit to append '0' infront of the Partner number.

Read only

Former Member
0 Likes
764

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

Read only

0 Likes
764

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