cancel
Showing results for 
Search instead for 
Did you mean: 

loadtests problem about sap-ext-sid

Former Member
0 Kudos

Dear,

I use loadrunner 11.0 test the portal, when the script goes to the iview from SRM which are coposed by ABAP web dympro.

error occur.

I checked the error , caused by sap-ext-sid,  in another thred of this forum. expert give the solution for set sap-ext-sid as parameter.

But how can I konw the real value of my sap-ext-sid.

Appreciate for your help

message like this:

vuser_init.c(1126): Error -26628: HTTP Status-Code=403 (Forbidden) for "http://www.dtwzw.com:6002/sap/bc/webdynpro/sap/powl/;sap-ext-sid=e7OfwgYjHbJvy_cY7_MA8HgWYGDKcycoIq7Zj34ENA?sap-contextid=SID%3aANON%3asrmdev01_SR1_00%3a7YAtl7JTC0GDefG0ntcHLSv1R_j9ZgB_DiDjaUk_-NEW"  [MsgId: MERR-26628]

The source code is:

web_submit_data(";sap-ext-sid=e7OfwgYjHbJvy_cY7_MA8HgWYGDKcycoIq7Zj34ENA_3",

"Action=http://www.dtwzw.com:6002/sap/bc/webdynpro/sap/powl/;sap-ext-sid=e7OfwgYjHbJvy_cY7_MA8HgWYGDKcycoIq7Zj34ENA?sap-contextid=SID%3aANON%3asrmdev01_SR1_00%3a7YAtl7JTC0GDefG0ntcHLSv1R_j9ZgB_DiDjaUk_-NEW",

"Method=POST",

"RecContentType=text/html",

"Referer=http://www.dtwzw.com:6002/sap/bc/webdynpro/sap/powl/;sap-ext-sid=e7OfwgYjHbJvy_cY7_MA8HgWYGDKcycoIq7Zj34ENA?sap-ep-iviewhandle=0071631545201&sap-wd-configId=%2FSAPSRM%2FWDA_POWL&sap-ep-iviewid=pcdshort%3A%2Fo7xNrbsFQyBpc7BaGZvIi3ZANWw%3D&sap-ep-pcdunit=pcdshort%3A%2FF8bnI+VoQxV%2F%2Fe9BM1t8jRDaScI%3D&sap-client=200&sap-language=ZH&sap-accessibility=&sap-rtl=&sap-ep-version=7.0109.20110302054551.0000&sap-wd-tstamp=1314259363252&sap-explanation=&sap-cssurl=http%3A%2F%2Fwww.dtwzw.com%3A6000%2Firj%2Fportalapps%2Fcom.sap.portal.design.urdesigndata%2Fthemes%2Fportal%2FNewLoooogo%2Fur%2Fur_ie6.css%3F7.1.9.1.1&sap-cssversion=7.11.7.23.0&APPLID=SAPSRM_B_RFXANDAUCTIONS&POWLDELTARENDERING=X&sapsrm_kw_id=L80C8CBF89A394EAAA59767D0FAF958D3SBEFFB25146F647E7BEFB3A290C57F637&REFRESHQ=X",

"Snapshot=t131.inf",

"Mode=HTTP",

ITEMDATA,

"Name=SAPEVENTQUEUE", "Value=TimeTrigger_TriggerE002IdE004WD015DE003E002ResponseDataE004deltaE005ClientActionE004submitE003E002E003", ENDITEM,

"Name=sap-charset", "Value=utf-8", ENDITEM,

"Name=sap-wd-secure-id", "Value=AD660D72B99B80C370DAD738F4BA736E", ENDITEM,

"Name=_client_url_", "Value=", ENDITEM,

LAST);

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear ALL.

I really want to know where I put the code web_reg_save_param before .

before the code web_submit_data or web_url.

I have place the function at many places, nothing I get.

could you give some advices.

Former Member
0 Kudos

Hi,

I am assuming you have tried auto-correlation and that is not working fine for you. In that case, the following steps will help you with manually correlating the sid.

You will need to insert web_reg_save_param BEFORE the web_submit_data call. Steps -

1. Replay the LoadRunner script that you have created.

2. Identify the point in the script where the script fails because of correlation

3. This is the point where the client re-sends the sid to server. This is the call where you will need to replace the hardcoded value of sap-ext-sid with the parameter that you used in web_reg_save_param

4. To get the value of sap-ext-sid - goto "Generation Log". Here check the first occurrence of sap-ext-sid i.e. identify the response for which request are you getting the sap-ext-sid from the server. You will need to place the web_reg_save_param call BEFORE this statement in the script.

5. Ensure the Left Boundary (LB) and Right Boundary (RB) values are correct. eg.

web_reg_save_param("SID","LB=;sap-ext-sid=","RB=\"",LAST);

6. Replace the hardcoded value in step 3 with the value of SID that you have captured in step 5.

7. If script replays fine - manual correlation worked - else - RE-POST

Regards,

-sushil

Former Member
0 Kudos

Hi,

Did you ever get this resolved? I have tried autocorrelation and manual but still this is not working for me.

Thanks,

Peter

Answers (1)

Answers (1)

former_member703039
Discoverer
0 Kudos

I'm too late to address this question but i would like to contribute by my answer to help others in need.

In your request, you need to correlate sap-ext-sid and sap-contextid. In my case, the correlation was like below for the and i found this id from the first WebDynpro request to the Server.

web_reg_save_param("sap_contextid",
"LB=?sap-contextid=",
"RB=\" enctype=\"",
"Search=Body",
"Convert=HTML_TO_TEXT",
LAST);

and the sap-ext-sid is captured from the response of the request present just above the first WebDynpro request to the Server and it looks something similar as below:

web_submit_data("pcd!3aportal_content!2fframeworkPages!2fcom.sap.portal.frameworkpage_0!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea",

Note: In most of the cases those response don't come in text format. Instead it comes in chunked characters which is unreadable. So, please use the below LoadRunner function above the web dynpro request to get the response in the text format.

web_add_header("Accept-Encoding", "*/*");