LoadRunner Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

SAP GUI: Failed to set the PO (Purchase Order) number error during load test in Controller

Advisor

SAP GUI: Failed to set the PO (Purchase Order) number error during load test in Controller

Hello,

I have LR - 11.50 installed on Windows, SAP GUI version is 7.20.

I have set the PO number to be unique such that

 

{unique} set in Parameter as date/Time as %d%H%M%S.

{rand1} set in Parameter as random number in the range from 1 to 1000.

 

sapgui_set_property(txtVBKD1, "text", "OBD{rand1}{unique}", LAST );

 

I even tried with sapgui_set_text function but around 40% - 50% of the trasactions fail on setting this PO number in the text field.

 

I ran the script in Vugen with 15 users and all passed. Only when I run the script in Controller with over 135 users then the failures are seen.

 

Kindly advise solution for this.

 

Thanks.

3 REPLIES
Highlighted
HPE Expert

Re: SAP GUI: Failed to set the PO (Purchase Order) number error during load test in Controller

Have you enabled logs for parameter substitution and see what values are being set for those that came back with the error and see if those values are valid?

 

Regards,

Mario M.

 

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Valued Contributor

Re: SAP GUI: Failed to set the PO (Purchase Order) number error during load test in Controller

Hello Preeti,

 

"I even tried with sapgui_set_text function but around 40% - 50% of the trasactions fail on setting this PO number in the text field."  

 

Question:  

1.Does the remaining passed 60-50% of transaction are doing the same business scenario?

 If yes, then there is problem in the data which you are using. 

 

if No,Trying using the below :

sapgui_set_property(txtVBKD1,

                                        "text",

                                         lr_eval_string(OBD"{rand1}{unique}"),

                                         LAST );

 

2. Are the data are reusable?

 

As Mario suggested, check with extended logs enabled, whether the values are correctly replaced as expected.

Thanks,
Nan Raso
Valued Contributor

Re: SAP GUI: Failed to set the PO (Purchase Order) number error during load test in Controller

Also try to do the same opearation manually when ever you are seeing errors on the controller, so that we can have a confirmation.

 

Thanks, Ajay