02-15-2008 11:52 AM
hi!
do you know something FM to change status of a equipment??
thank you!
04-21-2008 6:06 PM
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.
04-21-2008 6:06 PM
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.
04-21-2008 6:12 PM
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