on 2024 Jul 16 5:00 AM
Hello everyone, SAPSetVariable function is not working. I share the code below. lResult returns 0. Thanks in advance...
Sub TestSon()
Refresh = Application.Run("SAPExecuteCommand", "RefreshData", "DS_1")
lResult= Application.Run("SAPSetVariable", "OP_DATE_OPEN", "08.07.2024", "", "DS_1")
End Sub
Hello @Kemaley
first of all, you should always give the AO version, you are currently using. I chose this link:
... and you can see that there is one additional parameter, which might be helpful:
Maybe you try this again:
lResult= Application.Run("SAPSetVariable", "OP_DATE_OPEN", "08.07.2024", "KEY", "DS_1")
or the INTERNAL_KEY, which should be 20240708
BR, Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
12 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.