Skip to Content
0
Former Member
Dec 05, 2006 at 07:42 PM

Help with WS_DELIVERY_UPDATE

910 Views

Hi friends,

I am using the below function module for posting goods issue for deliveries in my program. I am succesfully able to post goods issues for most of the deliveries but for some deliveries, I am getting the error message 'No status object is available for &' [from message class BS (message number 01)]. But when I try to post goods issue for these deliveries (which I got the error message) manually, it seems to work fine!

Please help what could be the possible error in my program. Thank you very much.

MOVE:p_vbeln TO lt_vbkok_wa-vbeln_vl,

'J' TO lt_vbkok_wa-vbtyp_vl,

p_vbeln TO lt_vbkok_wa-vbeln,

'X' TO lt_vbkok_wa-wabuc.

CLEAR lt_prot.

REFRESH lt_prot[].

CALL FUNCTION 'WS_DELIVERY_UPDATE'

EXPORTING

vbkok_wa = lt_vbkok_wa

commit = 'X'

delivery = p_vbeln

TABLES

prot = lt_prot

EXCEPTIONS

error_message = 99.