Skip to Content
0
Former Member
Jan 02, 2008 at 11:03 AM

CRM_ORDER_MAINTAIN

60 Views

Hi Experts ,

I am trying to change the status of a Lead with the help of BAPI 'CRM_ORDER_MAINTAIN' but I am getting the error message " The function module interface allows you to specify only fields of a particular type under "IT_STATUS".

The field "I_STATUS" specified here is a different

field type "

Below is my sample code. Please correct me if I am wrong somewhere.

DATA :i_status TYPE crmt_status_comt WITH HEADER LINE,

i_exc TYPE crmt_exception.

i_status-ref_guid = '477BD084CE7F0059000000000AC01901'.

i_status-ref_kind = 'A'.

i_status-status = 'E0012'.

i_status-user_stat_proc = 'CRMLEADP'.

i_status-activate = 'X'.

APPEND i_status.

CALL FUNCTION 'CRM_ORDER_MAINTAIN'

EXPORTING

it_status = i_status

IMPORTING

et_exception = i_exc

One more thing is my approach is correct in updating lead status or is there is some other methodology to attain this.

Please provide some input.

Regards

Sourabh Verma