1.what Is BDC and Explain The Real Time Scenarios Where We Need To Write The BDC Programs ?
1.what Is BDC and Explain The Real Time Scenarios Where We Need To Write The BDC Programs ?
1.What is BDC and Explain the real time scenarios where we need to write the BDC
Programs ?
Batch Data Communication (BDC ) is a batch data interfacing technique used for
uploading Bulk of data into the SAP R/3 system.
BDC Programming is an Inbound Data Transfer Technique to transfer the Data from
SAP/Non-SAP into SAP .
SAP
SAP
Non-SAP
Note : BDC works by simulating the user input from transactional screen via an
ABAP program.
Note : Any Transaction in SAP Can Create Only One Record at a time, but the
Procedure to Create any number of Records through the same transaction is
always SAME.
SCENARIO: 1
When migrating from NON-SAP to SAP all the master data should be transferred into
SAP.
SCENARIO:2
When working with third party systems like customers,vendors,banks etc.
SCENARIO:3
When transferring the data from non-SAP departments into SAP within the organisation.
Page 1 of 15 Prepared By : Ganapati Adimulam
eMAX Technologies,AmeerPet,Hyderabad
Ph : +91 40 65976727.
BDC
We Never Compromise in Quality. Would You ?
_______________________________________________________________________
_
2.List out the SAP supplied programs(Direct Input Methods) to load master data?
When the records are uploaded in database table by Session Method error record is stored
in the log file. In Call transaction there is no such log file available. Usually we need to
give report of all the error records i.e records, which are not inserted or updated in the
database table and this can be done by following Method.
Update :
Asynchronous Update : it will update transaction level and lt goes next record.
later it updates database level.
synchronous Update - It will update transaction level and it goes database level.Then it it goes
to the Next Record.
Processing :
Synchronous - Only after a particular transaction is completed you can do the next Transaction
BDCDATA:
BDCMSGCOLL:
STEP1: Analyze the SAP Transaction i.e. to Be automated , to find out the
procedure to run the transaction i.e. find out list of screens, Screen numbers ,Order of
screens and screen field name for the fields for which data is to be transferred.
NOTE :Along with input field names we should also find out the screen field names for
ENTER ,SAVE,ACTIVATE,CREATE etc.
NOTE:Repeat the append procedure for all the screens in the order of
the screens and also for all the fields for which the data has to be transferred .
NOTE:After completion of the append procedure we get all the
information required to run the transaction in ITAB i.e. (IT_BDCDATA).
STEP5:
IF Session Method,
Insert the IT_BDCDATA into the session by calling the Function
module BDC_INSERT.
ENDLOOP.(FOR IT_DATA).
SHDB is a transaction to record all the steps while executing the session method.
Instead of collecting all the Screen no and Screen Field Names by Pressing F1 on the
required field -> Technical Information, we can simply record all the details through
recording.
Through recording, we can generate the Source code for BDC Programs and we change
the same according to our requirements.
10.What are different Display modes of Call Transaction method and explain them?
(OR)
We Can also SUBMIT the Program RSBDCSUB within the BDC Session
Program itself.
• session name
Batch input sessions are started automatically rather than by hand. The RSBDCSUB
program can be set up to start all sessions that arrive in an R/3 System, or it can be fine-
tuned to start only batch input sessions that you expect.
We look into the list of incorrect session and process it again to correct incorrect session,
we analyze the session to determine which screen and value produced the error. For small
errors in data we correct them interactively otherwise modify batch input program that
has generated the session(If Required) or many times even the data file.
Step 2:Insert the Transaction code and the corresponding screen &field details
(IT_BDCDATA) to process the transportation into the Session.
Step 4:Process or run the session through SM35 to process the session Manually or
Schedule the Program RSBDCSUB to Schedule it in Background.
It is to Consider the Default Screen Resolution (standard screen size) . Because While
Working with Table Control in BDC , the Source Code depends on the No of lines
visible and which depends on the Screen resolution and to make sure the source code
works in the same way in all the systems, we set the Default Size option to ‘X’.
CTU_PARAMS:
FIELD NAME SHORT TEXT
DISMODE Display Mode (A/E/N)
UPDMODE Update mode for CALL TRANSACTION
USING(A/S)
CATTMODE CATT mode for CALL TRANSACTION
Page 9 of 15 Prepared By : Ganapati Adimulam
eMAX Technologies,AmeerPet,Hyderabad
Ph : +91 40 65976727.
BDC
We Never Compromise in Quality. Would You ?
_______________________________________________________________________
_
USING...
DEFSIZE Default screen size
Note : The Screen Field Names are Fixed i.e. KNA1-NAME1,KNA1-SORTL etc.
Note : Here in the table control, field names depends on the no of Bank details for each
DATA : V_INDEX(2) TYPE N.
customer , DATA
i.e. theV_FNAM
row no in eachBDCDATA-FNAM.
LIKE field name is Dynamic.
LOOP AT IT_BANKS INTO WA_BANKS.
Processing Logic to build the field names in the table Control.
*IS INCEMENTED BY 1 EACH TIME FOR ALL RECORDS
Ex : IT_KNB1 is V_INDEX
the table =for
SY-TABIX. “LOOP COUNTER
list of Customer bank details.
Result of
*FOR BANKS
CONCATENATE ‘KNBK-BANKS(‘ V_INDEX ‘)’ INTO
CONCATENATE
V_FNAM. Is KNNK-BANKS(01)
1st record
Page 11 WA_BDCDATA-FNAM
of 15 = V_FNAM. Prepared By :for
Ganapati
KNNK-BANKS(02)
Adimulam
for
WA_BDCDATA-FVAL = WA_BANKS-BANKS.
eMAX Technologies,AmeerPet,Hyderabad
APPEND WA_BDCDATA TO IT_BDCDATA. 2 nd
record
Ph : +91 40 65976727. Etc..
*NOTE : REPEAT THE SAME PROCEDURE FOR ALL FIELDS
IN THE ROW OF THE TABLE CONTROL.
ENDLOOP.
BDC
We Never Compromise in Quality. Would You ?
_______________________________________________________________________
_
DGFFSDFFD
Note : While incrementing the V_INDEX, we need to Check for the Max no of records
for the Current Page, Once reached, We need to Click On Next Page so that the
OK_CODE , ‘=P+’ should be APPENDed to IT_BDCDATA and Initialize the Counter
V_INDEX.
17.While uploading a flat file through BDC Call Transaction, the system
suddenly get CRASHED. How do I know many records have been updated?
Even though it is bulk data processing, but updating the database is always record by
record only . So After Calling the Transaction , Maintain the Status of the Calling
transaction into one Custom Table including the record details.
So that We can check the Custom table for the latest details.
19 .What is BDCRECX1 ?
Is a standard Program, Generated from recording which contains all the re-usable
delcerations and also the re-usable Subroutine Definitions for all the BDC Programs.
Execute RSBDCLOG.
EXERCISES:-
Theory :
Practical :