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

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

  • 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.

  • 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.

  • 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 *********

  • 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.

  • 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

  • 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.

  • 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

  • Updating the User Status in Sales Order Item

    Dear Gurus,
    Iam trying to update the User Status on the SO item using STATUS_CHANGE_EXTERN function module and the status is successfully getting updated.
    But the problem is if Iam updating the status it has to delete the Purchase Requisition assgined to it, which is not happening.. whereas when Iam manually changing the Status, the PR is getting deleted.. Can anyone suggest some other function module or some other way of doing it other than BDC?
    Best Regards,
    Sreenivas.

    Hi ,
    I am also need to update the Item user status. Could you please provide me the logic for the FM 'STATUS_CHANGE_EXTERN'. And also let me know the where we need to write the logic in VA01/VA02.
    It would be helpful me a lot.
    Thanks
    Srihari.

  • Update order user status based on a custom check box value in web ui

    Hi Experts,
    I have a requirement to Update the  user status based on a custom check box value in web ui.
    This is needed at the followup for a SR, the component is BT116H_SRVO, Details View.
    I created a value node with 4 checkboxes, based on the check box value, the corresponding user status
    need to be updated.
    How can I reach to the order save functionality of SAP in EH_ONSAVE method, so that syatem can capture my check box value, along with other screen fields, and append the status parameter in Order maintain?
    or do I have to call order maintain in even handler for checkbox, which will affect performance .....
    Pls help.
    Regards,
    Lakshmi

    Hi,
    In your event handler you can use bol entity corresponding to status BTStatusH and change the user status.
    Best regards,
    Caíque Escaler

  • Automatically updation of User Status

    Hi All,
    I am facing a problem on automatic updation of user status.As I have a process that on the basis of one field value in a quality notification I want to update the user status automatically.
    I explored something with business process but not getting the right way to use it.
    Please guide me if anyone deals with the same scenario or know more about using business process with user profile.
    Cheers,
    Tushar

    Hey Prasad,
    You will have to Develop a report to do this...
    You should use FM CRM_ORDER_MAINTAIN to do this...
    Details of how to  use this FM for Updating Status could be found in CRM forum..
    I would advice to consult your CRM Tech Team who are in best position to do this..
    Please Reward for usefulll Post..
    Regards,
    Anand..

Maybe you are looking for