‎2009 Sep 22 7:40 PM
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
‎2009 Sep 22 8:10 PM
Hi,
Try BAPI BAPI_OUTB_DELIVERY_CREATENOREF or function module SHP_DELIVERY_CREATE_NOREF.
KR Jaideep,
‎2009 Sep 22 8:10 PM
Hi,
Try BAPI BAPI_OUTB_DELIVERY_CREATENOREF or function module SHP_DELIVERY_CREATE_NOREF.
KR Jaideep,
‎2009 Sep 22 10:00 PM
‎2009 Sep 22 10:25 PM
‎2009 Sep 23 12:12 AM
‎2011 May 17 9:18 AM
Hi,
Try with the FM SHP_DELIVERY_CREATE_NOREF, this should work.
Regards,
Chen
‎2011 May 16 11:33 PM
‎2011 May 17 9:57 AM
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
‎2013 Mar 12 12:39 PM
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
‎2011 May 17 10:25 AM
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.