on 06-21-2016 2:00 PM
What is the trick to selecting and pressing on the "More Fields" button in XD01 Address tab via a script? I have tried using the selection tool to setFocus and press. I have also tried via recording the action. Either way, I receive an unidentified control message.
My goal is to have all the fields made immediately available to the user. Thanks
UnidentifiedControl - There is no control with id 'wnd[0]/usr/subSUBTAB:SAPLATAB:0100/tabsTABSTRIP100/tabpTAB01/ssubSUBSC:SAPLATAB:0201/subAREA1:SAPMF02D:7111/subADDRESS:SAPLSZA1:0300/subCOUNTRY_SCREEN:SAPLSZA1:0301/btnG_D0100_DUMMY_COUNTRY' in the current screen state.
Hi Michael,
If you are on SP03 or the latest version of SP02, the following script should expand the 'More Fields' in the Street Address group box. The script was generated by the recorder:
session.findById("wnd[0]/usr/subSUBTAB:SAPLATAB:0100/tabsTABSTRIP100/tabpTAB01/ssubSUBSC:SAPLATAB:0201/subAREA1:SAPMF02D:7111/subADDRESS:SAPLSZA1:0300/subCOUNTRY_SCREEN:SAPLSZA1:0301/btnG_D0100_DUMMY_COUNTRY").press();
Best regards
Kranthi
SAP Screen Personas Team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you everyone. It finally works beautifully! I cleaned up my script and used the below without issue. Thank you for following up on this issue as I had given up.
session.findById("wnd[0]/usr/subSUBTAB:SAPLATAB:0100/tabsTABSTRIP100/tabpTAB01/ssubSUBSC:SAPLATAB:0201/subAREA1:SAPMF02D:7111/subADDRESS:SAPLSZA1:0300/subCOUNTRY_SCREEN:SAPLSZA1:0301/ctxtADDR1_DATA-REGION").setFocus();
session.findById("wnd[0]/usr/subSUBTAB:SAPLATAB:0100/tabsTABSTRIP100/tabpTAB01/ssubSUBSC:SAPLATAB:0201/subAREA1:SAPMF02D:7111/subADDRESS:SAPLSZA1:0300/subCOUNTRY_SCREEN:SAPLSZA1:0301/btnG_D0100_DUMMY_TIMEZONE").press();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you find a way to expand all fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What are the steps you do before that? Any chance that the control id dynamically changes for this button in this transaction?
Do one thing, just change the color of that button and see whether that color vanishes based on some actions you do in the screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.