Skip to Content
0

ME23N Drop down select Personas 3.0 SP4

Apr 18, 2017 at 05:02 PM

51

avatar image
Former Member

Hello,

I am unable to successfully execute a script to view my pos, my held pos and my purchase requisitions from ME23n. I recorded three separate scripts tied to three different script buttons. After executing the script button for on of my scripts (view my POs) the script failed. Upon further review of the script it looks like the ids of the menu items keep changing. Is there a way around this? I would like to simplify these three areas for our users. I tried looking at control id overwrites but could not get them to work. Any assistance is appreciated.

Thank you,

RL

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Chinthan Yajamaan
Apr 20, 2017 at 06:27 PM
0

Can you provide screen shot of your script and menu you are trying to click. When you say menu ids are changing, is it for different POs? Have you tried using "Menu Item Button" in editor instead of Script button?

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Apr 20, 2017 at 08:48 PM
0

Thank you for your response. Below is what I am trying to record. After recording this process and executing the script...the script has an error because that particular "control id" is not found. After further analysis I noticed the id was different upon drop down of the menu item after the initial recording.


souc3.png (24.3 kB)
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Apr 20, 2017 at 08:51 PM
0

Here is a quick recorded script to show you the change in control ids. You will notice that the each time I come in to the ME23n the control Id changes (marked in bold)

session.findById("wnd[0]/usr/subSUB0:SAPLMEGUI:*/subSUB3:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1301/subSUB2:SAPLMEGUI:1303/tabsITEM_DETAIL/tabpTABIDT12/ssubTABSTRIPCONTROL1SUB:SAPLMEVIEWS:1101/subSUB1:SAPLMEACCTVI:1200/cmbMEACCT1200-KNTTP").setFocus();
session.findById("wnd[0]/shellcont/shell/shellcont[1]/shell/dropmenuSELECT").openMenu();

session.findById("wnd[0]/usr/subSUB0:SAPLMEGUI:*/subSUB3:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1301/subSUB2:SAPLMEGUI:1303/tabsITEM_DETAIL/tabpTABIDT12/ssubTABSTRIPCONTROL1SUB:SAPLMEVIEWS:1101/subSUB1:SAPLMEACCTVI:1200/cmbMEACCT1200-KNTTP").setFocus();
session.findById("wnd[0]/shellcont/shell/shellcont[1]/shell/dropmenuSELECT/shell/item005056BE52DB1ED789C1236DC241C0D3NEWPOS_BY_USER_QUERY").select();

session.findById("wnd[0]/usr/subSUB0:SAPLMEGUI:*/subSUB3:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1301/subSUB2:SAPLMEGUI:1303/tabsITEM_DETAIL/tabpTABIDT12/ssubTABSTRIPCONTROL1SUB:SAPLMEVIEWS:1101/subSUB1:SAPLMEACCTVI:1200/cmbMEACCT1200-KNTTP").setFocus();
session.findById("wnd[0]/shellcont/shell/shellcont[1]/shell/dropmenuSELECT").openMenu();

session.findById("wnd[0]/usr/subSUB0:SAPLMEGUI:*/subSUB3:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1301/subSUB2:SAPLMEGUI:1303/tabsITEM_DETAIL/tabpTABIDT12/ssubTABSTRIPCONTROL1SUB:SAPLMEVIEWS:1101/subSUB1:SAPLMEACCTVI:1200/cmbMEACCT1200-KNTTP").setFocus();
session.findById("wnd[0]/shellcont/shell/shellcont[1]/shell/dropmenuSELECT/shell/item005056BE52DB1ED789C1529A696200D3NEWPOS_BY_USER_QUERY").select();

Share
10 |10000 characters needed characters left characters exceeded