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: 

STATUS_CHANGE_FOR_ACTIVITY

Former Member
0 Kudos

Hi all,

Can anyone tell me the logic of this FM?

Thanks In Advance

5 REPLIES 5

Former Member
0 Kudos

Hi,

Please visit www.se37.com.

0 Kudos

its not available there

0 Kudos

hi mohd saad,

have u got any result on this please let me know how to change the newtwork status in PS module.

regards

Sukumar

Former Member
0 Kudos

Hi,

Welcome to SDN.

INstead of using STATUS_CHANGE_FOR_ACTIVITY you use this FM I_CHANGE_STATUS which will call FM STATUS_UPDATE.

You only need to pass the object number and the statuses and the program will fill up the other parameters for FM STATUS_UPDATE. To get statuses, you can use this FM I_STATUS_SELECT.

CALL FUNCTION 'I_STATUS_SELECT'

EXPORTING

objnr = diaufk-objnr

sent_user_status = p_ustat

IMPORTING

selected = g_answer

current_user_status = current_status

next_user_status = next_status

user_status_profile = ustat_profile

TABLES

syst_status_incl = so_syinc

syst_status_excl = so_syexc

user_status_incl = so_usinc

user_status_excl = so_usexc.

CALL FUNCTION 'I_CHANGE_STATUS'

EXPORTING

OBJNR = T_TASKS-OBJNR

ESTAT_INACTIVE = CURRENT_STATUS

ESTAT_ACTIVE = NEXT_STATUS

STSMA = USTAT_PROFILE

EXCEPTIONS

CANNOT_UPDATE = 1

OTHERS = 2.

Regards

0 Kudos

hi kiran con u send the sample cod efor this

regards

Sukumar