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 vl01no create outbound delivery without order reference

gabo2050
Participant
0 Likes
7,213

Hi Guru's, i need help, I'm looking for BAPI VL01NO

Any suggestions?

Thanks for everything

Edited by: GaBo_s Gabo on Sep 22, 2009 8:48 PM

1 ACCEPTED SOLUTION
Read only

jaideepsharma
Active Contributor
0 Likes
3,905

Hi,

Try BAPI BAPI_OUTB_DELIVERY_CREATENOREF or function module SHP_DELIVERY_CREATE_NOREF.

KR Jaideep,

9 REPLIES 9
Read only

jaideepsharma
Active Contributor
0 Likes
3,907

Hi,

Try BAPI BAPI_OUTB_DELIVERY_CREATENOREF or function module SHP_DELIVERY_CREATE_NOREF.

KR Jaideep,

Read only

0 Likes
3,905

=( This bapi and function no exist in my version SAP

THX

Read only

0 Likes
3,905

Well then, what version are you on??

Rob

Read only

0 Likes
3,905

my Version SAP is 5.0

thx

Read only

0 Likes
3,905

Hi,

Try with the FM SHP_DELIVERY_CREATE_NOREF, this should work.

Regards,

Chen

Read only

bruno_esperanca
Contributor
0 Likes
3,905

I have the same problem... version 5.0

Read only

Former Member
0 Likes
3,905

Hi,

Following is the sample code for creation of outbound delivery Using BAPI 'BAPI_DELIVERYPROCESSING_EXEC'

Which may be helpful.


PARAMETERS: p_vbeln LIKE vbak-vbeln.
 
 
DATA: BEGIN OF t_vbap OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
matnr LIKE vbap-matnr,
werks LIKE vbap-werks,
END OF t_vbap.
 
DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
WITH HEADER LINE.
 
 
DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
WITH HEADER LINE.
 
 
DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
 
SELECT vbeln posnr kwmeng matnr werks
INTO TABLE t_vbap
FROM vbap
WHERE vbeln = p_vbeln.
 
 
LOOP AT t_vbap.
 
t_request-document_numb = t_vbap-vbeln.
t_request-document_item = t_vbap-posnr.
t_request-quantity_sales_uom = t_vbap-kwmeng.
t_request-id = 1.
t_request-document_type = 'A'.
t_request-delivery_date = sy-datum.
t_request-material = t_vbap-matnr.
t_request-plant = t_vbap-werks.
t_request-date = sy-datum.
t_request-goods_issue_date = sy-datum.
t_request-goods_issue_time = sy-uzeit.
APPEND t_request.
 
ENDLOOP.
 
CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
TABLES
request = t_request
createditems = t_created
return = t_return
.
 
 
READ TABLE t_return WITH KEY type = 'E'.
 
IF sy-subrc = 0.
MESSAGE e208(00) WITH 'Delivery creation error'.
ENDIF.
 
 
COMMIT WORK.
 
READ TABLE t_created INDEX 1.
 
WRITE: / 'Delivery ', t_created-document_numb, ' created'.

Let me know if any issues.

Thanks & Regards,

Naveen

Read only

0 Likes
3,905

In this example we need to have a Sales order reference. But the request is to create a delivery WITHOUT order reference.

Is it possible to use BAPI BAPI_DELIVERYPROCESSING_EXEC without order reference?

Tnx.

Giampy

Read only

bruno_esperanca
Contributor
0 Likes
3,905

You guys are not reading the whole thread... those bapi/fm's DO NOT EXIST on our SAP version, and there is NO SD DOCUMENT to create the delivery from.

EDIT:

GN_DELIVERY_CREATE works! Even though some of the header info only exists in the item lines it still works.