Skip to Content
0
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]/mbar/menu[1]/menu[7]/menu[6]").select

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

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

session.findById("wnd[0]/tbar[1]/btn[7]").press

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

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

image.png

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

image.png

And this one

image.png

How do I get the line code to these windows?

Thanks

Attachments

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