cancel
Showing results for 
Search instead for 
Did you mean: 

FPM Error Page: Processing

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

I think the frame work will execute the methods despite error messages. So we need to explicitly bypass the code where ever required. To do so, we need to set a global variable and access where ever required accordingly.

ramakrishnappa
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

After your code which generates error page just write RETURN statement.

Thanks

KH