Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

change_status_equipment

Former Member
0 Kudos

hi!

do you know something FM to change status of a equipment??

thank you!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I haven't found any direct FM that can change status of the equipment.

But you can always use STATUS_CHANGE_EXTERN for user status, or CHANGE_INTERN for internal status.

CALL FUNCTION 'STATUS_CHANGE_EXTERN'

EXPORTING

  • CHECK_ONLY = ' '

  • CLIENT = SY-MANDT

objnr = st_equi-objnr

user_status = g_estat

set_inact = lv_inac_fl

set_chgkz = 'X'

  • IMPORTING

  • stonr = stonr

EXCEPTIONS

object_not_found = 1

status_inconsistent = 2

status_not_allowed = 3

OTHERS = 4

There is quite a few different way to change status. THis is just one of them.

2 REPLIES 2

Former Member
0 Kudos

I haven't found any direct FM that can change status of the equipment.

But you can always use STATUS_CHANGE_EXTERN for user status, or CHANGE_INTERN for internal status.

CALL FUNCTION 'STATUS_CHANGE_EXTERN'

EXPORTING

  • CHECK_ONLY = ' '

  • CLIENT = SY-MANDT

objnr = st_equi-objnr

user_status = g_estat

set_inact = lv_inac_fl

set_chgkz = 'X'

  • IMPORTING

  • stonr = stonr

EXCEPTIONS

object_not_found = 1

status_inconsistent = 2

status_not_allowed = 3

OTHERS = 4

There is quite a few different way to change status. THis is just one of them.

Former Member
0 Kudos

Use the function module STATUS_CHANGE_INTERN_VB to change the status of an equipment.

Hit the table EQUI with the equipment number and get the Object number (OBJNR) value and pass that to the above function module.

Thanks,

Srinivas