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

Reg. delivery

Former Member
0 Likes
619

Hi ,

Do you know any function module/BAPI that can update batch-split for the delivery (VL02N)? A sample code for the function module or bapi would be great.

Thanks in advance.

Hi ,

Do you know any function module/BAPI that can update batch-split for the delivery (VL02N)? A sample code for the function module or bapi would be great.

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
571

Use below FM,

data : i_lips like lips occurs 0 with header line,

i_prot LIKE prott OCCURS 0 WITH HEADER LINE.

Clear : i_prot.

refresh : i_prot.

i_lips-CHSPL = 'ur value'.

  • Delivery Update

CALL FUNCTION 'LE_MOB_DELIVERY_UPDATE'

EXPORTING

do_commit = 'X'

TABLES

t_delivery_items = i_lips

prot = i_prot

EXCEPTIONS

conversion_overflow = 1

essential_data_missing = 2

error = 3

nothing_to_update = 4

lock_after_update_failed = 5

error_in_delivery_update = 6

OTHERS = 7.

COMMIT WORK.

Read only

0 Likes
571

Thanks Seshu. But I had to change few other things and so used bapi 'BAPI_OUTB_DELIVERY_CHANGE' and it worked!

Thanks anyways.

Read only

0 Likes
571

Hi,

Can you pls let me know how exactly you achieved this?

Thanks,

Hitesh