SAP BDC Interview Questions and Answers
Question - 51 : - What are the features of Recording Function ?
Answer - 51 : -
recording transaction runs
creating batch input sessions from the recorded transaction runs.
Generating a batch input program from the recorded data.
Question - 52 : - What is synchrnous database update ?
Answer - 52 : -
During the processing, no transaction is stored until the previous transaction has been written to the database. This is called Synchronous database update.
Question - 53 : - How do you set up batch process?
Answer - 53 : -
- Data analysis: Analyze the data that is to be transferred to the SAP System.
- Generate SAP structures: Generate SAP data structures for incorporation into your data export program.
- Develop transfer program: You can write the program in ABAP/4 or as an external program.
- Create sequential file: Export the data that is to be transferred, to a sequential file.
- Create batch input program: ABAP/4 batch input program that will read the data to be transferred from the sequential file.
- Process batch input data: Process the data and add it to the SAP System. You can do this either by:
- batch-input session method or Call transaction method.
- Analyse results: Check that all data has been successfully processed.
- Analyse Error session: Correct and re-process erroneous data.
Question - 54 : - Where do you use BDC?
Answer - 54 : -
transferring data from another system when you install your SAP System
regularly transferring data that is captured by a non-SAP system in your company into the SAP System. Assume, for example, that data collection in some areas of your company is still performed by a non-SAP system. You can still consolidate all of your data in the SAP System by exporting the data from the other system and reading it into the SAP System with batch input.
You can also use batch input to transfer data between two R/3 Systems. However, there are more direct methods for doing this, such as RFC (remote function calls).
Question - 55 : - What has to be done to the packed fields before submitting to a BDC session?
Answer - 55 : -
Declare these fields in the internal table as characters and the length of the field should be same as the field length of the field's data element. This internal table is used to hold the data fetched from the sequential file using WS-upload function module
Question - 56 : - If I Want To Execute A Program Only In Background Not In Foreground Is There Any Option For This?
Answer - 56 : -
In Session method, in SM35 when you process the batch, you need to select the radio button Background, so it will run in background. In call transaction you need to mention the Mode value as N (no screen), so that it will run in background.
Question - 57 : - Where Can You Find Error Log For Call Transaction?
Answer - 57 : -
- Declare it_bdcmsgcoll type bdcmsgcoll.
- Declare to hold messages like Message (100) and w_msg TYPE bdcmsgcoll,
- Call transaction like below
- CALL TRANSACTION MM01 USING IT_BDCDATA UPDATE S MESSAGES INTO IT_BDCMSGCOLL.
- IF SY-SUBRC <> 0.
- loop at it_bdcmsgcoll into wa_bdcmsgcoll where w_msg = E;.
CALL FUNCTION MESSAGE_TEXT_BUILDEXPORTINGmsgid = wa_bdcmsgcoll-msgidmsgnr = wa_bdcmsgcoll-msgnrmsgv1 = wa_bdcmsgcoll-msgv1msgv2 = wa_bdcmsgcoll-msgv2msgv3 = wa_bdcmsgcoll-msgv3msgv4 = wa_bdcmsgcoll-msgv4IMPORTINGmessage_text_output = w_message.FM will genrate meaningful Error Discription :w_message.
Question - 58 : - How To Write A Code For Multiple Transactions?
Answer - 58 : -
you should Write BDC_Insert Function module Twice. Remaining Function modules like BDC_group_open and BDC_close_group should be write once there...you can pass two or more transaction code in BDC_insert function module.
Question - 59 : - Power Is Interrupted While Transferring Data From Internal Table To Application Server. How Will You Determine Many Records Are Transferred In Session Method And Call Transaction Method?
Answer - 59 : -
Check no. of records already updated and delete them from input file and run BDC again.
Question - 60 : - How Do You Send Files To The Legacy Systems From Sap And Vice Versa? How Does One Know That The Legacy Files Have Come On To The Sap Server You Are Working On?
Answer - 60 : -
BDC is used to transfer the data from legacy system to SAP system & vice versa...
We can send the files from SAP to legacy system thru datasets (open dataset for output...) & GUI_download (F'n Module)..