SAP
SAP
Aktiviteler
SAP Login
Using the SAP Login activity, you can start the SAP program and log in.
![](/wp-content/uploads/2023/09/SAP-Login-1.webp)
In the Connection Name field, the name of the connection you want to log into from the links in the first window that appears when the SAP application is opened must be written. You can find the client information on the Login page that opens after double-clicking the link.
![](/wp-content/uploads/2023/09/SAP-Login-2.webp)
![](/wp-content/uploads/2023/09/SAP-Login-3.webp)
SAP Record And Play
Using the SAP Record And Play activity, you can record all the operations performed within the SAP application and then run the activity and perform the operation or operations on the SAP screens. The “SAP Script Recording and Playback” feature must be active in order to be able to record on the SAP screen and then execute it.
By using the Script Recording and Playback feature of the SAP application, you can run your previously created (.vbs) files by typing the file extension in the “VBS File Path” line.
![](/wp-content/uploads/2023/09/SAP-Record-And-Play-1.webp)
For the new recording process, the Open Text Editor field from the “Script Data” field should be used. You can use the “Start Record” button to open the SAP application and then start the recording process. After the operations are performed on the SAP screen, you can end the recording by using the “Stop Record” or “Shift” button on the form to stop the recording.
![](/wp-content/uploads/2023/09/SAP-Record-And-Play-2.webp)
After the record is completed, the variable can be assigned to the fields in the relevant script and the fields such as box, text, bar, etc. clicked in SAP can be added as rows from the Outputs field to the collection variable.
Note: If there is “.text” at the end of the relevant fields, it should be used directly as follows without any extra operation. If there is a script record such as “.setFocus” “.caretPosition”, the value at the end of the period can be changed to “.text”. (In SAP, not every field can be converted to Text.)
After the registration is completed, it is possible to assign variables to the fields in the relevant script and the clicked box, text, bar, etc. in SAP. fields can be added as a line into the collection variable from the Outputs field.
Note: If there is “.text” at the end of the relevant fields, it should be used directly as follows without any extra processing. If there is a script record such as “.setFocus” “.caretPosition”, the value at the end of the period can be changed to “.text”. (Not every field can be converted to Text in SAP.)
Sample Usage:
In the following usage, the “session.findById(“wnd[0]/tbar[0]/okcd”).text =” field is assigned information contained in the variable named ß rapor_kodu ß created in the design.
Again, the text assigned to the same field with the template “|variablename|=” was taken as a collection. For all imported fields, a column with the name variable is opened to the collection and the values value will be the value of the corresponding field.
The beginning of the field to be taken must be written with the format ” |variablename|=”.
Form’s Image
![](/wp-content/uploads/2023/09/SAP-Record-And-Play-3.webp)
Note: You can change the dimensions of the Record & Edit Form page by holding its corners.
Collection Output
![](/wp-content/uploads/2023/09/SAP-Record-And-Play-4.webp)
Activity Input Image
![](/wp-content/uploads/2023/09/SAP-Record-And-Play-5.webp)
SAP Run Transaction
Using the SAP Run Transaction activity, you can run the Transaction specified in the SAP program.
![](/wp-content/uploads/2023/09/SAP-Run-Transaction-1.webp)