cancel
Showing results for 
Search instead for 
Did you mean: 

what is server round trip?

Former Member
0 Kudos

HI people.

I'm trying to display an error message when a particular check is not satisfied.

This check is to b performed. for the field "searchterm" while creating the account.

I'm coding the condition for check in it using set method. If the condition is false, then I wrote the code for message generation on the UI. Now if the error message appears for a particular case, then there will be control go. What do we mean by "server round trip" (please give an example and explain).

I'm very new to sap CRM so please help me.

thank you. regards,

shilpi

Accepted Solutions (1)

Accepted Solutions (1)

CarstenKasper
Active Contributor
0 Kudos

HI Shilpi,

quick explaination: A server roundtrip is whenever you send data to the server and it responds.

In case of normal webpages this means:

You put a request to the server by calling a URL say: www.syskoplan.de

The server somehow processes this request and answers with a response. This being an html page.

For the Webclient framework it is no different.

When you trigger a server side event. Data gets send to the server. You can have a look at it in the DO_HANDLE_DATA method of the view implementation class. It then calls the GET ans SET methods of the context nodes. This event is interpreted by the server normally in the DO_HANDLE_EVENT method.

Now comes the response. On base of the new data and state the server calls some framework methods. SET_MODELS for putting the data to the HTM page of your view. Then the DO_PREPARE_OUTPUT. Nearly the last point is the interpretation of the HTMLB tags that are renderd into normal HTML code. Now this response is send to your webbrowser.

Now as you can imagine this whole logic takes its time, especially since we are talking ABAP here. Thus there are other kinds to refresh data on the UI.

One thing for example is the client side scripting using JavaScript. For example the date picker value help in CRM Webclient.

Anotherone would be AJAX. This is used when you expand a single assignment block. Eventhough this triggers a request for data from the NetWeaver.

Hope it helps you a little bit.

cheers Carsten

Former Member
0 Kudos

Hi Carsten,

If i have a static variable in the controller class and i set the value of this static variable in one server round trip(say value of variable is set to 1 when we press on create account) then will this value be retained in the next server round trip which will take place when user enters the mandatory fields required 4 creating an account and after this presses enter.

Regards

Shilpi

CarstenKasper
Active Contributor
0 Kudos

This is more a general ABAP OO question.

The values of static variables are the same for all instances of the class. Once set they should keep their value until overwritten or the reset of the user session.

Short answer: Yes.

cheers Carsten

Answers (0)