This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
This Article demonstrates the step by step process to upload Flat file to an ABAP Table then load the same into SAP BI/BW objects via process
Author: Obaidullah Shaikh
Company: AG Technologies
Created on: 15 September 2011
Author Bio
Obaidullah shaikh is a SAP BI Consultant with AG Technologies. He has good skill in technical areas (ABAP) and he has experience of multiple custome reports development and has experience of Migration/upgradation projects as well.
Upload Flat File in SAP BI/BW
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
ABAP Program ................................................................................................................................................... 4
Create Data source ............................................................................................................................................. 6
Replicate that Datasource .................................................................................................................................. 7
Create Info Package ........................................................................................................................................... 8
Create Process chain ......................................................................................................................................... 9
Create an Event ................................................................................................................................................ 10
Start Condition of Process Chain .................................................................................................................. 10
Schedule the process chain .......................................................................................................................... 10
Create a T-Code ............................................................................................................................................... 11
Run that T-Code ............................................................................................................................................... 12
Check the Chain log ......................................................................................................................................... 13
Related Content ................................................................................................................................................ 14
Disclaimer and Liability Notice .......................................................................................................................... 15
Upload Flat File in SAP BI/BW
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
Most of the companies are maintaining some of the transactions in Flat file (Excel Sheet) and they want to load that flat file to SAP BI, there are multiple ways to load Flat file into BW.
BI consultant will maintain the Data flow for that flat file and whenever file will come via an email or any other way, BI person will load it manually on daily basis but this is not the right way to load flat file.
BI consultant uses any tool to transfer the file from client to Application server and load from there via process chain. But this is also not a best practice in all the types of operating system specially Windows. Because while transferring the file virus will also move and that will create problem in server so the best way is to transfer it via ABAP Code.
This document will discuss how can load data from file to ABAP table and then we will load the same to BI object.
User just needs to run a Transaction code and select the corresponding file, he want to load.
Create table
Create a table in BW that will store the records structure of that table will same as flat file
Upload Flat File in SAP BI/BW
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.