‎2007 Feb 15 2:27 PM
Hi
Can any one suggest me the available BAPIs for the Tcode VL01NO.
Thanks in advance.
Phani.
‎2007 Feb 15 3:41 PM
Phani, You meant VL01N, for delivery creation right?
Just go to SE37 and putin the search for BAPIDELIVERY ( try BAPIVL01 too )and hit F4 .
This will bring up all BAPI's for VL01N.
Regards
‎2007 Feb 15 3:45 PM
Hi,
Please check this BAPI BAPI_DELIVERYPROCESSING_EXEC.
Regards,
Ferry Lianto
‎2007 Feb 15 3:49 PM
Hi,
Check this example for how to create a delivery from an order.
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.
THanks,
Naren
‎2007 Feb 15 9:40 PM
Hi Phani,
The following User-exits and BADI's are available for transaction code VL01NO Create Outbound Dlv. w/o Order Ref..
Enhancement (User-exit)
V02V0004 User Exit for Staging Area Determination (Item)
V02V0003 User exit for gate + matl staging area determination (headr)
V02V0002 User exit for storage location determination
V02V0001 Sales area determination for stock transport order
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
V53W0001 User exits for creating picking waves
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53C0001 Rough workload calculation in time per item
V50S0001 User Exits for Delivery Processing
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50R0002 Collective processing for delivery creation
V50R0001 Collective processing for delivery creation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50PSTAT Delivery: Item Status Calculation
Business Add-in (BADI)
DELIVERY_PUBLISH Announcement of delivery data during database update.
Award Points if found useful.
Thanks,
Praveen
‎2007 Feb 15 9:54 PM
You should check note 491875. If I read it correctly, there is no BAPI avaialble yet and you shouldn't use this for batch input. I think it recommends batch input using VL01.
Rob
‎2007 Feb 16 1:40 AM
Hi Phani
You Can use this Bapi
CALL FUNCTION 'BAPI_OUTB_DELIVERY_SAVEREPLICA'
EXPORTING
HEADER_DATA = WA_E_HEADERDATA
HEADER_ORG = WA_E_HEADERORG
SENDER_SYSTEM = VG_SENDER_SYSTEM
TECHN_CONTROL = WA_E_TECHCONTROL
IMPORTING
DELIVERY = VG_VBELN
TABLES
HEADER_PARTNER = TI_E_HEADERPARTNER
HEADER_DEADLINES = TI_E_HEADERDEADLN
ITEM_DATA = TI_E_ITEMDATA
ITEM_ORG = TI_E_ITEMORG
RETURN = TI_RETURN.
Regards
David
‎2007 Feb 17 10:52 AM
you can only use the BDC For vl01 only there is no perfect BAPI to match the requirement.
You should not GO BDC for Vl01n.
‎2014 Aug 29 2:23 AM