cancel
Showing results for 
Search instead for 
Did you mean: 

Change the status of CRM Lead from open to reset

Former Member
0 Kudos

hi,

There is requirement in my project to change the status of CRM Lead from open to reset through ABAP Program.Though a RESET Status profile is created in the system but no such configuration is done in system so that we can change status from Open to Reset.So is this situation feasible.I used FM  CRM_ORDER_MAINTAIN  to change status,but the OPEN status is not changing to RESET. Please help.

Message was edited by: Manish Kumar <subject shortened>

Accepted Solutions (0)

Answers (1)

Answers (1)

argel_esquivel
Explorer
0 Kudos

You should try this function:   'CRM_STATUS_CHANGE_EXTERN'.


Example:


CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN'

       EXPORTING   OBJNR      = LV_GUID             " GUID

                   USER_STATUS    = LV_ESTATUS      " Status

EXCEPTIONS

               OBJECT_NOT_FOUND         = 1

               STATUS_INCONSISTENT     = 2

               STATUS_NOT_ALLOWED    = 3

                   OTHERS                            = 4.

Hope it helps.

Argel.