excelvbasap-gui

SAP Script Recording - short code recording issue


When I record a SAP Script on my computer, it is recorded in what it seems to be a "short" version of what I'm doing, not showing the fields names or anything like that. An example below:

session.findById("wnd[0]/usr/ssub/1/sub/1/1/cmb[0]").SetFocus session.findById("wnd[0]/usr/ssub/1/sub/1/1/cmb[0]").Key = "A01"

But when I record it on a colleague's computer, it records as a "long" version, showing the field in which I'm working on:

session.findById("wnd[0]/usr/ssubSUB_MAIN_CARRIER:SAPLMIGO:0003/subSUB_FIRSTLINE:SAPLMIGO:0010/cmbGODYNPRO-ACTION").SetFocus session.findById("wnd[0]/usr/ssubSUB_MAIN_CARRIER:SAPLMIGO:0003/subSUB_FIRSTLINE:SAPLMIGO:0010/cmbGODYNPRO-ACTION").Key = "A01"

Could you help me getting my computer to record as the longer version? I intend to share a macro I'm developing with my colleagues but it didn't work on my "short" version, therefore I'm assuming it would work better on a "longer" version, with field names.

I have tried everything that ChatGPT had to offer but couldn't solve this :/

I have tried everything on the Options -> Scripting and anything like it. I can send prints from my view if possible.


Solution

  • Since I was kindly asked to convert my comment into an answer, I’ll do so here

    As mentioned in my comment, the difference in the spelling of the field names may be related to the Low Speed Connection setting. You can check this by verifying session.Info.IsLowSpeedConnection.

    This suggestion was originally shared in the SAP Community by S. Schnell.

    enter image description here