web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / After I update the pow...
Power Automate
Suggested Answer

After I update the power automate desktop to the newest version, some VB script can't run

(1) ShareShare
ReportReport
Posted on by 2
Hi ,
the script can works well in old version of PAD, but in new version they are failed.
 
 
from here the script jumped out without error:
 
session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/txtRC29P-POSNR[0,1]").text = "%ExcelData_ITEM%"

session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/ctxtRC29P-POSTP[1,1]").text = "L"

session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/ctxtRC29P-IDNRK[2,1]").text = "%ExcelData_code%"

session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/txtRC29P-MENGE[4,1]").text = "%ExcelData_quantity%"

session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/txtRC29P-MENGE[4,1]").setFocus

session.findById("wnd[0]/usr/tabsTS_ITOV/tabpTCMA/ssubSUBPAGE:SAPLCSDI:0152/tblSAPLCSDITCMAT/txtRC29P-MENGE[4,1]").caretPosition = 1

session.findById("wnd[0]").sendVKey 0

session.findById("wnd[0]/tbar[0]/btn[11]").press
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at
    Hi,
     
    could you share the exact error when the vbscript is executed ? 
     
    I think this is SAP Automation using vbscript - correct me if i am wrong 
     
    Thanks & Regards,
    Nived N 
    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs
     Found my answer helpful? Please consider marking it as the solution!
     Your appreciation keeps me motivated. Thank you!

     
  • Suggested answer
    eetuRobo Profile Picture
    4,607 Super User 2026 Season 2 on at
    As @Nived_Nambiar  suggested could you provide the error. Does the VBscript do anything (like populate some of the text fields) when it starts or does nothing happen? And have you made sure SAP is in correct screen where those text fields would be populated?
     
    Error from VBScript can be extracted when you turn on the ScriptError in "variables produced" (by default its off)
     



    Then if the script goes to error it should return this type of error text. Usually it is not able to tell what went wrong but it tells you in which row the error happened. In ScriptError variable after \Robin\loremipsum.tmp(RowNumber, CharacterPosition)

     
    So in that example error happened in row 2 and character position 47.

    When automating SAP with Vbscript it might give also error text "The control could not be found by id" which means it couldn't find the SAP element. Then you might want to record the steps again in SAP recorder. Or make sure its in a correct SAP screen where that element would be.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard