Skip to content

Transaction PA40 - Personnel Actions

The following article shows how to use the Transaction service type to automate transaction PA40. The depicted example application uses the transaction PA40 to define personnel actions in SAP.

Prerequisites

The SAP connection assigned to a Transaction service must use an SAP dialog user with enough access rights to edit customer master data.

Create a new Employee in SAP

To create a service that creates new employees in SAP:

  1. Create a new service that uses the Transaction service type.
  2. In the transaction service enter the transaction PA40 and press [Start]. Xtract Universal.iQ starts recording you actions and loads a replication of the SAP GUI that corresponds to the transaction.
  3. Enter a start date for the new employee in the format DD.mm.YYYY. This input can be replaced with a runtime parameter after the transaction is recorded.
  4. Select the action type Hiring.
  5. Click Execute to execute the action and continue to the next screen.
    personnel-actions1
  6. Fill in the data of the new employee.

    Note

    The parameters needed to create new employees are dependent on your customized SAP settings.

  7. Click [Submit] and check if the input is valid.

  8. Click [Save] to save the employee data in SAP and to continue to the next screen.
  9. Optional: If a pop-op window opens in SAP, the message of the pop-up window is displayed in Xtract Universal.iQ. Click [Continue] to close any pop-up windows and continue to the next screen.
  10. Once all data is entered, click [Infotype] > [Exit] to stop the input.
  11. Click [Stop] to start parameterizing, see Documentation: Parameterize Transactions. Make sure to replace the entered name and address of the new employee with runtime parameters to make the service usable for multiple employees.
  12. After defining the parameters, click [Save] to save the service.
  13. In the Services menu, click Run > Service > Run to test the service and copy the service URL.

The service can now be integrated with third-party tools.

Note

When using Transaction, warnings and error messages from SAP are displayed in Xtract Universal.iQ. These messages are not Xtract Universal.iQ specific and should be treated accordingly.



Last update: June 24, 2026