cancel
Showing results for 
Search instead for 
Did you mean: 

Warning message issue

sanketchimalwar
Participant
0 Kudos

Hi,

I am facing a unique issue. In the development system all the warning message for the Z- Message class are shown correctly but in the q-system , only the standard warning messages are shown . Not the Z message class messages. I debugged the issue. In the q system the Z message is processed correctly by the FM CRM_MESSAGES_COLLECT. I am not sure what is going wrong in the system. I am posting a picture of the debug mode in the Q-system for the Z- message class.

Step 1  - : Debug Mode for the handle_message_list class

Step 2 -:  This step shows what my internal table error list contains . One standard warning and one z warning .

Step 3 -: Outcome of the CRM_MESSAGES_COLLECT function module . sy-subrc = 0

Even after this i just see the first standard warning message in the UI. Not the Z class. Is there any customizing by which the z messages are restricted or number of warning message are restricted. Everything works fine in the dev environment.

If any body has an ide please let me know ?

Thanks

Sanket

Accepted Solutions (0)

Answers (3)

Answers (3)

kavindra_joshi
Active Contributor
0 Kudos

Sanket ,

If there is a Z message class being raised then possibly it is added through coding or else through customization using message replacement class is used.The message may be raised previously and is getting filtered because it was read once and then can be marked to be deleted for future use.

Which approach is being used in your case ?

Also as I see from the ABAP stack that this message is raised during Post Processing Framework so it may have to with Action Profile as well. You can check around that.

~Kavindra

sanketchimalwar
Participant
0 Kudos

Hi Kavindra,

You are right that there is a Z coding condition check and the here the condition is checked. If it fails then, the proper message details are passed to the standard coding . As i explained in my post, everything comes fine till the CRM_MESSAGES_COLLECT function module. The outcome of this is sy-subrc = 0 which means the message is added to the message container, but while displaying the message is not displayed. So i am confused. I even checked for the standard filtering that happens in the class CL_BSP_WD_MESSAGE_SERVICE=>APPLY_USER_FILTER  . But i can only see the standard warning messages.

kavindra_joshi
Active Contributor
0 Kudos

Hi Sanket ,

How have you added the Z message ?

Regards,

Kavindra

sanketchimalwar
Participant
0 Kudos

Hi kavindra,

The messages are added through the table TSOCM_COND_MAPP checking on certain conditions which is done in Z function module. If the condition is not ok then a false return flag is sent back to the standard coding via an exit and then the standard coding picks up the message from the message table ( all standard coding ) . as you can see in step 3 image , the variables are coming correctly to the FM CRM_MESSAGES_COLLECT and also it gets executed correctly. So i expect it to show the message.

Sanket

kavindra_joshi
Active Contributor
0 Kudos

Hi Sanket ,

Can you paste the code which you are using to add the message ?

Regards,

Kavindra

sanketchimalwar
Participant
0 Kudos

Hi kavindra,

This is standard code. If you look at the step 3 image, it shows you the active calls made . All is standard SAP code.

devashish_bhattacharya
Active Participant
0 Kudos

Hi,

Where are you calling the messages?

Regards,

Devashish

sanketchimalwar
Participant
0 Kudos

Hi Devashish ,

This is standard functionaly. No custom development. step 1 mentions the methods calls.

Sanket

deepika_chandrasekar
Active Contributor
0 Kudos

Hi,

Anywhere you are using CRM_MESSAGE_DELETE FM with the Z message class?

Regards,

Deepika.

sanketchimalwar
Participant
0 Kudos

Nopes... As mentioned. works perfectly in the dev system but not in the Q system. So i guess not a problem with the code.