2009 Oct 01 4:57 AM
Hi All,
I want to update the Device status.
How can I do that.
Is thre any way to update device status.
Status INST
Please let me know.
Thanks in advance.
Palavi
2009 Oct 01 7:24 AM
Hi,
Use IMAS_CHANGE_STATUS_SINGLE and BAPI_TRANSACTION_COMMIT.
Give the I_ACTIVITY value for IMAS_CHANGE_STATUS_SINGLE as 'INAZ' for setting status as INST. you can the OBJNR from EQUI table for Equipment
Regards,
Sachin.
2009 Oct 01 8:10 AM
Hi,
I am not sure whether there is a BAPI for this. You may consider using function module STATUS_CHANGE_EXTERN (even it is released only internally).
Cheers,
Fritz
2009 Oct 01 9:02 AM
Hi Fritz,
The FM STATUS_CHANGE_EXTERN is for setting/updating the User Status. I think Palavi is trying to update the System Status.
Regards,
Sachin.
2009 Oct 01 9:24 AM
Thanks Sachin for ur reply.
But i am not able to change the Device status.
2009 Oct 01 9:44 AM
Hi,
Can you please specify what error you are facing with this FM?
Regards,
Sachin.
2009 Oct 01 3:07 PM
Palavi,
Have you already checked-out the function module STATUS_CHANGE_INTERN (again: it is released for SAP internal use only). This FM changes the system status.
Kind regards,
Fritz
2009 Oct 01 3:22 PM
There is no way you can set system status and should not even if you find a way.
System statuses are set when you do the corresponding busines activity and in this case you need to install the device and the status INST will automatically be set once you complete the installation.
2009 Oct 07 11:16 AM
Hello,
I have exactly the same problem as you and earlier today I found this function ALM_ME_EQUI_USTATUS_CHANGE, but can't get it to work for me. Please let me if you have better luck.
Melinda
2009 Oct 13 9:57 AM
Hi
Following is Sachin Bhatnagar's reply to my problem and it worked for me. Thanks, Sachin! I needed the commit step.
Status can be changed using this FM, but it is not recommended to do so, as they are activated
or deactivated by performing an application procedure.
For using this FM, get the OBJNR from EQUI table, using the MATNR and SERNR.
Get the status you want to set to, from the table TJ02T, using the ISTAT field.
Pass this value as ISTAT into the STATUS parameter of the FM, and an INACTIVE indicator 'X' or space to specify whether this status is active.
Call BAPI_TRANSACTION_COMMIT after this.
Be careful with this approach, as specifying the wrong Status may corrupt the device.