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: 

not able to block the Idoc for Billing document usign Requirement routine

Former Member
0 Kudos

Hi all

I have created one Requirement routine detail are bellow,

Vofm -> Requirement Routine- output control

V3 applictation, i have create the routine and attached to output type.

i have set one condition if true sy-subrc =0 and not sy-subrc = 4.

when i checked in debugger mode condition is failing and sy-subrc = 4. but idoc get triggering

but for ideal case if sy-subrc = 0 then only the idoc should gets triggered.

Please help me if any one know,

Thanks & Regards

V Sravan Venkat

1 REPLY 1

brad_bohn
Active Contributor
0 Kudos

If you requirement is assigned properly in output config, it will work if the value is set properly. This is a common question and the result is always that the poster has done something incorrect. Check that the SY-SUBRC is 4 and that the routine exits immediately. Debug afterwards (outside of the routine) to watch the code stop the proposal.