on 01-16-2015 4:19 AM
Hi All,
While using FPM error page, code is being accessed even after the error page is triggered.
Pls let me know how to stop this code processing.
Thanks in advance.
Rgs,
Ashutosh
Hi Ashutosh Kumar,
I think you have to write the logic in the method PROCESS_EVENT of the Feeder Class.
Even then the method GET_DATA will get executed.
So declare an error flag globally and set it in PROCESS_EVENT and handle this golbal variable in GET_DATA method accordingly.
Regards,
Yugesh A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The issue is:
- I have triggerred FPM Error Page in method INIT of my feeder class.
- After the error page is triggered I use "Return" and rest of INIT is skipped.
- But the GET_DATA method of my feeder class is still getting executed. <<This should not execute
If I use RAISE_EXEPTION instead of FPM Error page I get the expected result -- Processing stop at that line only.
I am not sure why FPM error page is not doing this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In your INIT method intialise one flag with global variable i.e
if error_page is triggered.
ERROR_PAGE = 'X'. " Initialising global variable
endif.
Now in your GET_DATA method, check if ERROR_PAGE variable is initial or not.
i.e
METHOD GET_DATA.
IF ERROR_PAGE IS NOT INITIAL.
CLEAR ERROR_PAGE.
RETURN.
ENDIF.
ENDMETHOD.
Hope this will help you.
Thanks
KH
Hi,
In your INIT method intialise one flag with global variable i.e
if error_page is triggered.
ERROR_PAGE = 'X'. " Initialising global variable
endif.
Now in your GET_DATA method, check if ERROR_PAGE variable is initial or not.
i.e
METHOD GET_DATA.
IF ERROR_PAGE IS NOT INITIAL.
CLEAR ERROR_PAGE.
RETURN.
ENDIF.
ENDMETHOD.
Hope this will help you.
Thanks
KH
Hi,
In your INIT method intialise one flag with global variable i.e
if error_page is triggered.
ERROR_PAGE = 'X'. " Initialising global variable
endif.
Now in your GET_DATA method, check if ERROR_PAGE variable is initial or not.
i.e
METHOD GET_DATA.
IF ERROR_PAGE IS NOT INITIAL.
CLEAR ERROR_PAGE.
RETURN.
ENDIF.
ENDMETHOD.
Hope this will help you.
Thanks
KH
Hi,
is the code after the ERROR PAGE call is executing? if so, as suggested, put RETURN statement just after the error page call to skip further processing of your logic.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
After your code which generates error page just write RETURN statement.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.