在角色脚本中选择选择选项

2020-09-09 12:10发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)你好 试图改善我的SAP Pe...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


你好

试图改善我的SAP Persona脚本编码。 选择选择选项值时遇到问题。 该脚本需要选择一个大于">"的金额,但我无法使其正常运行。

使select选项起作用的示例代码将有很大帮助。

谢谢

约翰

我仍然无法使其正常运行。 请在下面查看我正在尝试使其运行的脚本。

session.callTransaction(" fchn"); session.findById(" wnd [0]")。sendVKey(0); session.findById(" wnd [0]/usr/ctxtSEL_ZBUK-LOW")。text =" FIX"; session.findById(" wnd [0]/usr/tabsTABSTRIP_CHK/tabpUCOMM1/ssub%_SUBSCREEN_CHK:RFCHKN10:0001/ctxtSEL_WAER-LOW")。text =" USD"; session.findById(" wnd [0]/usr/tabsTABSTRIP_CHK/tabpUCOMM1/ssub%_SUBSCREEN_CHK:RFCHKN10:0001/txtSEL_RWBT-LOW")。text =" 200"; session.findById(" wnd [0]/usr/tabsTABSTRIP_CHK/tabpUCOMM1/ssub%_SUBSCREEN_CHK:RFCHKN10:0001/txtSEL_RWBT-LOW")。setFocus(); session.findById(" wnd [0]/usr/tabsTABSTRIP_CHK/tabpUCOMM1/ssub%_SUBSCREEN_CHK:RFCHKN10:0001/txtSEL_RWBT-LOW")。executeWebRequest(" post"," action"," 2"," cursorobj = M0%3A46 %3A1%3A2B277%3A%3A5%3A34&cursor = 0",为空); session.findById(" wnd [1]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 53"," row_index = 4&column_index = 1",null); session.findById(" wnd [1]/usr/cntlOPTION_CONTAINER/shellcont/shell")。setFocus(); session.findById(" wnd [1]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 44",null,null); session.findById(" wnd [1]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 147"," row = 4",null); session.findById(" wnd [1]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 47"," rows =%3B4%3B",null);

付费偷看设置
发送
1条回答
nice_wp
1楼-- · 2020-09-09 13:03

您好,约翰

我尝试了示例物料报告,下面的代码能够为我的工厂设置大于值的值。 你做了录音吗? 它记录大于,较少按钮等的索引,然后按它。 在我的情况下,检查row_index变量,该变量负责选择是否需要小于或大于。

 session.findById(" wnd [0]/usr/ctxtEM_WERKS-LOW")。setFocus();
 session.findById(" wnd [0]/usr/btn%_EM_WERKS _%_ APP _%-VALU_PUSH")。press();


 session.findById(" wnd [1]/usr/tabsTAB_STRIP/tabpSIVA/ssubSCREEN_HEADER:SAPLALDB:3010/tblSAPLALDBSINGLE")。modifyCell(0," RSCSEL_255-SLOW_I"," 1000");
 session.findById(" wnd [1]/usr/tabsTAB_STRIP/tabpSIVA/ssubSCREEN_HEADER:SAPLALDB:3010/tblSAPLALDBSINGLE/btnRSCSEL_255-SOP_I [0,0]")。setFocus();
 session.findById(" wnd [1]/usr/tabsTAB_STRIP/tabpSIVA/ssubSCREEN_HEADER:SAPLALDB:3010/tblSAPLALDBSINGLE/btnRSCSEL_255-SOP_I [0,0]")。press();


 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 53"," row_index = 5&column_index = 1",null);
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。setFocus();
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 44",null,null);
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 147"," row = 4",null);
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 47"," rows =%3B4%3B",null);
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 53"," row_index = 4&column_index = 1",null);
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 147"," row = 4",null);
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 47"," rows =%3B4%3B",null);
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 53"," row_index = 4&column_index = 1",null);
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 147"," row = 4",null);
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 47"," rows =%3B4%3B",null);
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 53"," row_index = 4&column_index = 1",null);
 session.findById(" wnd [2]/usr/cntlOPTION_CONTAINER/shellcont/shell")。executeWebRequest(" post"," action"," 2"," row_index = 4&column_index = 1",null);


 session.findById(" wnd [1]/usr/tabsTAB_STRIP/tabpSIVA/ssubSCREEN_HEADER:SAPLALDB:3010/tblSAPLALDBSINGLE/btnRSCSEL_255-SOP_I [0,0]")。setFocus();
 

一周热门 更多>