0% found this document useful (0 votes)
80 views16 pages

Session On SAPI

This document provides an overview of SAPI (SAP Interface) which interfaces between SAP and external bolt-on systems for master and transactional data. It describes the basic SAPI architecture as a series of scheduled ABAP batch jobs to stage and load data. Master data includes customer, material, passwords, and access categories. Transactional data includes orders, invoices, deferred revenue, and service notes. SAPI consuming systems access this data. The SAPI database contains batch and transaction tables. SAPI programs retrieve IDoc data and fill staging tables in Stage 2, then retrieve data from staging tables and send to bolt-on systems in Stage 3.

Uploaded by

Sai Kiran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views16 pages

Session On SAPI

This document provides an overview of SAPI (SAP Interface) which interfaces between SAP and external bolt-on systems for master and transactional data. It describes the basic SAPI architecture as a series of scheduled ABAP batch jobs to stage and load data. Master data includes customer, material, passwords, and access categories. Transactional data includes orders, invoices, deferred revenue, and service notes. SAPI consuming systems access this data. The SAPI database contains batch and transaction tables. SAPI programs retrieve IDoc data and fill staging tables in Stage 2, then retrieve data from staging tables and send to bolt-on systems in Stage 3.

Uploaded by

Sai Kiran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 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?

You might also like