BDC, BAPI,
Enhancement, BADI
ABAP Fundamental
Authors: NghiaNDD
Version: 1.0
Last Updated: 2-Sep-2024
© 2005 FPT-SOFTWARE 04e-BM/NS/HDCV/FSOFT v2.1
BDC, BAPI, Enhancement, BADI
BDC
Submit
Export/Import Data
Parameter ID
BAPI Overview
Enhancement, BADI Overview
BDC (Batch Data Communication)
Batch Input Recording is a sequence of transactions with the screens they
have run through. A screen (program name, screen number) contains the
modified fields (field name and value), the user command executed
(BDC_OKCODE) and the cursor position (BDC_CURSOR).
The recording is stored in the database under a 12-digit name. You can get
a list of available recordings on the initial screen (overview).
You can change a batch input recording using the recording editor. You can
also use the export / import interface to do this.
From an existing recording you can create a batch input session, a
datatransfer program, test data or a function module to transfer the data
BDC - Batch Input Recording
Tcode: SHDB
1.New recording: Start new record
2.Recording: Record name
3.Transaction code: Which Tcode
record?
4.Start recording
BDC - Batch Input Recording
After you have finished working on
Tcode, click back.
All operations will be recorded.
Use can press Process button to
see again
You can use this list to write your
code to call BDC or generate a
program and refer to it
Press Save to save that record and
Back
BDC - Batch Input Recording
Choose the newly
created record
Press Program button to
generate code
BDC - Batch Input Recording
Change code to this form for easy editing
Submit
Use to call another program from a program
Syntax: SUBMIT <Program name> [selscreen_options]
[list_options]
[job_options] [AND RETURN].
Export/Import Data
Transfer data back and forth between functions in a flow
Set data: EXPORT p1 = dobj1 p2 = dobj2 … TO MEMORY ID <ID>.
Get data: IMPORT p1 = dobj1 p2 = dobj2 … FROM MEMORY ID <ID>.
Export data Import data
Parameter ID
Transfer data back and forth between functions in a flow
Get data: GET PARAMETER ID … FIELD <Variable>.
Set data: SET PARAMETER ID … FIELD <Value>.
Or you can set Parameter ID at SU01
BAPI Overview
BAPI (Business Application Programming
Interface) is a predefined interface to data and
processes of an SAP application that is stored in the
business object repository with the basic functions
Create Objects, Query Object Properties, and Change
Object Properties. BAPIs are implemented using
remotely called function modules with the naming
convention
BAPI_business_object_name_method_name that are
not allowed to lead a user dialog. The BAPI Explorer
that lists the function modules for each application is
called using the transaction code BAPI.
Open BAPI Explorer: SAP Easy Access SAP Menu
Tools ABAP Workbench Overview BAPI Explorer
Enhancement, BADI Overview
SAP object is the object that is delivered or created by SAP. Customer object is the object that is
created by a customer.
Purpose: There are many businesses requirement which are not possible in SAP standard and we
need to do enhancement or modification with the help of technical team.
Enhancement is a way to add or change the SAP object functionality without modifying the SAP
object.
The types of enhancement available in SAP
Data dictionary enhancement: Append structure, Customising include
Customer Exit: Functional Exit, Menu Exit, Screen Exit
BTE(Business Transaction Event): Process Interface - Can influence the SAP standard object,
Publish and subscribe interface - Cannot influence the SAP Standard object.
BADI(Business Add-in):
Modification: is a way to add or change the SAP object functionality directly modifying the SAP
object. This is not recommended as it can leads to inconsistency.
Enhancement or Modification? SAP has defined already which object can be modified. Enhancement
is pre-planned by SAP and SAP has already defined what kind of enhancement can be used or not.
Example Enhancement
END
Thank You
Mail: [email protected]