Skip to Content
0
Former Member
Apr 07, 2009 at 01:42 PM

VL09 = WS_REVERSE_GOODS_ISSUE with sy-subrc = 1

2838 Views

Dear Sir / Madam,

The functional requirement is to cancel 101 material document followed

with reversal of 641 material document & finally creation of 311 material

document. This is a reverse Stock transfer process which we want to

combine in a single Z-developent.

For cancellation of 101 material document i am using BAPI,

BAPI_GOODSMVT_CANCEL. WS_REVERSE_GOODS_ISSUE used for reversal of goods issue (VL09) and BAPI_GOODSMVT_CREATE used for 311 movement .

I am using the FM: WS_REVERSE_GOODS_ISSUE in my report by giving the same inputs as maintained in Std SAP Program-RVV50L09 of VL09.

Successful execution is happening, if I call FM :WS_REVERSE_GOODS_ISSUE

immediately after Start-of-selection event in report, but if I call same FM after one more subroutine / BAPI (BAPI_GOODSMVT_CANCEL) under

Start-of-selection event, its failing and giving sy-subrc always 1.

Please, let me know the possible reasons.

I want to know the impact of previous function module/subroutine diverting WS_REVERSE_GOODS_ISSUE into wrong direction (with our ECC 6.0 version)