Highlighted
Absent Member.
Absent Member.
386 views

sapgui_status_bar_get_param - returns unexpected result

Hi, All.

Good day.

Asking your assistance on the result I encoutered. The values being returned by get_param 1 and 2 is not the one that I was expecting. Kindly check the code and the result below for your reference. What I need to capture from the dynamic value (from status bar) is the seperated param for order number which I'll be using on my next script. 

Code:

sapgui_status_bar_get_text("paramStatusBarText",

BEGIN_OPTIONAL,

"Recorded status bar text: FFS - Order 9150000626 has been saved (no delivery created)", 

"AdditionalInfo=sapgui1035",

 END_OPTIONAL);

  sapgui_status_bar_get_param("1", "param1", LAST ); 

  sapgui_status_bar_get_param("2", "param2", LAST );

Result:

Action.c(162): The text of the status bar is "FFS - Order 9150000639 has been saved (no delivery created)"

Action.c(170): The value of parameter 1 in the status bar is "FFS - Order 9150000639 has been saved (no delivery"

Action.c(172): The value of parameter 2 in the status bar is " created)"

Tags (2)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.