Skip to Content
avatar image
Former Member

Change the status of CRM Lead from open to reset

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>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 14, 2015 at 12:56 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded