Académique Documents
Professionnel Documents
Culture Documents
Business Scenario: Create BDC for Biometric manual entry upload in which Employee check in/out details are recorded to calculate the time in and out and fluctuations (breaks) which are used for checking employees planned working hours and compensation off. When SAP is implemented we need Data to migrate from non-SAP system i.e. Legacy system to SAP system. One way of doing this is BDC (Batch Data Communication). Requirement: - For Developing BDC using CALL TRANSACTION method we need to do the recording of the corresponding transaction & flat file in which data is stored. Flat file can be Text file or Excel File. In CALL TRANSACTION we also have to create the Error Log file. In BDC we use structure BDCDATA for Batch Input, which has following components. PROGRAM - BDC module pool DYNPROBDC Screen number
A BDCDATA structure can contain the batch input data for only a single run of a transaction In CALL TRANSACTION method, we need to create Log for the Error Message, for this we use structure BDCMSGCOLL. For our purpose we are using the file in the following format (Personnel no, Date, Time, Time Event Type) as:
Recoding is done using the Transaction SHDB. Here we have done Recording for the transaction- PA30. 1. Enter t-code SHDB. Create New Recording and pass the T-code as PA30 and click Start Recording. You will receive your PA30 (Maintain HR Master Data) in which you can enter the data and click Save and return to previous screen. The Recording which you get will be in following format:
Page | 1
2. Declare Structure for Error message. 3. Provide the Input File path for your Excel file as well as Error message and Mode in SELECTION SCREEN.
Page | 2
11. If Sy-subrc <> 0. Then pass the error message Through GUI_DOWNLOAD to the Text File. 12. The Report Program is as in the attached file:
Page | 3