cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop form processing in script at certain condition

Former Member
0 Kudos

Hi,

I need to stop sap script form processing at a certain conditon. E.g., if there are 3 or less items to be printed it should not print the form at all. Since im using standard print pgm i can make changes only in form. Is there any command in (like stop or exit) script to do so? please let me know.

Rgds

sudhanshu

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi, as mentioned by advait u require a copy routine.

goto VOFM .

goto menu requirements-> output controls.

now create a new copy routine. U may be asked for an access key here so get that from ur basis team. once u create ur copy routine ur functional would map it to the required output type.

Former Member
0 Kudos

Hi,

Check for the userexit or badi's. As of my knowledge you cannot stop printing the script ..instead you need to stop triggering of script.

Former Member
0 Kudos

You can create a output control requirement in the transaction VOFM and attach the requirement to the condition type in an output procedure or to an individual access in an access sequence.

What you can do in this requirement routine is set sy-subrc to 4 if the condition is not met and 0 otherwise.

Your functional consultant should be able to help you with this.

regards,

Advait