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: 

BBP_INB_DELIVERY_CREATE

Former Member
0 Kudos

Hi Guru's,

Please help me what is the use of FM BBP_INB_DELIVERY_CREATE and how it is use..

Sample codes is greatly appreciated..

Thanks in advance..

Mike

4 REPLIES 4

Former Member
0 Kudos

Hi

This function module is used to create inbound delivery with reference to PO and Po item.

sample code

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.

checkthe above code by passing your data.

you can find a delivery created.(vl32n)

If you find any problem reply back with your requirement

0 Kudos

Hi siva prasad,

Thanks a lot for replying...

i encountered an error

"Document 4500003683, item 00010, already being processed" what this means.

thanks a lot..

0 Kudos

hi michael..

i believe that because of locking for selected purchase order...

make sure that you're not running tcode ME22N for selected purchase order

to check what locking happens you can run tcode SM12...

hope it helps..

n pls inform if you can use this function module for creating inbound delivery..

thanks,

sasmito

0 Kudos

Thanks a lot... I encountered another error.. no value passed to ef_delivery in the inporting parameter.. What is the problem with this..

Here is my code...

&----


*& Report ZTEST_MCF

*&

&----


*&

*&

&----


REPORT ztest_mcf.

DATA: wa_del_header type BBP_INBD_L,

i_detail TYPE STANDARD TABLE OF bbp_inbd_d,

wa_detail TYPE bbp_inbd_d,

i_return TYPE bapireturn OCCURS 0,

g_delivery TYPE likp-vbeln.

constants:c3 type BBP_INBD_L-DELIV_DATE value '20071108',

c4 type BBP_INBD_L-DELIV_TIME value '030000',

  • c11 type BBP_INBD_D-MATERIAL value '150000000772'.

c11 type BBP_INBD_D-MATERIAL value '376156'.

wa_del_header-delivery = '123123'.

wa_del_header-deliv_date = c3.

wa_del_header-deliv_time = c4.

wa_detail-MATERIAL = c11.

wa_detail-DELIV_QTY = '10.000'.

wa_detail-UNIT = 'EA'.

*wa_detail-PO_NUMBER = '4500003517'.

wa_detail-PO_NUMBER = '4500003685'.

wa_detail-PO_ITEM = '000010'.

APPEND wa_detail TO i_detail.

CALL FUNCTION 'BBP_INB_DELIVERY_CREATE'

EXPORTING

is_inb_delivery_header = wa_del_header

IMPORTING

ef_delivery = g_delivery

TABLES

it_inb_delivery_detail = i_detail

return = i_return.

WRITE: g_delivery.

Thanks a lot..