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

Similar Messages

  • Status Update of Service Order From Billing Document

    Dear Experts,
    I am told to change the User status of Service Order once the Billing Document is Generated.
    Here we are in CRM 2007 and i have done the status update of previous document but here
    Billing document is not possible to read through CRM_ORDER_READ (function module).
    Do any one have any idea how do i proceed.
    Thanks,
    SA

    hi sa
    to change the service order user status , when biling document is generated
    make an implementation of bill_acc_if  bai and in the method ENRICH_ACC_DOCUMENT
    read order data using crm_order_read  and change the status using
    CRM_STATUS_CHANGE_EXTERN
    thnks
    sam

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

  • User Exit or BADI to update the service order  in R/3

    Hi,
    When creating a service order the following fields need to be populated automatically using an user exit or badi.
    1. Planner Group
    2. PMActType – Plant maintenance activity type
    3. Cost/Profit Centre
    4. WBS element
    5. Work center
    so my requirement is there any function module or Badi or user exit to update the service order details when service order is created / changed.
    Pls do the needful.
    Reg
    Ramana

    Hi Ramana,
    Go to SPRO Transaction and follow the below path
    Customer relationship management>Transactions>Settings for Service Processes>Business Add-Ins and you will find 8 BADI's.
    Check these BADI's useful for you.
    Regards,
    Lijo Joseph

  • User Exit or BADI  to update the  service order

    hi,
    When creating a service order the following fields need to be populated automatically using an user exit or badi.
    1.     Planner Group
    2.     PMActType – Plant maintenance activity type
    3.     Cost/Profit Centre
    4.     WBS element
    5.     Work center
    so my requirement is there any function module or  Badi or user exit to update the service order details when service order is created / changed.
    Pls do the needful.
    Reg
    Ram
    Message was edited by:
            RAMANA MYLAPALLI

    Best Possible way is.
    go to se24 -> type in CL_EXITHANDLER -> Go to get_instance method.
    Put a breakpoint on CALL METHOD cl_exithandler=>get_class_name_by_interface.
    Now run the transaction and check which all BADI and user exits are invoked when u call the transaction.
    Idenitfy the BADI which can be useful to you.
    Reward if u find it useful.
    Thanks
    Kartavya

  • User status transfer for sales orders from ECC to CRM

    Hi,
    We use business process with CRM sales orders that are transfer to ERP.
    Users can change user status in the sales orders in ERP.
    How we can replicate custom user status from ECC Sales Order to CRM Sales Order?
    What is the steps to do this for CRM 7.0?
    Denis

    Hi,
    We are creating quotation ZPQT in CRM which is then get replicated to ECC on saving it on “Accepted” status. In ECC we then create sales order of type ZPOR. Sales order gets replicated in CRM and also updates document flow. This sales order is called as “Project Sales Order”. PS team assigns WBS element to this order and does billing later on. Upon billing document is created sales order status in ECC changes to “Completed”. This is system status. But the issue is status of order ZPOR is CRM remains in status “Inprocess”. We want it to change to “Completed”.
    We have similar scenario with order type ZOR. In this order after delivery and billing ECC assigns status “Completed” to sale order and same gets replicated to CRM.
    In CRM for user status Completed we have assigned system status as FINI. Both ZPOR and ZOR has same status profile assigned at header and item level.
    Our concern is if status is changing back in CRM for ZOR then why not for ZPOR. What is stopping system to do so?

  • TO change the user status in the PM order

    Hi,
    My requirement is that a techician is assiged to do the work using MRS and based on that user status is update in the PM when the save button is clicked on the MRS board.
    Now according to my requirement if anybody click on the save button and the technician is assigned to do the operation is done through MRS than the User status in the PM order should get changed.
    As a part of standard functionality the user status is not updated.
    A new user status is created in the trasaction BS02.
    Can anybody please let us know how to achieve this functionality
    Thanks
    Mohit

    We had a similar requirement and this is what we did :
    1) Set up a task as a reciever for the WORKORDER SAVE event.
    2) In this task called a method of a business object.
    3) In the method called STATUS_CHANGE_EXTERN to change the user status.

  • User Status Profile for Process Order Operations

    Hello Experts.
    I have a need to set up a User Status at the Process Order Operation level that will prevent operation confirmation when the status is Active .
    I have been successful at the following:
       --- Created a new Status Profile (transaction BS02),
       --- Creating a u201CHoldu201D status,
       --- Defined the Influence on Business Transactions,
       --- Set the allowed Object Types for the profile.
       --- In an individual Process Order operation, I can now select the Status Profile, and set the Hold status, and it functions correctly.
    My problem is that I canu2019t figure out how to set my new profile as a default for Process Order Operations.  For Production Orders, this is done in the IMG definition for the Order Type (transaction OPJH), updating field T003O-VRG_STSMA.  However the Order Type definition for Process orders (transaction CORN) only has a field for a status profile at the header level.  Iu2019ve searched through Configuration and the Recipe, and the Production Version, and the Control Key, but can find no where to set the default status profile for a Process Order Operation..
    As a final desperate act, I manually edited a T003O record for a Process Order Type in our test system, but even this failed to set a default Operation Status Profile for subsequently created Process Orders.
    If you have any knowledge about this, then please help.

    As of this date, we have still not implemented a fix, but I did get some information from someone else who has.
    I'll post his information here for all to see.  Hope you find it helpful.
    From: Joe
    Yes we managed to do it.
    After several false starts and CMOD/projects which suffered because only the default keys (for order number, aufpl etc) were in place and not the actual, we coded up the IN_UPDATE method in the WORKORDER_UPDATE badi. This gives us the final format after the DB save (but before the commit). The update of the STATUS using the SAP std function module was actioned successfully but the status profile was not actually passed through. We assumed that this was because of the update task - so we introduced an INSERT into JSTO instead (a bit naughty I know, but desperate needs etc). If you require anything more let me know.
    Best Regards
    Joe

  • Is it possible to change the user status of a TECO Order

    Hello Folks
    Is it possible to changes the user status of a TECO Order?
    I have tried to change it using the FM 'STATUS_CHANGE_EXTERN'. Its working fine for NON TECO Orders but not for TECO Orders.
    On the other hand I was able to manually change the user status for a TECO Order in transaction IW32.
    I need to change the user status from NFBK to FBK.
    Please provide some inputs for the same.
    Thanks n Regards
    Ramesh

    The simple way is via the Internationalization settings via ARD or RDP or Screen Sharing, either via System Preferences or (if enabled) via the menu bar. If you're looking for a lower-level approach, there's not AFAIK a direct command for this. As for one possible approach, might [threadID=2106201|http://discussions.apple.com/thread.jspa?threadID=2106201] help?

  • Change User Status in the sales Order

    Hello Experts,
    I hope that somebody can help me.
    I search to change the field User Status in the sales Order in the transaction VA02 before that the order be displayed.
    I have searched in the UE MV45AFZZ, but i didn't found any form that i can use for my issue.
    I found one form 'USEREXIT_FIELD_MODIFICATION '  by what the program pass when i press enter in the transaction VA02.  but the problem that the status is changed in the data base only and not in the screen. In the screen i have always the same status as what was before, to have the new statut i must leave the transaction and execute it another time.
    I don't want use forms for saving.  What I want is the new status will be set when i press enter in the transaction VA02.
    If doesn't exit one form that can resolve my problem, Can i use the Profile Parameters? In this case How use them?
    Thank you very much.

    Hi,
    U can choose ur status in change status profile. Go to IMG-CRMTransactionsBasic SettingsStatus ManagementChange Status Profile for User Status.
    Here u hv to define ur new status for the transacxtion and assign it to ur transactio. If u r not clear tell.
    Reward points.
    Thanx
    Chinmaya

  • Revenue Recognition based on User Status of assigned Sales Order line item

    Dear Community members,
    We have requirement to recognize / de-recognize revenue posted to WBS for calculation of RA, based on the 'User status' of the assigned Sales Order line item.
    To elaborate requirement further -
    1) WBS Element - XXX - 10 ( with operative indicator - Plan/Bill/Account Assign)
    2) Sales Order(SO) Line Items assigned to the above WBS -
    - SO No -  123 Line Item 10 - Actual Rev - $ 300 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    - SO No -  124 Line Item 20 - Actual Rev - $ 400 - User Status - COMPL(Meaning this work is Complete , all payment received thus actual revenue for RA at WBS is $400
    - SO No -  125 Line Item 10 - Actual Rev - $ 800 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    As per WBS reports Actual Revenue posted to WBS XXX-10 is $ 1500 ( $300$400$800) , however since two SO line items ( SO 123 /line item 10 and SO 125 / line Item 10 ) are NOT having User status 'COMPLETE', the actual revenue posted by those line items $ 1100/- ($300 + 800)  should not be included as Actual Revenue for RA at WBS level.
    Thus Actual Revenue for RA at WBS XXX-10 should be $ 400 /- ( the revenue posted by SO 124/line item 20 which has user status as 'COMPLETE')
    How do above can be achieved?? Is there any standard solution for this?? Is any SAP Note available for this (I too am looking for one but not found any ) ?? do we need any enhancement , Customer exit etc
    Thanks in advance
    with regards

    Hi,
    Thanks. You are right that the 'Completed Contract Method' would defer revenue recognition. However, the status checked would be of the RA object (WBS Element in this case, as RA key is on WBS and RA is being calculated on the WBS).
    However, our requirement is to check the user status of the Sales Order Line items assigned to the WBS element and filter the revenues posted based on the active user status of individual Sales Order Line item.
    Please give you inputs.
    Thanks in advance
    With regards

  • To get the User status of the Production Order

    Dear all,
    I have a  requiement to get the user status of the production order, This is just below the Status of the Production Order,
    I was able to get the Status of the Production order using the Function Module ( REL MSPT PRC ) etc
    Can any body please help me in fetching this data.
    with rgds
    Ranjith Singh

    Dear,
    Please try with,
    FM 'STATUS_TEXT_EDIT'
    Or See function module PM_ORDER_DATA_READ
    The status maintenace is done by SAPLBSVA
    Use the Tables are :
    JEST - Pass OBJNR of the Production ORDER (AUFK, AFKO tables)
    or from
    TJ02
    TJ02T
    Please take help from technical consultant.
    Hope it will help you.
    Regards,
    R.Brahmankar

  • Set User status collectively in PM order

    Hi,
    I want to set user status collectively in PM orders. Is there any standard T Code.
    Regards
    Rakesh Ganpat

    Hi,
      As mentioned above there are no standard transaction for this and the BADI are available from ECC 6.0 EHP3 only. Either way you will have to do some development.
    You could use the FM STATUS_CHANGE_EXTERN to make the user status change one by one. You can incorporate this FM within the above user exit or within you customer Program.
    Regards
    Narasimhan

  • How to update the service order status at meter level

    Hi
    I need to fetch one open service order and update the retrieved open service order status at meter level.
    I am trying to do it through BAPI_ALM_ORDER_MAITAIN but i am not able to do it.
    Please let  me know the process how to update.
    Thanks & Regards
    Pallavi

    Hi,
    Check if this code works ...
    REPORT zbapi .
    DATA t_meth TYPE TABLE OF bapi_alm_order_method.
    **Internal table for Operation (BAPI)
    DATA t_oper TYPE TABLE OF bapi_alm_order_operation.
    DATA t_comp TYPE TABLE OF bapi_alm_order_component.
    **Internal Table for Opertaions UP (BAPI)
    DATA t_comp_up TYPE TABLE OF bapi_alm_order_component_up.
    **Internal table for BAPI Return code
    DATA t_ret TYPE TABLE OF bapiret2.
    ***WORK AREA DECLARATIONS
    **Work Area for Hedaer
    DATA:wa_header TYPE caufvdb,
    wa_meth TYPE bapi_alm_order_method,
    wa_op TYPE afvgb,
    wa_comp TYPE resbb,
    wa_comp1 TYPE bapi_alm_order_component,
    wa_comp_up TYPE bapi_alm_order_component_up,
    wa_oper TYPE bapi_alm_order_operation.
    PARAMETERS:TEST.
    ****Fill Method Internal table
    CLEAR wa_meth.
    wa_meth-method = 'SAVE'.
    APPEND wa_meth TO t_meth.
    wa_meth-refnumber = sy-tabix.
    wa_meth-objecttype = 'COMPONENT'.
    wa_meth-method = 'CHANGE'.
    wa_meth-objectkey(12) = '000004000104'.
    wa_meth-objectkey+12(4) = '0010'.
    wa_meth-objectkey+16(4) = '0010'.
    APPEND wa_meth TO t_meth.
    **Component Internal table
    wa_comp1-reserv_no = '0000001072'.
    wa_comp1-res_item = '0001'.
    wa_comp1-activity = '0010'.
    wa_comp1-item_number = '0010'.
    wa_comp1-special_stock = 'B'.
    wa_comp1-requirement_quantity = '15'.
    wa_comp1-stge_loc = '0001'.
    wa_comp1-backflush = 'X'.
    APPEND wa_comp1 TO t_comp.
    **Component Update Internal table
    wa_comp_up-special_stock = 'X'.
    wa_comp_up-backflush = 'X'.
    wa_comp_up-requirement_quantity = 'X'.
    wa_comp_up-stge_loc = 'X'.
    APPEND wa_comp_up TO t_comp_up.
    **Call Bapi
    BREAK-POINT.
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
    TABLES
    it_methods = t_meth
    it_component = t_comp
    it_component_up = t_comp_up
    return = t_ret.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.   <--- Hope u r using this too
    regards,
    Naveen
    Edited by: Naveen Deva on Apr 16, 2009 9:12 AM

  • Userexit for updating sales order user status based on Production Order

    Hi.
    My clients requirent is
    Sales order user status should get updated based on production order creation,GR for PO creation etc.
    Basically depending on PO & GR For PO,various user stauts in sales order should get updated.
    Can you please suggest me some userexits in PP for this requirement?
    I am a SD Consultant and not having much idaes about PP
    Thanks
    Nisha

    hi,
    if you are not going to update it in the SO..
    then you need different exits as those are different transactions.

Maybe you are looking for

  • I am creating box for two coloums in sap script

    hi, i am creating box for two coloums when i am creating box for this two coloums this box is displaying from the top. when i am decreasing this hight it is decreasing from the buttom of the window i want to decrease from the top of window can u expl

  • Premier to Audition Problem With Multiple Channel Audio Clip

    Hi Guys, I am trying send clips into audition to remove noise. The clips have 8 channels of audio but in audition only one shows up, and it seems to randomly choose one. The audio channels are all on one file so I don't understand why audition doesn'

  • I bought a book on my mac and don't how to read it on my ipad

    I bought that book on amazon and transfered it to the kindle cloud and thought I could access it from my ipad but it shows only on my mac and does not get accessed on ipad...

  • Manual Revenue Process

    Hi All, I am new to this Order Management. I have a requirement to calculate Revenue with a new system. So I want to know about Manual Revenue Recognition. On what basis Manual Revenue line will be Completely Delivered or Pertially delivered or Un de

  • Questions about Digital ID to sign an interactive form

    Hello, I'm testing using digital ID created in Reader 9 or Pro 9 as a self-signed ID. When one person is testing, he gets the following message: Can anyone tell me what this message means? Other testers were able to submit the form with a signature.