cancel
Showing results for 
Search instead for 
Did you mean: 

status profile

Former Member
0 Kudos

Hi..

y do we need a FM to change the user status..i mean we can manually change it rite then y do we need a FM to chnage that...?

regards,

sanjana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I do not know if I understand you well. But, there will be a lot of business requirements when the status needs to be changed automatically based on some other user action (like changing some field etc...) on the GUI.

In these cases, there will be no manual change of the status.

Hope it helps. Reward if helpful!

Regards,

Sudipta

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Sanjana,

There will be lot of scenarios where the user status shud be automatically changed.

Just imagine ur mail box....once u read a mail the mail will become read from unread status.,.right... this is done underlyingly...

Like wise u need to change user status programatically.

Sorry to give a lay example to make u understand..

Siva

Former Member
0 Kudos

Use this function module:

*&-- Update statuses--&*

CALL FUNCTION 'CRM_STATUS_SET_WITH_ACTIVITY'

EXPORTING

  • CHECK_ONLY = ' '

objnr = wa_obj-objnr

estat = 'E0003'

  • XNOAUTO =

  • IMPORTING

  • ACTIVITY_NOT_ALLOWED =

  • ERROR_OCCURRED =

  • OBJECT_NOT_FOUND =

  • STATUS_INCONSISTENT =

  • STATUS_NOT_ALLOWED =

  • WARNING_OCCURRED =

  • EXCEPTIONS

  • ACTIVITY_NOT_ALLOWED = 1

  • OBJECT_NOT_FOUND = 2

  • STATUS_INCONSISTENT = 3

  • STATUS_NOT_ALLOWED = 4

  • WRONG_INPUT = 5

  • WARNING_OCCURED = 6

  • OTHERS = 7

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Thanks,

ashish.

Former Member
0 Kudos

Hi Sanjana,

There could be certain scenarios where in you want to change the status of document automatically, for eg.

Presently in my service request i have not assign any person responsible partner funtion, and thus status is 'Created' but the requirement is if the ticket is assigned to a person, its status should get changed to 'In Process' or 'Assigned' this can be done only by FM which would get triggered using action profile, once you assign partner to the ticket.

Best Regards,

Pratik Patel

<b>Reward with Points!</b>