Skip to Content
0
Former Member
Jun 30, 2008 at 05:47 AM

funtion module

13 Views

Hi,

I am using the function module BBp_inb_delivery_create to create inbound delivery from PO,my coding is

DATA: IS_INB_DELIVERY_HEADER LIKE BBP_INBD_L.

-


IS_INB_DELIVERY_HEADER-DELIV_DATE = 08/16/2008

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

.

But the delivery is not getting created ,i think i have to pass the parameter IS_INB_DELIVERY_HEADER-DELIV_EXT which is distribution delivery.,But what is this distribution delivery or any other parameter i have to pass?