Application Development and Automation 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: 
Read only

funtion module

Former Member
0 Likes
452

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?

2 REPLIES 2
Read only

Former Member
0 Likes
427

this may help u

Read only

Former Member
0 Likes
427

Hi,

1.It is BAPI,So u need to commit it.With the Commit itself it van create the delivery.

2.Call the BAPi_TRANSACTION_COMMIT.

else refer this:

https://forums.sdn.sap.com/click.jspa?searchID=13455953&messageID=2088602

Regards,

Shiva Kumar.