DATA TRANSFERS

Published on December 2016 | Categories: Documents | Downloads: 129 | Comments: 0 | Views: 359
of 7
Download PDF   Embed   Report

DATA TRANSFERS

Comments

Content

DATA TRANSFERS

DATA TRANSFER PROCESSING:

(1) LEGACY DATA FILE: Data is made available in the form of FILE (.xls, .txt) in Legacy system. File can be kept either in Application server or in Presentation server. 99%, data is made available in Application server which is decided at the beginning of project implementation. (2) APPLICATION SERVER: ODS, RDS, and CDS statements are used to transfer data from the file of Application server into the program ODS, TDS and CDS statements are used to send data from ERROR_ITAB of the program into legacy system ODS RDS TDS CDS Open data set Read data set Transfer data set Close data set similar to GUI-UPLOAD similar to GUI-DOWNLOAD

ODS + RDS+ CDS ODS + TDS+ CDS DATASET = FILE

(2) PRESENTATION SERVER: GUI-UPLOAD and GUI-DOWNLOAD function modules are used to transfer data from the file of presentation server into the program. (3) Convert the complete data into character format IT_TEXT. Size also should match. (4) Conversion filter (5) Validation filter (6) Uploading data from ITAB to SAP DATABASE with DATA TRANFER TECHNIQUES

DIRECT INPUT:

This technique makes use of predefined SAP standard programs These programs and its related documentation are found under SAP library or SPRO transaction. These programs do not use SAP screens for data transfer instead they use update Function Modules to transfer data directly into the R/3 Database.

BDC:

This technique makes use of SAP screens to save data into the database. One must use transaction recorder to record a screen sequences. Under this technique, one can has to make use of the following Function modules BDC_OPEN_GROUP BDC_INSERT BDC_CLOSE_GROUP One can also has to make use of the following structures BDC Data BDC MSGCOLL While using call transaction method, one has to make use of ABAP statement call transaction

ALE/EDI:

This technique is mostly used when the data is supposed to be transported in the form of IDOC (Intermediary Document) ALE is used for communication between two sap systems where as EDI for communication between sap and EDI sub-system Internally this technique again uses BDCs or BAPIs these are available in the form of standard Function Modules These are again available in the form of Remote Enabled Function Modules Internally BAPIs use BDC or Update Function Modules This is the only tool that uses other tools. LSMW was introduced from 4.0v onwards, prior to this SAP has provided Data transfer Workbench (DXWB). This tool was primarily used for data transfer using direct input method only but in LSMW, one can use not only direct input method but also other methods like BDCs, BAPIs, ALE, or recording

BAPI:

LSMWB:

TRANSACTION RECORDER:

This is a tool used for recording screen sequences which can further be used in BDC programs. We use this tool for small amount of data to be transferred

NOTES: (1) SAP will take care of Data type but we have to take care of missing data and length of data (2) Statistics of error and good records are maintained in the program (3) We import all legacy data into TEXT_ITAB of program in the character format only

BDC PROGRAM: Step1: conduct sap transaction for the required data in sap system as many times as possible this step is mandatory irrespective of the data transfer tool that we use example: If the requirement is to transfer customer master data then one should conduct XD01 transaction as many times as possible to ensure and identify the mandatory fields and possible values Step2: Use transaction recorder SHDB to record the transaction for which the data is supposed to be transferred Step3: Create a BDC program after recording that has done in step2 Step4: This BDC program does not care of conversions hence if any conversions are required then this program should be modified Step5: Test the program with the help of test data provided NOTES: We can add fields in the work area of the program but we cannot delete existing fields because they are mandatory RSBDCSUB: Submitting program in background Both call transaction and session method have BDCDATA BDCDATA Program Dynbegin Dynpro Fnam Fval

CALL TRANSACTION: Multiple transactions can be possible only in Call Transaction Method Call Transaction Method is far better in performance perspective Call Transaction Method is processed synchronously MSGCOLL returns the messages of call transaction method SESSIONS METHOD: SM35: Batch input session overview We prefer this session method when errors are more in the file Session Method is processed asynchronously

BAPI: BUSINESS APPLICATION PROGRAMMING INTERFACE BAPIs are remote enabled function modules. All BAPIs are remote enabled Function Modules but all remote enabled function modules are not BAPIs BAPIs are made available in the form of BUSINESS OBJECTS that fallow business object programming A typical business object has the following structure (1) Attributes: Data can be changed (2) Key fields: these are required to access the business objects (3) Methods: can be normal function modules, an ABAP program or BAPI (4) Events (5) Interfaces SWO1: To access business objects BAPIs can be accessed either from SE37 or from BAPI BAPIs have the same structure as Function Modules since BAPIs are function modules BAPIs have the import, export, tables and changing parameters but most of the BAPIs do not have exceptions parameter instead all the exceptions are captured in the tables parameter as return table Most of the BAPIs do not have import commit work hence in every column of the BAPI, one should check for exceptions in the return table. If exceptions are found one should call BAPI_TRANSACTION_ROLLBACK If exceptions are not found one should call BAPI_TRANSACTION_COMMIT

LAB EXERCISES: 1. Write a BDC program for transaction XD01 using both call transaction and sessions method 2. Write a program to upload data for transaction KS01 using BAPI 3. Upload data for transaction XK01 using LSMW

INTERVIEW QUESTIONS:

1. What are the various of data transfer techniques you have worked with 2. Which one would you choose and justify your answer 3. What are the different types of files you have worked with 4. How do you work with semi colon separated files 5. How do you covert non-char fields into character type fields 6. Explain in detail the error handling mechanism in BDC and BAPI 7. How do you submit a BDC Session in background 8. What the different processing modes in BDC 9. What the different update modes in BDC 10. Name the function modules used in BDC with their interface parameters 11. How are BAPIs different from normal function modules 12. Why cant we use normal function modules for data transfer 13. What is the difference between RFC and BAPI function modules 14. Name a few BAPIs 15. How are exceptions handled in BAPIs 16. What is the COMMIT concept in BAPIs 17. What are the various steps in LSMW 18. What are the different ways in which data upload can be done using LSMWB 19. What is the use of the following structuresa. BDCDATA b. BDCMSGCOLL 20. How do you work with TABLE CONTROLS during DATA TRANSFER

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close