Status Not changed in Activity Screen

Helo Experts
In activity screen MORE menu, i have option SET TO COMPLETED. If i click on it then the STATUS textbox should change to COMPLETED (either from OPEN / INPROCESS). But thats not happening..... i have the following code for it. Kindly go through and can let me know whats the problem.
Set to Completed button
      ls_button-text     = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_ACTIVITY/SETTOCOMPLETED' ).
      ls_button-on_click = 'COMPLETED'.                    
      ls_button-tooltip  = ls_button-text.
      ls_button-page_id  = me->component_id.
      if lv_status eq 'E0003'.                             
        ls_button-enabled  = abap_false.
      else.
        ls_button-enabled  = abap_true.
      endif.
      append ls_button to rt_buttons.
      clear ls_button.
      ls_button-text     = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_ACTIVITY/PDFAFS' ).
ls_button-on_click = 'CREATE_FACT_SHEET'.            
      ls_button-tooltip  = ls_button-text.
      ls_button-page_id  = me->component_id.
      lv_activity_guid = ls_btadminh-guid.
      call method cl_crm_uiu_activity_tools=>check_pdfafs_allowed
        exporting
          iv_activity_guid  = lv_activity_guid
          iv_pdfafs_create  = 'X'
     IV_PDFAFS_SAVE    =
        importing
          ev_pdfafs_allowed = lv_pdfafs_allowed
     ES_ORDERADM_H     =
      if lv_pdfafs_allowed eq 'X'.
        ls_button-enabled  = abap_true.
      else.
        ls_button-enabled  = abap_false.
      endif.
      append ls_button to rt_buttons.
      clear ls_button.
Thanks in advance
Rohan
Hi Experts
Waiting for your Inputs.
Thanks & Regards
Rohan
Edited by: Rohan M on Nov 7, 2008 3:10 PM

Hi Rohan,
I can suggest you an approach for this. Try the steps below.
1) Move the button definition to the GET_BUTTONS method of the view controller class. Leave the DO_PREPARE_OUTPUT method as clean as possible. Make sure that the event name is in the same case in the button-on_click parameter and the event handler name (you can check the event handler name in DO_HANDLE_EVENT).
2) As you know there would be NEW STATUS dropdown available to change the status. Go to the getter and setter methods of this attribute. From there there should be an BOL Action which will be triggered. This action takes the status which is set. This is the place where the status change mechanism starts.
3) Try to call the same BOL Action in your event handler COMPLETED. If you want to commit the change to the database, you can call the transaction manager class commit method. You can refer SAVE method of your view impl class.
Hope this helps.
Regards,
Vinay

