‎2012 Apr 19 2:38 PM
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
‎2012 Apr 19 2:50 PM
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
‎2012 Apr 23 6:20 PM
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.
‎2012 Apr 19 2:50 PM
‎2012 Apr 23 6:09 PM
‎2012 Apr 19 3:21 PM
Hi,
You can try the below FMs:
BAPI_SALESORDER_CREATEFROMDAT2
RV_DELIVERY_CREATE
Hope it solves your problem.
‎2012 Apr 23 5:45 PM
Hi Akankshi,
thanks for very quick answer. Unfortunately none of the two FMs can forward text.
Regards
Berthold
‎2012 Apr 23 6:15 PM
As mentioned earlier, you have to update the texts separately.
Rob