Skip to Content
0
Former Member
Sep 01, 2011 at 07:58 PM

GN_DELIVERY_CREATE with MISSING Reference Document

214 Views

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.