Generischer BAPI Aufruf mit Cocoon
<?xml version="1.0"
encoding="UTF-8"?>
<page
xmlns:xsp="http://apache.org/xsp"
xmlns:gosap="http://www.gosap.de/taglib"
xmlns:log="http://apache.org/xsp/log">
<bapi
name="BAPI_SFLIGHT_GETLIST">
<tables
name="BAPI_SFLIGHT_GETLIST">
<table type="TABLE"
desc="Liste von Flügen" name="FLIGHTLIST"
offset="0" length="10"
optional="false">
<field type="CHAR"
desc="Kurzbezeichnung der Fluggesellschaft"
name="CARRID" offset="0" length="3"
optional="false"/>
<field type="NUM"
desc="Code der Flugverbindung" name="CONNID"
offset="3" length="4"
optional="false"à</field>
...
</table>
</tables>
<import>
<param type="CHAR"
desc="Nachmittags starten (Einschränkung)"
name="AFTERNOON"
offset="0"
length="1" optional="true"/>
<param type="CHAR"
desc="Fluggesellschaft (Einschränkung)"
name="AIRLINECARRIER"
offset="1"
length="3" optional="true"/>
...
</import>
<export>
<param type="STRUCTURE"
desc="Fehlermeldungen" name="RETURN"
offset="0" length="6"
optional="false">
<structure
name="RETURN">
<param type="CHAR"
desc="Meldungstyp: S Success, E Error, W Warning, I Info, A
Abort"
name="TYPE"
offset="0" length="1"
optional="false"/>
<param type="CHAR"
desc="Nachrichten, Nachrichtenklasse"
name="ID"
offset="1"
length="20" optional="false"/>
...
</structure>
</param>
</export>
</bapi>
</page>