Sie sind auf Seite 1von 16

SAPI Overview

Sai Kiran S
Prepared on 26 April 2013
SAPI
SAP Interface
Interface between SAP and a variety of external
(Bolt-on) systems for master & transactional
data
Master data:
Customer (CUST)
Material (MATL)
Passwords (WLPW)
Access Categories (WLAC)
Transactional data:
Order/Subscription (MYR, Deal, CMB,
Promotion, MLA data) (ORDR)
Invoice (INVC)
Deferred Revenue (DREV)
Service notes (SERV)


SAPI-Consuming Systems:
Commissions (ORDR, INVC)
QuickView+ (CUST, MATL, ORDR, WLPW,
WLAC?) Tagged for Deletion: WLQV 7/2011
RAP (INVC, DREV)
Royalties (INVC, DREV)
WIBS (CUST, others?)
Mastermind/MDB/CRM (SERV, WLPR)
Data Warehouse (SERV)
Basic Architecture:
Series of scheduled ABAP batch jobs:
Stage 1: Create IDoc/data gathering
Stage 2: Put IDoc/data segments into a staging
table (still in SAP)
Stage 3: Load a batch of segments into the
external SAPI database
SAPI Database Schema
Batch table (one record per to system per batch)
System from/to
Data class (ORDR, CUST, etc.)
Processing status, dates
Total counts
Transaction table
Batch ID, Source System
Transaction serial, sequence #s
Data class, type
Transaction data (structured data payload field)

SAPI Programs
Stage 2 Program:-
SE38 - ZCAXXIO001_STAGING_OUT_TABLE
This program retrieves the concerned IDOC data
(customer / Order ) and fills the corresponding
staging tables:-
ZTCA_STG_CUS_OUT
ZTCA_STG_INV_OUT
ZTCA_STG_MAT_OUT
ZTCA_STG_ORD_OUT
SAPI Programs
Stage 3 Program:-
SE38 - ZCAXXID002STAGING_OUT_DB2
This program retrieves the data from the staging
tables and sends them to concerned Bolt-On
systems.

If Successfully sent, it updates the log table
ZTSD_SAPI_LOG and TVARV table with name
'Z_OB_LAST_EXTRACT_DATE .
Customer Test scenario created on 03 Apr 2013 :
System:- TR2
Customer Data Before changes
Staging table entries Before changes
Stage 1 Job ZRBDMIDOC (a job OCAT1205SAPICUSTS1 is run for
every 30 minutes). I manually run it for time being.
After the Stage 2 job/ program is run, the staging table is
updated with the partner changes:-


After the Stage 2 job/ program is run, Stage 3 Job is run
(Daily once) to send the captured staging table data to
the Bolt on systems.

To know the Job Names (as may get changed), go to the
table V_OP and give the program names (stage2 and
stage3 programs) for a particular day.


Questions?