cancel
Showing results for 
Search instead for 
Did you mean: 

FM to Identify Incidents Locked to a Problem

Former Member
0 Kudos

Hi Gurus

I'm not sure if this should be in the ABAP Forum or here,...but I'll start here anyway.

I need to programmatically identify if an Incident is Locked to a Problem.

Currently we have an interface which updates Incidents, but some of these updates are failing because the Incident is Locked to a Problem Transaction and therefore no updates are allowed on the Incident, only the Problem can be updated.

I've tried using Function Module CRM_ORDER_READ, which gives me the the Document Flow linkages, but I cannot see within that data set if the Transaction is Locked to the Problem, unless I'm missing something.

Does anyone know if it is contained in another variable within CRM_ORDER_READ, or is there a separate Function Module I can use.

Many Thanks in advance

Panduranga

Accepted Solutions (1)

Accepted Solutions (1)

ashik_k2
Contributor
0 Kudos

Hello Pandurang,

You can check class CL_CRM_SRQM_BTDOCFLOW_CN ->GET_I_OBJECTID ( ) method , In this method you can see one way to check the locked entity.

Regards,

Ashik

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I would advice to check system status I1381 - Document Locked. That should return you locked incidents that cannot be updated directly. And you can use FM CRM_ORDER_READ if you like. There are plenty of ways to check system status.

Marek