Trying to Trunc a Date.....

Hi,
please help me, I'm getting crazy with this Date!!!!
I need to save in the field "InvoiceDate" the current date WITHOUT the hour, just the day-mon-yyyy. How can I do it?
I have in the EOImpl the following code:
public void create(AttributeList attributeList)
super.create(attributeList);
// Custom Code
OADBTransaction transaction = getOADBTransaction();
setInvoiceDate(transaction.getCurrentDBDate());
how can I trunc the date?????????
Thanks alot,
Rosanna.

Hi Ros,
Try Using
transaction.getCurrentDBDate().dateValue();
Regards,
Nagesh Manda

Similar Messages

  • Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    I guess I will wrap this up. I have abandoned iPhoto and viewing my Photo Streams using it and moved to Adobe products (Bridge + PS). So that's that.

  • Runtime :Javascript problem when trying to display the date binded to RFC

    Hi all,
    I am facing a very strange problem. I Have used a Bapi to pass some inputs to the Bapi function and binded the UI with that. But for the date field when i am running the application and trying to specify some date it is giving some Javascript Error and not Showing the date Dialog box
    The Error is "SAPUR_January is null or not an object"
    Is anyone has any idea on it, then please let me know at the earliest.
    Mukesh

    Hi armin and Mani
    For armin: I did't understand for what you are refering to.
    For Mani: Hi mani those are the Input fields and by default they are binded to the Date field only and user has to supply the date parameter. The Small box that comes when you bind a UI field with the Date type when i am clicking on that i am reciving that error.
    Mukesh Poddar

  • On the initial set up for apple tv it just sits there trying to set the date and time . it is a wireless setup and the ipaddress and router address is correct . I can't get by this screen

    On the initial set up for apple tv it just sits there trying to set the date and time . it is a wireless setup and the ipaddress and router address is correct . I can't get by this screen. The setting is on automatic and I have picked a city in my time zone yet it still tries to set a time and date but fails.
    thanks

    Make sure router is up to date. Try ethernet to rule out any wifi issues. Reboot ATV and router.

  • Error while trying to Lock the data in Essbase

    Hi All,
    I am currently facing a issue in Essbase when I am trying to lock the data it shows me the following error message.
    Error Encountered is : "You do have sufficient access to perform a lock on this database". I have checked with the administrators / support team and according to them there is nothing wrong with my access. I have the write access to the database and I should be able to lock and send the data but they are unable to figure out why my access is not working or i am facing the above issue. They asked me to select update mode in the essbase options and try but even that didn't work. I am able to make the changes on the same data in Hyperion Planning. I want to lock and send the data directly to server. But I am unable to lock the data. Please expedite.
    Thanks a lot for your help in advance.

    From your post, it sounds like the problem is not Update mode since you mentioned you tried turning it on (I do not recommend having it on). It does sound like a security issue. Depending on the version, planning and Essbase can use different IDs for the same perosn (If I remember planning used to create two IDs one for planning and one for Essbase) The Essbase id had less access than the planning id did. I would test this by having a test Essbase ID set up that has write access and see if that ID can write directly to Essbase. If it can, I would look at filters and groups the ID is on to see if there is some sort of conflict. I have sen that message when a user had read access to part of the DB and write access to another part, but they were pulling data from the read access section only

  • Dumps when trying to Maintain master data

    Hi All,
    When we are trying to Maintain master data for a master data object 0WBS_ELEMT, we are getting a short dump "CALL_FUNCTION_NOT_FOUND" in our BI 7.0 system.
    What we are doing is Right click on 0WBS_ELEMT info object and Maintain master data, then we get the above dump. Saw in one of the forums that by making the info object in active and activating it again it will solve the issue but even after doing this the issue still persists, we still get the dump. Would need help from all of you.
    regards,
    Suman Pitta

    Hi Suman,
    The dump is due to the fact that 0WBS_ELEMT has an attribute which still
    uses the POSID conversion exit. Attribute 0PROG_POS should use
    conversion exit POSBW. And in fact, in RSD1 of this infoobject, POSID is
    Still maintained. However, if you go to the DDIC object in SE11
    (SE11 -> choose "Domain" -> /BI0/OPROG_POS -> Display), you will
    see that the conversion routine POSID still appears. This is the reason
    you get the dump.
    In order to resolve this issue, go to RSD1 -> enter infoobject
    '0PROG_POS' -> choose maintain -> Set object status to inactive and
    reactivate the InfoObject. The reactivation should regenerate the DDIC
    objects (you can check this in SE11 again).
    Alternatively change to the version from content which utilises POSBW
    already.
    regards,
    Colin

  • Error when trying to view siebel data from BI Publisher

    Hi,
    I am trying to view Siebel data in BI publisher via a web service (webservice definition is set to complex in BIP) but when I try to do this I receive the message 'Requested data type does not match with existing data type'.
    I am using version 10.1.3.3 of BI Publisher and 8.1.1.2 of Siebel E Clinical.

    hi teresa.
    well I bother you because I have a problem similar to that raised earlier, I have a vm INTAL CUOM 2.1 SP1 and the problem is that computers add-in-law his administration IPCC view the service level ... but when I fall into a custom group created the group and add the teams the same ip ipcc already visible, in my group I want to generate displays custom cloud but do not show me the equipment, except that I want to add IVR servers and I do not under any circumstances the samples .. lso probe and reset everything and anything related services, install the SP! and nothing. Can you help me with this or if I recommend CUOM up version of the 2.3 that I could not even see the difference with 2.1 CUOM thanks greetings

  • I am trying to change the date on an imported home video clip. I entered 9/7/2012 and got 6/9/0339! I checked modify original file, but it is not working. Any ideas?

    I am trying to change the date on an imported home video clip. I entered 9/7/2012 and got 6/9/0339! I checked modify original file, but it is not working. Any ideas?

    Are you using the Adjust Date and Time option or the Batch Change option?  If it's the former try the latter.  If you get the same results  launch iPhoto with the Option key held down and create a new, test library.  Import  the same video file and check to see if the same problem persists.
    OT

  • HT201365 Hi all, im from dubai. someone stolen my iphone5. i was trying to erase my data via find my iphone. in the end there was a notification that remove. i have click remove. then it never shows my device in find my iphone. how can i see my device in

    Hi all, im from dubai. someone stolen my iphone5. i was trying to erase my data via find my iphone. in the end there was a notification that remove. i have click remove. then it never shows my device in find my iphone. how can i see my device in my pc...?

    Here's an interesting bit: iTunes will let me restore my iPod touch from backup: it's still running iOS 4.3.3. I figured as much... there's backups showing in the Preferences -> Devices list for both devices (and even my old, long gone iPod touch 2G), but my iPhone (on iOS5) isn't giving me any such option. I remember I had to downgrade before to get the backup restored (something went haywire in the setup assistant, and I couldn't restore a backup from iTunes there)... If it was possible to go to iOS 5.0 rather than 5.0.1 I would just do the same thing again, but iOS 5.0.1 isn't an option. I attached a screenshot. Hopefully Apple can get this nonsense sorted out; I think iOS 5 might be the root of this, somehow.

  • Trying to print the date arrays in reverse order....

    Hi,
    I'm trying to print the dates in the arrays in reverse order using the for loop, but its not working and i think ive got something in the wrong order perhaps the constructor or method. Or do i need to define 'a', because i tried it and i couldn't unless, probably because i was putting the wrong code for it.
    Thanks for your help
    public class Array
      public static void main(String[] args)
              a[0] = new Date(2, " January ", 2005)
              a[1] = new Date(3, " February ", 2005)
              a[2] = new Date(21, " March ", 2005)
              a[3] = new Date(28, " April ", 2005)
                                   printDate();
    class Date
      public int day;
      public String month;
      public int year;
      public Date(int d, String m, int y)
        day = d;
        month = m;
        year = y;
      public void printDate()
      for (int i = a.length - 1; i >= 0; i--)
                  System.out.println(a);

    I don't see where this 'a' variable is declared anywhere, so what did you expect it to do? Also, you can't just call Date's printDate method from your Array class like that. You really need to start with the java tutorials or take a course. The forums aren't going to effectively teach you the very basics.

  • Error when trying to enter time data for hourly employees using CAT2

    Hi Experts!
    I'm trying to enter time data for an absence type using CAT2 for hourly employees and it's giving me an error saying "for attendance type, function or/and one of the URA is required".
    I'm not sure what that means, the system has no functions available. Entering time data for full-time salaried employees is working just fine.
    Any insight would be greatly appreciated!
    Thanks.

    hI,
    Firstly check infotype 0315
    In that check sender cost centre
    Next chek whether the Attendent / Absende Tyep which you are trying to enter is configured
    That meas it should pop up (F4) when u try to enter using CAT2
    in the Attnendence /Abence field
    REWARD POINTS

  • Received error when i tried to add a data source to index

    I received an error message when tried to add a data source to the index. The data source is a File system repository.
    Error:
    The repository needs the properties service to be attached to a classification index.
    Your help is greatly appreciate!

    Hi guys,
    Thanks so much for a quick response.
    Are you talking about these services below? if yes, I had already add them to the FS.
    properties
    RepositoryAttachmentService
    subscription
    svc_acl
    Thanks again,

  • An error was encountered trying to retrieve configuration data.

    Hi All,
    I need help on this please,
    I am getting below error when I am trying to create DAD.
    An error was encountered trying to retrieve configuration data.
    Failed to initialize configuration parameter ApacheMainServer.. Entity not found. Resolution: Entity not found Base Exception: oracle.ias.sysmgmt.repository.plugin.advanced.apache.parser.ParserException Error scanning D:\OraHome_1\Apache\Apache\conf\httpd.conf. Start quote at line 346 column 12 does not have ending quote. Error scanning D:\OraHome_1\Apache\Apache\conf\httpd.conf. Start quote at line 346 column 12 does not have ending quote
    Can anyone please help me how to avoid this?
    Thanks,
    Swathi.

    Please paste the DAD entry here for review and the file name and version of your AS.
    regards

  • Trying to get old data off a g4 tower

    Hi- I am trying to get old data off a g4 tower using macbook and firewire but I am not succeeding. My old monitor doesn't seem to work. Any suggestions greatly appreciated. I also have a Gdrive if that might work.

    Here's another method.
    Buy one of these hard drive adapters.
    http://cgi.ebay.com/USB-2-0-SATA-PATA-3-5-2-5-Hard-Drive-Adapter-Cable-/14041077 1759?cmd=ViewItem&pt=LHDefaultDomain0&hash=item20b122592f
    Remove the hard drive from the G4. Using the above adapter, connect the drive to your MacBook. Copy the files you want.
     Cheers, Tom

  • Trying to bind XML data and form fields

    I have a fairly simple PDF - and I am trying to bind XML data to he form fields.
    In the designer I can bring up the data connection and
    select Global - for the binding method - and as I understand it - this will link Form Fields and XML data fields with the same name - (sounds logical to me)
    but all that happens is :
    I see the name of the field in the form field rahter than seeing the actual data
    should I select : None as the binding or normal ....
    but Normal doesnt show Anything - even after i select it .
    I can't quite seem to make this work -
    Any help here would be appreciated
    Thanks :)

    This is on a stand - alone system
    Using Designer ES ......
    I saved the Form as an xdp form
    and it seems as if all goes well until
    View the data and nothing appears - or
    just the names of the fields appear

Maybe you are looking for

  • Vendor Invoices/Customer -BAPI

    Hi all Equivalnt bapis to postVendor Invoices/Customer Invoices through f-02 transaction. we need to post with and without special GL Indicator. Can anyone let me knw which is the suitable bapi with SAMPLE DATA and MANDATORY FIELDS. Thanks sha

  • Replacing images in Flash presentation but slideshow stays on first image

    I have used this slideshow for few projects and all I've done in the past is import new images (about 100k) and publish. The image are bit map of type (png) not big about 100k size. Without saving the file I do a "test movie". Instead of doing the sl

  • Output not generated in PO

    Hi Gurus, In one of our test clients, i see that there is no output generated after the PO is created. What could be the reason for this? Thanks Anusha

  • LSO Test Player

    Hi, Is it possible to change the text of a button which is in the LSO Test Player application? We would like to amend the text for the finish test cmd button. If this is not the best forum for this, please can you suggest where would be more appropri

  • Old (2nd) display profiles stays in use

    Hello All, For several years now, I have my television hooked up to my Mini as second screen. Recently, I bought a new 32" HD TV. At first the Mini found the display allright, recognised it and the tv appeared by name in the display preferences. Rece