SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i update Device status ?

Former Member
0 Kudos
752

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

9 REPLIES 9

Former Member
0 Kudos
446

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.

0 Kudos
446

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

0 Kudos
446

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.

0 Kudos
446

Thanks Sachin for ur reply.

But i am not able to change the Device status.

0 Kudos
446

Hi,

Can you please specify what error you are facing with this FM?

Regards,

Sachin.

0 Kudos
446

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

Former Member
0 Kudos
446

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.

Former Member
0 Kudos
446

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

Former Member
0 Kudos
446

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.