Skip to Content
May 12, 2010 at 01:24 PM

Output is successfully triggered even after setting SY-SUBRC = 4 in Routine


Hi All,

My requirement is to set the processing status for a output type [which generates an IDoc] as Error for the transaction VT02n in case the Shipment Satisfies a particular condition.

In order to implement the requirement ,I have created a requirment routine using VOFM transaction where the required condition is checked successfully. The Routine returns SY-SUBRC as 4 , but the output type is still successfully processed .

I have also added the routine number in the procedures section of the NACE transaction.

Is there any other configuration required in order to fulfill the requirement?

Thanks in advance.

Best regards,