Determine the attributes of an file

Hello,
I'm searching for an function module that determines the attribute of an .txt file. I need to determine the date when the file was created (or uploaded) on the server.
I found already the command GET DATASET but I think that doesn't work because it only determines the attributes of an open file in abap (command OPEN DATASAET).
Any help would be appreciated...

Hi,
Try this Fm  "SUBST_GET_FILE_LIST" r "EPS_GET_FILE_ATTRIBUTES".
Regards,
Aditya

Similar Messages

  • E4x syntax and determining the attribute name at runtime

    I'd like to be able to determine the attribute to use to say
    assign to a <mx:Label> in my ItemRenderer at runtime.
    The dataProvider is an XMLList. My ItemRenderer (partially)
    looks like this:
    <mx:Repeater id="ItemRepeater">
    <mx:Text text="{ItemRepeater.currentItem.@[labelField]}"
    width="100%" height="100%"/>
    </mx:Repeater>
    labelField is a property of the ItemRender and is set from
    the "outside".
    If the text property is is set to be
    <mx:Text text="{ItemRepeater.currentItem.@area_name}"
    width="100%" height="100%"/>
    (where area_name is an attribute of the currentItem) it works
    just fine.
    But as it stands now:
    <mx:Text text="{ItemRepeater.currentItem.@[labelField]}"
    width="100%" height="100%"/>
    I get an Internal Build Error and am unable to proceed.
    So my question is, is there another way to extract an
    attribute whose name is only known at runtime? I know that this
    syntax works in other cases, just not in an ItemRenderer situation.
    Thanks.
    In an ItemRenderer

    I think it's something to do with a repeater. I have an
    mx:Label inside the repeater and when I use this (the value of the
    labelField property is set to "area_name"):
    <mx:Label id="itemLabel"
    text="{ItemRepeater.currentItem['@' + labelField]}"/>
    I get a runtime error
    Error: Unknown Property: '@area_name'.
    However, continuing on eventually reveals that the text
    property of the label's are in fact being set correctly!
    So barring the weird runtime errors, it's actually working
    the way I'd like it to.

  • How do I determine the name of a file from a watched folder

    I would like to generate a log to track the names and outcomes of files processed from a watched folder.  I don't see a way to access the name of the file from within the process.  I have a variable "inPDF" which is data type "document" and "outResult" which is type "xml" but I don't see a way to access the file name (or path) of the "inPDF" "document" object.  Is there a way to access the file name and path?

    Thank you, this sounds promising.
    Where can I find documentation describing the attributes that can be retrieved using the getDocumentAttribute function?  Also, where can I find a complete reference on the Document object?
    Best Regards,
    Noam

  • How to determine the lines in a file?

    Hi,
    I have a VI that reads the lines in a file and then I am using a for loop to analyze the data.
    Is there a way to determine the number of lines in the file so that I can feed it in the N value of the for loop?
    I tried the command EOF in the read lines VI with no success.
    Let me know,
    Fede
    Attachments:
    file reader CAN v2.5.vi ‏114 KB

    I think I understand what you are saying.
    You think I should reorgabize the array witout using the shift registers and using the read from spreadsheet vi.
    I am not saving the same file.
    I am trying to save the data in 3 different formats. I am eliminating the time stamp and saving it in order to use later on in my graphs. Then I am saving the raw data before I concatenate the first 4 bits and after I concatenate the the first 4 bits.
    If I use autoindexing I will not need the shift registers,right? Can I then save the while the program is running or I have to save at the end of the process.
    I am familiar with operations with strings but I am still a bit weak on array and string working toghether.
    I attach what I am doing.
    Thanks
    Attachments:
    sensorlog1.txt ‏1 KB
    canwithtime.txt ‏1 KB
    log1.txt ‏1 KB

  • How to determine the size of a file on application server

    Hello,
    using open dataset I have created a file on the application server and have put some data into the file.
    Now I want to know the size of this file.
    Is there a function module to do this ?
    Best regards
    Michael

    Hi,
    Use Function module   'EPS_GET_FILE_ATTRIBUTES'
    DATA fsize TYPE epsf-epsfilsiz.
    CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
      EXPORTING
        file_name =     " here provide filename
        dir_name  =    "  here provide directory
      IMPORTING
        file_size = fsize.
    WRITE: 'File size' , fsize.
    Regards,
    Ravi

  • How to read the attributes of XML file

    Hi this is ant,
    I am new to java, XML, I have a senario
    1) I have to read all the href attributes for topicref child, and then read the corresponding xml file which is mapped in href="".
    First.xml
    <map>
    <topicref nav="garage" href="task/gar/view.xml" class="..">
    <linktext class="_map/linktext">Garage</linktext>
         <topicref nav="" href="task/gar/change.xml" ..>
    <linktext class="_map/linktext">Garage</linktext>
    </topicref>
    </linktext>
    </topicref>
    </map>
    2) task/gar/view.xml file , has id attribute & need to get the id values.
    Like this I have to get the id values for all the href attributes of first xml & read correspoding id values.
    I have just read some doc using XPATH we can do, please help me.
    Thanks.
    anto

    * Try this Link, there is solution
    http://forums.sun.com/thread.jspa?messageID=9665228
    Can...Can...If we try...!

  • Determining the page an include file is included in from within the include

    I have a header file that I include in all of my JSP pages that import various tag libraries, Javascript files, and CSS files. I have the following line in it:
    <body onLoad="checkQuestions()">
    The purpose of that line is that I want it to execute the Javascript function "checkQuestions()", but only on certain pages. Is there a way to determine what is the current JSP page that the file is being imported into, perhaps by using a <c:if/> tag? I only want to execute the checkQuestions() function on certain pages otherwise I'll get errors because the function is checking for values in certain fields.
    Thanks,
    Jeremiah

    A simpler approach might be to have the checkQuestions() function check for the presence of a field on the page.
    If that field is not there, just skip the functionality.
    Its an easier check to do in javascript when you have the completed page than at the server end.

  • How to find out the size of a file?

    Hi,
    I would like to determine the size of a file from my code. How is that possible? I do not find any appropriate method in the java.io.File class.
    Any help would be very appreciated!

    java.io.File.length()
    Returns the size of the file as a long. The number corresponds to the number of bytes in the file.

  • How do i check the size of a file?

    I want to be able to determine the size of a file in a directory. If the file has size 0kb (ie. no content), i need to be alerted to this. Is there an easy way to do this without having to read the contents of the file itself?
    thanks.

    File.length();

  • To find the view link in the attribute definition

    Hi, I am using Jdev 10.1.3.2 and ADFBC. I have two master/detail view objects which have view link defined between them. Now I am trying to do deep copy, but I don't want to hard code the view link accessor name in the code. Here is the part of the code to get the list of attributes:
    ParentVORow newRow = (ParentVORow)parentVO.createRow();
    StructureDef def = newRow.getStructureDef();
    AttributeDef[] attrs = def.getAttributeDefs();
    Now view link accessor is in attrs, but how can I tell which attribute in attrs is a view link accessor without comparing to the attribute name?
    Thanks!

    Please see section "25.3.4.1 Determining the Attribute Kind at Runtime" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html for more information on this.

  • How to read the attribute of the xml file using jaxb

    Thanks,
    Buddy as i have a issue i have to read the xml file using jaxb and xml file contains this data and i have read the attribute like name , desc and action for a particular menu name pls tell the code how to do this it will be a great favour to me
    thanx in advance
    Rasool
    <contextmenu>
    <menu name='Lead' >
    <menuitem name='newlead' desc='New Lead' action='/leads.do?dispatch=insert' />
    <menuitem name='editlead' desc='Edit Lead' action='' />
    <menuitem name='leadinfo' desc='Lead Information' action='' />
    </menu>
    <menu name='Cases' >
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    </menu>
    <menu name='Contact' >
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    </menu>
    </contextmenu>

    What my program do is to get the encoding of XML files and convert them to UTF-8 encoding files, while I need this "encoding" information of the original XML document thus I can convert...
    After reading specifications and JDOM docs, the truth turns to be disappointed, no function is provided to get this information in JDOM level 2(the current released one), while it's promissed that this function will be provided in JDOM level API....
    Thanx all for your help and attention!!!

  • The attributes for user could not be determined --

    Hi,
    Our is extended classic scenario:srm5.0 & ECC6.0
    we are getting the following error in the org plan:
    "The attributes for user could not be determined "
    The error is occuring , when we log into the web browser.
    we also have a error in the org plan, under the user at the check tab,"No attribute found for scenario BBP".
    when we run the BBP_ATTR_CHECK & BBP_BP_OM_Integrate, we have no errors...
    Thanks in advance,
    RK.

    Hi All,
    Thanks for your support...
    I check the T-code:BBP_ATTR_CHECK & BBP_BP_OM_INTEGRATE.
    I also checked the attributes for the CP are ok,still i had the error appearing in the WEB.
    The solution:
    The CP has been deleted from the org plan.
    Once again,we generated the users from USERS_GEN and assign CP to the org plan again at the same.Now the Attributes error is gone.... and the issue is resolved.
    Thanks and Regards,
    RK.

  • Error - The attributes for user could not be determined

    When I login as a Buyer (with role ZTSX_EC_BBP_PURCHASER - copy of SAP_EC_BBP_PURCHASER), I get the foll. error while trying to Process Purchase Orders:
    The attributes for user could not be determined
    It does not happen on other transactions (like Sourcing or Issue POs).
    The buyer is in the org. plan and I have checked the attributes and they seem ok.
    What could be the issue ???
    Thanks
    -Bakulesh

    Hi
    <b>Please go through these links -></b>
    The attributes for user could not be determined --
    'Error in writing attributes' when using function tab
    Company code for system missing in user attributes
    BBP_POC not working in SRM 5.0
    Re: urgent: regarding ATTRIBUTES
    Regards
    - Atul

  • [SOLVED] ERROR: Unable to determine the file system type of /dev/root:

    :: Running Hook [udev]
    :: Triggering uevents...done
    Root device '804' doesn't exist.
    Creating root device /dev/root with major 8 and minor 4.
    error: /dev/root: No such device or address
    ERROR: Unable to determine the file system type of /dev/root:
    Either it contains no filesystem, an unknown filesystem,
    or more than one valid file system signature was found.
    Try adding
    rootfstype=your_filesystem_type
    to the kernelcommand line.
    You are now being dropped into an emergency shell.
    /bin/sh: can't access tty; job control turned off
    [ramfs /]# [ 1.376738] Refined TSC clocksource calibration: 3013.000 MHz.
    [ 1.376775] Switching to clocksource tsc
    That's what I get when I boot my Arch system. It worked fine for quite a while, but suddenly it ran into an error where the SCSI driver module was corrupt. I fixed it by reinstalling util-linux-ng and kernel26, however, I run into this issue now. http://www.pastie.org/2163181 < Link to /var/log/pacman.log for the month of July, just in case. Yes, I bought a new ATI/AMD Radeon HD 5450 this Saturday, but it seemed to work fine till this broke and it works fine on Ubuntu too, so I suppose we can rule it out.
    Last edited by SgrA (2011-07-05 20:45:36)

    Autodetection failed on your first image, in both your previous kernel installs:
    [2011-07-04 16:14] find: `/sys/devices': No such file or directory
    Which means that sysfs was not mounted. You should be able to boot from the fallback image, which does not use autodetect. Figure out why /sys isn't mounted, as well, and fix that.
    This is also a somewhat crappy bug in mkinitcpio that lets you create an autodetect image that's useless. It'll be fixed in the next version of mkinitcpio that makes it to core.
    Last edited by falconindy (2011-07-04 17:41:19)

  • Using File Name to determine the Receiver

    Hi All,
    I have to determine the receivers based on the Input file name. I am using the context object File Name in the condition editor. But based on the first 4 characters of the FileName I have to route the file. Can anybody please help how to formulate this expression in the condition editor?
    Thanks,
    Geetha

    Hello Geetha,
             You need to specify this in you mapping as in condition editor you can not specify values at runtime. What you need to do is
    -> Select the Extended Reciever Determination in ID
    ->In IR specify the mapping for determining the receiver (You need to use the another mapping for this)
            . Here copy the MessageType 'Receivers' from the component  as your target MT
              SAP BASIS 7.0 (Depends on your version)-> "htt://sap.com/xi/XI/System" namespace.
           .  Define Message Mapping between Outbound Message Type(The one with your filename) and 
             Standard Message Type u201CReceiversu201D which is as Inbound message type and which is in the SAP
             BASIS -->http://sap.com/xi/XI/System
           . In mapping specify your service based on your First 4 character of your file name(Use SubString)
    IF filename -> SubString(0,4) ->Equals ->   filename -> SubString(0,4)  Then  Select Your Service  ( Service in Constant value). ELSE (your logic)
    Once you finish this remaining as usual in IR, while InterfaceMapping you select two mapping programs.
    Remmber to use the Extended Interface Determination in ID, This resolves your issue.
    Regards,
    Pasanna

Maybe you are looking for

  • Sharing videos in shared photo stream?

    I just wondered if anybody had any luck with sharing videos to a shared photo stream? At first I thought that the Apple servers couldn't keep up with the demand, but it seems to have been quite a long time now and still no signs of working! I even ca

  • Restriction of Activiate PR in CN22

    Hi, I have created one Network through CN21 and assigned user status also. My user status is BURQ - Budget Approval Request. I have restricted business transactions like Material purchase requisition & PO for this status. My system status of the netw

  • Vizio 46" won't display from MacBook using miniDisplay to HDMI--used to tho!!!

    That about sums it up. I'm running Lion and about to update to Mountain Lion. I've tried PRAM reset, using disk utility--repairing the permissions and disk, &disk warrior. Random combinations of unplugging HDMI cables and turning off and on the compu

  • Photo albums stalled following restore from iCloud

    What should I do to cancel this stalled download without losing what has already been downloaded

  • Apply Model from ESS Repository

    Hi Sapall. as iam new to SAP-PI7.1.1,i just want to know on how i can do the Apply Model From ESS Repository. i have created the Process Integration Scenario in ESR with the all the data type,message type,message mapping,operation mapping but all i w