cancel
Showing results for 
Search instead for 
Did you mean: 

getting the below time out , after reaching the specified time in http or SMTP.

Former Member
0 Kudos

These error information will be displayed from

Stadard Class : CL_WDR_CLIENT_ABSTRACT_HTTP

Mehtod : PREPROCESS_REQUEST.

With the information some technical information is also showing in the error like short dump information.

The new more user friendly version should cover the following requirements

Symbol of a clock (for timeout message)

Small and standard info text what the user should do to continue working

Message Timeout Please refresh your browser  to continue working”

How to achieve the above requirement?

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Sekhar,

Please check the below document:

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos


Hi Rama

Thanks for information.

Is it require chaild class for custome code.

How to display the  clock  symbol for  timeout message.

Thanks & Regards,

Sekhara Reddy

ramakrishnappa
Active Contributor
0 Kudos

Hi Sekhar,

You can also directly write code inside the standard method using implicit enhancement but separating code is better always and also consider that this is standard method which executes for all other components as well.

Create an html code page where you embed the CLOCK image and copy paste the code as suggested in the document.

Image can be embedded either using web URL or by using MIME repository path ( i.e. upload an image to mime repository and use the path)

Hope this helps you.

Regards,

Rama.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rama,

Thanks for your assistanse,

Like time out i am getting the one more dump for custome code , With meesage information i am getting some technical information like short dump.

Cold you please help me  to how to handle the error message in webdynpro. with out technical information.

code

-----

  IF cl_mdg_util=>check_langu( ) = space.   

MESSAGE a017(fnd) WITH sy-langu."#EC * 

ENDIF.

-------

With error message geting class name and method name details.

Thanks and Regards,

Sekhara Reddy

Former Member
0 Kudos

Navigate to your application in transaction SICF.

In the above screen shot, it shows the "Application Errors", but you can choose to give a custom message in logoff page (next tab).

Message can be "Please refresh the browser session".

Also in case you need to avoid the time out, then there is a way around:

- Create a UI element "TimedTrigger" and set it to 30 mins(or less than whatever is your web session time out maintained).

- Create a action tied to this UI element.This action ca be anything.

This will make sure that your application never times out.

Ashish

ramakrishnappa
Active Contributor
0 Kudos

Hi Sekhar,

Is your requirement is to show error message without any view data if it encountered runtime error?

Sample:

  IF cl_mdg_util=>check_langu( ) = space.  

         

" here show error message and navigate to empty view

" use method report_error_message of if_wd_message_manager

              

    

ENDIF.

Regards,.

Rama

Former Member
0 Kudos

Hi Rama,

Thanks for  your information.

I need write the above code in class  and constructor method.

I think if_wd_message_manager is not useful.

Please give me some example on ,..how to  write report error message in method.

.

ramakrishnappa
Active Contributor
0 Kudos

Hi Sekhar,

Hope you want to avoid the abort message from class and have an error message in WD without any technical details in it.

  • Create a parameter EV_ERROR_MESSAGE of type STRING in the class method where the error is occurring
  • Modify the code in as below

                 IF cl_mdg_util=>check_langu( ) = space.  

                    """MESSAGE a017(fnd) WITH sy-langu."#EC *

                   MESSAGE id 'FND' type 'E' NUMBER '017' into EV_ERROR_MESSAGE with sy-langu.

                    return. "Return the control back to caller

                  ENDIF.

  • Now, use the error text EV_ERROR_MESSAGE in WD and report an error message using if_wd_message_manager

Hope this helps you.

Regards,

Rama