Badi to track user status update

I have requirement to call smartform when the user status of the item for the service quotation changes to complete. Is there any BADI to track the item user status?
Thanks

I have tried CRM_ORDER_STATUS, however the BADI is not usefull as it is not getting called when I save the transaction. It is triggering as soon as I change the status. I think I need a BADI which is triggered on save and I should be able to access the new and old status in the BADI. Please help some one.

Similar Messages

  • STATUS_UPDATE error to update USER STATUS - Update termination error

    Hi All,
    I am using status_update FM in sales order user exit MV45AFZZ in a perform routine for updating user status in line item for sales order. There are 4 custom statuses created for the sales order line item. 1,2 3, and 4 by configuration. My job is to select one of those based on user selection.
    Scenario: During change order process using  VA02, I have to change the existing status to a third status when user selects the second one. That is for example, in VA02, user selects status 4 from previous status 3, and save, I have to make the status 4 inactive and save the new status 2 instead of 3 though user selected 3. How do I achieve this.?  ????Any programming example is really appreciated. Thanks!!!
    I am right now using STATUS_READ and reading the existing status 4. Then making it inactive using status_update FM. And updating the new status 2 as active one and 3 as inactive again. Two inactive updates and one active update is throwing an update termination error while saving the sales order.
    Any help is really appreciated. 
    Thanks
    Ricky

    Hi ricky,
    For saving any changes you need to have a Z-table.
    In programs we can't store the user selection. In your case you can create a z-table and store the status there and delete the last status. The process would be faster as you will always have one record in the table.
    . One more advantage is you can even track the changes through the Z-table(User who is changing it.)
    Hope this solution will surely help you.
    Cheers
    Suvi

  • CRM to ECC i object user status updation.

    Hi Friends,
    I want to know details of SAP objects involved:viz: BADI's to have SAP CRM Iobject user status updatio , I have successfully replicated the ECC CRM Equipment to CRM I Object and even getting the user status from ECC To CRM..
    I am facing difficulty in doing the vice versa action from CRM to ECC.
    Please let me know your suggestions and opinoins which I can try executing.
    Thanks,
    Devansh

    For replicating user status from ECC to CRM we have done the following:
    1) Replicated all related BPs and reference products.
    2) defined the settings (ex Object family for equip etc ) in SPRO
    3) Activated CRM_EQUI_LOAD BADI
    For Upload you have to also :
    Activate DNL_EQUIPMENT and DNL_EQUI_CONFIG and assign Adapter object DNL_EQUIPMENT to Object family 401.
    I hope  this would be good enough for Getting your User Status in CRM.
    My problem is of updating / replicating user status from CRM to ECC.
    Pl see if something can be done for this.
    Devansh

  • Equipment User Status Update

    Dear Gurus,
    I want to update equipment user status with PM Order Status.
    for example, if i close the PM01 - Maintenance Order , equipment user status will be updated "001-Fixed".
    how can i update the user status like above example? I have found some user exit (STATTEXT) but it is not working in PM order. Is there any user - exit for this case?
    thanks for your help.

    Mahee,
    you are right, i guess my example is not clear for this case. I wrote this basic example for easy understanding.
    anyway, i wanna write a scenario, we have 4 user status for equipments. we wanna run with PM order status and good movements. equipments are on our customers so that we can refurbish and fix on the field or our refurbishment center.
    1.  if equipment is come  from customer for refurbishment , equipment status will be updated "001-waiting for refurbishment"  with good issue.
    2. if equipment is refurbished, (refurbishment)order will be completed so equipment status will be updated " 002- refurbished"
    3.if equipment is not refurbished, (scrap) order will be opened for removing equipment's spare so equipment status will be updated " 003- scrap"
    4.if equipment's spare is removed, (scrap) order will be closed and equipment status will be updated " 004 - write off"
    I hope it will be cleared.
    there is a bapi for updating equipment user status"BAPI_EQUI_GETSTATUS" but i don't want bapi because of locking the equipment. which can i use user-exit or badi for this case?
    thanks for your help

  • System Status Vs User Status updates from ECC to CRM

    Hi Frnds,
        Am facing a problem in Status Management , We have ECC as Backend , When ever we save the order in CRM it is Relicated to ECC thrgh CRM Middleware.
       (I) I have created User Status 'Z' Status Profile in CRM and Assigned that Profile to Status Triggering Business Transaction and to the Transaction Type.
              I have assigned this Status to INProcess and Released , with my 'Z' Status.
    I have Maintained the Same User Status Profile in ECC also.
    My questions are
    1) How can i Maintain the System Status with User Status in ECC (For example in CRM we maintain thrgh Business Transaction ,last field in Status Profile.) ?
    2)When ever i change the status in ECC that Status as to be update in the CRM?
            But here Order in CRM is not updated , For example , if i change the status to "COMPLETED" in ECC ,the Status "COMPLETED" is not triggered in CRM.  
            Here i need write a BadI or is there any Config settings that i need to Mainatain ??? or anything different approach ??
       Helpful Answer will be Rewarded with Points .
    Thanks in Advance
    Reagards
    Ram

    Hello Charitha,
    In txnn:R3AC4 of CRM , check INACTIVE flag for object MATERIAL (and any other objects whose data is not required in CRM)
    for your RFC destination (ECC).
    This would prevent any automatic data flow for this object from R/3 to CRM.
    Hope this helps!
    Best Regards,
    Shanthala Kudva.

  • BAdi DPR_EVENTS for user statuses

    Hi,
    Anyone having ideas on how to use the BAdi DPR_EVENTS when user defined statuses are triggered?
    Regards,
    Vivek?

    Hi Vivek,
    It's not possible to use this BADI for user defined statuses.
    We had a similar need a few months ago. We solved it by implementing an enhancement (pre/post exit) in dynpro DPR_STATUS_THRESHOLDS, view VI_STATUS, method ONACTIONCHANGE_STATUS. We can detect here which status (user or system) has been selected.
    Matthias

  • User status update

    Hi
    can anybody tell me the FM for updating the order operations user status in transaction IW37N.
    regards
    vijay

    Hi
    Check the fun modules for updation of order Status
    STATUS_UPDATE_DJEST
    STATUS_UPDATE
    ALM_ME_PUSH_STATUS_UPDATE
    STATUS_OBJECT_UPDATE
    STATUS_UPDATE_ON_COMMIT
    Reward points for useful Answers
    Regards
    Anji

  • BAPI_ALM_ORDER_MAINTAIN Operation User Status Update

    Hi All,
    I am trying to use this BAPI_ALM_ORDER Maintain to update the user status at the Operation level, but am facing the following issue:
    In the IT_METHODS table, I am passing the USERSTATUS CHANGE (with the right object key - aufnr + vornr), and SAVE Method.
    And am filling the User Status table (IT_USERSTATUS) with the correct user status to be updated at the Operation Level.
    But when I execute the BAPI - it throws an error saying that the User status XXXX doesnt exist in the XXXXXX (This is the wrong profile. This profile is at the Header level and not at the operation level) Profile.
    So somehow its trying to update at the Header level and not at the operation level.
    Any idea what can be the reason?
    Regards
    Ankur

    Hi,
    BAPI_ALM_ORDER_MAINTAIN user status Change
    check out this link..
    Thanks & regards.

  • User Status update on Header and Item in Sales Order

    Hi,
    I need to update the user status in both the header and Item based on some conditions. I checked the user exit's under 'MV45AFZZ' but no use.
    Could any one please provide me where I can write the code to upate user status in header and Item.
    Thanks
    Srihari.
    Edited by: SrihariKonduru on Dec 23, 2009 4:21 PM

    Hi,
    Thanks for quick reply.
    But I think this will be updated the satus using a report program. But in my case if the user creates a sales order or he is in change mode based on the selection of Distribution channels and Dunning key's I need to update the satus.
    For this I need a exit to write the code. And also I required sample code snippet to update the status in user exit. If that availble it will be great help to me.
    Thanks
    Srihari.

  • User Status update on Sales Order Header

    Hi all,
    I need to update the "User Status" on sales order header when a sales order is saved. As user status reside in JEST, what available user exits are there to change/insert new user statuses? I don't believe the common exits like MV45AFZZ would do.
    To clarify, to get to these user statuses, you go to the header of the sales order, select on the 'Status' tab, then click on the "Object Status" pushbutton.
    Any help would be greatly appreciated in the form of points!
    Thank you.
    Liam

    Hi Liam,
    In the Program MV45AFZZ in the FORM userexit_save_document
    you use the following fn module to change the user status
    'STATUS_CHANGE_EXTERN'
    Example
    IF t180-trtyp = 'H'.  "Only creation time
      READ TABLE xvbap WITH KEY matnr = c_matnr.
      IF sy-subrc = 0.  "If above material exist then change status
        LOOP AT xvbap WHERE cuobj NE space
                       AND  matnr =  c_matnr.
          l_objnr = xvbap-objnr.
          CALL FUNCTION 'STATUS_CHANGE_EXTERN'
            EXPORTING
              objnr               = l_objnr
              user_status         = 'E0013'  "Send ej IDOC
              set_chgkz           = 'X'
            EXCEPTIONS
              object_not_found    = 1
              status_inconsistent = 2
              status_not_allowed  = 3
              OTHERS              = 4.
        ENDLOOP.
      ENDIF.
      sy-subrc = 0.  "Restore the previous condition
    ENDIF.
    Reward if helpful *********

  • Automtic User Status updation in Service Order

    Hello ,
    Whenever I do "TECO" of service order , User status should automatically change."TECO" is a business transaction
    Do anyone have done this . Which exit is user to achieve above.
    Regards,

    Hi,
    Check the below FMs :-
    STATUS_CHANGE_EXTERN : This is used to set or delete User Status
    STATUS_CHANGE_INTERN :This is used to set or delete System Status
    STATUS_READ : This is used to read system status or user status
    First check up via User status , with proper status numbers
    If ur having many different than better u can go for user exit : IWO10009 PM Order: Customer Check for 'Save' Event. to check at save and set status accordingly ...
    For reading latest status - u may have to read from structure i think ..
    Tables :- JEST, TJ02T,TJ20 etc
    regards
    pushpa

  • BADI to track the use status update

    CRN 7.0,  I have requirement to call smartform when the user status of the item for the service quotation changes to complete. Is there any BADI to track the item user status?
    Thanks

    Hi,
    You can very well read the changed status in ORDER_SAVE by calling the FM CRM_ORDERADM_I_STATUS_READ_OW or CRM_ORDER_READ which gets u the statuses from the buffer and the already saved status can be read from the database.
    Hope it helps.
    Regards
    Sidd

  • How to update user status in CRM Order depending the delivery status in R/3

    Hi All,
    In my scenario the partial delivery allowed to the customer while creating the CRM Order. But as per my requirement the status should be updated when the complete order and delivery takes place.
       Let me describe you clearly:
    Suppose I want to deliver 5 quantities products to the customer but initially I want to deliver only 3 quantities and rest 2 quantities later. When I do the post goods issue of 3 quantities in R/3 system the status should not change in CRM system. When I will do the rest 2 quantities in post goods issue in R/3 then the user status should change in CRM Order. But in current when I do the delivery of 3 quantities the user status is changing in CRM Order.
    I need the user status should change in CRM only when the entire deliverytakes place in R/3.
    Thanx
    Chinmaya

    Whenever an item is fully delivered, by standard, a "Completely Delivered" status will be updated into the item. If the I suppose by referring to that you will know an item is partial or completely delivered. When all items in the order is fully delivered, the standard header status will set to "Completed". So, you will also know if the whole order is partial or completely delivered.
    If you want to add a user status, the simplest, you can make use of the ORDER_SAVE Badi. Just call the function CRM_STATUS_MAINTAIN_OW. You can update both header and item status.

  • Update User Status as FIU in CJ20N for Networks & Activities

    Hi Friends,
       I need to Update the User Status as FIU for all Networks & Activities under a WBS Element
    I am executing the function module I_CHANGE_STATUS and able to set the status in Database level
    but when i am opening that particular Network in CJ20N and watching the Status
    it is not updating to FIU
    Please Guide me ASAP
    Thanks,
    Ganesh

    hi dinakar,
    Am using the TCODE : RECN, when i update or modify the real estate contract  ex: name to name1 when i save... the status shoud shoud change from create to modify as i have modified.
    i have seen your answer and i am sure that you can help me in this case.
    your help is much appreicated....as it is SAP STANDARD i have a badi called BADI_RE_CN_CN. can i use this badi... if so where can i change and add my code... as i am new to badis your detailed info will be really helpful.
    looking for ur valuble answer,
    thanks,
    pasala.

  • User Exit to update user status at VA01/VA02

    Hi Expert
    Please help identify any User Exit to update User Status stored in tables (JSTO/JEST), at time of sales order (Business Object 2032) creation / change.
    Requirement is to set check mark on a specific user status in case of a material master is missing HTS code.
    Regards-Aamir

    Hi,
    If your requirement is to set the check the HTS field in the material master, you can make the field as Mandatory without which the  Material cant be saved
    You can make this field mandatory in OMS9 transaction code with field status as 89 and the field is MARC-STAWN
    Please revert if you need more details
    regards,
    santosh

Maybe you are looking for

  • Multiple screens in one frame

    Hi all, I'd like to know how to be able to display multiple screens within one frame. Depending on the choice made on the first screen, the second screen should be either "View Default" or "Modify Default." The modifying will involve a number of othe

  • N97 network issues

    hi there - after finally managing to update my software last night - it seems now a new set of issues has cropped up on this nightmare phone. Wondering whether anyone can help. I cant seem of access the network destinations.  So the phone now only se

  • The "send link" option on File has stopped functioning - what do I do?

    When I attempt to use the "send link" option under the File tab it does nothing. I need to copy the URL and paste it into a blank email

  • Can I use foil as a media on Designjet 750c plotter?

    I have a used HP Designjet 750c plotter. I need to print on foils (translucent, opaque, semi-glossy, glossy etc). Is this plotters support foils? Please reply as soon as possible it is urgent? Thank you.

  • Help Files CS4

    How can i access Help files in CS4 if i do not have internet access?