SAP BAPI Tutorial

BAPI stands for Business Application Programming Interface. It is a precisely defined interface providing access to processes and data in business application systems such as SAP R/3. This tutorial provides BAPI PDF training materials, Tcodes and Tables

BAPIs are defined as API methods of SAP business object types. BAPIs can be called within the R/3 System from external application systems and other programs.

sap bapi tutorial

Here is the possible menu path to access BAPI menu in SAP.

Logistics – Logistics Execution – Master Data – Transportation – Shipment Costs – ALE Monitoring – Goto – ALE Development – BAPI –


Tools – ALE – ALE Development – BAPI –


Logistics – Logistics Execution – Transportation – Transportation Planning – External Planning System – ALE Monitoring – Goto – ALE Development – BAPI –


Tools – Business Framework – BAPI Development – ALE Development – BAPI –


SAP BAPI Tcodes

Here is a list of possible transaction codes dealing with BAPI in SAP.

SAP BAPI Tables

Here is a list of possible system tables storing BAPI related data in SAP.

Table Fields with BAPI data

Here is a list of possible table fields which are may be used for storing BAPI related data in SAP.

  • COLLINDEX – Position of the BAPI in BAPI sequence
  • SRCSEQID – Position of the BAPI in BAPI sequence
  • DESTSEQID – Position of the BAPI in BAPI sequence
  • NUMINST – Position of the BAPI in BAPI sequence
  • SEQID – Position of the BAPI in BAPI sequence
  • ID – Numerical ID of tool in BAPI Explorer
  • SPEC_ID – Check Number in BAPI Todo Specification
  • WIZARD – Priority of Todo Message in BAPI Wizard
  • EXPLORER – Priority of Todo Message in BAPI Explorer
  • GENERATE – Priority of Todo Message for BAPI/BO Generation
  • RELEASING – Priority of Todo Message for BAPI Release
  • SRCDTYPE – Data type of BAPI parameter
  • SRCROWBEG – Line number in BAPI table
  • SRCROWEND – Line number in BAPI table
  • SOURCESORC – Line number in BAPI table
  • DESTDTYPE – Data type of BAPI parameter
  • DESTROWBEG – Line number in BAPI table
  • DESTROWEND – Line number in BAPI table
  • DATATYPE – Data type of BAPI parameter
  • GM_CODE – Assign code to transaction for BAPI goods movement

Function Modules for BAPI in SAP

Here is a list of possible function modules which may be used with BAPI related processes in SAP.

  • /BA1/ALE_F4_FXV_CHANGE – BAPI -> IDoc: /BA1/ALE_F4_FXV_CHANGE
  • /BA1/ALE_F4_FXV_CREATE – BAPI -> IDoc: /BA1/ALE_F4_FXV_CREATE
  • /BA1/ALE_F4_FXV_MODIFY – BAPI -> IDoc: /BA1/ALE_F4_FXV_MODIFY
  • /BA1/ALE_F4_FX_CHANGE – BAPI -> IDoc: /BA1/ALE_F4_FX_CHANGE
  • /BA1/ALE_F4_FX_CREATE – BAPI -> IDoc: /BA1/ALE_F4_FX_CREATE
  • /BA1/ALE_F4_FX_MODIFY – BAPI -> IDoc: /BA1/ALE_F4_FX_MODIFY
  • /BA1/ALE_F4_IRR_CHANGE – BAPI -> IDoc: /BA1/ALE_F4_IRR_CHANGE
  • /BA1/ALE_F4_IRR_CREATE – BAPI -> IDoc: /BA1/ALE_F4_IRR_CREATE
  • /BA1/ALE_F4_IRR_MODIFY – BAPI -> IDoc: /BA1/ALE_F4_IRR_MODIFY
  • /BA1/ALE_F4_IRS_CHANGE – BAPI -> IDoc: /BA1/ALE_F4_IRS_CHANGE
  • /BA1/ALE_F4_IRS_CREATE – BAPI -> IDoc: /BA1/ALE_F4_IRS_CREATE
  • /BA1/ALE_F4_IRS_MODIFY – BAPI -> IDoc: /BA1/ALE_F4_IRS_MODIFY
  • /BA1/ALE_F4_IRV_CHANGE – BAPI -> IDoc: /BA1/ALE_F4_IRV_CHANGE
  • /BA1/ALE_F4_IRV_CREATE – BAPI -> IDoc: /BA1/ALE_F4_IRV_CREATE
  • /BA1/ALE_F4_IRV_MODIFY – BAPI -> IDoc: /BA1/ALE_F4_IRV_MODIFY
  • /BA1/ALE_F4_SEC_CHANGE – BAPI -> IDoc: /BA1/ALE_F4_SEC_CHANGE
  • /BA1/ALE_F4_SEC_CREATE – BAPI -> IDoc: /BA1/ALE_F4_SEC_CREATE
  • /BA1/ALE_F4_SEC_MODIFY – BAPI -> IDoc: /BA1/ALE_F4_SEC_MODIFY
  • /BA1/ALE_F4_SEV_CHANGE – BAPI -> IDoc: /BA1/ALE_F4_SEV_CHANGE
  • /BA1/ALE_F4_SEV_CREATE – BAPI -> IDoc: /BA1/ALE_F4_SEV_CREATE

BAPI handling Components in SAP

Here is a list of possible components / sub modules which may be dealing with BAPI related processes in SAP. List contains sub module name, then containing component and description.

  • CA-BFA-AAP – B200000067 – BAPI Concept
  • BC-FES-AIT-BAP – HLB0100176 – BAPI ActiveX
  • PPM-PRO-EXT-API – CP40000005 – BAPI Interface for cProjects
  • BC-FES-AIT-CLS – B200000172 – Class Libraries (RFC, BAPI, IDOC) for C++/Java
  • BC-FES-AIT-AST – B200000174 – SAP Assistant, Repository Server and Browser, BOE, BAPI Gat
  • BC-MID-API – HLB0009822 – BAPI Tools (for BAPIs see Note 813411)

SAP BAPI PDF Tutorials