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 VL31N

Former Member
0 Likes
1,777

Hi,

I'm desparately searching for a function module to create an inbound delivery related to a purchase order. I can't use "BAPI_GOODSMVT_CREATE" because I must create a delivery with Header-Text.
I only found "GN_DELIVERY_CREATE", wich allows forwarding header text via Table. I tried to link ist with purchase order via "XKOMDLGN-VGBEL / VGPOS", but it doesn't work (Error VL565).

Thanks in advance for help.

Berthold

7 REPLIES 7
Read only

Private_Member_49934
Product and Topic Expert
Product and Topic Expert
0 Likes
1,323

I am no sure if any other FM is available. But If only header text is the problem for you while calling BAPI_GOODSMVT_CREATE then you may call the FM SAVE_TEXT to create the text. Anyways any other FM which saves your header text must be using it. So you can do the additional work yourself

Read only

0 Likes
1,323

Thanks for detailled info. But I must forward Text directly to delivery, because delivery sends out an iDOC (which has to contain the text) immediately after been created.

Meanwhile I created a delivery with help of "GN_DELIVERY_CREATE" but without text. I filled text-tables "IT_GN_TEXTH" & "IT_GN_TEXTL". But unfortunately it doesnt work in any data-constellation.

Read only

Pawan_Kesari
Active Contributor
0 Likes
1,323

Is field xkomdlgn-vgtyp filled?

Regards,

Pawan.

Read only

0 Likes
1,323

Yes. I filled it with "F"

Read only

Former Member
0 Likes
1,323

Hi,

You can try the below FMs:

BAPI_SALESORDER_CREATEFROMDAT2

RV_DELIVERY_CREATE

Hope it solves your problem.

Read only

0 Likes
1,323

Hi Akankshi,

thanks for very quick answer. Unfortunately none of the two FMs can forward text.

Regards

Berthold

Read only

0 Likes
1,323

As mentioned earlier, you have to update the texts separately.

Rob