Showing results for 
Search instead for 
Did you mean: 

Question about SAP Scripting

0 Kudos

Hello Experts,

I have a question about SAP Scripting recording that is the scripting recorded on my computer is working find, but cannot run in others computer.

The reason is that the code I recorded cannot be recognized on someone else's computer, and the code recorded on others computer cannot be recognized on my computer either.

The main issue is below code. The first code is created on my compute which is recorded the specific technical name of the field - "SD_SAKNR-LOW". the second code is recorded on my colleague's compute which is only show the field number -"[0]", I also found that many codes on the web also just show the field number and do not show the specific field technical name

session.findById("wnd[0]/usr/ctxtSD_SAKNR-LOW").Text = "1234"

session.findById("wnd[0]/usr/ctxt[0]").Text = "1234"

So my question is that what is the reason for this difference and is there a way to change the computer settings so that the recorded codes are the same and can be used with each other?

BTW, I tried use others ID to logon SAP on my PC, the scripting still show me specific technical name, maybe I need to changed my SAP settings? How can I do it?

Thank you very much for your support!


0 Kudos

Hi Alex Xu, Can you please specify the product you are using in a tag? That way I can direct you to the right colleague. Thank you! 🙂

0 Kudos

Hi Julianna,

Thanks for your advise, I have added tag SAP S/4HANA. hope it is a correct tag:)

Accepted Solutions (0)

Answers (0)