Similar Messages

  • Status Profile : Status not changing in CRM

    Hi Gurus
    Created order with  header status as  as " In process" ,  item status is defaulted  to  " open"  and  order  replicatd to ECC ,  billed aswell .  But  when I checked in  CRM still status  not changing to completed  but retains with In process  at header level & open at item level.
      I would expect order status should be completed at header level & Item level.
    Is there any thing wrong with status profile settings at header  & Item level? , I have created  status profiles with following settings.
    I have  copied standard status profile  " CRMORDER" and assigned to  trasaction type  and made following settings:
    Under Open :   following transactional contorl selected
    To be distributed   :  Selected options "Forbidden " & No active
    Under In process: 
    In process : Selected options " Allowed " & Set
    Undo Rejection :  Selected options " No infulence " & Set
    Under Completed:
    Complete :  Selected options " Allow " & Set
    Created status profile for Item  i.e. copied standard CRMORD_i  and made following changes:
    Under Open : No transaction control selected
    Under In Process : 
    Edit :  Seleted options " No influence" & Set
    Undo Rejection : Selected options " No Influence & Set
    Under Completed:
    Completed :  Selected options " Allowed & Set"
    Rejected :  Selected options " Allowed & Set"
    Actually we are using material which is non deliverable but should be billed, while creating order , I can see staus at item level is open and remains open even after billed in ECC. And also we are mapping  Business activity reasons to order reasons in ECC.
    Is any thing i am selecting wrong options in status profile at header level & item level?  Much appricieated for solution.
    Thanks
    shash

    Hi Gurus
    Created order with  header status as  as " In process" ,  item status is defaulted  to  " open"  and  order  replicatd to ECC ,  billed aswell .  But  when I checked in  CRM still status  not changing to completed  but retains with In process  at header level & open at item level.
      I would expect order status should be completed at header level & Item level.
    Is there any thing wrong with status profile settings at header  & Item level? , I have created  status profiles with following settings.
    I have  copied standard status profile  " CRMORDER" and assigned to  trasaction type  and made following settings:
    Under Open :   following transactional contorl selected
    To be distributed   :  Selected options "Forbidden " & No active
    Under In process: 
    In process : Selected options " Allowed " & Set
    Undo Rejection :  Selected options " No infulence " & Set
    Under Completed:
    Complete :  Selected options " Allow " & Set
    Created status profile for Item  i.e. copied standard CRMORD_i  and made following changes:
    Under Open : No transaction control selected
    Under In Process : 
    Edit :  Seleted options " No influence" & Set
    Undo Rejection : Selected options " No Influence & Set
    Under Completed:
    Completed :  Selected options " Allowed & Set"
    Rejected :  Selected options " Allowed & Set"
    Actually we are using material which is non deliverable but should be billed, while creating order , I can see staus at item level is open and remains open even after billed in ECC. And also we are mapping  Business activity reasons to order reasons in ECC.
    Not sure whether i am  selecting wrong options in status profile at header level & item level? 
    Plz help me on this.
    Thanks
    shash

  • Preference status not changed for the processed products

    Hello All,
    While Aggregating the vendor declaration, I am getting the message as below
    Preference status not changed for the processed products
    Could you please help me to resolve this issue.
    Thanks & Regards
    Rahul

    Hello Rahul,
    aggregation is not changing status on LTVD. (Possibly LTVD has been already agregated). Newly maintained LTVD is not changing status of the product, its remaining negative whatsoever.
    Kr,
    Gabriel.

  • Status not changing to Available after sleep?

    Just recently got my wife a MacBook (white). I got her setup with iChat and it's working well except for the status. When she wakes it from sleep, it logs her back into iChat, but keeps a status of "Away". I did change the option in Prefs to "Set me as Available" when coming back or something like that.
    What am I doing wrong? Anyone?

    Hi,
    In the General Section of the iChat Preferences you can set one of three option on "Returning to my Computer" which normally refers to Waking from Sleep or coming back from the Screen saver.
    One of the options as you say, is to set the Status to Available (If it was set to Away before).
    Like you I find it does not work.
    I have also tried the sub-options in the Menu Bar Icon bit about Logging out of AIM if I quit (Which Sleep will be considered as the same thing).
    Basically I was trying to find if this setting over-rides the lower one.
    I Set it to At User Login set my Status to Available which I know works on Start up. But from Sleep this does not over-ride the Status Message when it is set to Away.
    If the above setting is not set the same thing happens (it stays as Away when I wake the computer.
    Whether I have it set to Set Me as Off Line when I Quit (paraphrased) or not also does not change the Status Message on waking the computer.
    Not even turning Off Auto-Reply with Away message made any difference.
    That leaves two things.
    Does this setting have anything to do with Sleep of Screen Saver ? (is it something else ?)
    Is it a bug ?
    iChat help has this on Setting the Status.
    If you are away from your computer for a time, your status is displayed as “Idle.” Messages that arrive while you’re away wait on your screen
    This implies the former. i.e. if you have set the Status as Away and physically leave the computer and the Idle time kicks in before Sleep or Screen Saver then iChat will change you Status to Idle (Although it can not actually display this varient of Idle).
    Also there is not setting if I am Idle change my status to Away either.
    The Idle time is preset at 600 seconds (10 mins)
    My Screen Saver kicks in earlier than this and may over-ride this.
    Right this minute I do not have 10 ins to do something else or wait until the Idle time kicks in.
    Summary.
    This issue seems to be something based on what Away means in this context.
    I suggest it refers to the Idle time (which is hidden from your Buddies if you have set Away as the Status).
    Hope this helps.
    9:56 PM Wednesday; February 18, 2009

  • ''Sim Not Valid'' on activation screen! *PLEASE HELP*

    I have purchased the iPhone 6 64GB Silver from Verizon Wireless. I purchased it on November 18th 2014 and i was able to use the phone under the Verizon Network for 2 days I asked Verizon as ALWAYS to have to Unlocked because i was leaving the country in business trip for a week and therefor i wanted to use my iPhone with the Vodafone Network as i have always done this with the previous iPhone's under Verizon network. When i had my iPhone 5 & iPhone 5S i have called Verizon to have it unlocked and therefor they have done it, but now with the new iPhone 6 they tell me that its a 4G Phone and its already unlocked sir, there is nothing they can do to unlock it any further but in reality the iPhone 6 its Lock to Verizon Wireless Network, according to Apple, and Vodafone they both say that its Locked to Verizon Wireless, that's what it shows in their system. Now i have called Verizon and asked them again to unlock my iPhone which they insist and tell me the same thing over and over even their Manager and Global Team Support including the Supervisors they all say the same thing that the iPhone is Unlocked!!!! Now i have contacted Apple again this time Apple said that it is locked to Verizon is what they see on their computer that this IME#354409063763754  is showing Locked to Verizon once again and again and AGAIN! so who is lying here Apple or Verizon?!? Interesting! one of the Apple costumer care could not believe my story after speaking to 5 different one from Apple and 38 different from Verizon, and there for she decided to call Verizon and find out why aren't they unlocking my device. now, after being on the phone 3 way me Apple care and Verizon for 15min Verizon hangs up the phone on Apples face and tells me I can Not Believe they hang up on my face! interesting huh? Well Apple care then said ill transfer you to Seignior Adviser for further help there is nothing that she could do, but transfer me to much higher grade in helping the costumers. Now the Seignior Adviser couldn't  believe that i had to go through all this and said I'm here to help and i will help, i said sure you will, will see how much you can. Then he tries and tries and in the end NOTHING! since he couldn't do anything he said let me transfer you to much higher which is their Consumer Relations. Now they couldn't believe that i had to go through all this and that they have never heard such story that this had happen to anyone before, there for he was going to help me resolve my issue. Now they have contacted Verizon and Verizon keeps saying the same thing mean while on the Apple system it still shows Locked to Verizon Wireless.
    Now what they Verizon and Apple did to try and resolve this issue is Connecting my iPhone 6 to iTunes and have it Factory Restore! ok! so i did as i was told,
    now after 30 min of restoring the iPhone to factory settings im back to Activation Screen from beginning.
    1. Choose Language - English
    2. Choose Region - United States
    3. Choose Wi-Fi
    4. Sim Not Valid!
    there is no other options, either go back or retry, and none has worked. I have done the Restore 5 times with and with out sim card  and still same error,
    With out the sim card, after choose the Wi-Fi, it says Sim Required, there is no other options only go back and retry.
    I put the sim back in and its still says the same
    <Back
    SIM NOT VALID
    The SIM card that you currently have installed in this iPhone s from a carrier that is not Supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the iPhone. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked by your carrier. Please contact Apple for more information.
    Try Again
    Now i cant even go to my home screen what do i do? PLEASE HEP!
    I really need to get this iPhone 6 to work, I need help please someone help, they both companies have lied to me Verizon and Apple, and they both not doing a **** thing about it, its been almost 2 months and i haven't been able to enjoy my iPhone, they have got my hard earned $$$$ and they don't send me a new device to have it replaced, I have requested a NEW one since i  have paid for new and they Sorry we cant under their Policy and my 14 money back  is expired, well its expired because of them not me. they keep on pushing and putting me to wait here and there so time went out and me still without a working device yet they have got my money $$$
    I really need Help Please any suggestions?
    I thank you all very much from the bottom of my heart for taking the time to read and respond to my need.
    THANK YOU ALL
    iPhone 6 64GB Silver
    Setting - General - About:
    Version>                        8.1.2 (12B440)
    Model>                          MG642LL/A
    Serial Number>              DNPNDN37G5MH
    IMEI>                            35 440906 376375 4
    MEID>                          35440906376375
    Modem Firmware>          1.04.00

    Firstly, Apple will NOT reply to you here - this is a user to user technical support forum and not monitored by Apple.
    Also, what both Apple and Verizon have told you are both true.  Verizon tell you that the phone is unlocked and this is true, because all Verizon phones have a GSM portion to the phone and this is unlocked to use with local sim cards internationally, so yes, the GSM portion of the phone is unlocked in this respect.
    What Apple have told you about the phone being locked to Verizon is also true - a Verizon phone is a CDMA phone and works on the CDMA networks, which is different from GSM and the phone is locked to Verizon in the US, so if you go to the US, then you can never use the phone on any other network other than Verizon, so yes, in this respect the phone is locked to Verizon in the US because if you go to the US you will only ever be able to use the phone with Verizon, but the GSM portion of the phone is unlocked, so if you live in Germany, then you can use both a Vodafone and 02 sim card with the phone or any other local sim card that you want and the phone will work.
    So what you have been told about the phone by both Apple and Verizon are correct - the phone is locked to Verizon, but only for use in the US on the CDMA Verizon network.  Other than that, the GSM portion of the phone is unlocked.

  • Presence status not changed when using Lync 2010 Remote Call Control

    Hello,
    I'm currently testing the Remote Call Control functionality of Lync 2010. Call management works fine but I'm surprised that my presence status does not change to "In a Call" when the call is established.
    OriginatedEvent, DeliveredEvent and EstablishedEvent are forwarded correctly to Lync Client 2010. All responses are "200 OK".
    Is there something more to send to Lync Server 2010 so the status of the Lync Client gets correctly updated to "In a Call" ? Or is a plugin for the Lync Client necessary to achieve this ?
    Thank you in advance,
    Martin

    I think there's something missing from your scenario and I don't believe you would need a plugin for this.  It's been forever since I've set up RCC with Lync 2010 however.  I know this isn't what you're looking for, but I've used this product in
    the past to configure Lync and RCC with third party PBXs that don't support Lync/RCC but do have a TAPI interface.
    http://www.estos.com/products/drivers-middleware/callcontrolgateway400.html I've been able to get a free trial before and it worked like a charm for an old 3COM phone system.  If you can get a trial it might help you compare apples to apples provided
    you have a TAPI driver for your PBX.
    For more details on what happens behind the scenes, you might have some better luck in the MSDN dev forums:
    http://social.msdn.microsoft.com/Forums/en-US/home?category=uc
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Task status not changing in UWL

    Task status is not changed in UWL when the task is executed from UWL . workitems transfered from R/3 by executing a workflow .SAP says real time refresh not supports in this UWL version.
    please let me know any workaround to solve this issue.
    Thanks
    Sarath

    thats right.
    UWL does not refresh immediately. You need to refresh the UWL again.
    As I saw over internet, the Real-time Refresh feature for Universal Worklist is available in SAP NetWeaver 702 SP02 and above, and SAP NetWeaver CE 7.20 SP01 and above.
    Thanks
    Krishna

  • Partititon1,2,3 in  group ODS,FAC status not change after data redistribute

    Hello,
    first thanks for your help. By now the db2 data redistribute has been sucessful. but another issue occurs , could you give me some suggestion?
    1. run Tcode dbacockpit-->db2 for linux, unix, and windows database > configuration>database partiton group
    i found the stutus in db partion group NGRP_FAC_AB7 and NGRP_ODS_AB7 and partion 1,2.3. is partion not in partitioning map containers created. I know if we want to change the status from this to partion in partioning map status , we should do a redistribute.
    i have made a redistribute action like this
    1. double click what i want to distribute
    2. select the relevant partition , for example partition 0001
    3 click the execute immediatelly button .
    when i finished , the status is not changed . so i change the redistribute log located in /db2/db2ab7/sqllib/redist/ AB7.NGRP_FACT_AB7.2008022808582 .
    the log message is
    Data Redistribution cannot be continued.
    Error: Redistribution failed with SQLCODE=-6047 (rc=-2145779603).
    the SQL 6047 detail information is like the following. I don't know what happens.
    it's a SAP bug just like the previous issue ? Could you give me some suggestion ? Thanks
    db2 => ? sql6047
    SQL6047N Database partition group cannot be redistributed
    because table "<name>" does not have a partitioning
    key.
    Explanation:
    At least one table in the single-node database partition does not
    have a partitioning key. All tables in the single-node database
    must have a partitioning key before the database partition group
    can be redistributed to a multiple-node database partition
    group.
    The operation was not performed.
    User Response:
    Use the ALTER TABLE command to specify partitioning keys for
    tables that do not have one. Then try the request again

    Before redistribution, do your tables reside on only one partition? Does the error message you get list the table or tables that do not have a partitioning key?
    All fact tables, ODS tables and PSA tables are created with a partitioning key in a SAP BI system. However, in the FACT and ODS tablespace, there are a few BI management tables (name starting with 'RS') that do not get a partitioning key by default if created in a tablespace on only one partition. The BI data distribution wizard in the DBA Cockpit takes care of some of these tables, for example RSDMFACTAB and RSDMODSTAB. Maybe there are some additional ones.
    Please list the names of the tables without partitioning key. If the error message does not contain them, you can get them with the following SQL statement:
    select varchar(tabname,30)
    from syscat.tables a
    where tbspace='<your_tablespace>'
      and not exists (select partkeyseq from syscat.columns b
                             where a.tabschema=b.tabschema and a.tabname=b.tabname
                                      and b.partkeyseq > 0)
    Brigitte

  • HU status not changing after GR

    Hi All,
    For a stock transfer order we create outbound delivery and create HU and then do PGI and at the receiving site we do GR via HU in MIGO transaction.
    however the status of the HU changes after it is created and after it is PGI ,,, but after doin GR the status does not change.
    Please help me with this ,,,
    Regards,
    Samuel

    hi,
    I am doing GR in MIGO transaction with respect to outbound delivery via HU, I am not creating inbound delivery.
    Regards,
    Samuel

  • Service Order status  Not Changing From Resloved to Closed status

    The service order Status not automatically moving from Resolved to closed after 30days.
    Observation
    We Revived program Z program ,seems to be fine.
    I am set the program in debugging mode for testing the Service orders by  reduce the time duraion for staus resolved to closed, am getting the getting the Error Test determination procedure is not evaluated . 
    Point of dout
    1) Is there any relation between Test Determination Procedure and Z program.
    2) while am checking for Text Customing for Consistency I found an error Log.
    3) While creating Service Order Test field was Mandatory
                      for that have dout about is there any relation between for this program
    Thanks in Advance
    Regards
    Raju.........

    Solved ...
    BD75  (RBDMOIND ) is T-Code and report name ...
    need to schedule ...

  • Sales order status not changed

    Even after all line items Delivered and  Accounting document cleared, sales order's status is "Being Processed".
    SO is still showing open order list in VA05..There are not much changes done in SO...What could be the reason...

    Just check the customer master in Sales Area data Shipping tab - Partial delivery per item. It should be set as D - No limit to subsequent deliveries. Change it to some other value as per the business requirement, and check with new order. It will not show the status Being Processed.
    Master data plays a major role in any such conditions.
    Thanks/Sheetal

  • IDOC status not changed

    SAP support
    I am not able to change the IDOC status...
    I have also processed the IDOCs many times..
    Guidance required...
    Kamal

    Dear Kamal
    Please check your entry in SM12 an delete it and again reprocess it with the help of Tcode Bd87
    Thanks
    Amit Shivhare

  • A/R Invoice Closed but Status not Changed

    Hi All,
    I have Prepared one A/R Invoice Value of Material, Freight, Taxes.
    To reverse this Invocie, I have passed on A/R Credit Memo but still invoice is showing status as Open-Printed.
    I have checked JE for both are showing same value.
    Can any body help me to solve this problem please.
    With Warm Regards,
    Chintesh Soni

    Dear Shridharan,
    I have updated PL 38 on my laptop for testing.
    It is working fine but, in Service Calls, when i am adding activity it is showing error and activity does not getting add.
    If i will Add any activity or first activity say for Return mannually. Rest all activity will be added automatically. Due to this problem i m stuck.
    Other wise i have tested PL 38 for upgrading.
    I have already raised three question to SAP from our S user name and password means from Customer portal with high priority but till date i have not received response.
    With Warm Regards.
    Chintesh Soni

  • PR status not changed ..?

    Hi experts
    Can anybody give some inputs for below issue
    1.PR has been created , same PR conevertd into PO.
    2.After creating PO with reference to PR, the status of PR should change .
    3.Here PR status is showing as not edited..? After converted to PO.
    4.How to change the PR status as PO created with PO no, ?
    Deal all pour some inputs and rectification points from ur side.
    Thanks
    MM group

    Dear ,
    Kindly check if PO created with ref to PR is correct PR Number or not...
    Same you can see under Status Tab of PR...
    Check whether it is showing any PO number or not.
    Regards
    Utsav

  • SHC status not changing to - PO created

    Hi Gurus,
    I am facing an issue with SHC status. It is working perfectly fine in Dev but not in integration.
    I have the setting- "Sourcing never carried out" . So, when a shopping cart is created, it should create a PO in held mode.
    When I create a SHC with no approval workflow WS10000060, the shopping cart status remains as approved. It doesn't change to Follow on document created.
    Regards
    Kapil

    Printer did not exist so, error in PO creation

Maybe you are looking for