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

Split delivery using WS_DELIVERY_UPDATE_2

Former Member
0 Likes
492

How is FM WS_DELIVERY_UPDATE_2 used to split a delivery?

I was trying FM LE_DSP_ALL_STEPS, but when I have two transport orders inside a delivery it splits the one corresponding to the handling unit I am not providing. [If someone knows how to solve this, I'd be glad to know the reason why it's not working]

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
356

Hi,

Here is the data

MOVE-CORRESPONDING ps_likp TO ls_vbkok.

ls_vbkok-vbeln_vl = ps_likp-vbeln.

ls_vbkok-vbtyp_vl = ps_likp-vbtyp.

ls_vbkok-wabuc = 'X'."booking

ls_vbkok-kzreg = 'X'."registration

ls_vbkok-kzlfd = 'X'."registration

CALL FUNCTION 'WS_DELIVERY_UPDATE_2'

EXPORTING

synchron = gc_true

vbkok_wa = ls_vbkok

delivery = ps_likp-vbeln

IMPORTING

ef_error_any = lv_error_any

ef_error_in_goods_issue = lv_error_in_goods

TABLES

prot = lt_prot

EXCEPTIONS

error_message = 1.

Regads

Sudheer

Read only

0 Likes
356

Thank you, Sudheer,

Is there a way to specify the transport order I want to split?