Business rules for check current date and session user

MDS 2012
Hi All! How to make validation business rules:
1.  date < GETDATE()
2.  current session user is UserName(), where UserName() - system function like in MS Analysis Services
from Moscow with Love

There is no way to create this with a Business Rule, you have to write a custom workflow or SQL nightly job or something to update your fields.
Ok people start screaming.
"solution" if you want to call it that. USE AT YOUR OWN RISK, try in dev first :)
1. Create an Attribute / Column in your Entity and call it Today or something.
2. Go to Business Rules and create a dummy rule where you are setting this attribute (unconditionally with no Condition)
     Today equals 1/1/2000 or something.
3. Go to tblBRItem find this BR and etin ItemSQL  from N'1/1/2000' to GETDATE()
now you have Todays Date field...
OK NEVER MIND, I've tried it and it works, the problem is that tblBRItems gets updated via a stored proc and will overwrite your entry.
One can modify the code there as well but I don't have time to play with it unfortunately, as at that time you have to pass some token in to identify some values as your own special commands ... Either way this becomes messy and not a way to go.

Similar Messages

  • Sales Order VA01 - "No control data for checking group 04 and checking rule

    Dear Gurus,
    When saving a sales order in VA01, I get the following message: "No control data for checking group 04 and checking rule A"
    Can anyone explain to me what that means?
    How can I correct this error?
    Regards
    Chris

    Check this thread
    [Re: Process Order Material availability check error|Re: Process Order Material availability check error;
    thanks
    G. Lakshmipathi

  • No control data maintained for checking group ZI and checking rule A

    Dear all,
                   When i do the availability check in the sales order i got the message as  No control data maintained for checking group ZI and checking rule A and finally availability check was not carried out, I check all the configuration under the sd-availabilitycheck and i maintained in material master also..........
    Please give me the solution
    Best Regards ,
    Kumar

    Hi,
    Did u maintain the scope of availability check like incluke reqts,planned reqts, purchase requisitions, production order, sales reqts,delivery reqts etc.
    apart from that you have to put check(Tick) mark in Requirment class and scheduleline categorie
    Then u have to maintain in material master individual requirmentss or daily requirments
    checking rule like A,B or if its consignment AW if it is returnable packaging AV etc(ImgS&D-Basicfunctions-Availabiltycheck&Tor---availability check aginst ATP)
    Then Total summarized daily reqts or summarized individual requts
    Plz check above all setting then u will get clear idea.
    Regards,
    Murthy

  • My iMessage for my Macbook Air is not working. It says no delivered with a red ! next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time. I have done about everythin

    My iMessage for my Macbook Air is not working. I have updated everything. My system is running on OS X Yosemite Version 10.10. When I go to send a message, it says no delivered with a next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time and updating FlashPlayer. I have done about everything I can think of. Any help would be greatly appreciate!

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • TS1368 My account keeps asking for Region but the drop down menu lists Cities in China. I can,'t cange the region in my account because it asks me to check the date and time but these are correct. Any answers please?

    My account keeps asking for Region but the drop down menu lists Cities in China. I can,'t cange the region in my account because it asks me to check the date and time but these are correct. Any answers please?

    Look, I understand I still need a card attached to the account. The problem is, it won't accept my card because I only have 87 cents in my bank account right now.
    If I had known there would be so much trouble with the iTunes card, I would have just put the cash in my bank account in the morning instead of buying an iTunes card (I didn't expect the banks to be open on Thanksgiving of course).
    Apple will only accept cards that have a balance. The balance is so small in my account that it won't accept it as a valid card.
    I'm going to have to contact Apple anyway to reset the security questions. That's obvious. Your answers were not exactly helpful. You didn't tell me anything I don't already know, but thanks for trying to be helpful.

  • Getting current date and timestamp for timezone

    I am getting the current date and timestamp using
    Date d = new Date();
    On the platform I'm using it is returning it in GMT time.
    I want to convert this into Eastern Time Zone for United Status.

    java.util.Date objects contain a count of milliseconds since the "epoch", which happens to be midnight, Jan 1 1970 GMT. However, they aren't intrinsically "in" any timezone.
    If you simply call Date.toString(), you'll get the date formatted for the current locale, including timezone.
    If you want a different format, you can use the DateFormat or SimpleDateFormat classes (recommended), or use Calendar to pull the various date components out. You have to physically set the timezone for each of these.
    To get a list of timezones supported by your machine, you can run this program:
    import java.util.Arrays;
    import java.util.TimeZone;
    public class TZDump
        public static void main(String[] argv)
        throws Exception
            String[] zones = TimeZone.getAvailableIDs();
            Arrays.sort(zones);
            for (int ii = 0 ; ii < zones.length ; ii++)
                System.out.println(zones[ii]);
    }And, here's a program that lets you compare the same date in different timezones:
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.TimeZone;
    public class TZDemo
        public static void main(String[] argv)
        throws Exception
            SimpleDateFormat fmt = new SimpleDateFormat("MM/dd/yy HH:mm:ss");
            Date now = new Date();
            System.out.println("Default TZ = " + fmt.format(now));
            String[] zones = new String[] { "EST", "EST5EDT", "PST"};
            for (int ii = 0 ; ii < zones.length ; ii++)
                fmt.setTimeZone(TimeZone.getTimeZone(zones[ii]));
                System.out.println("EST        = " + fmt.format(now));
    }

  • Odd Date for Current Date and Time

    I am modifying a column in a list to get current date and time using =TODAY()+NOW() in the calculated field and get a time that is behind by 1 hour but the date is 4 months 114 years ahead (2128). How can I fix this field?

    http://sharepointsolutions.com/sharepoint-help/blog/2011/04/how-to-add-and-subtract-hours-and-minutes-from-date-and-time-fields-in-sharepoint-lists/

  • Future Check -In date and not displaying images via IPM search profile

    Hi All,
    We have configured Oracle IPM and UCM to work together and UCM as the repository and we are using ODC to index data to IPM.
    We are not able to see some of the documents from the IPM search field. (only some of the documents)
    When we log in to the UCM repository manager we can see future check in date and 'Done' or 'GenWWW' as the Revision status field and 'New' as the Indexer status field.
    Is there any way to force to push to 'Release' state or can we change the Check-in date and time?
    since we are now in the stage of parallel run, it is urgent to sort this issue immediately........
    Because users are not able to see there documents and continue there works......
    Thanks for any immediate response..............
    Thank You
    Edited by: Nir on Mar 20, 2012 4:15 AM
    IS THERE ANYONE TO HELP US?????
    Edited by: Nir on Mar 21, 2012 1:22 AM

    Hi Aditya,
    Those are not releasing as you said. the indexer would not release the content until the said time is reached
    Sometimes those are releasing without meeting it's release date.
    This ODC date field going to map to a date field in IPM is it? Is it just a date field which is get populated with current date?
    Once i checkin a document, it has released as normal.
    Thank you,
    Edited by: Nir on Apr 15, 2012 8:59 PM
    Hi All,
    As i mentioned earlier post some documents has current date as the indexed date and future date as the Release date.
    Thanks
    Edited by: Nir on Apr 15, 2012 9:16 PM

  • Display current date and time

    Hello everyone,
    how can I display the current date and time in a simple text field?
    Best Mobilizer

    Hello,
    You can simply use
    now()
    You can also do more complex things with this.
    Text(Now(),"hh:mm:ss a/p")
    Check the following page for all the possible functions
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745510
    Regards
    StonyArc

  • As of version 31, why is there still no Thunderbird option to insert current date and time in message that you are writing?

    As of version 31, why is there still no Thunderbird option to QUICKLY insert current date and time in message that you are writing?
    Literally have seen this very-much-needed -- and used -- option "promised" for three years now, and even if there's only one or two formats that could be used, at least the option is there.
    It seems only way is to link a Macro and tool to Thunderbird and do it that way.
    Joe Rotello
    [email protected]
    Skype: joerotello

    Where was it promised? A quick search of Bugzilla didn't find a functionality request bug report for it.
    I assume you're aware that Mozilla stopped development about 2 years ago (just adds security/stability fixes and provides infrastructure) and all new features and bug fixes are now added by the community. They seem pretty tied up with bug fixes and reworking some hard to maintain components such as the MIME support.
    Have you tried the Timestamp add-on at https://addons.mozilla.org/en-us/thunderbird/addon/timestamp/ ? The version at AMO doesn't support versions later than 2.0 so you'd need to do something like install the disable add-on compatibility checks add-on at https://addons.mozilla.org/en-us/thunderbird/addon/checkcompatibility/?src=ss, and ignore the warning message about Timestamp not being compatible. However, the author has a version at http://extensions.sanjer.nl/?page=tb_ts that supposedly supports up to Thunderbird 11.9.x so it should be "compatible by default as it supports version 5 or later and is not a binary add-on like Lightning or Enigmail.
    "For Thunderbird use the context menu (right click popup) in the compose window, Ctrl+Shift+T or "Options | Insert timestamp" to inserts the date/time into a message"

  • Business rules for Adhoc

    Hi All,
    I have created a web form and I want to do the Adhoc analysis on it , when right click the form and go to Adhoc session , I see the "Business rules for Adhoc" is coming as "calculate Currencies" and "calculate Form". But I want to add my Business rule here ?
    I saved the Adhoc form but I an not able to edit it ? is it requires any provision ?
    I want to add my business rule to the Adhoc form.
    Appriciate your help
    Thanks

    I am just worried , is it really possible to attach Business rules for an Adhoc grid?

  • Business rule for Essbase cube calculations in 11.1.1.3?

    Hi,
    Can we use business rules to use @XREF from data transfer from one cube to other cube.Why I went for business rule is, I can put set of business rules in a Sequence and any new user can run this Sequence on demand and even we need prompt also in that.
    So, I want to clarify whether I can use the business rules for Essbase calculations along with calc scripts??
    Appreciate the response.
    Thanks

    Right,
    Actually, Business rules are running essbase cubes in every case.
    Remember planning and BRs are adding extra layers like prompts, forms, security, processes...
    Think Business rules are extended version of calc scripts with some more functionality. They are ultimately running on essbase cubes...
    Regards,
    Ahmet

  • Question for customs "Define rules for default document data"

    Hello all,
    we would like to set up the data for AES. We set the country of origin, as you can see on the below screenshot.
    The problem is that the country of origin is not forwarded to AES. In the export declaration under the item detail there is an empty field at the country of origin.
    What do we have to change in the set up "Define rules for default document data"?
    Thanks in advance.
    Sven Sklarek

    Hi Sven,
    Sorry to take the conversation in a different direction, but it's very unusual to propose the Country of Origin (CofO) by default, and not usually accepted by the Customs authority.  Generally the CofO depends on where you obtain the goods.  If that doesn't change much, it's usual to set the CofO on the Material Master record in the ERP system - in that case the value copies automatically into the GTS Export Declaration item.  That is why there is no standard configuration having IT_CUCOO as a Target Field.
    Also, in many countries, CofO is not mandatory in the Export Declaration (although always mandatory in the Import Declaration).  You might want to check the situation in your area.
    Regards,
    Dave

  • How to display the current Date and time in xslt version 1

    i am using xslt version 1 .i want to display the current date and time in the output xml using xslt(Jdeveloper) ..i just added the namespace xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
         xmlns:ns1="urn:oracle:integration:b2b:7D30046DC68A4FA689956D8241FA3B99">
    and used thsi function <xsl:value-of select = "xp20:current-date()"/>
    but it does not works for me ..help needed????
    Edited by: user9519185 on Jan 20, 2009 3:04 AM

    Use a formula: =NOW()
    Format the cell for Date and Time, with both the Date part and the Time part displayed. Format the two parts as you wish, using the choices in the Inspector's menus.
    The cell will update each time the table is recalculated.
    (Description is for Numbers '09 (Mac), Numbers for iOS will be similar, but not necessarly identical in details.)
    Regards,
    Barry

Maybe you are looking for