Application Development 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: 

Messages coming on screen in FM WS_DELIVERY_UPDATE

Former Member
0 Kudos
669

Hi Experts,

I am calling fm WS_DELIVERY_UPDATE 2 times in my program. After both FM am calling BAPI_TRANSACTION_COMMIT

In first case am getting error messages in prot table but in second case though am passing same parameter am not getting messages in prot table.... Message is coming on screen itself and program execution stops over there...

ex. of error message " Delivery is already fully invoiced"

In both d case am passing following parameters

EXPORTING

vbkok_wa = vbkok_wa

synchron = 'X'

delivery = wa_input-vbeln

update_picking = 'X'

nicht_sperren = 'X'

if_error_messages_send_0 = ' '

TABLES

vbpok_tab = vbpok_tab

prot = prot

Why am not getting error messages on screen? Is there any parameter we need to pass??

Thanks in advance

1 REPLY 1

Former Member
0 Kudos
76

Hi.

check this FM.

Remove Non Active line items from the Delivery.

call function 'WS_DELIVERY_UPDATE'

exporting

vbkok_wa = wa_vbkok

commit = 'X'

synchron = c_x

delivery = wa_ser-vbeln

importing

ef_error_in_item_deletion_0 = wa_xfeld

tables

vbpok_tab = gt_vbpok

  • PROT = PROT

exceptions

error_message = 99.

you are getting execptions

Handle that exceptions.

Regards

Mohinder Singh Chauahn