Assigning a new value to Float objects

Hi,
With BigDecimals, you can assign a value without explicitly creating a new object like this:
BigDecimal b = new BigDecimal(5.23f);
b = BigDecimal.valueOf(625, 2);
As far as I can see, the only ways of doing this with Float is:
Float f = new Float(5.23f);
f = new Float(6,25f);
//OR:
f = Float.valueOf("6.25");
Are there any other ways? Which is most efficient?
Cheers,
Rewbs.

Hi,
With BigDecimals, you can assign a value without
explicitly creating a new object like this:
BigDecimal b = new BigDecimal(5.23f);
b = BigDecimal.valueOf(625, 2);BigDecimal.valueOf:
"Translates a long value into a BigDecimal with a scale of zero. This 'static factory method' is provided in preference to a (long) constructor because it allows for reuse of frequently used BigDecimals."
"frequently used BigDecimals" seems to mean all values form -16 up to 16. For all other values a new BigDecimal object is created anyhow.
>
As far as I can see, the only ways of doing this with
Float is:
Float f = new Float(5.23f);
f = new Float(6,25f);
//OR:
f = Float.valueOf("6.25");
Are there any other ways? Which is most efficient?
No there are no other ways, and the first is definitely the most efficient one. The constructor does no more than creating a new object and assigning the value to it's value field. The other method involves parsing the string, check whether it is a valid representation of a float, ... , and then create a new Float object.

