cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Message Deletion for a particular mesg no.

Former Member
0 Kudos

Hello All,

I'm fetching msg_no from 'CRM_MESSAGES_GET_LOG_INFO' and have deleted that message for a Object Id. After deletion again i'm checking is there any error messages by calling the above FM and i'm getting the same mesg no again though this mesg no is already deleted. I've used CRM_MESSAGES_SAVE' after deletion .

Can anybody help me out to solve this Problem?

thanks in advance

Madhusudan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Madhu

are you using the FM CRM_MESSAGES_DELETE_SINGLE to delete the Message ?

Thanks

Allot points if this helps !

Former Member
0 Kudos

Hello Kamesh,

For deleting mesg i'm using 'CRM_MESSAGES_DELETE'.

steps:

1. first i had found mesg no & class and then provide it to the above FM . Then again checking any other msg no is present or not. If present then finds msg class & delete it.

But after deleting one msg no , when i'm fetching msg no , previous mesg no is fetched. I don't know why this is coming ?

plz help me asap.I'm blocked.

thanks & regards

Madhusudan

Former Member
0 Kudos

Try the follwoing :

CALL FUNCTION 'CRM_MESSAGES_DELETE_SINGLE'

EXPORTING

iv_msgid = iv_msg_id

iv_msgno = iv_msg_no

iv_caller = gc_object_name-orderadm_i

iv_ref_object = iv_guid

iv_ref_kind = gc_object_ref_kind-orderadm_i

EXCEPTIONS

OTHERS = 1.

Thanks

Allot points if this helps!