Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI for Inbound delivery

Hi,

I am interested knowing, if there is any BAPI available for doing Inbound Delivery in SAP.

I have a requirement to do partial inbound delivery which I cant do with VL31n or VL30. even if can do with these transactions,

I will not be able to run them in background.

Any help in this regard is highly appreciated.

Tags:
replied

Check this :

======

&----


*& Form CREATE_INBOUND_DELIVERY

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


FORM CREATE_INBOUND_DELIVERY .

DATA : N1(6) TYPE N.

N1 = '000010'.

DEL_HEADER-DELIV_DATE = DEL_DATE.

DEL_HEADER-DELIV_EXT = HEADER-REF_1.

  • DEL_HEADER-TRANSP_ID = HEADER-OUR_REF.

CLEAR DEL_TAB.

REFRESH DEL_TAB.

CLEAR N1.

LOOP AT POITEM.

DEL_TAB-DELIV_ITEM = N1.

DEL_TAB-MATERIAL = POITEM-MATERIAL.

DEL_TAB-DELIV_QTY = POITEM-QUANTITY.

DEL_TAB-UNIT = 'EA'.

DEL_TAB-PO_NUMBER = PO.

DEL_TAB-PO_ITEM = POITEM-PO_ITEM.

APPEND DEL_TAB.

CLEAR DEL_TAB.

N1 = N1 + 20.

ENDLOOP.

CALL FUNCTION 'BBP_INB_DELIVERY_CREATE'

EXPORTING

IS_INB_DELIVERY_HEADER = DEL_HEADER

IMPORTING

EF_DELIVERY = DEL_NO

TABLES

IT_INB_DELIVERY_DETAIL = DEL_TAB

RETURN = DEL_RET.

IF SY-SUBRC = 0.

ENDIF.

ENDFORM. " CREATE_INBOUND_DELIVERY

======

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question