Similar Messages

  • Problem while setting new value to entity object attribute in doDML meathod

    Hi all,
    I am overriding the entity objects doDML method for generating the value of Sequence Number just before insert .
    For this puropose i am using doDML method. I am fetching the maximum value for the sequence number feild from the table by a prepared statement
    and then incrementing that value by one.
        protected void doDML(int operation, TransactionEvent e) {
            if (operation == DML_INSERT) {
                // code for getting the max+1 of sequence number before insert
                //command executes.
                try {
                    System.out.println("Inside doDML Method");
                    String sql =
                        "select nvl(max(seq_no),0)+1  from WF_LEAVE_HDR where org_unit_code = " +
                        this.getOrgUnitCode();
                    PreparedStatement pstmt =
                        getDBTransaction().createPreparedStatement(sql, 0);
                    ResultSet rs = pstmt.executeQuery();
                    rs.next();
                    Integer newSeqNo =rs.getInt(1); //(Number)rs.getString(0);
                    //this.setSeqNo(new Number(newSeqNo));
                    setAttributeInternal("SeqNo",new Number(newSeqNo));
                    System.out.println("Value of new seq no is -->>"+getSeqNo());
                } catch (Exception excpt) {
                    System.out.println("Inside catch block ");
                    excpt.printStackTrace();
            super.doDML(operation, e);
        }i am getting the value correct by using the sql statement but while i am using setAttributeInternal("SeqNo",new Number(newSeqNo));
    it is giving an error and value for new sequence no is not passed to the seq no feild of the entity object. I have tried this.setSeqNo(new Number(newSeqNo))
    but it is also not wotrking .
    Any one please help , I am using Jdeveloper 10.1.3
    Thanks all in advance.

    iloveoracle,
    Sigh... in addition to doing this in doDML (which Dimitar points out is the wrong place to do this)... you are making a huge huge mistake.
    select nvl(max(seq_no),0)+1  from WF_LEAVE_HDRWhat happens when two people do this at around the same time? You don't do any locking, so you will get two rows with the same SeqNo. This is absolutely the wrong way of doing sequence numbers. The best way of doing this would be to use real sequence numbers (an Oracle sequence) and ignore the fact that there will be gaps. If you insist on using your approach, you MUST LOCK THE ENTIRE TABLE before you try to do your little max() + 1 trick, otherwise you run the very real risk of getting duplicate SeqNos. OK, I see that you are trying to do sequences by org_unit_code, so you don't have to lock the whole table, but you do have to have some way of holding a lock. You must also write some code to be able to handle an "unable to get the lock because someone else already holds it" type of situation.
    <rant>
    I have seen so many people try to do this little max() + 1 trick. It DOES NOT, WILL NOT work until you handle locking properly. One question that I often ask when I interview database developers is about generating "gapless" sequences; unless the job is for a brand-new-with-absolutely-no-experience trainee, answering "select max() + 1" without any mention of concurrency issues would be grounds for an immediate rejection of the candidate. Seriously. Have a run over to http://asktom.oracle.com and search for "gapless" if you'd like to see a more strongly worded rant.
    </rant>
    Bottom line, just use an Oracle sequence if it's at all possible; otherwise, be prepared to write some bunches of code to deal with locking.
    John

  • The .blueMultiplier (movie clip color property) does not take new value..?

    It seems I can not assign a new value to the .blueMultiplier (a movie clip color property) using AS3 ????!!!
    I have a basic movie clip 'mymc' in my scene, and this AS3 code:
    trace (mymci.transform.colorTransform.blueMultiplier);
    mymc.transform.colorTransform.blueMultiplier = 0;
    trace (mymc.transform.colorTransform.blueMultiplier);
    Values that are returned:
    1
    1
    What am I missing?
    Thanks.

    you can't assign transform/colorTransform properties directly.  you update a transform/colorTransform instance and assign your object's transform/colorTransofrm instance to be the updated transform/colorTransform instance:
    var ct:ColorTransform = mymc.transform.colorTransform;
    ct.blueMultiplier = 0;
    mymc.transform.colorTransform = ct;

  • The new value of bind variable does not show up after changed by PL/SQL

    Hi,
    I am running APEX 3.2. I use PL/SQL process to assign a new value to a bind variable, say, :P2_TEST := 123. The new value does not show up on the page although I can see it in the Session status.
    How can I make the new value to be displayed on the page immediately after the process is run?
    Kind regards,
    Tee

    Maybe you could use an ajax routine to refresh the item in your pl/sql routine?
    Thank you,
    Tony Miller
    Webster, TX

  • I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    Ntenich,
    If your table has a Header and your Legend text is in the header, it will be picked up by the table.
    Jerry

  • Assigning External content type field column value using Client Object Model

    I have a problem assinging External column value to ListItem object with client object model-based application I'm developing. To be precise, I am able to retrieve data related to external content type by reading external list created from this content type
    but I don't know how to properly use it to assign value to this field. By doing some research on my own I concluded that BDC ID column from external list is the way to go since it uniquely defines selected row from external list but that doesn't
    tell me much since I don't know what to do with it. Currently I ended up with partial solution - to assign plain string value of picker column but that makes this value visible only in "View Properties" option on Sharepoint and not in "Edit Properties"
    which pritty much makes sence since it isn't properly related to rest of the data in specific row. Does someone have a better solution for this?
    Igor S.

    I think I understand your problem.
    In my example I have an external data column "Beneficiary Name", using a Beneficiary external content type (accessing a table of beneficiaries in a SQL table).
    I want to set the "Beneficiary Name" property using the client object model. I know the name of the beneficiary but not the ID value.
    It is a fairly simple solution. You just need to identify the name of the property SharePoint assigns to the ID field, in my case it is called "Beneficiary_ID". Then set the two properties as follows:
    thisItem["Beneficiary_Name"] = "Charitable Trust";
    thisItem["Beneficiary_ID"] = -1;
    thisItem.Update();
    Setting the ID property to -1 causes the server to do an automatic lookup for the ID from the value assigned to the item.

  • BPS Web New master data (info object value) added to planning area

    Dear all,
    I am working with BPS in Web.
    Here you can add lines.
    Request:
    The user wants to add a new value of the lead column, ´
    which is not yet active in the master data of the info object envolved here.
    He simply wants to enter the new value in the opened new line and the
    system should store(add) that value to the master table,
    so that he could directly plan KF values to that new line.
    I know that we can use FM 'RSDMD_WRITE_ATTRIBUTES_TEXTS'
    to post directly new values to the bespoken info object.
    Where and how could I add this function to the process.
    Note:
    It seems that the BSP dispatcher doesn't pass that line
    because the "invalid" line is rejected  in a step before ??
    Many thanks for your help in advance ! 
    regards
    Paul

    Vlad,
    Transaction RSD1 gets you into infoobject maintenance and it more or less equivalent to RSA1 and infoobject althought they have some better listing facilities for infobject in infocubes than RSA1.
    Paul,
    Are you really sure you want to give your users the ability to create new master data without any validation and potentially compromising your data quality and data integrity? 
    Sometimes in BPS you have to ask whether or not you should even though you could...

  • How to send timer job email to "assigned to" feild value in a task list?

    Hi All,
    How to send timer job email  to "assigned to" field value in a task list if due date is after two days from now?

    Create a SharePoint Designer Workflow and use "pause until date" option when an new item is created/update.
    Using Server Object model, I believe you can create the timer job from item event receiver.
    --Cheers

  • Exchange Connector 3.0 (Hotfix Release) Error - Error Message=The key value of an object cannot be changed.

    Hello,
    I am running Service Manager 2012 with the Exchange Connector 3.0 RTM (Re-release Version).  The issue I have is that when an e-mail is processed that is trying to update the status or event log of an incident, the Exchange Connector encounters an error
    and will not update the object.  The Operations Manager log denotes: 
    Exchange Connector: Unable to process mail item. Subject="Close Ticket: [IRXXXXX]", Error Message=The key value of an object cannot be changed.
    This will happen on a seemingly random selection of Incident work items.  I cannot correlate them with a specific template, exchange connector, or incident tier queue that could be causing the issue.  I can recreate the way a specific ticket
    was created and update it through e-mail without issue, and the next ticket can cause the error to trigger. 
    I have already opened a Microsoft Support Case using our Software Assurance agreement.  After a few months of troubleshooting the issue and trying different fixes, Microsoft support said they were unable to fix the problem and that we would need to
    purchase Premier support to go further. At this point I thought I would reach out to the community for ideas.
    The setup I have for the Exchange connectors is as follows.
    I have three separate Exchange connectors set up to three different mailboxes.  One Exchange connector processes external support tickets and applies a specific template.  Another processes client support tickets and applies a different template. 
    And the last Exchange connector processes internal tickets and also processes the updates of tickets created by the other two exchange connectors. 
    Here are the fixes I've attempted so far:
    1.  Changed the templates that each Exchange connector applies.
    2.  Changed the management pack that each template is stored in.
    3.  Checked my management pack(s) for extended classes by searching for Extension="true" (This was also checked by Microsoft support)
    4.  Deleted each Exchange connector and recreated each connector
    5.  Deleted each Exchange connector, deleted the management pack, and reinstalled the management pack and connectors
    6.  Repeated Step 5, deleted Microsoft.SystemCenter.ExchangeConnector.dll and Microsoft.SystemCenter.ExchangeConnector.resources.dll and then installed the Exchange connector Re-release version 3.0 Published 10/7/2013 (which is supposed to address this
    issue)
    7.  Deleted the HealthServiceState folder and restarted the Management Service
    I'm not really sure what to do at this point.  I've put many hours into customizing my installation to get it working for my organization so reformatting and starting from scratch would be a nightmare scenario.  This environment is in production.
    I do have a band-aid in place using Orchestrator.  Basically I have a monitor task searching for the error message and when it finds one it searches the mailbox for the offending e-mail and applies either the Resolve or Close status change that is requested
    from the user.  However, I do not have it working to update the ticket if a comment is applied to the incident.  If anyone is in this position and needs to know how to apply this Orchestrator task I am willing to provide my workflow.
    I am new to the community and am already impressed with the amount of help and effort there is in this forum.  I appreciate in advance any help that is provided and am open to any ideas at this point.  I can post more information as needed.
    Thank you,
    John

    Yes that is the whole template.  However, I did confirm that this is only happening to incidents where either of two situations triggers a runbook to fire and modify the incident.  When I remove the activity from the incident it does clear the
    issue.  For some background the first Runbook Activity set's the first response date when an incident is resolved if the first response value is null.  The second assigns the incident to a user upon creation if the title contains assignto:username;
    1.)
    <ObjectTemplate ID="Template.d33b5bbcaf3c49b18d8b72bc1e5e1ee4" TypeID="IncidentManagement!System.WorkItem.Incident.ProjectionType">
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/Escalated$">False</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/NeedsKnowledgeArticle$">False</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/HasCreatedKnowledgeArticle$">False</Property>
    <Object Path="$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' TypeConstraint='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity']$">
    <Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/RunbookId$">4085f0da-ab83-48e5-bbe3-1f3b5fa2dc4a</Property>
    <Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/TemplateId$">Template.d33b5bbcaf3c49b18d8b72bc1e5e1ee4</Property>
    <Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/IsReadyForAutomation$">True</Property>
    <Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/PropertyMapping$">&lt;?xml version="1.0" encoding="utf-16"?&gt;
    &lt;ParameterMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;ParameterList&gt;
    &lt;RunbookParameterItem&gt;
    &lt;Name&gt;Get RA Guid&lt;/Name&gt;
    &lt;Id&gt;344b15effc1a44528e517c5b4227179c&lt;/Id&gt;
    &lt;Type&gt;String&lt;/Type&gt;
    &lt;Value&gt;Generic::Id&lt;/Value&gt;
    &lt;Direction&gt;In&lt;/Direction&gt;
    &lt;ContextInfo /&gt;
    &lt;/RunbookParameterItem&gt;
    &lt;/ParameterList&gt;
    &lt;RunbookId&gt;4085f0da-ab83-48e5-bbe3-1f3b5fa2dc4a&lt;/RunbookId&gt;
    &lt;/ParameterMapping&gt;</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/ChildId$">1906</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Status$">$MPElement[Name='CustomSystem_WorkItem_Activity_Library!ActivityStatusEnum.Active']$</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Skip$">False</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Title$">Set First Response on Resolve</Property>
    </Object>
    </ObjectTemplate>
    2.)
    <ObjectTemplate ID="Template.b311e1f9126e4e19bbbbeb65ddb220ba" TypeID="IncidentManagement!System.WorkItem.Incident.ProjectionType">
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/Escalated$">False</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/Status$">$MPElement[Name='CustomSystem_WorkItem_Incident_Library!IncidentStatusEnum.Active']$</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/NeedsKnowledgeArticle$">False</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/HasCreatedKnowledgeArticle$">False</Property>
    <Object Path="$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' TypeConstraint='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity']$">
    <Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/RunbookId$">ca88b13b-861a-4d39-a3cb-fd912d951e35</Property>
    <Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/TemplateId$">Template.b311e1f9126e4e19bbbbeb65ddb220ba</Property>
    <Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/IsReadyForAutomation$">True</Property>
    <Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/PropertyMapping$">&lt;?xml version="1.0" encoding="utf-16"?&gt;
    &lt;ParameterMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;ParameterList&gt;
    &lt;RunbookParameterItem&gt;
    &lt;Name&gt;RA Activity GUID&lt;/Name&gt;
    &lt;Id&gt;5677d117a0294a2c898a695032f26c72&lt;/Id&gt;
    &lt;Type&gt;String&lt;/Type&gt;
    &lt;Value&gt;Generic::Id&lt;/Value&gt;
    &lt;Direction&gt;In&lt;/Direction&gt;
    &lt;ContextInfo /&gt;
    &lt;/RunbookParameterItem&gt;
    &lt;/ParameterList&gt;
    &lt;RunbookId&gt;ca88b13b-861a-4d39-a3cb-fd912d951e35&lt;/RunbookId&gt;
    &lt;/ParameterMapping&gt;</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/ChildId$">1120</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Status$">$MPElement[Name='CustomSystem_WorkItem_Activity_Library!ActivityStatusEnum.Active']$</Property>
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Skip$">False</Property>
    <Property Path="$Context/Property[Type='WorkItem!System.WorkItem']/Title$">Execute Orchestrator IR - Autoassign</Property>
    </Object>
    </ObjectTemplate>

  • Assigning a default value to a user property

    Hi everyone,
    do you know how can I assign a default value to a user property? It would be great if I should be able to assign it from the administration without writing any code (like profile web services...).
    Thank you!
    Alberto Marchiaro

    Hi Alberto,
    I don't think you can currently do this. In other words you can't set a default value for some object property and have it subbed in when no better value is available.
    You can however create a default profile, and set values for the object properties assigned to users (You do this by going to the "Default Profiles" manager). You can then edit the "Default Profile" that is already there (or create a new one), and edit the "Properties and Names". Set the value field to whatever you'd like to be copied by default.
    Once done, all new users that are created via a User Synchronization job will have this default profile. The changes will not apply to users that were previously created. If you created a new Default Profile in the Default Profiles Manager, then you need to goto the Authentication Source that you are doing your sync's from and pick which profile you'd like to use for All Groups. You can also create custom Default Profiles for various groups.
    Hope this helps,
    Akash

  • Assign a number value to an mc

    hi everyone,
    so a while back I asked if it was possible to assign a number value to an mc. So I'm done my early work on it and am ready to try and integrate this function. I'll explain what I'm trying to do and I hope someone can point me in the right direction.
    I'm making a small change game. So game is split into five scenes, each scene the person will receive a receipt. The person will have change in their hand (all canadian denominations). They have to look at the receipt and the change in their hand (both mcs), and figure out if its correct. If not they drag change from another pile and place it in the hand. So here's what I'm looking at trying to accomplish. I'd like to have a check change button (simple mc). I'm guessing that each coin needs a numeric value associated with it (no clue on if or how you could do this). If the numbers add up to the predetermined bill value (so I'm guessing I'd give that a numeric value as well), i hit the check button and it'll see if the change in the hand adds up to match what the bill should. So here's where my code sits currently, still tweaking as we speak. I'm still new so be gentle on my code I know its long. If anyone knows any house keeping tips that'd be great!
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    import com.greensock.*;
    import com.greensock.easing.*;
    import flash.media.Sound;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.display.StageDisplayState;
    // listeners
    sc1.beginbutton1.addEventListener(MouseEvent.CLICK, beginbutton1buttonclick);
    bill1.addEventListener(MouseEvent.CLICK, bill1click);
    sc1.checkout1.addEventListener(MouseEvent.CLICK, checkout1click);
    bill2.addEventListener(MouseEvent.CLICK, bill2click);
    bill3.addEventListener(MouseEvent.CLICK, bill3click);
    bill4.addEventListener(MouseEvent.CLICK, bill4click);
    bill5.addEventListener(MouseEvent.CLICK, bill5click);
    sc1.repeatbutton1.addEventListener(MouseEvent.CLICK, repeatbutton1buttonclick);
    helpmenu.xbutton.addEventListener(MouseEvent.CLICK, xbuttonclick);
    bill1.billx.addEventListener(MouseEvent.CLICK, bill1billxclick);
    answermenu.xanswerbutton.addEventListener(MouseEvent.CLICK, xanswerbuttonclick);
    backbutton.addEventListener(MouseEvent.CLICK, backclick);
    helpbutton.addEventListener(MouseEvent.CLICK, helpclick);
    answerbutton.addEventListener(MouseEvent.CLICK, answerclick);
    penny1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny5.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny6.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny7.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    helpmenu.visible=false;
    answermenu.visible=false;
    bill1.visible=false;
    bill2.visible=false;
    bill3.visible=false;
    bill4.visible=false;
    bill5.visible=false;
    TweenMax.to(penny, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie4, 0.1, {scaleX:0.1, scaleY:0.1});
    //variable declarations
    var myTween:Tween;
    var me:Object;
              function grabMe(e:MouseEvent):void{
              me = e.currentTarget;
              me.removeEventListener(MouseEvent.MOUSE_DOWN, grabMe);
              me.startDrag();
              e.target.parent.addChild(e.target)
              var tweeny:Tween = new Tween(me, "y", Regular.easeIn, me.y, me.y-75, .04, true);
              var scaley:Tween = new Tween(me, "scaleY", Regular.easeIn, me.scaleY, 0.4, 0.05, true);
              var scalex:Tween = new Tween(me, "scaleX", Regular.easeIn, me.scaleX, 0.4, 0.05, true);
              var my_shadow:DropShadowFilter = new DropShadowFilter();   
              my_shadow.color = 0x000000; 
              my_shadow.blurY = 3; 
              my_shadow.blurX = 3; 
              my_shadow.angle = 90;   
              my_shadow.alpha = .2; 
              my_shadow.quality = 15;
              my_shadow.distance = 100;  
              var filtersArray:Array = new Array(my_shadow); 
              me.filters = filtersArray;
              stage.addEventListener(MouseEvent.MOUSE_MOVE, dragMe);
              stage.addEventListener(MouseEvent.MOUSE_UP, dropMe);
              function dropMe(e:MouseEvent):void {
              stage.removeEventListener(MouseEvent.MOUSE_UP, dropMe);
              stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragMe);
              me.stopDrag();
              me.filters=undefined;
              var tweenydown:Tween = new Tween(me, "y", Regular.easeIn, me.y, me.y+90, .4, true);
              var scaley:Tween = new Tween(me, "scaleY", Regular.easeOut, me.scaleY, 0.1, 0.05, true);
              var scalex:Tween = new Tween(me, "scaleX", Regular.easeOut, me.scaleX, 0.1, 0.05, true);
              me.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
              //lockinplace(DisplayObject(e.currentTarget))
              //mainclicksound.play();
    function dragMe(e:MouseEvent):void {
              e.updateAfterEvent();
    //nav bar items
    function backclick(event:MouseEvent):void{
              answermenu.visible=false;
              helpmenu.visible=false;
    function helpclick(event:MouseEvent):void{
              helpmenu.visible=true;
              answermenu.visible=false;
              setChildIndex(helpmenu,numChildren - 1)
              TweenMax.to(helpmenu, 3, {y:350, startAt:{y:600}, ease:Elastic.easeOut});
    function xbuttonclick(event:MouseEvent):void{
              helpmenu.visible=false;
    function answerclick(event:MouseEvent):void{
              answermenu.visible=true;
              helpmenu.visible=false;
              setChildIndex(answermenu,numChildren - 1)
              TweenMax.to(answermenu, 3, {y:350, startAt:{y:600}, ease:Elastic.easeOut});
    function xanswerbuttonclick(event:MouseEvent):void{
              answermenu.visible=false;
              helpmenu.visible=false;
    //screen button items
    function beginbutton1buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase1");
    bill1.visible=true;
    TweenMax.to(bill1, 0.0, {alpha:0});
    TweenMax.to(bill1, 2, {delay:0.5, y:bill1.y+90});
    TweenMax.to(bill1, 0.5, {delay:0.5, alpha:1});
    function repeatbutton1buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase1");
    function bill1click(event:MouseEvent):void{
    TweenMax.to(bill1, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    function bill1billxclick(event:MouseEvent):void{
    bill1.visible=false;
    function checkout1click(event:MouseEvent):void{
    function beginbutton2buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase2");
    bill2.visible=true;
    TweenMax.to(bill2, 0.0, {alpha:0});
    TweenMax.to(bill2, 2, {delay:0.5, y:bill2.y+90});
    TweenMax.to(bill2, 0.5, {delay:0.5, alpha:1});
    function repeatbutton2buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase2");
    function bill2click(event:MouseEvent):void{
    TweenMax.to(bill2, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    function bill2billxclick(event:MouseEvent):void{
    bill2.visible=false;
    function beginbutton3buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase3");
    bill3.visible=true;
    TweenMax.to(bill3, 0.0, {alpha:0});
    TweenMax.to(bill3, 2, {delay:0.5, y:bill3.y+90});
    TweenMax.to(bill3, 0.5, {delay:0.5, alpha:1});
    function repeatbutton3buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase3");
    function bill3click(event:MouseEvent):void{
    TweenMax.to(bill3, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    function bill3billxclick(event:MouseEvent):void{
    bill3.visible=false;
    function beginbutton4buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase4");
    bill4.visible=true;
    TweenMax.to(bill4, 0.0, {alpha:0});
    TweenMax.to(bill4, 2, {delay:0.5, y:bill4.y+90});
    TweenMax.to(bill4, 0.5, {delay:0.5, alpha:1});
    function repeatbutton4buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase4");
    function bill4click(event:MouseEvent):void{
    TweenMax.to(bill4, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    function bill4billxclick(event:MouseEvent):void{
    bill4.visible=false;
    function beginbutton5buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase5");
    bill5.visible=true;
    TweenMax.to(bill5, 0.0, {alpha:0});
    TweenMax.to(bill5, 2, {delay:0.5, y:bill5.y+90});
    TweenMax.to(bill5, 0.5, {delay:0.5, alpha:1});
    function repeatbutton5buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase5");
    function bill5click(event:MouseEvent):void{
    TweenMax.to(bill5, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    function bill5billxclick(event:MouseEvent):void{
    bill5.visible=false;
    //function beginbutton2buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase2");
    //function repeatbutton2buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase2");
    //function beginbutton3buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase3");
    //function repeatbutton3buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase3");
    //function beginbutton4buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase4");
    //function repeatbutton4buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase4");
    //function beginbutton5buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase5");
    //function repeatbutton5buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase5");

    ok so i got the trace working when I drop a coin on the hand mc. How would you make it so that when you hit the checkout button, you can see if the myValue items add up to a specific amount? Here's my revised code!
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    import com.greensock.*;
    import com.greensock.easing.*;
    import flash.media.Sound;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.display.StageDisplayState;
    // listeners
    helpmenu.xbutton.addEventListener(MouseEvent.CLICK, xbuttonclick);
    answermenu.xanswerbutton.addEventListener(MouseEvent.CLICK, xanswerbuttonclick);
    backbutton.addEventListener(MouseEvent.CLICK, backclick);
    helpbutton.addEventListener(MouseEvent.CLICK, helpclick);
    answerbutton.addEventListener(MouseEvent.CLICK, answerclick);
    sc1.beginbutton1.addEventListener(MouseEvent.CLICK, beginbutton1buttonclick);
    bill1.addEventListener(MouseEvent.CLICK, bill1click);
    sc1.checkout1.addEventListener(MouseEvent.CLICK, checkout1click);
    sc1.checkout2.addEventListener(MouseEvent.CLICK, checkout2click);
    sc1.checkout3.addEventListener(MouseEvent.CLICK, checkout3click);
    sc1.checkout4.addEventListener(MouseEvent.CLICK, checkout4click);
    sc1.checkout5.addEventListener(MouseEvent.CLICK, checkout5click);
    bill2.addEventListener(MouseEvent.CLICK, bill2click);
    bill3.addEventListener(MouseEvent.CLICK, bill3click);
    bill4.addEventListener(MouseEvent.CLICK, bill4click);
    bill5.addEventListener(MouseEvent.CLICK, bill5click);
    bill1.billx1.addEventListener(MouseEvent.CLICK, bill1billx1click);
    bill2.billx2.addEventListener(MouseEvent.CLICK, bill2billx2click);
    bill3.billx3.addEventListener(MouseEvent.CLICK, bill3billx3click);
    bill4.billx4.addEventListener(MouseEvent.CLICK, bill4billx4click);
    bill5.billx5.addEventListener(MouseEvent.CLICK, bill5billx5click);
    five.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    five1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    five2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny5.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny6.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny7.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    bill1.visible=false;
    sc1.checkout1.visible=false;
    sc1.checkout2.visible=false;
    sc1.checkout3.visible=false;
    sc1.checkout4.visible=false;
    sc1.checkout5.visible=false;
    bill2.visible=false;
    bill3.visible=false;
    bill4.visible=false;
    bill5.visible=false;
    BS.visible=false;
    hand.visible=false;
    hitbox.mouseEnabled = false;
    helpmenu.visible=false;
    answermenu.visible=false;
    TweenMax.to(five, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(five1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(five2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie4, 0.1, {scaleX:0.1, scaleY:0.1});
    ///assigned values
    var myValue;
    penny1.myValue = .01;
    penny2.myValue = .01;
    penny3.myValue = .01;
    penny4.myValue = .01;
    penny5.myValue = .01;
    penny6.myValue = .01;
    penny7.myValue = .01;
    penny.myValue = .01;
    dime1.myValue = .10;
    dime2.myValue = .10;
    dime3.myValue = .10;
    dime4.myValue = .10;
    dime.myValue = .10;
    nickel1.myValue = .05;
    nickel2.myValue = .05;
    nickel3.myValue = .05;
    nickel4.myValue = .05;
    nickel.myValue = .05;
    quarter2.myValue = .25;
    quarter3.myValue = .25;
    quarter4.myValue = .25;
    quarter.myValue = .25;
    toonie2.myValue = 2.0;
    toonie3.myValue = 2.0;
    toonie4.myValue = 2.0;
    toonie.myValue = 2.0;
    loonie2.myValue = 1.0;
    loonie3.myValue = 1.0;
    loonie4.myValue = 1.0;
    loonie.myValue = 1.0;
    //variable declarations
    var pickupsound:pickup=new pickup
    var coinonhandsound:coinonhand=new coinonhand
    var coinpickupsound:coinpickup=new coinpickup
    var coindropsound:coindrop=new coindrop
    var droppapersound:droppaper=new droppaper
    //var clickssound:clicks=new clicks
    var myTween:Tween;
    var me:Object;
              function grabMe(e:MouseEvent):void{
              me = e.currentTarget;
              me.removeEventListener(MouseEvent.MOUSE_DOWN, grabMe);
              me.startDrag();
              e.target.parent.addChild(e.target)
              coinpickupsound.play();
              var tweeny:Tween = new Tween(me, "y", Regular.easeIn, me.y, me.y-75, .04, true);
              var scaley:Tween = new Tween(me, "scaleY", Regular.easeIn, me.scaleY, 0.4, 0.05, true);
              var scalex:Tween = new Tween(me, "scaleX", Regular.easeIn, me.scaleX, 0.4, 0.05, true);
              var my_shadow:DropShadowFilter = new DropShadowFilter();   
              my_shadow.color = 0x000000; 
              my_shadow.blurY = 3; 
              my_shadow.blurX = 3; 
              my_shadow.angle = 90;   
              my_shadow.alpha = .2; 
              my_shadow.quality = 15;
              my_shadow.distance = 100;  
              var filtersArray:Array = new Array(my_shadow); 
              me.filters = filtersArray;
              stage.addEventListener(MouseEvent.MOUSE_MOVE, dragMe);
              stage.addEventListener(MouseEvent.MOUSE_UP, dropMe);
              function dropMe(e:MouseEvent):void {
              stage.removeEventListener(MouseEvent.MOUSE_UP, dropMe);
              stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragMe);
              me.stopDrag();
              me.filters=undefined;
              var scaley:Tween = new Tween(me, "scaleY", Regular.easeOut, me.scaleY, 0.1, 0.05, true);
              var scalex:Tween = new Tween(me, "scaleX", Regular.easeOut, me.scaleX, 0.1, 0.05, true);
              me.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
              lockinplace(DisplayObject(e.currentTarget))
    function dragMe(e:MouseEvent):void {
              e.updateAfterEvent();
    function lockinplace(e:DisplayObject):void{     
    //hand
    if(hand.hitTestPoint(mouseX, mouseY, true)){
              coinonhandsoundplay();
              trace(me.myValue)
              TweenMax.to(me,0.5,{x:mouseX,y:700, scaleX:0.2,scaleY:0.2,ease:Bounce.easeOut});
    //table
    //}else if(hitbox.hitTestPoint(mouseX, mouseY, true)){
    //TweenMax.to(me,0.2,{x:700, y:700, scaleX:0.3,scaleY:0.3,ease:Bounce.easeInOut});;
              //coinonhandsoundplay();
    } else {
              coindropsoundplay();
              TweenMax.to(me,0.5,{x:mouseX, y:700, scaleX:0.1,scaleY:0.1,ease:Bounce.easeOut});;
    //screen button items
    function beginbutton1buttonclick(event:MouseEvent):void{
                        sc1.gotoAndStop("phase1");
    hand.visible=true;
    bill1.visible=true;
    sc1.checkout1.visible=true;
    sc1.checkout2.visible=false;
    sc1.checkout3.visible=false;
    sc1.checkout4.visible=false;
    sc1.checkout5.visible=false;
    TweenMax.to(toonie2, 0.1, {x:655, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {x:625, y: 639, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:635, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:655, y: 635, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(bill1, 0.0, {alpha:0});
    TweenMax.to(bill1, 2, {delay:0.5, y:bill1.y+90});
    TweenMax.to(bill1, 0.5, {delay:0.5, alpha:1});
    function bill1click(event:MouseEvent):void{
    TweenMax.to(bill1, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    pickupsound.play();
    function bill1billx1click(event:MouseEvent):void{
    bill1.visible=false;
    droppapersound.play();
    function checkout1click(event:MouseEvent):void{
    sc1.gotoAndStop("phase2begin");
    sc1.beginbutton2.addEventListener(MouseEvent.CLICK, beginbutton2buttonclick);
    TweenMax.to(penny7, 0.0, {x:497.15, y:586.10, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie2, 0.0, {x:423.15, y: 622.50, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.0, {x:506.70, y: 622.25, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.0, {x:460, y: 587.20, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.0, {x:418.35, y: 589.90, scaleX:0.1, scaleY:0.1});
    bill1.visible=false;
    hand.visible=false;
    sc1.checkout1.visible=false;
    function beginbutton2buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase2");
    hand.visible=true;
    bill2.visible=true;
    sc1.checkout2.visible=true;
    sc1.checkout1.visible=false;
    sc1.checkout3.visible=false;
    sc1.checkout4.visible=false;
    sc1.checkout5.visible=false;
    TweenMax.to(loonie4, 0.1, {x:655, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {x:625, y: 639, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {x:635, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {x:655, y: 635, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter4, 0.1, {x:655, y: 635, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(bill2, 0.0, {alpha:0});
    TweenMax.to(bill2, 2, {delay:0.5, y:bill2.y+90});
    TweenMax.to(bill2, 0.5, {delay:0.5, alpha:1});
    function bill2click(event:MouseEvent):void{
    TweenMax.to(bill2, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    pickupsound.play();
    function bill2billx2click(event:MouseEvent):void{
    bill2.visible=false;
    droppapersound.play();
    function checkout2click(event:MouseEvent):void{
    sc1.gotoAndStop("phase3begin");
    sc1.beginbutton3.addEventListener(MouseEvent.CLICK, beginbutton3buttonclick);
    TweenMax.to(loonie4, 0.1, {x:462.15, y: 623.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {x:459.15, y: 627.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {x:463.15, y: 631.75, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {x:506.70, y: 622.25, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter4, 0.1, {x:504.70, y: 625.30, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:497.15, y: 586.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:500.15, y: 586.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:498.15, y: 588.60, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:500.15, y: 589.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {x:498.15, y: 591.65, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {x:499.15, y: 593.15, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:418.35, y: 589.90, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {x:416.35, y: 591.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:460, y: 587.20, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:457.15, y: 589.75, scaleX:0.1, scaleY:0.1});
    bill2.visible=false;
    hand.visible=false;
    sc1.checkout2.visible=false;
    function beginbutton3buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase3");
    hand.visible=true;
    bill3.visible=true;
    sc1.checkout3.visible=true;
    sc1.checkout2.visible=false;
    sc1.checkout1.visible=false;
    sc1.checkout4.visible=false;
    sc1.checkout5.visible=false;
    TweenMax.to(quarter3, 0.1, {x:655, y: 635, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny1, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel4, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel1, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(bill3, 0.0, {alpha:0});
    TweenMax.to(bill3, 2, {delay:0.5, y:bill3.y+90});
    TweenMax.to(bill3, 0.5, {delay:0.5, alpha:1});
    function bill3click(event:MouseEvent):void{
    TweenMax.to(bill3, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    pickupsound.play();
    function bill3billx3click(event:MouseEvent):void{
    bill3.visible=false;
    droppapersound.play();
    function checkout3click(event:MouseEvent):void{
    sc1.gotoAndStop("phase4begin");
    sc1.beginbutton4.addEventListener(MouseEvent.CLICK, beginbutton4buttonclick);
    TweenMax.to(quarter3, 0.1, {x:506.70, y: 622.25, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:497.15, y: 586.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:500.15, y: 586.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:498.15, y: 588.60, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:500.15, y: 589.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {x:498.15, y: 591.65, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {x:499.15, y: 593.15, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny1, 0.1, {x:497.70, y: 594.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:418.35, y: 589.90, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {x:416.35, y: 591.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime2, 0.1, {x:417.15, y: 593.25, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:460, y: 587.20, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:457.15, y: 589.75, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel4, 0.1, {x:459.15, y: 592.05, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel1, 0.1, {x:458.15, y: 595.20, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel, 0.1, {x:459.15, y: 597.20, scaleX:0.1, scaleY:0.1});
    bill3.visible=false;
    hand.visible=false;
    sc1.checkout3.visible=false;
    function beginbutton4buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase4");
    hand.visible=true;
    bill4.visible=true;
    sc1.checkout4.visible=true;
    sc1.checkout2.visible=false;
    sc1.checkout3.visible=false;
    sc1.checkout1.visible=false;
    sc1.checkout5.visible=false;
    TweenMax.to(five2, 0.1, {x:655, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:654, y: 644, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:645, y: 650, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:662, y: 642, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(bill4, 0.0, {alpha:0});
    TweenMax.to(bill4, 2, {delay:0.5, y:bill4.y+90});
    TweenMax.to(bill4, 0.5, {delay:0.5, alpha:1});
    function bill4click(event:MouseEvent):void{
    TweenMax.to(bill4, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    pickupsound.play();
    function bill4billx4click(event:MouseEvent):void{
    bill4.visible=false;
    droppapersound.play();
    function checkout4click(event:MouseEvent):void{
    sc1.gotoAndStop("phase5begin");
    sc1.beginbutton5.addEventListener(MouseEvent.CLICK, beginbutton5buttonclick);
    TweenMax.to(five2, 0.1, {x:460.15, y: 553.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:497.15, y: 586.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:500.15, y: 586.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:418.35, y: 589.90, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:460, y: 587.20, scaleX:0.1, scaleY:0.1});
    bill4.visible=false;
    hand.visible=false;
    sc1.checkout4.visible=false;
    function beginbutton5buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase5");
    hand.visible=true;
    bill5.visible=true;
    sc1.checkout5.visible=true;
    sc1.checkout2.visible=false;
    sc1.checkout3.visible=false;
    sc1.checkout4.visible=false;
    sc1.checkout1.visible=false;
    TweenMax.to(five2, 0.1, {x:655, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie2, 0.1, {x:655, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie3, 0.1, {x:622, y: 639, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie4, 0.1, {x:625, y: 639, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie4, 0.1, {x:658, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {x:625, y: 639, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {x:635, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {x:655, y: 635, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(bill5, 0.0, {alpha:0});
    TweenMax.to(bill5, 2, {delay:0.5, y:bill5.y+90});
    TweenMax.to(bill5, 0.5, {delay:0.5, alpha:1});
    function bill5click(event:MouseEvent):void{
    TweenMax.to(bill5, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    pickupsound.play();
    function bill5billx5click(event:MouseEvent):void{
    bill5.visible=false;
    droppapersound.play();
    function checkout5click(event:MouseEvent):void{
    BS.visible=true;
    hand.visible=false;
    bill5.visible=false;
    sc1.checkout5.visible=false;
    TweenMax.to(five2, 0.1, {x:460.15, y: 553.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie2, 0.1, {x:423.15, y: 622.50, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie3, 0.1, {x:415.70, y: 622.70, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie4, 0.1, {x:420.15, y: 627.70, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie4, 0.1, {x:462.15, y: 623.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {x:459.15, y: 627.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {x:463.15, y: 631.75, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {x:506.70, y: 622.25, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:497.15, y: 586.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:500.15, y: 586.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:498.15, y: 588.60, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:500.15, y: 589.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:460, y: 587.20, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:457.15, y: 589.75, scaleX:0.1, scaleY:0.1});
    //sound items
    //function bellsoundplay():void{
    //bellsound.play();
    //sound items
    function pickupsoundplay():void{
    pickupsound.play();
    //sound items
    function coinpickupsoundplay():void{
    coinpickupsound.play();
    //sound items
    function coindropsoundplay():void{
    coindropsound.play();
    function coinonhandsoundplay():void{
    coinonhandsound.play();
    function droppapersoundplay():void{
    droppapersound.play();
    //nav bar items
    function backclick(event:MouseEvent):void{
              answermenu.visible=false;
              helpmenu.visible=false;
    function helpclick(event:MouseEvent):void{
              helpmenu.visible=true;
              answermenu.visible=false;
              setChildIndex(helpmenu,numChildren - 1)
              TweenMax.to(helpmenu, 3, {y:350, startAt:{y:600}, ease:Elastic.easeOut});
    function xbuttonclick(event:MouseEvent):void{
              helpmenu.visible=false;
    function answerclick(event:MouseEvent):void{
              answermenu.visible=true;
              helpmenu.visible=false;
              setChildIndex(answermenu,numChildren - 1)
              TweenMax.to(answermenu, 3, {y:350, startAt:{y:600}, ease:Elastic.easeOut});
    function xanswerbuttonclick(event:MouseEvent):void{
              answermenu.visible=false;
              helpmenu.visible=false;

  • Where to Configure Service Ticket "Reason" & "Subject" field with new value

    Hi Friends - I am working on IC Webclient Service Ticket. I want to Configure the "Reason" field as well as the "Subject" field in Service Ticket with new Values as per our requirement.
    I could not find any Configuration object for the above mentioned customizing in the CRM > SPRO.
    Can you pls guide me where I can configure the same?
    Thanks in advance and warm regards
    Purnendu

    Hi Gert - Thanks a lot for your reply.
    I am using CRM 5.0. I just forgot that Categorization profile can be used for the same.
    I have configured the categorization profile for the same and its working fine.
    One more thing -
    I want to create an Appointment with Customer for problem resolution at the Customer Site. I want to assign Resorces to the Appointment so that the responsible resource is notified and sent to the Customer Site for Visit.
    Can you pls guide me on the same?
    Cheers
    Purnendu
    P.S. - Full reward points awarded.

  • How can i add an custom attribute and assign it to an existing custom object class in sun ds

    I need to add an attribute to sun ds schema and assign it to an existing custom object class.
    I know how to add an attribute but how can i add the attribute to an existing custom object class.
    Please help.
    Thanks

    The objectclasses attribute is multi-valued, so you can add several values to it as long as they are unique.
    For instance, I think you can add several declaration of the same objectclass as below (note the difference is the number of spaces in the value) howewer, from a schema perspective, only 1 will be taken into account:
    objectclasses: ( 2.5.6.6 NAME 'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256' )
    objectclasses: ( 2.5.6.6 NAME   'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256    ' )
    That's the reason why it is safe to delete previous value if you want to update an existing objectclass. No problem to add a new objectclass (new oid and new name) to the schema.
    -Sylvain

  • How to export "Managed by" field of Distribution and Security groups and import with new values? (Exchange 2010, AD 2003)

    My Active Directory environment is 2003 functional level and we have Exchange 2010.
    I am trying to find out the best way to do a mass edit for the "Managed by" values of our security and distribution groups.
    I know we can export the "managed by" field by csvde but I am not sure this is the correct way to do it. Also in the case that there are multiple users assigned to be managing a distribution group it only shows one value. Also powershell from Exchange
    2010 can be used with "get-distribution" but as our AD environment is 2003 is this correct also?
    Finally once the data is exported to csv can it be edited to then reimport and udpate the existing group managed by fields with new values?
    Not really sure that the best way to go about this is.
    Summary - We have 2003 AD with Exchange 2010 and I am trying to export a list of all our Distribution/Security groups showing the group name and managedby values so we can edit and update the
    existing managedby values with new ones. In some cases we have multiple users as the owners.
    Appreciate any advice on how this can be best achieved. Thank you.

    Hi,
    We can use the following command in Exchange 2010 to export "Managed by" field of Distribution and Security groups:
    Get-DistributionGroup | Select-object Name,@{label="ManagedBy";expression={[string]::join(“;”,$_.managedby)}},Primarysmtpaddress | Export-Csv
    C:\export.csv
    After you changed the Managed by field in export.csv and saved it as a new file named import.csv, we can run the following command to set with new value:
    Import-Csv C:\import.csv | Foreach-Object{ Set-DistributionGroup –Identity $_.Name –ManagedBy $_.ManagedBy}
    Hope it works.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • SRM 7.0 Account assignment adding new field Profit_ctr

    Hello All
    I am hoping that someone has done this in SRM 7.0 and can help me out.
    I have added PROFIT_CTR field to Account Assignment tab for SC.
    We have already followed the instructions in OSS note 1082243 and added PROFIT_CTR field to the 2 tables BBP_C_ACCF and BBP_C_ACCFD. The field is available in configuration for creating a new account assignment category using PROFIT_CTR field.
    In WDC, implicit enhancement was created and layout changed to make the field available in the view. The field already exists in the context so no other development was done.
    The PROFIT_CTR field is now available in Assignment tab for input SC is created.
    Also, configuration is done in PPOMA to default u201CProfit Centeru201D as the account assignment category.
    The problem is that during the SC creation , in the Account Assignment line, field  u201CAssign Numberu201D is still pointing at GL account (it is defaulted to GL Account) and not Profit Center value.  I would have expected u201CAssign Numberu201D field to contain profit center value and not GL Account.
    What further changes are needed?
    Looking forward to any suggestions..
    Thank you

    Hi Raj,
    Here is the documentation on how we did this when we were in 7.01.
    Version 20.0 - :
        The new requirement needs Profit center as one of the Account assignment category.
                      In order to get the profit center an implicit enhancement is required as SAP suggested.
                                        Please see SAP’s response at the bottom of this version.
    Enable Profit Center Field:
          1.) Enhance the class /SAPSRM/CL_PDO_ACCT_ASSGT_HLPR by creating a new post-exit for method GET_ACCCAT_TECHFIELDS.
       2.) Within the post-exit modify the field (ACC_FIELD) with new value
    ‘PROFIT_CTR’ of internal table ET_ACCCAT_TECHFIELD where ACC_CAT = ‘PR’.
          3.) This enables Profit center as one of the Account assignment Category.
    Version 22.0 - :
    Enable Profit Center F4 in UI:
    4.)  Enhance view V_DO_ACCOUNTING of component /SAPSRM/WDC_UI_DO_ACC.
    5.) Create a post-exit for method WDDOINIT of view V_DO_ACCOUNTING.
                                        6.) Within the post-exit set the value help to Application Defined. See below code.
                                                    CALL METHOD lo_nd_info->set_attribute_value_help
    EXPORTING
    name = 'PROFIT_CTR' " ContextAttribute Name                                 
    value_help_mode = '141' " value help mode–Application Defined.
    value_help = 'USAGE_SH_F4'. " Search help component usage.
       This enables the F4 input help for field Profit Center. Since it’s a search help in ECC and wanted to be displayed in SRM, additional development is required to bring in the F4 Popup screen.
    Enable Profit Center F4 Pop-up Screen:
    7.) Enhance the component controller of component /SAPSRM/WDC_UI_BACKEND_SH.
    8.) Create a post-exit for method SET_BAPI_PARAMETER of the component controller.
    9.) Within the post-exit set the Business objects parameters as follow
    DATA ls_bapi_parameter TYPE if_componentcontroller=>element_bapi_parameter.
    DATA lr_node           TYPE REF TO if_wd_context_node.
    lr_node = wd_context->get_child_node( 'BAPI_PARAMETER' ).
    IF iv_field EQ 'PROFIT_CTR'.                                       
    ls_bapi_parameter-objtype   = 'BUS0015'.
    ls_bapi_parameter-objname   = 'BUS0015'.
    ls_bapi_parameter-param     = 'PROFITCENTER'.
    ls_bapi_parameter-method    = 'GETLIST'.
    ls_bapi_parameter-field     = 'PROFITCENTER'.
    ls_bapi_parameter-shlpname  = 'PRCTR_EMPTY'.
    ls_bapi_parameter-shlpparam = 'PRCTR'.
    ls_bapi_parameter-FIELD_DESC = 'TXT50'.
    ENDIF.
    IF ls_bapi_parameter IS NOT INITIAL.
    lr_node->bind_structure( new_item = ls_bapi_parameter ).
    ENDIF.
    Setting these values enables the F4 Popup screen.
    Move Selected Value from Pop-up to profit center field in screen.
    10.) Once value is selected from the pop-up it should be moved to the
    profit center screen field.
    11.) In order to do that read the context Node ‘SELECTION’. This node contains
    the selected value.
    12.) Now move the selected value to the profit center field in context node
           ‘COMP_CONTEXT.’     
      lr_node = wd_context->get_child_node( 'SELECTION' ).
    lr_node->get_static_attributes( IMPORTING static_attributes = ls_selection ).
    lr_node = wd_context->get_child_node( 'COMP_CONTEXT' ).
    lr_node = lr_node->get_child_node( ls_selection-node_name ).
    lr_node->get_static_attributes( EXPORTING index = ls_selection-index
    IMPORTING static_attributes = ls_content ).
    Version 23.0 - :
            1.) Need to raise a warning message in Shopping cart whenever the profit center is
    Set to “PCDUMMY”.
    2.) Edit BAdI Implementation ZCL_IM__SRM_SEI_ITEM_CHECK. Add the warning message in method IF_EX_BBP_ITEM_CHECK_BADI~BBP_ITEM_CHECK by appending a new line with error message to export table ET_MESSAGES.
    Version 23.0 -
      1.) Create a customer field called ZPR_DESCRIPTION for accommodating profit center description. This is done by appending the field to structure INCL_EEW_PD_ACC_CSF.
    2.)  Create a RFC in ECC which would read table CEPCT to read profit center text. This Function module is called Z_FI_GET_PROFIT_CENTER_TEXT.
            SELECT SINGLE MCTXT FROM cepct
    INTO EV_PROFIT_CTR_TEXT WHERE spras = sy-langu
    AND   prctr = IV_profit_ctr
    AND   datbi >= sy-datum
    AND   kokrs = IV_controlling_area.
    IF sy-subrc NE 0.
    RAISE PROFIT_CTR_NOT_FOUND.
    ENDIF.
    3.) Within BAdI  ZCL_IM__SRM_DOC_CHANGE_BAD call the function module
          Z_FI_GET_PROFIT_CENTER_TEXT. Read profit center text and fill the
    Customer field ZPR_DESCRIPTION.
    SAP's Response for when I raised a message about profit center.  This is what helped us to start.
    Dear Customer,
    In the account overview screen, for custom account assignment
    categories, the GL account field would be shown in the 'Assigned to'
    column by default. However, if you go to the account assignment detail,
    you are able to use the search help for the profit_ctr field.
    As the fields are binded dynamically, only through a modification you
    would populate profit_ctr automatically.
    From the SRM 6.0 release onwards, the account assignment overview screenwas changed such that for the custom account leading fields, always the
    GL account would be shown. This was changed because, earlier when the
    leading field was a customer field, it was not possible to show the
    account description in the overview screen and it remained empty. This
    was creating confusion for the users.
    For the new releases, it was decided that when the leading field is a
    customer field, the GL account and its description would be shown in theoverview screen. The coding for the same has been implemented in the
    method /SAPSRM/IF_PDO_ACCT_ASSGT_HLPR~GET_ACCCAT_TECHFIELDS(class
    /SAPSRM/CL_PDO_ACCT_ASSGT_HLPR).
    WHEN OTHERS.
    ls_accf-acc_field =
    /sapsrm/if_pdo_action_c=>gc_acc_obj_gl_account.
    ls_acc_cat_techfield-desc_field =
    /sapsrm/if_pdo_action_c=>gc_acc_cat_gl_desc.
    ENDCASE.

Maybe you are looking for

  • Home sharing problem with music between iTunes and Apple TV

    iTunes 10.5.2.11 Apple TV2 running 4.4.4 (3330) Windows 7 pc WI FI connection Apple TV is losing its connection to iTunes on my windows 7 pc after streaming EXACTLY TWO SONGS.   I've never had this problem until the last update of iTunes to 10.5.2.11

  • I-tunes can't find songs in library on new external hard-drive

    My Western Electric hard-drive died and I purchased a new Seagate external drive. I moved my I-tunes music library with all my songs to the new drive and changed the location of my library in I-tunes. When I open I-tunes it can't find any of my songs

  • Valid Use of a Collection in SCCM

    I've read the contents of this post with much interest and would like to ask about whether my particular requirement is possible. When we build a server for the first time we need to ensure that it is not placed in collection with other production se

  • Installation of Database instance on server where database is already exist

    Hi All, We have a separate oracle database team who have copied one of the database using oracel backup restore procedure. This database is in 10g and it is working fine from oracle perspective. Now as a basis admin i need to install database instanc

  • Expand selection in FI_GL_4 extractor.

    Hi I would like to expand two fields that are not open for selection, which would be best to do this? Thanks Rafael Fassoli SAP-BR