OHD filename details

Hi Gurus,
I am currently generating a file, through a Process chain, from OHD that contains the BW system timestamp as part of its logical filename. There is a requirement to log the file name generated along with the number of rows..
Is there anyway of getting this informaiton.. Are there any logs that are created for OHDs when they are run that contain this info?
Thanks in advance.

hi,
  plz have look at below threads
how to generate the open hub file format as .txt ?
Open HUB Destination
Open Hub Destination
hope this will be helpful to you
regards
laksh

Similar Messages

  • How to create and write in a file

    Hello Gurus,
    I am creating a file based on the date and time and writing into that. But, I am still getting exception error and all. Kindly, please let me know.
    thanks for all the help...j
    Error:-
    C:\Usage\JavaFiles>java filename "abc"
    Exception in thread "main" java.io.FileNotFoundException:Detail09-2003-
    03:28:04.doc (The system cannot find the file specified)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at TowerDetail.main(TowerDetail.java:30)
    Code sample:-
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.sql.*;
    import java.text.*;
    public class TowerDetail{
    public static void main (String[] args) throws IOException{
    String userName = "user";
    String passwd = "pwd";
    String con_db = "jdbc:odbc:datasource";
    String ssn = args[0];
    Vector results = new Vector();
    Connection con = null;
    CallableStatement cstmt = null;
    java.util.TimeZone tz = java.util.TimeZone.getTimeZone("EST");
    java.util.Date now = new java.util.Date();
    DateFormat df = new SimpleDateFormat("MM-dd-yyyy-hh:mm:ss");
    df.setTimeZone(tz);
    String result = df.format(now);
    String fileName = "Detail"+result+".doc";
    File inputFile = new File(fileName);
    FileOutputStream fos = new FileOutputStream(inputFile);
    PrintWriter pw = new PrintWriter(fos);
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch (Exception e) {
    System.out.println("JDBC Error: "+e.getMessage());
    return;
    try{
    con = DriverManager.getConnection(con_db, userName, passwd);
    cstmt = con.prepareCall("{call dbo.sp_usage_detail(?)}");
    cstmt.setString(1, ssn.trim());
    ResultSet rs = cstmt.executeQuery();
    pw.println("Report "+result);
    pw.println("------------------------------------------------------------------------------------
    while(rs.next()){
    .... write in the file...
    pw.println("------------------------------------------------------------------------------------
    pw.close();
    System.out.println("Your file Detail"+result+".doc is ready!!!");
    cstmt.close();
    con.close();
    }catch(SQLException ex){
    System.out.println("SQLException: ");
    System.out.println(ex.getMessage());
    }catch(NullPointerException e){
    System.out.println("Null Pointer Exception: ");
    System.out.println(e.getMessage());

    Now, I got out of the command prompt and reentered. I didn't set any classpath or anything. I have created a subdir \archive in the C:\ and writing an output file [DetailTower.....doc")into that.
    The DetailTower.class is in C:\Detail\ProjectClass dirctory.
    Now at,
    C:\Detail\ProjectClass\java -classpath . DetailTower "abc"
    I am getting this error:-
    C:\Detail\ProjectClass>java -classpath . DetailTower "999999"
    Exception in thread "main" java.io.FileNotFoundException: c:\archive\DetailTower09-10-2003-06:23:40.doc (The system cannot find the file specified)at java.io.FileOutputStream.open(Native Method)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
            at Detail.main(DetailTower.java:32)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem downloading .xls file

    Hi All,
    Im getting problem when trying to export a spread sheet. Initially teh filename was hardcoded and so it was working fine in IE. The code then was
    response.setHeader("Content-disposition", "attachment; filename=Details.xls");     
    outStream.write(Results.toString().getBytes());
    outStream.close();
    later the reqmt changed to some new naming conventions for the file and so i modified the code like
    SimpleDateFormat formatter = new SimpleDateFormat ("MM/dd/yyyy HH:mm:ss");
    java.util.Date currentDate = new java.util.Date();
    String dateString = formatter.format(currentDate);
    String fileName = dateString+".xls";
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-disposition", "attachment; filename="+fileName);
    the problem im facing now is the in the pop up for download the file name is my servlet name appended with some unknown string which includes numbers and characters. the file type shown is html.If you click save open then a new html page is been displayed with all the values.
    Please help me with this issue.
    Thanks
    Noufal

    Thank you so much Shanu. Its working now. It was my carelesness or rather my ignorance which caused this prob.
    But Im still having a query, the excel sheet is having a [1] appended to the file name for ex 19-Jun-2006 06-46-05[1] and the client is not happy with that.
    What is the reason for that square bracket and is there any way we can cut that off? your help will be greatly appreciated.
    Thanks
    Noufal

  • Time stamp dropping seconds

    I figure someone has had this problem before but didn't see it in the forum anywhere.  I'm adding a time stamp to a file so I've used the "Get Time/Date in Seconds" and wired that to a "Convert to DBL".  This then wires both into an indicator on the Front Panel and into the "Write to Measurement File" Express VI.
    The indicator displays the time stamp just fine but in the file it puts it into scientific notation and cuts off the last 4 digits as well as any fractional seconds.  The time stamp writes to the file every 5 seconds so it is important to have the rest of the time stamp included.  I've tried using probes on the wires to see where things go weird but I get the same truncated value in the wire before and after the indicator.  I thought it had something to do with the Express VI first since the indicator is fine but with it truncated in the wire it seems that the Express VI is indeed saving exactly what is handed to it...but then again the indicator...you can see I've been running in circles over this!  Does anybody know the reason it is doing this and a possible solution?
    Thanks a lot!
    Solved!
    Go to Solution.

    I can't post the exact code because it is being developed for use outside our lab but I've recreated the basics of the problem.  The array would be the collected data and except some filename details and things like that everything relevant to the time and saving is included.  Also settings in the express VI are the same.  Not sure if it will help out.
    Attachments:
    example.vi ‏56 KB

  • FileDownloadActionListener in ADF

    Hi,
    I am new to ADF. Here is my requirement, when I click on OK button, I need to insert the data into database, once that is done, need to download the file from a certain location. For which I have confirgured the command button as below.,
    <af:commandButton text="Insert and Download" id="cb2"
    binding="#{BackingBean.DownloadButton}" visible="true clientComponent="true">
    <af:fileDownloadActionListener method="#{BackingBean.getfile}"
    contentType="text/csv"
    filename="Details.csv"/>
    Inside the getFile method, I have the code to insert the data into the DB and then writing the file data into the output stream.
    The isssue is, when I click OK button, both the operations are not happening. When I change the code to insert only the data, or only to download the file, its happening. I am unable to make both the operations happen at the click of the single button.

    User,
    you post lacks of many information. Please tell us your jdev version.
    Next it would help if you post some code of the bean method showing us what you do in there.
    For a solution you can try what I outlined in this blog http://tompeez.wordpress.com/2011/07/14/validate-data-before-export-via-afexportcollectionactionlistener-or-affiledownloadactionlistener/
    Timo

  • Labview application crash

    Hi
    I have a labview application which generates an Access violation (0xc0000005).
    Unfortunately it appears to crash at different points in the program execution.
    The program is running an ESS task and has usually run serveral temperature cycle before it crashes. Other times it runs fine.
    Looking at task manager, its not running out of memory.
    Its not accessing any network location. 
    Everything is contained within the EXE except for some VIs which are called dynamically and these VIs are contained in a LabVIEW packed library and installed on the same drive as the application.
    I was hoping the log file would provide some useful information that would point to the problem
    see attached
    #Date: 07 Aug 2015 15:56:41
    #OSName: Microsoft Windows XP Service Pack 3
    #OSVers: 5.1
    #OSBuild: 2600
    #AppName: ???_Test_Suite <<<<<removed filename details
    #Version: 11.0.1f1 32-bit
    #AppKind: AppLib
    #AppModDate: 07/08/2015 14:59 GMT
    #LabVIEW Base Address: 0x30000000
    07/08/2015 16:56:23.134
    Crash 0x0: Crash caught by NIER
    File Unknown(0) : Crash: Crash caught by NIER
    minidump id: 1b0d01ab-3630-4f28-957d-758aaf53e606
    &#25;ExceptionCode: 0xC0000005§&#7;N
    0x3072D954 - lvrt <unknown> + 0
    0x3072DD08 - lvrt <unknown> + 0
    0x7C37FDB4 - MSVCR71 <unknown> + 0
    0x7C843E82 - kernel32 <unknown> + 0
    0x00000000 - ???_Test_Suite <unknown> + 0  <<<<<removed filename details
    *** Dumping Bread Crumb Stack ***
    *** LabVIEW Base Address: 0x30000000 ***
    #** DisposeInstrument: "C:\####\common\Instruments.lvlibp\Public\cal 8722.vi\9"   <<<<<removed path details
    #** VILinkObjRemoveCore: "C:\####\common\Instruments.lvlibp\Public\cal 8722.vi\9"  <<<<<removed path details
    *** End Dump ***
    The reference to the lvlibp vi in the lvlog file make no sense as 'cal 8722.vi' wouldn't have been loaded during the ESS routines.
    Are there any tools available that would make the dmp file a bit more readable?
    Any sensable suggests welcome.
    Regards
    Ray Farmer
     

    It seems to me that the issue is coming from some sort of memory violation. It's possible that a certain process is running out of virtual memory. Have you also tried checking the cal 8722.vi to ensure that it works correctly? I know that it's not being called but if it is mentioned in the error report then it's definitely worth making sure it works.
    Additionally, make sure all of your references are being closed properly. It could be that if the program is (or was) stopped suddenly, perhaps using the abort button instead o the stop button, that the references are still open and that is causign the issue.
    What does your program look like? If you attach the code I may be able to more easily determine the cause of the error.
    Regards,

  • Send the OHD database table load details as mail in Process chain

    Hi,
    We have a requirement that after the data is loaded into Open Hub destination we need to send an email to a list of users.
    The mail should contain the Open hub destination name, Calday, Request No, No of records and the message that the load has ended successfully.
    I know how to send an email in the process chain but how to send the details like Open hub destination name, Calday, Request No, No of records in the mail.
    Please suggest.

    Well we got a little idea:
    We have narrowed the req down to the following logic:
    select REQUID,No of records transferre, and the OHD name from RSBKREQUEST table
    where rsbkrequest-requid  = open hub table request
    Also the open hub table should be first sorted in descending order by request ID
    Now the main issue is:
    How to implement this logic and get the details from RSBKREQUEST table and send these details in the mail body.
    This we want to do in the message which is attached to the Open hub DTP load step of the PC. The message will go if the Open hub load is successful.
    In the message we are able to enter the receipient email address but how to add the above mentioned details.
    Actually we are trying to avoid the ABAP code step.
    Please suggest.
    Edited by: Debanshu Mukherjee on Dec 10, 2010 7:45 PM
    Edited by: Debanshu Mukherjee on Dec 10, 2010 7:46 PM

  • I have a question about extracting pages.  When I do the function, adobe saves the individual files as " file name space page number ", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I a

    I have a question about extracting pages.  When I do the function, adobe saves the individual files as "<file name><space><page number>", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I am using excel to concatenate some data to dynamically build a hyperlink to these extraced files.  It casues me problems, however, for the space to be the the file name.  Is there any way to change the default behavoir of this function to perhaps use a dash or underscore instead of a space?

    No, you can't change the default naming scheme. You can do it yourself if you extract the pages using a script instead of using the built-in command.

  • LR5 Filename Template Editor - Where do I find detailed help?

    I would like to export photos to my iPad in {capture date} sequence.  I read somewhere (?) that LR5 exports photos in {filename} sequence and not {capture date} sequence and so I have to rename my photos so that the {capture date} dominates the export sequence.  This is particularly true when there are photos from multiple cameras [different filename structures] in the same sequence.  Is this true?

    drkjones wrote:
    Is this true?
    I think it's truer to say your iPad will display in filename sequence by default regardless of the order Lr exports them in.
    Personally, I name my source files so they are in the order I want (alphabetically), and then don't rename upon export. But if you haven't done that, then
    a filename template like
    {Sequence # (001)} {Filename}
    and then do as dj said: sort by capture date before exporting (photos don't need to be in a collection)
    that'll work.
    R

  • Muti-page HTML Web Engine that shows filename or other details

    I am getting frustrated with the limited web support in Lightroom 2.1. I am looking for a very basic HTML based web engine that can show labels, flagged status or name on the thumbnail page. I don't have the time to figure out the SDK and start writing my own.
    I have tried the TTG engines, which will allow you to put additional info into the thumbnails, but it dumps everything into one page and it doesn't stack the thumbnails correctly.
    Can anyone point me to something that would work. It just shouldn't be this hard.
    Thanks,
    Chris

    Right.
    There are 3 ways to use CSS:
    Inline: styles applied to the  HTML code between the <body> tags.  This is not usually recommended.
    Embedded:  inside  <style> and </style> tags between the  <head> tags in your HTML document. This code is applied to only one page.
    External: a physical file that contains nothing but CSS code and applies to all site pages that are linked to it.
    If you have a unique style you want to use on a single page, either use embedded CSS (in the HTML document itself) or set up a unique class in your external stylesheet.
    CSS classes:
    .center {text-align:center}
    .right {text-align:right}
    .left {text-align:left}
    HTML:
    <p class="center"> this is centered text</p>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Filename in PDF portfolio?

    Sorry for what I'm sure is an easy(lame) question.
    I don't want to show the filename when creating a PDF portfolio and I've hunted for the answer without any luck.
    How do I only show the image or show a custom text/ title but not the XXXXX.jpg filename?
    thx!
    > just to clarify.... when viewing a PDF portfolio of images I don't want to show the image filename below the image.

    Hi,
    I've been trying to hide the file name myself. It seems intuitive that, while in the Modify area of the PDF Portfolio, under "Specify File Details" that one would simply unclick "Name" under "Columns to Display".
    But all that seems to do is hide it while I'm within the Modify section. I save and go back to view the pdfs and there are the file names.
    Anyone out there know the answer? Even if it's just a link to more info, that would be great. I need to get this out but without the filenames. I've searched in Google but no good info.
    BTW, the Description option is a nice touch and shows upon immediate hover. That's why I don't need to show a file name. Plus, you can write more in the description than is viable/sensible in a file name.
    Thanks for your help.

  • Filename in Save As dialog when saving PDF file

    I have a web site serving up PDF files. Without going into details, the URLs of the PDFs are not just your basic URL but look simething like this:
    http://www.domain.com/WorkFlowApp/Clients/demo1/secure/Promo%20Cover%20Cool-MedH i.pdf?userId=55b64ad5-28a2-490e-b3d6-4944099a390f#collab=CollabService@http://ww w.domain.com/ICCollab/IC_Service.asmx?WSDL
    In this case the actual filename is "Promo Cover Cool-MedHi.pdf"
    While viewing in Safari (OS X), if the user saves the PDF to their local machine, the Save As dialog comes up and the filename field is automatically populated. The problem is, instead of using just the filename, the field contains this:
    http---www.domain.com-WorkFlowApp-Clients-demo1-secure-Promo%20Cover%20Cool-MedH i.pdf?userId=55b64ad5-28a2-490e-b3d6-4944099a390f#collab=CollabService@http---ww w.domain.com-ICCollab-IC_Service.asmx?WSDL
    I know when performing the same action on Windows using Internet Explorer, the Save As dialog box filename field is populated correctly with just the filename (although it shows up URL encoded as Promo%20Cover%20Cool-MedHi.pdf, which is OK).
    I'd like to be able to force Safari to use just the filename in the Save As dialog box. Has anyone come accross this problem and figured out a solution?

    Hello Ebnul.nao
    I am having this same problemwith trying to work this out.
    Did you succeed in the end?
    I will really appreciate your help if you did
    Kind regards

  • Finding of the Logical and Physical filename,Logical and Physical Path

    Hello All
    Where and how can I find the below details in an SAP server
    Logical filename:
    Physical filename:
    Logical path:
    Physical path:
    Regards
    Kalyani

    hi
    Physical file is what you see from the OS level.
    Logical file is what ABAP code can call certain functions to read/write.
    Transaction FILE would link them together. Typically the logical path ends with "<FILENAME>", and the logical file refers to the logical path.
    To extract the physical path from the logical path name
    DATA: lf_mandt TYPE sy-mandt,
    lf_opsys TYPE sy-opsys.
    lf_mandt = sy-mandt.
    lf_opsys = sy-opsys.
    To extract the physical path from the logical path name
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    client = lf_mandt
    logical_filename = p_unix
    operating_system = lf_opsys
    IMPORTING
    file_name = gwa_input
    EXCEPTIONS
    file_not_found = 1
    OTHERS = 2.
    IF sy-subrc EQ 0.
    Concatenating the physical path and the input unix file name
    CONCATENATE gwa_input p_file INTO gf_file .
    ENDIF.
    You need to tak ehelp of ABAPer for this
    Check the link
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3deb358411d1829f0000e829fbfe/frameset.htm
    Regards

  • How to Get OHD's file name of last run?

    Hi Experts,
    I am currently generating a file, through a Process chain, from OHD that contains the BW system timestamp as part of its logical filename. There is  a requirement to log the file name generated along with the number of rows..
    Is there anyway of getting this informaiton.. Are there any logs that are created for OHDs when they are run that contain this info?
    Thanks in advance.
    Vj

    hi,
    please see below threads
    how to generate the open hub file format as .txt ?
    Open HUB Destination
    Open Hub Destination
    hope this will be helpful to you
    regards
    laksh

  • Processing the filename in the payload

    Hi,
    I am getting the filename in the payload, I want to read that file.
    How do I achieve this..
    Regards,
    Varun

    Hi,
    For Example if we want to get the Input file name & Directory Details into Target message.
    Ex:
    I/P File name is :::::231004.xml  Ftp Serve Path : //xideveloper/Test_XI/PO
    O/P File name can be :::Any thing
    Input File :  231004.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_TEST_AGCO xmlns:ns0="http://tafe.test.com">
       <Header>
          <NAME>giri</NAME>
       </Header>
    </ns0:MT_TEST_AGCO>
    Output File : Out.xml
    Here in this output we are able to get the Filename & Directory Info in the FileName_1 Field.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_target xmlns:ns0="http://test.com">
    - <Header>
      <Name_1>giri</Name_1>
      <File_Name_1>231004.xml //xideveloper/Test_XI/PO/</File_Name_1>
      </Header>
      </ns0:MT_target>
    You should capture the Source File name & Directory Info into Target Message.
    1)     Write One UDF & Map Like Constant(u201Cu201D)---UDF----FileName_1
    2)            In Advanced mode check the check box Set Adapter-Specific Attributes
    3)     Check the ASMA Parameters in Sender Adapter Alone
    4)             No need to check the check box ASMA in the receiver side
    UDF Code:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //for getting filename
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    //for getting directory
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    /similarly for getting filetype, filesize you need to specify in the above code instead of filename or directory/
    String FileName = conf.get(key1);
    String Directory = conf.get(key2);
    String Cat = FileName+ " "+Directory;
    //return FileName;
    //return Directory;
    return Cat;
    Regards
    Seshagiri

Maybe you are looking for