Application Development and Automation 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: 
Read only

Blocking Output types from Triggering.

Former Member
0 Likes
513

Client has a requirement that if overall credit status of delivery is 'B' ( Blocked ) then all output types Automatic or Manual associated with the delivery should be blocked.

I added following lines of code in requirements for all output types associated with deliveries

IF KOMKBV2-CMGST CA 'B'.

SY-SUBRC = 4.

EXIT.

ENDIF.

But we are still able to attach output types to deliveries with credit status blocked, any pointers ?

2 REPLIES 2
Read only

Former Member
0 Likes
371

hi Saket,

This can be the issue you are facing.

you are exiting from the current event with the 'EXIT' statment, but the validation is not applicable in the subsequent event.

in the subsequent event, may be 'END-OF-SELECTION',

insert the following statement, as the first statement:

CHECK NOT KOMKBV2-CMGST EQ 'B'.

hope this helps

Read only

0 Likes
371

I debugged and found out that the 'EXIT' Statement is being executed in requirement, isn't that enough ?

Message was edited by: Saket Sinho