cancel
Showing results for 
Search instead for 
Did you mean: 

XD01 Address More Fields Button

michael_olijnyk
Explorer
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

Answers (3)

Answers (3)

michael_olijnyk
Explorer
0 Kudos

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();

Former Member
0 Kudos

Did you find a way to expand all fields?

0 Kudos

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.