CallAPI for SAP

The following document includes information and notes required for using the CallAPIInterface de programmation pouvant être exécutée en direct ou à partir d'un autre programme, afin d'exécuter un Script dans le système AE. for SAP.

The RFC Server transfers the scriptEgalement un type d'objet distinct dans l'Automation Engine. to the AE system. It includes a function module called UC4 which can be called in your ABAP programs.

The folder "sample" of the delivery directory includes example programs which show how it is best used.

Function Module UC4

Sound knowledge of ABAP/4 is required in order to understand the following descriptions:

Parameter

Description

Import Parameter

clientEnvironnement indépendant pour la création et l'exécution d'objets dans un système AE. Le nom d'un client est un nombre de quatre chiffres à saisir lors de la connexion d'un utilisateur au système AE. Les utilisateurs et leurs droits y sont aussi définis.Egalement un type d'objet distinct dans l'Automation Engine.(4) type c

AE client

trcflg(1) type c

Trace flag

userabtl(200) type c

Department of the AE user

username(200) type c

Name of the AE user

userpass(32) type c

Password of the AE user

Export Parameter

msg(255) type c

Message

run(10) type c

Run number of the scripts

Tables

script

Script table (a total of 255 characters per line)
Example:
data: uscript(80) type c occurs 30 with header line

Exceptions

 

logon-failed

Logging on to AE was not successful

others

Other error

Example for Calling the Function Module

call function 'UC4' destination 'UC4'
exporting
client = p_clint
trcflg = '0'
userabtl = p_usera
username = p_usern
userpass = p_userp
importing
msg = omessg
run = orunnr
tables
script = uscript
exceptions
logon_failed = 1
others = 99.

See also:

About the CallAPI
Using the CallAPI