11-22-2007 9:24 AM
Hi expert,
I am creating inbound delivery create with reference to Purchase order.
Please help what FM will i use. Is it possible to use the FM GN_DELIVERY_CREATE?
Sample codes is greatly appriciated.
Thanks in advance.
11-22-2007 9:36 AM
this function module inside calls the function module
GN_DELIVERY_CREATE'
Regards,
Siva chalasani.
11-22-2007 9:35 AM
Hi,
Instead of using that function module
you as use the below function module which in turns creates a delivery with ref to PO and Poitem
DATA: IS_INB_DELIVERY_HEADER LIKE BBP_INBD_L.
-
IS_INB_DELIVERY_HEADER-DELIV_EXT = 12121
IS_INB_DELIVERY_HEADER-DELIV_DATE = 08/16/2006
DATA: T_DETAIL LIKE LIKE BBP_INBD_D OCCURS 0 WITH HEADER LINE.
-
T_DETAIL-MATERIAL = 'xxx'.
T_DETAIL-DELIV_QTY = '10.000'.
T_DETAIL-UNIT = 'EA'.
T_DETAIL-PO_NUMBER = '45XXXXXX.
T_DETAIL-PO_ITEM = '000010'.
APPEND T_DETAIL.
DATA: T_RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE.
DATA: V_VBELN TYPE VBELN_VL.
CALL FUNCTION 'BBP_INB_DELIVERY_CREATE'
EXPORTING
is_inb_delivery_header = is_inb_delivery_header
IMPORTING
EF_DELIVERY = V_VBELN
tables
it_inb_delivery_detail = T_DETAIL
return = T_RETURN
.
Regards,
Siva chalasani.
<b>REWARD POINTS IF USEFULL</b>
11-22-2007 9:36 AM
this function module inside calls the function module
GN_DELIVERY_CREATE'
Regards,
Siva chalasani.