Application Integration Guide > CallAPI > Platforms for CallAPIs > CallAPI for SAP

 CallAPI for SAP

The following document includes information and notes required for using the CallAPI for SAP.

The RFC Server transfers the script to the AE system. It includes a function module called AE 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 AE

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

 

Parameter

Description

Import Parameter

client(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