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

Bapi for VL31N

Former Member
0 Likes
3,396

Hi ,

I am creating an inbound delivery into SAP and i need to know do we have any BAPi or function module for the t code VL31N.

Also what are the mandatory fields that needs to pe passed if we identify the BAPI for the same.

Thanks

Amol

Hi ,

I am creating an inbound delivery into SAP and i need to know do we have any BAPi or function module for the t code VL31N.

Also what are the mandatory fields that needs to pe passed if we identify the BAPI for the same.

Thanks

Amol

8 REPLIES 8
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,924

BBP_INB_DELIVERY_CREATE

Read only

0 Likes
1,924

I have used the BAPI ' BBP_INB_DELIVERY_CREATE' but the bapi is not returing anything also no delivery is created

Read only

0 Likes
1,924

Refer

You can also try

RV_DELIVERY_CREATE

BAPI_INB_DELIVERY_SAVEREPLICA

Read only

0 Likes
1,924

I am trying the below code

CALL FUNCTION 'BBP_INB_DELIVERY_CREATE'

EXPORTING

is_inb_delivery_header = wa_DELIVERY_HEADER

IMPORTING

EF_DELIVERY = lv_vbeln

tables

it_inb_delivery_detail = it_DELIVERY_DETAIL

return = it_BAPIRETURN .

REFRESH IT_DELIVERY_DETAIL.

======================

wa_DELIVERY_HEADER-DELIV_EXT = 1077

wa_DELIVERY_HEADER-DELIV_DATE = 29102009

wa_DELIVERY_DETAIL-MATERIAL = 70010431A

wa_DELIVERY_DETAIL-VEND_MAT = 70010431A

wa_DELIVERY_DETAIL-PO_NUMBER = 5500000011

wa_DELIVERY_DETAIL-PO_ITem = 10

but even then the EF_DELIVERY = blank and no delivery is created.

All the data types are also proper.

what can be the problem ?

Read only

0 Likes
1,924

replace

wa_DELIVERY_HEADER-DELIV_DATE = 29102009.

by

wa_DELIVERY_HEADER-DELIV_DATE = 20091029.

for every fields : dates, material number, etc. use internal value.

Are there error/abort messages in the returned table parameter RETURN ?

Regards,

Raymond

Read only

0 Likes
1,924

Will try the changes you mentioned.

But the return table is not returning any values.its just blank and also no message is displayed

Read only

0 Likes
1,924

No message will ever be displayed (exception if dump) they should always been stored in the RETURN parameter (BAPI's ancestor)

Also this pseudo-BAPI has no documentation is not released and the code let me think it is not even finished

IF NOT RETURN[] IS INITIAL.
*      TODO Error Trapping
  ENDIF.

A quick look at [this FM in the forum|http://forums.sdn.sap.com/search.jspa?threadID=&q=BBP_INB_DELIVERY_CREATE&objID=c42&dateRange=all&numResults=30&rankBy=10001], dont make me optimistic for you if you use it.

Regards,

Raymond

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,924

Perform some [search at sdn on BAPI_DELIVERYPROCESSING_EXEC VL31N BAPI|http://forums.sdn.sap.com/search.jspa?threadID=&q=BAPI_DELIVERYPROCESSING_EXECVL31NBAPI&objID=c42&dateRange=all&numResults=15&rankBy=10001], also read OSS [Note 577453 - Using BAPI BAPI_DELIVERYPROCESSING_EXEC|https://service.sap.com/sap/support/notes/577453]

Regards,

Raymond