on 09-04-2019 9:04 AM
I want to enter data into an FB60 transaction based on the data saved in the excel file.
How to capturethis transaction screen so that the SAPLFSKBTABLE object can then be seen as a table ?
How to enter data in the corresponding cells if the number of entries is dynamically variable.
Currently, I cannot use any of the Sapscripts methods for the table, e.g. recognized table, for table recognition, setCell, getRowCount etc.
Hello Slawomir,
you can use SAP GUI Scripting seamlessly inside IRPA. It is a bit weird for an RPA solution, but it works. Record your activities as VBScript and use it inside IRPA, as I described here.
//-Begin----------------------------------------------------------------
var VBSCode = ' \n\
Sub SAPGUIScripting() \n\
Set SapGuiAuto = GetObject("SAPGUI") \n\
Set application = SapGuiAuto.GetScriptingEngine \n\
Set connection = application.Children(0) \n\
Set session = connection.Children(0) \n\
session.findById("wnd[0]/titl/shellcont/shell").pressContextButton "%GOS_TOOLBOX" \n\
session.findById("wnd[0]/titl/shellcont/shell").selectContextMenuItem "%GOS_PCATTA_CREA" \n\
session.findById("wnd[1]/tbar[0]/btn[12]").press \n\
End Sub';
var MSScrCtrl = ctx.activeX.create("MSScriptControl.ScriptControl");
MSScrCtrl.AllowUI = 1;
MSScrCtrl.Language = 'VBScript';
MSScrCtrl.AddCode(VBSCode);
MSScrCtrl.Run('SAPGUIScripting');
//-End------------------------------------------------------------------
This is an example how to use Generic Object Services (GOS), which also can not be automated with IRPA.
Best regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.