BDC Notes
BDC Notes
BDC Notes
Example: A Legacy system that is to be replaced by SAP has say 1000 Customers, 2000
vendors and 3000 materials. All this data needs to be transferred to SAP. In such cases, we can
use BDC.
Session Method
Call TRANSACTION Method
CALL DIALOG (Outdated)
What is the difference between Call Transaction Method and the Session method?
Is there any method apart from BDC for data upload to SAP?
Apart from BDC and LSMW, you can use BAPIs to upload data into SAP.
BAPIs should be preferred over BDCs, because they process data faster than BDC.
A BAPI is faster since it updates Database "directly". Whereas BDC calls transaction and goes
through the whole screen sequence as any user would do.
BAPI BDC
BAPI is faster than BDC. BDC is relatively slower than BAPI.
BAPI directly updates database. BDC goes through all the screens as a normal
user would do and hence it is slower.
No such processing options are available in Background and Foreground processing
BAPI. options are available for BDC.
BAPI would generally used for small data BDCs would be preferred for large volumes
uploads. of data upload since background processing
option is available.
For processing errors, the Return Parameters Errors can be processed in SM35 for session
for BAPI should be used. This parameter method and in the batch input program for
returns exception messages or success Call Transaction method.
messages to the calling program.
BDC_OKCODE: is used for storing commands during the recording. Like '/00' is the
command for 'ENTER' Key.
BDC_CURSOR: contains the cursor position. it contains the field in which cursor will be.
Example code:
perform bdc_field using 'BDC_CURSOR'
'PROJ-PSPID'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
SM35
What is the ABAP program name to process the batch input session automatically?
RSBDCSUB
OPEN DATASET ---> opens the file (dataset) either in read /write mode.
CLOSE DATASET ---> Close the dataset once the date has been read.
GUI_DOWNLOAD --> to write data from internal table to a file on presentation server
What is the function modules used to create batch input session?
Parameters Purpose
CLIENT Client in which session to be processed
GROUP Name of the session
HOLDDATE Lock date
KEEP Keep session even after successful processing
This is used to check the user authorizations to
USER run the transactions
Parameters Purpose
TCODE Transaction Code
DYNPROTAB
Can we use call transaction and session method in the same program? Explain?
Yes, we can call call transaction and session method in same program, generally we use call
transaction for updating and session method for logging errors in the same program.
What is the last entry in all BDC tables?
In all BDC tables the last entry is to save the data by using the field name BDC_OKCODE and a
field value of ‘/11’
Report Notes
What is a report?
Report is a program used to fetch data from the database tables and display it on the screen. It
has 2 screens
1) selection screen (optional)
2) list or output screen
SKIP generates a blank line, while the NEW-LINE causes the control to move to next line.
What is hotspot?
Hotspot is an area on the list where the mouse pointer turns into an upright hand symbol. A
single click on the hotspot does the same thing as a double-click.
The HIDE statement hides the contents of the line along with the line numbers in a system
defined HIDE area. This is used in interactive reporting.
INITIALIZATION
AT SELECTION-SCREEN
START-OF-SELECTION
END-OF-SELECTION
TOP-OF-PAGE
END-OF-PAGE
20
What is the name of the system variable that holds the contents of the selected line in
interactive reporting?
SY-LISEL
What is ALV?
ALV stands for ABAP List Viewer. ALV gives us a standard List format and user interface to all
our ABAP reports. ALV is created by a set of standard function modules provided by SAP.
What are the uses of ALV reports?
Sorting of records
Filtering of records
DOUBLE_CLICK it is an Event. it is used for to print Interactive Report. This is mainly used in alv
report for ex. Dc event for double-clicks for e_row. (E_row is parameter).
How to make use of 'EDIT', and 'SAVE' option in ALV?
EDIT field is used to edit data at output screen. This is declaring in Feildcat Level only for ex: EDIT
= 'X'.