Change the Status depending on the value selected in Sales stage

I want to change the status in opportunity, depending upon what is entered in sales stage.
I tried to find an appropriate BADI for the same purpose, but couldn't figure out any.
I was thinking of changing the method do_prepare_output and including the code to get the value of sales stage and set the status. Is this feasible?

Alternatively, you can enhance the SET method of the sales status and add the logic for status update as well.
Regards, Kathirvel

Similar Messages

  • How to change the Status CRTD of the Inspection Lot?

    Dear all.
    I want to Complete an Inspection Lot 10000000005 In the T-CODE qvm2.When I select the Inspection Lot 10000000005 and press F8 to Complete the Inspection,the SAP show an error message "Status check error".
    And the detail info show that the error was cause by the Status CRTD of the Inspection Lot.I check the Status of the Inspection Lot 10000000005 and found that it's Status was CRTD CHCR SPRQ.My question was how to change the Status CRTD of the Inspection Lot?
    Regard
    Yoda

    Hi
    CRTD means ...
    In material master QM vew-inspection setup->Inspect with task list tick is there.
    Now to change status,
    Go to Qp01>create a task list for material(If not exists)>remember date of creation of task list must be prior to date to creation of inspec lot
    If task list is created/exists>go to QA02.<inspection specification -->click on Inspec Spec
    and attach task list
    go to sample tab....click on sample.
    Now save it.
    Status will change to REL
    Regards
    Sujit

  • Is there a way to remove the changes to the URL Bar, specifically the status information and the target URL?

    To begin, I utterly despise the changes to the URL Bar and the removal of the Status bar. In order to stay with the latest version of Firefox I am attempting to recreate the look and feel as best I can.
    I have already installed the Status-4-Evar extension. The only thing that remains is to remove the status information and the target URL from the bar.
    Are there any settings in about:config that will allow me to make these changes?
    EDIT: Status information can be removed by toggling. status4evar.statusInUrlBar. Still looking for a way to remove the target URL...

    This code in [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line seems to remove the links that appear on hover.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    .urlbar-textbox-container {color: inherit !important;}
    .urlbar-textbox-container-children {opacity: 1 !important;}
    .urlbar-over-link-box {opacity: 0 !important;}
    </nowiki></pre>
    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

  • Sliding panels - change link appearance depending on the current panel

    Hi,
    I'm trying to change the appearance of the link, depending on the display panel. Panels change automatically after a certain period of time. I do not know: for example, how to recognize the current panel, and using an if statement to change the appearance of the link. I have such code:
    var sp1 = new Spry.Widget.SlidingPanels('panele');
    sp1.forward = true;
    window.onload = function() {
        id = setInterval(function() {
            if (sp1.forward === true) {
                if (sp1.getCurrentPanel() === sp1.showNextPanel()) {
                    sp1.showPreviousPanel();
                    sp1.forward = false;
            } else {
                if (!sp1.showPreviousPanel()) {
                    sp1.showNextPanel();
                    sp1.forward = true;
        }, 3000);
        //Spry.$$("a2").setStyle("background-color: #000;")
    I tried this::
    var data = sp1.getCurrentPanel();
    if(data.id == "panel_id")
    Spry.$$("link_id").setStyle("background-color: #000;")
    but it does not work...

    Take a look at this topic: http://forums.adobe.com/message/2174795#2174795

  • How can I put information in the status line at the bottom of the window

    Hi, I need to put some information on the status line, like username and database name. How can I do this?
    If someone know how to do this and could show some sample code, please, put in this.
    Thank you,
    San

    Thanks, but this put a message in the message line, and I need to put this in the status line below the message line, where are displayed messages like "enter query", "execute query", "list of values" and etc...
    Is this possible?
    Thanks

  • How to I switch off / on the Status Time in the Airport Status menu

    Good Day
    I was wondering if anyone knows how to switch on / off the time that show in the Status menu of the Airport. I have a MacBook Pro with Mountain Lion that shows a connection time next to the Wifi, and this time is different to the system time which is correct.
    The time doesn't make sense as the airport was disconnected at the time. Only Ethernet was used. But now connection the WiFi to a network doesn't change this time.
    I just need to shed some light and I have tried System Preferences, going through the network, Time & Date, and various menus but I am not sure where to change this and the searches on the community seems to only bring "time" Capsule results..
    Many thanks and looking forward to to see what you have
    Waldo

    sepefrancis wrote:
    How to i change the language, is it possible?
    No, it's not possible.  You will have to acquire another copy of the book in your native language.  If you can't find it in the iBookstore, try one of the other stores that also provide free ereader apps, like Kindle, Nook, Kobo, Googlebooks, or Sony.

  • Up next doesn't seem to work properly with multiple speakers over airplay. The status bar on the computer shows the song playing, but not over airplay. When I restart the song it plays, but the same thing happens when the next song cues up. Any ideas?

    Up next doesn't seem to work properly with multiple speakers over airplay. The status bar on the computer shows the song playing, but not over airplay. When I restart the song it plays, but the same thing happens when the next song cues up. Any ideas?

    Hey briannagrace96,
    Welcome to Apple Support Communities! I'd check out the following article, it looks like it applies to your situation:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/ts1363
    You'll want to go through the following troubleshooting steps, and for more detail on each step follow the link to the article above:
    Try the iPod troubleshooting assistant:
    If you have not already done so, try the steps in the iPod Troubleshooting Assistant (choose your iPod model from the list).
    If the issue remains after following your iPod's troubleshooting assistant, follow the steps below to continue troubleshooting your issue.
    Restart the iPod Service
    Restart the Apple Mobile Device Service
    Empty your Temp directory and restart
    Verify that the Apple Mobile Device USB Driver is installed
    Change your iPod's drive letter
    Remove and reinstall iTunes
    Disable conflicting System Services and Startup Items
    Update, Reconfigure, Disable, or Remove Security Software
    Deleting damaged or incorrect registry keys
    Take care,
    David

  • HT1386 When I try to sync my iphone with itunes, it tells me in a warning that I don't have enough memory and yet the status bar on the bottom says I do and I know that I have enough memory.What's as

    When I try to sync my iphone with itunes, it tells me a warning that I don't have enough memory and yet the status bar at the bottom says that I do and I know that I have enough memory. What's the problem? It happens with the ipods and ipad as well!!!

    The new iTunes has a somewhat different look from the previous version.  You can get the old look back if you prefer it by doing View > Show Sidebar in iTunes.  Or you can adapt to the new look.

  • I am Greek. I downloaded a film from ipad but for the last days it has not been downloaded and the status is "waiting".the charge has been made to my credit card. Does any body knows?

    I am Greek. I purchased a film from ipad but for the last days it has not been downloaded and the status is "waiting".the charge has been made to my credit card. Does any body knows?

    something other is dowloading somewhere on ipad

  • When I view the summary of content on my iphone5, the status bar at the bottom to the iTunes window shows I have 3.90 Gb's of "other".  What is that about and how can I free up that space?

    when I view the summary of content on my iphone5, the status bar at the bottom to the iTunes window shows I have 3.90 Gb's of "other".  What is that about and how can I free up that space? 

    I simply restored my iPhone from most recent  iCloud  backup.  Poof. Good to go!!!

  • How to avoid the objects dependency in the packages by standard settings?

    Hi,
    How to avoid the objects dependency in the packages by standard settings?
    Example Scenario -> Our project uses two packages u2018ZZP1u2019 and u2018ZZP2u2019 for developments in the system u2018SN1u2019. We created a domain u2018ZZ_DO_TESTu2019 in the Package u2018ZZP1u2019. Now we have to make sure that the developer should not use or refer domain u2018ZZ_DO_TESTu2019 for the developments in the package u2018ZZP2u2019.
    u2026Naddy

    Evevn i felt that in the CTS at least a warning can be given if the included objects refer to any other object(s) which arre:
      1. Local Objects
      2. Locked under other requests,
      3. Lastly able to detect cyclic dependency as in we had a situation where we had a program locked in request A which calls an FM locked in request B. Now Request B refers to a message which is locked in request A.Since it was a message it gave only requrn code 4 in transport and transport ended with warnings. But if it is some other object then it is going to give compile error in at least one transport and neither can be moved without the other.
    Anyways, i will check the BAPI he has mentioned and see if any workaround can be done,
    Request: Please keep the post active until we arrive at a good solution,Thanks.

  • Workflow changing the status based some columns value

    OOB workflow SP  designer 2013
    The workflow purpose is change the status columns from
    COMPLETE to IN PROGRESS or from
    IN PROGRESS to COMPLETE according some columns value.. And if the change is from
    IN PROGRESS to COMPLETE
    there will be change in some columns like
    If alertSOP Date <= today then change the status (Columns value) from Complete to In Progress and send email to the manager (the manager email address is a column (Manager Email)
    Else pause until the alert date=Today()
    If the status (columns) = in progress send Remainder email every 10 days
    If the status change from in progress to
    Complete (BY MANAGER MANUALLY) then
     last renewed Date =TODAY()
    Valid to Review=TODAY() + 4 MONTH
     Alert  Date=today() + 5 month
    and  Due Date=today() + 6 months
    AND START THE WORKFLOW AFTER UPDATING THIS COLUMNS FOR NEXT cycle
    SharePoint List(http://server/site/..) LIST ITEMS
    Department
    Contractor
    Division
    Manager Email
    Contractor last renewed Date
    Contractor Valid to Review
    Alert SOPReview
    DueDate Review
    Status
    Workflow Status
    ABC
    JONAH
    10
    [email protected]
    01/01/2014
    05/06/2014
    5/07/2014
    5/08/2014
    COMPLETE
    paused 
    DEF
    SMITH
    20
    [email protected]
    01/01/2014
    02/03/2014
    2/28/2014
    3/20/2014
    INPROGRESS
    INPROGRESS
    Note:
    The status is changed manually by manager from IN PROGRESS TO COMPLETE
    The status from COMPLETE to IN PROGRESS is changed by event or Triggers  (based the alert date) 

    The First Part are coded as follow
    (The workflow purpose is change the status columns from COMPLETE to IN
    PROGRESS or fromIN PROGRESS to COMPLETE according
    some columns value.. And if the change is from IN
    PROGRESSto COMPLETE there
    will be change in some columns like
    If alertSOP Date <= today then change the status (Columns value) from Complete to In Progress and send email to the manager (the manager email address is a column (Manager Email)
    Else pause until the alert date=Today()
    If the status (columns) = in progress send
    Reminder email every 10 days)
    Note:
    The first if Block work as expected
    the second if block generate error.. Internal States Canceled
    RequestorId: 3b262286-66e8-5f9f-09f8-3b09c5be0ebc. Details: System.ApplicationException: HTTP 400 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["1"],"SPClientServiceRequestDuration":["1997"],"SPRequestGuid":["3b262286-66e8-5f9f-09f8-3b09c5be0ebc"],"request-id":["3b262286-66e8-5f9f-09f8-3b09c5be0ebc"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"Cache-Control":["max-age=0, private"],"Date":["Tue, 25 Mar 2014 21:25:35 GMT"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext
    context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager
    bookmarkManager, Location resultLocation)

  • Change of status/updation of the status through program

    Hi
         Is there any program to change of status of doucments(Orders or delvieries or billing).
    Thanks

    hi ,
    use tcode MASS, select object sales order, then u can choose the concerned table.Now u can change the values in the fields
    thanks

  • Populating the 2nd dropdown based on value selected on 1st dropdown

    Hi,
    I know that there is a similar post about this in the forum but it doesn't actually show how an event for the dropdown is created. I believe this would be a script that is done within the form (transaction SFP) itself, but could I please have an example please?
    I did try to take a look at the standard ISR_FORM_SPTD form but there doesn't seem to be any scripts in this form.
    Thanks and regards,
    Adeline.

    Hi,
    Am not so sure, how were unable to locate this script. Click on the dropdown and check in the Script editor. You will get the same script. Anyways, here is the script.
    <i>// If the display value is used in the data DOM,
    // re-assign the corresponding data value
    if (this.rawValue != "" ) {
         if (this.boundItem(this.rawValue) != "") {
              this.rawValue = this.boundItem(this.rawValue);
    // START OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE
    xfa.record.CONTROL_PARAM.ISR_EVENT.value = "CHECK";
    app.eval("event.target.SAPSubmit(false);");
    // END OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE
    data.RequestPromotion[0].PCR_PAGE1.PCR_DE.PCRDEContent.NewScaleLevelDDL::ready:form - (FormCalc, client)
    //     START OF XFO CODE - DO NOT REMOVE OR MODIFY
    // If this object exists, then we are not being rendered by the XML Form Agent
    if ((Exists(xfa.host.appType)) and ($.bind.ref <> "")) then
         // Note the rawValue and try to set the selection if it is present
         // As soon as you add items the rawValue will be lost
         var CurrValue = ""
         //  Check for a null - an empty XML node will return a null
         if ($.rawValue <> null) then
              CurrValue = $.rawValue
         endif
         var Found = 0
         // the data binding may contain "$data.<root data name>" instead of $record
         var DataBinding = replace($.bind.ref,Concat("$data.",xfa.record.name),"$record")
         DataBinding = replace(DataBinding,"[*]")
         for i=0 upto xfa.record.enum_list.nodes.length - 1 step 1 do
              // Find the match.  The binding value may contain "[*]"
              // so remove them first
              var ListBinding = replace(xfa.record.enum_list.nodes.item(i).binding.value,"[*]")
              if (DataBinding == ListBinding) then
                   // the first two items are the name and binding attributes, then the list starts
                   if (xfa.host.version < 7) then  // add a dummy item to work around a bug in A6
                        $.addItem("a","-1")
                   endif
                   $.clearItems()
                   for j=2 upto xfa.record.enum_list.nodes.item(i).nodes.length - 1 step 2 do
                        // The order is assumed to be display and then data
                        // if the value is null, then add the empty string
                        if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) then
                             $.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,"")
                        else
                             $.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value)
                        endif
                        if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == CurrValue) then
                             Found = 1
                        endif
                        if ((xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) and (CurrValue == "")) then
                             Found = 1
                        endif
                   endfor
                   // Now set the selection - omitting this step means there will be no selection
                   // if there is only one item in the list and no default value, we have to select the first item - Bug in Acrobat 6.02 (fixed in Acrobat 7)
                   if ((xfa.record.enum_list.nodes.item(i).nodes.length <= 4) and (CurrValue == "") and (xfa.host.version < 7)) then
                        $.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
                   else
                        // if available, set the selection to the default value
                        if (Found) then
                             $.rawValue = CurrValue
                        else
                             // otherwise: set the selection to the first item
                             $.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
                        endif
                   endif
                   // START OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
                   // END OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
                   break
              endif
         endfor
    endif
    //     END OF XFO CODE - DO NOT REMOVE OR MODIFY</i>
    This should solve your problem.
    Regards
    <i><b>Raja Sekhar</b></i>

  • Reg change in the status profile in the process order

    Dear all,
    By default one status profile ZPI0001 has been assigned to an order type ZP10 in a plant, the requirement is at the time of process order creation we want to change the status profile to ZPI0002 and create . this is applicable for one plant only
    Please let me know the settings to be done for that
    Thanks in advance
    Regards
    venkat

    HI Venkat,
    I am not sure why do you need different status profile at the creation of process order...
    First define the status profile ZPI0002 using Tcode BS01/BS02  and assign it  to the order type ZP10 using CORN. The same order type is defined to plant using COR4..Here you can only have only one status profile for each order type, however, you can define different custom user status for the status profile..Say ZOCL - Order Completely closed after system status TECO to stop all goods movements...You can't have separate status profile while creating process order and at other stage of process order..Gurus please correct me if I am wrong..
    Thanks
    Sree...

Maybe you are looking for