I want to display warning icon (Yellow icon) in BODS management console manually based upon certain condition and error/warning messages are to be displayed in error file/screen.
I can do it using raise_exception in the Try-catch block after the tweaking the parameter TREAT_CATCH_EXCEPTION_AS in DSConfig.txt from SUCCESS to WARNING. (Using Try-Catch stage not Try-Catch in the script,
as Try-Catch block in the script is not able to turn the icon to YELLOW, which Stage Try-Catch Block can do, Which is really wired !!! ).
Now, with TREAT_CATCH_EXCEPTION_AS = WARNING setting if I raise raise_exception in catch block or outside of the catch block it is terminating the job in trace file but console icon does not turn to RED. It remains YELLOW.
But with the settings TREAT_CATCH_EXCEPTION_AS = SUCCESS, it is working as expected, i mean icon turned to RED for the similar case.
I have tested it in BODS 3.1 and BODS 3.2 … But got same result.
So, it seems that SUCCESS to ERROR can be done but WARNING to ERROR can not be done out side of the try-catch stage block.
But I want this as this will give more visual understanding to our production support team, whether error or waring is occurred.
Would anybody please help me ?
I am looking for exciting comments from any senior SAP BODS professional like Werner Daehn …
Thanking you in advance …
HeadsUp (BOB member since 2011-01-14)