Open Hub - Header in flat file

Hi there Experts.
I am working with a opeb Hub destination, and so far everything has been straight forward.
But i need to include headers in the first line of the file.
By default the Open Hub i generating a Control File, so it is possible to look in this file, but the requirements from the customer is to have fieldnames inside the same file as the data.
Any help will be awarded.
Ingrid

I have faced this. There is no delivered mechanism. One work around would be (after the extraction) to open the file using ABAP and paste the header. If one tries to figure (in the start routine or end routine) that this is the first record of the first package, one faces the problem with data types (header has a CHAR data types where the fields of the file may not all be CHAR). We eventually convinced the user to drop the requirement. As you mention, there are generated files with header information.
Not sure this helps.

Similar Messages

  • Open Hub Destination with Flat File - Structure file is not correct

    Using the new concept for Open Hub destination (NOT an InfoSpoke).
    Output is to a Flat File. Remember that when output is to a flat file 2 files are generated: the output file and a structure file (S_<name of output file>.CSV)
    The Output file structure corresponds to the structure defined in the Open Hub destination.
    However, the S_ (structure) file does not reflect the proper structure. The S_ file lists all fields sorted in alphabetical order based on the field name, instead of listing all fields in the correct order that they appear in the output file.
    I have not found any settings that I can modify for the S_ file. When using InfoSpokes the S_ file is correct and I do not have to do anything.
    The issue is that the S_ file cannot be used to describe the output file. This is a problem.
    Anyone knows a solution to this issue? The goal is to get the S_ file to reflect the proper structure.
    I could not find any Notes on this. Please do not send general help links, this is a specific question.
    Thank you all for your support.

    Hi,
    However, the S_ (structure) file does not reflect the proper structure. The S_ file lists all fields sorted in alphabetical order based on the field name, instead of listing all fields in the correct order that they appear in the output file.
    As I know and checked this is not the case. The S_ file has the fields in the order of infospoke object sequence ( and in transformation tab, source structure).
    I would suggest you to control it again.
    Derya

  • Using open hub to create a file on another server

    Hello everyone,
    I am wanting open hub to create a file, but create it on a different server (a file sharing server not associated with SAP).  Both BW and this file share server run Windows.
    Can this be done using logical files  (FILE transaction) or other configuration?
    I am aware of some other people posting here that send the file from open hub to DIR_HOME and then have created an OS command (SM49) to copy to the other file share server.  Also I know one could also write an ABAP to FTP the file from this location out to the file share server as well.
    I was hoping that FILE transaction would allow this but so far I have not had any luck with it.
    Many Thanks,
    Kevin

    All,
    Found out that this can be done, you can send a flat file from BW to a completely different server in one step, no need for SM49 or AL11 or FTP or ABAP program in the middle.  The trick lies in the configuration in transaction FILE.
    FILE transaction configuration steps:
    Step 1 - Define Logical File Path - just a place holder here
    Step 2 - Assignment of Physical Paths to Logical Path, here is where you enter the server & path but not a filename, for example
    \\server_swvs01\SAPFILE\<SYSID>\BPC\Cust_R3_sales\<FILENAME>
    Step 3 - Define Cross-client Logical File Name, here is where you specify the actual file name to be written to the file share on the other server in field "Physical file", just make sure and link this to the Local path you created in Step 1 above.  You can also use system variables in the physical file name or hard code it all.
    your_file_name.csv
    Hope this helps someone
    Cheers,
    Kevin

  • Open Hub: How-to doc "How to Extract data with Open Hub to a Logical File"

    Hi all,
    We are using open hub to download transaction files from infocubes to application server, and would like to have filename which is dynamic based period and year, i.e. period and year of the transaction data to be downloaded. 
    I understand we could use logical file for this purpose.  However we are not sure how to have the period and year to be dynamically derived in filename.
    I have read in sdn a number of posted messages on a similar topic and many have suggested a 'How-to' paper titled "How to Extract data with Open Hub to a Logical Filename".  However i could not seem to be able to get document from the link given. 
    Just wonder if anyone has the correct or latest link to the document, or would appreciate if you could share the document with all in sdn if you have a copy.
    Many thanks and best regards,
    Victoria

    Hi,
    After creating open hub press F1 in Application server file name text box from the help window there u Click on Maintain 'Client independent file names and file paths'  then u will be taken to the Implementation guide screen > click on Cross client maintanance of file name > create a logical file path by clicking on new entiries > after creating logical file path now go to Logical file name definition there give your Logical file , name , physical file (ur file name followed by month or year what ever is applicable (press f1 for more info)) , data format (ASC) , application area (BW) and logical path (choose from F4 selection which u have created first), now goto Assignment of  physical path to logical path > give syntax group >physical path is the path u gave at logical file name definition.
    however we have created a logical path file name to identify the file by sys date but ur requirement seems to be of dynamic date of tranaction data...may u can achieve this by creating a variable. U can see the help from F1 that would be of much help to u. All the above steps i have explained will help u create a dynamic logical file.
    hope this helps u to some extent.
    Regards

  • Open Hub export to ASCII file

    Is it possible to export infoprovider data through open hub to an ASCII formatted file? How would we do that in BI 7.0?

    Hi,
    You can use TCode RSANWB to goto APD and u can export data from any infoprovider to Flat File .
    Check this link on APD:
    http://help.sap.com/saphelp_nw04/helpdata/en/49/7e960481916448b20134d471d36a6b/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/49/7e960481916448b20134d471d36a6b/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/96939c07-0901-0010-bf94-ac8b347dd541
    Rgds
    SVU123

  • Header in flat file destination (ssis)

    Hi
    I am creating a header in the flat file destination which has some hard coded values and record count which will get its value from a variable assisgned to a row count transformation in the package.
    There is no problem in hard coded value but when i try to get the value of record count, i always get zero.
    This is how i am doing it.
    In the flat file destination, when we open flat file destination editor, i hard code the values which i want in the HEADER itself right there in the editor.
    For the record count, i go properties of the flat file and select expression. In the expression editor, in property, i am selecting 'HeaderRowDelimiter' and drag that variable in the expression box.
    Let me know if there is any suggestion.
    Thanks

    The value of the rowcount is only known AFTER the Data Flow Task is completely finished... and there header is writen before that.
    Here are some examples:
    http://agilebi.com/jwelch/2008/02/08/adding-headers-and-footers-to-flat-files/
    http://social.msdn.microsoft.com/Search/en-US/sqlserver?query=add%20header%20and%20footer%20ssis&rq=meta:Search.MSForums.ForumID(00e50af7-5f43-43ad-af05-d98b73c1f760)+site:microsoft.com&rn=SQL+Server+Integration+Services+Forum
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com

  • Open Hub Header and Trailer Record.

    Hi,
    For the Open Hub Destination
    Destination Type is File,
    Application server.
    Type of File Name: 2 Logical File name.
    How to to the get the Header and Trailer Record which will contain Creation Date, Creation Time and Total number of records.
    Header record Layput :
    Creation Date (YYYYMMDD)
    Creation Time (HHMMSS)
    Total record Count
    Trailer record Layout:
    Total number of Records in the file and
    XXXX( Key Figure ) Total.
    Thanks in advance.
    Regards,
    Adhvi.

    Hi Venkat,
    write a UDF in following way...
    pass the first parameter as the detail node (cache the whole queue) to the UDF pass the second parameter as the trailer countto the UDF
    now loop through the detail records get the count with a counter variable
    check the counter against the trailer count outside the loop
    if it doesnot match trigger the alert from the UDF itself
    Check the below link for triggering alert from an UDF
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function

  • Open Source API for Flat Files?

    I did some searches on SourceForge for a flat-file serializer and deserializer. I know flat files are simple, but I did want to find something that allowed schema-like validations to be declared and enforced. The projects I saw were either abandoned or too simple. Does anyone know of a good open source flat file API? Thanks!
    - Saish

    Ok. That one is nice, especially in terms of defining header and trailer records. I also found this one http://sourceforge.net/projects/flatworm/ which allows for multi-line flat-files, which is also nice.
    The problem is both only deal with parsing. Granted, writing a serializer even via reflection would not be all that tough. But a few Dukes for you!
    - Saish

  • Open hub error when generating file in application server

    Hi, everyone.
    I'm trying to execute an open hub destination that save the result as a file in the application server.
    The issue is: in production environment we have two application servers, XYZ is the database server, and A01 is the application server. When I direct the open hub to save file in A01 all is working fine. But when I change to save to XYZ I´m getting the following error:
    >>> Exception in Substep Start Update...
    Message detail: Could not open file "path and file" on application server
    Message no. RSBO214
    When I use transaction AL11, I can see the file there in XYZ filesystem (with data and time correspondent to execution), but I can´t view the content and size looks like be zero.
    Possible causes I already checked: authorization, disk space, SM21 logs.
    We are in SAP BW 7.31 support package 6.
    Any idea what could be the issue or where to look better?
    Thanks and regards.
    Henrique Teodoro

    Hi, there.
    Posting the resolution for this issue.
    SAP support give directions that solved the problem. No matter in which server (XYZ or A01) I logon or start a process chains, the DTP job always runs in A01 server, and it causes an error since the directory doesn´t exist in server XYZ.
    This occurs because DTP settings for background job was left blank. I follows these steps to solve the problem:
    - open DTP
    - go to "Settings for Batch Manager"
    - in "Server/Host/Group on Which Additional Processes Should Run" I picked the desired server
    - save
    After that, no matter from where I start the open hub extraction, it always runs in specified server and saves the file accordingly.
    Regards.
    Henrique Teodoro

  • Open Hub Extract in .txt file

    Hi Expert,
    A abc.txt file is getting populated as a target of open hub. That file is populated through a process chain. DTP monitor screen shows that output data volume is around 2.8 million everyday, but I am not been able to find data more than 1250000. Every time whatever be the data target in dtp monitor it shows me 1250000 in the txt file. Is there any limitation on the number of rows in .txt file.
    Please help.
    Regards,
    Snehasish

    thanks for the reply Geetanjali.
    Yeah one field routine is there , but from dtp monitor screen i can see that total record count is 2608000 but when i m chking from the .txt file . it is showing me 1250000 irrespective of the dtp monitor record count. Moreover, I m just populating 3 column in my target txt file.

  • Open Hub Services, Format of files

    Hi everybody
    Does anybody knows how to create a CSV file in ascii format using an open hub in a process chain ?
    On my system which is a unicode it seems to be as if I could only produce unicode file when I use the process chain.
    Thank you for your help
    Alex

    Hi,
    Load the data into cube as normal process of process chain, then the second step is u should create an info spoke using RSBO, dran and drop the info spoke after the cube data load, there while u r creating the Info spoke it will give u the option of file transfer whethere u want to tansfer it as a CSV , ASCII file.Hope this helps.

  • Open hub destination problem - .csv file is empty

    Hi everyone,
    I am trying to extract data from our BW system using Open Hub Dest. to a .csv file
    DTP runs successfully means show total no. of records but when I see in AL11 then records are not in .csv file that is .csv file is empty.
    How to figure out the problem?
    Best regards
    Ahmad

    @Jagadeesh:
    if I correctly understood you, you mean to say that first I should run DTP and save to an excel file to see if it shows data or not. This i think is not possible; as when we create OHD then 'Destination Type' we can choose among 'DB table', 'table' and 'third party tool',
    so if I choose 'Table' then 'File Name' is .csv file (same name as the OHD) and can change it to .xls file
    @Arun:
    have permission to write in the folder
    Do you mean creating OH to a Database Table?
    in DTP I have a filter on a Characteristic, when its 1500 records then it works (data is in .csv file) but when 3500 records then .csv file is empty
    no error message, no log
    Regards
    Ahmad

  • Open Hub Destination Table Vs File

    Hello Experts,
    We have a requirement to send data from BW to 3rd party system every day. In the Open hub destination we have two options for the target.
    1. Table
    2. File
    ETL tool like Informatica will extract the data from table or file into 3rd party sytem.
    Which way is the best in performance and maintenance?
    Thanks in advance
    Sree

    Hi,
    If you follow the delta mechanism then table is good. You can also go for File not a problem. See the both eamples in the following articles.
    If you use Fiels then go for Application Server option, i.e. AL11 becasue no one can change teh files in this location, you can restrict the authorizations.
    Open Hub Destination: Part 1
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/m-o/open%20hub%20destination%3a%20part%201.pdf
    Open Hub Destination: Part 2
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/m-o/open%20hub%20destination%3a%20part%202.pdf
    Thanks
    Reddy

  • Header/Detail Flat file parsing

    Hi,
    How to define a native flat file schema for a file with following kind of layout i.e., Master record followed by Multiple detail record. I need to have a correlation between the Master and its Detail records.
    MASTER_A1,MASTER_A2,MASTER_A3
    DETAIL_A11,DETAIL_A12,DETAIL_A13
    DETAIL_A21,DETAIL_A22,DETAIL_A23
    MASTER_B1,MASTER_B2,MASTER_B3
    DETAIL_B11,DETAIL_B12,DETAIL_B13
    DETAIL_B21,DETAIL_B22,DETAIL_B23
    DETAIL_B31,DETAIL_B32,DETAIL_B33
    DETAIL_B41,DETAIL_B42,DETAIL_B43
    MASTER_C1,MASTER_C2,MASTER_C3
    DETAIL_C11,DETAIL_C12,DETAIL_C13
    DETAIL_C21,DETAIL_C22,DETAIL_C23
    DETAIL_C31,DETAIL_C32,DETAIL_C13

    http://blogs.oracle.com/reynolds/2009/05/mastering_details_with_flat_fi.html
    Regards,
    Anuj

  • OPEN HUB LICENSE

    Hi gurus,
    I have a question regarding to the OPEN HUB LICENSE. I have seen some old posts where it is said that it is necessary to have a different SAP BI license to use OPEN HUB. I worked in a project in december where I used it and I didn't have any problem with the licenses but I don't know what licenses the company had.
    I would appreciate if somebody could explain me something else about this topic.
    Thanks.

    As far as I know and when I did pre sales - this was the mantra
    If you use BW to extract data into another datawarehouse or other system at all then you need a Open Hub License
    This covers technical open hub extraction AND flat file dumps/xls outputs/oracle tables where you then load the results into another system (ie you don;t have to use Open Hub to technically get the data out but you still need the license)
    The lack of a license does not stop you using the transaction but if SAP catch you.. oops!
    Please contct your SAP account manager in all instances for clarification and pricing

Maybe you are looking for