Application Development 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: 

GN_DELIVERY_CREATE with MISSING Reference Document

Former Member
0 Kudos

Hello Guys, I need some help with the following problem:

I'm using standard function GN_DELIVERY_CREATE to create inbound deliveries. Through the tables that I'm sending to the function I'm also exporting the field VGBEL (reference document) with table xkomdlgn-vgbel.

But when the inbound is created, I check transaction VL33N and the field "Reference Document" remains in blank.

We need this "reference document" field filled with the content of VGBEL, but passing it thrgouh the tables when calling the function seems to be insufficient .

Do you guys have an idea about what to do? I've already checked for SAP Notes, nothing so far. Have you guys ever faced some trouble like this?

This is what my code looks like:

CALL FUNCTION 'GN_DELIVERY_CREATE'

EXPORTING

vbsk_i = gs_vbsk

is_control = gs_leshp

if_no_partner_dialog = 'X'

IMPORTING

et_vbadr = gs_vbadr

et_vbpa = gs_vbpa

TABLES

xkomdlgn = e_komdlgn

xvbfs = gt_xvbfs

xvbls = gt_xvbls

xxlips = gt_xxlips.

Thanks in advance.

1 REPLY 1

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Just a guess here, but did you try to populate the VGBEL field in the XXLIPS entries?

Also, just curious: the VGBEL you are passing: is it an existing document in the system, and VGTYP is also populated?