Update User Status Automaticaly In Mainteance Order
Dear Experment ,
in maintenance order ihave user status (Equipment under warranty) when i create maintenance order the automatic check for warranty is appear in maintenance order when the equipment in warranty my customer need the check box in user staus is add automatically in (Equipment under warranty)
can any customer exit or badi or impiclict enhancement for this issue .
regards Mostafa .
Jogeswara Rao K replied
I have just gone through your initial requirement fully. This can be done easily by your ABAPer by building the necessary code in the include ZXWOCU07 of the user-exit IWO10009. As suggested earlier the fm referred above will be a part of the code and changes the User-status if the condition is satisfied. The condition here is 'If the Equipment is under warranty' . You need to give the information to ABAPer, what is the parameter which decides that Equipment is under warranty. The the logic to build the above code is as under.
- Check whether the Equipment is under warranty or not
- If yes use the above fm to change the user status of the Order
For using the fm you need to get the ESTAT value ( such as E0001) to give in the field USER_STATUS field of the fm). This you will get from table TJ30T by passing the Status Profile value into field STSMA and your UserStatus value (EQWR) into the field TXT04. And you will get the OBJNR value from the user-exit itself (CAUFVD_IMP-OBJNR).
With these details your ABAPer will be well equipped to give you the product you wanted.