cancel
Showing results for 
Search instead for 
Did you mean: 

SAP GUI SCRIPTING - taking data from excel

05-05-2022 9:45 AM
3508 views 2 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hello,

I recorded automate to extend materials in SAP. Values are taken from my template from the excel(below)

As you can see in below script: 1 line refers to 3 column in above excel and 2 line refers to 4 column.
The problem is I do not want to make it "rigid" I want to make it in different way. When the cell is processed, I would like the script to take the data from the next cell on the right.

session.findById("wnd[0]/usr/tabsTABSPR1/tabpSP04/ssubTABFRA1:SAPLMGMM:2000/subS - Pastebin.com

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

0 Likes

This is my script

  1. session.findById("wnd[0]/usr/tabsTABSPR1/tabpSP04/ssubTABFRA1:SAPLMGMM:2000/subSUB2:SAPLMGD1:2158/ctxtMVKE-VRKME").Text = Cells(10, 3)
  2. session.findById("wnd[0]/usr/tabsTABSPR1/tabpSP04/ssubTABFRA1:SAPLMGMM:2000/subSUB4:SAPLMGD1:2159/txtMVKE-AUMNG").Text = Cells(10, 4)

Answers (0)