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 Transaction code VL01NO?

Former Member
0 Likes
3,292

Hi

Can any one suggest me the available BAPIs for the Tcode VL01NO.

Thanks in advance.

Phani.

8 REPLIES 8
Read only

Former Member
0 Likes
1,349

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

Read only

ferry_lianto
Active Contributor
0 Likes
1,349

Hi,

Please check this BAPI BAPI_DELIVERYPROCESSING_EXEC.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,349

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

Read only

0 Likes
1,349

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

Read only

Former Member
0 Likes
1,349

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

Read only

Former Member
0 Likes
1,349

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

Read only

Former Member
0 Likes
1,349

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.

Read only

janewar
Participant
0 Likes
1,349

have Simple code