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

Function Module/BAPI for SD POD(Proof of Delivery)

former_member182465
Active Participant
0 Likes
5,808

Hi abapers,

can you please share any FM/BAPI for creating POD.

currently i tried to use WS_DELIVERY_UPDATE_2 But even here the POD status stays at "A". When/how is POD status in inbound delivery set to "C".

4 REPLIES 4
Read only

Former Member
0 Likes
2,702

Please try the below code..

Regards,

Harikiran Katta

DATA: wa_vbkok TYPE vbkok.

DATA: t_vbpok TYPE TABLE OF vbpok,
      v_deliv TYPE LIKP-VBELN,
      t_VERPO TYPE TABLE OF TVPODVB.

v_deliv = '123456789'. "your delivery number
wa_vbkok-podat =  sy-datum.
wa_vbkok-potim =  sy-uzeit.
wa_vbkok-KZPOD =  'C'.

CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
VBKOK_WA = wa_vbkok
COMMIT = 'X'
DELIVERY = v_deliv
TABLES
TVPOD_TAB = t_verpo .

Read only

0 Likes
2,702

Hi Hari,

Still same problem nothing is happening in vlpod.

Read only

0 Likes
2,702

It is important to note that both WS_DELIVERY_UPDATE or WS_DELIVERY_UPDATE_2 have never been officially released by SAP. Therefore, depending on your version / EHP, it might not work and is unsupported. I don't recommend building big developments around these functions.

Read only

0 Likes
2,702

See function attributes: