Skip to Content
May 26, 2022 at 02:28 PM

SAP S/4 HANA SAPscript - Assigning employee to WBS element

131 Views Last edit Jun 07, 2022 at 01:46 AM 3 rev

Dear all
I am quite new by using Sapscripting and I hope somebody can help me.
I am just recorded the steps to assigning employee to WBS element, but the problem is that in the processes is apearing Three pop up windows : the first one I need to write the employee number and the second one I need to put a check mark and the third one I will save the assignment ( as in the pictures below) it is a normal process, but these steps has not been recorded. So, how do I get the line codes to these pop up windows?

Here just the codes I got



session.findById("wnd[0]/usr/lbl[8,3]").caretPosition = 6



session.findById("wnd[1]/usr/lbl[20,4]").caretPosition = 1

session.findById("wnd[1]").sendVKey 2

Tthis is the ("wnd[1] but there is no line code to this


After I have typed the employee number, I will get det line codes below, but there is no line kode to this one as well


And this one


How do I get the line code to these windows?



image.png (23.4 kB)
image.png (57.4 kB)
image.png (23.2 kB)