Skip to Content
author's profile photo Former Member
Former Member

SAP BI - File Interface - Datasource Enhancements

Hi Experts,

I´m facing a situation where I will have to load lots of transaction information using File Interface in SAP BI. Because of the importance of theses files and the size of them, we need to develop a form of file integrity control using 2 records as a header and bottom because the file will be transferred through a data bus coming from several mainframe systems.

To do this, I need to use some ABAP code to check this content and remove the header and the bottom records from the TXT file before it is loaded to the PSA. Because there aren´t any available points to put these ABAP codes (as start rountine fo example) in the File Datasource, I was wondering how I could implement this kind of control.

Any sugestions?

Thanks in advance!

Fábio

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 10, 2009 at 04:44 PM

    You can create an ABAP program that will read the TXT file from the source directory, have it remove the header and footer records (hopefully there's something that makes those records easily identifiable) and then either create a new flat file or load to a custom table that you created in tcode SE11.

    This ABAP program would then be the first step, prior to the InfoPackage extraction to PSA, in your Process Chain leg.

    The ABAP program would be fairly simple in that you'd read the TXT file into an internal table (ITAB) and if the header and footer records are easily identifiable, use a DELETE statement on that ITAB with a WHERE clause and finally LOOP on the modified ITAB and insert into another flat file or INSERT into a custom (Z* or Y*) table. If you load to a custom table, you can then create a generic DataSource, in BW, with that custom table as the source. You'd want to have your ABAP program first delete the contents of that table before inserting new records to it however.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.