SAP GUI Text check (Error Handling)
sapgui_status_bar_get_text("paramStatusBarText",
BEGIN_OPTIONAL,
"Recorded status bar text: Material document 4900089763 posted",
"AdditionalInfo=sapgui1067",
END_OPTIONAL);
lr_end_transaction("S31_SAP_Fleet_MIGO_1090_ClkPost", LR_AUTO);
i = sapgui_status_bar_get_param("1", "param1", LAST);
lr_output_message("Material Document Number is: %s",lr_eval_string("{param1}"));
if(i==1)
{
lr_output_message("Material Document creation failed and input data used is : %s", lr_eval_string("{pUserName}"));
}
SAP GUI get_text:
//captured during recording:
sapgui_status_bar_get_text("paramStatusBarText",
BEGIN_OPTIONAL,
"Recorded status bar text: Material document 4900089763 posted",
"AdditionalInfo=sapgui1067",
END_OPTIONAL);
lr_end_transaction("S31_SAP_Fleet_MIGO_1090_ClkPost", LR_AUTO);
(//we need to put a function to extract values:)
i = sapgui_status_bar_get_param("1", "param1", LAST); (//"1" will extract the first numerical value from the string)
(//to print the extracted value:)
lr_output_message("Material Document Number is: %s",lr_eval_string("{param1}"));
Comments
Post a Comment