cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Trigger Error message on Status set to Released

Former Member
0 Likes
512

Hi Guys,

In a Cproject Standard BSP Application,

I am using a BAdI to check certain values on a manual Change of Status-Released (Event) for a project.

Here I want to trigger a error message in the BSP Application.

Initially I tried using a BAdI DPR_ATTRIBUTES which sends error messages to the BSP Application.

But It was'nt getting triggered for the

Change in Listbox - "Status" (Event).

Is there any configuration/change to be done as the BAdI(DPR_ATTRIBUTES ) is not getting triggered only for Change in Listbox - "Status" (Event).

Therefore I tried using the BAdI DPR_EVENTS which

triggers for the Change in Listbox - "Status" (Event).

But it does n't have Messages as export Parameter

Please suggest a way to display an Error message from the Badi(BAdI DPR_EVENTS ) on to the BSP Application.

Regards,

Spinoza.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Spin,

You can use the methods in the class 'cl_cgpl_application_log' to delete or add messages to the message log. To delete the existing messages which are added by the BAPI that you call, call the below method:

CALL METHOD cl_cgpl_application_log=>messages_delete

  • EXPORTING

  • im_log_type =

.

To add your own messages, use the below method:

CALL METHOD cl_cgpl_application_log=>message_add

EXPORTING

im_msgty = 'I'

im_msgid = 'Z33_MSG_PROJS'

im_msgno = '000'

  • im_msgv1 =

  • im_msgv2 =

  • im_msgv3 =

  • im_msgv4 =

  • im_log_type =

  • im_context =

.

'Z33_MSG_PROJS' is a message class that contains the message with the number '000', You have to create a message class using TCODE SE91. You can make the message as an Information, Success or Error message by setting the parameter 'im_msgty' as 'I' or 'S' or 'E'.

Hope this helps. Reward points if useful.

Regards

Vidhya

Former Member
0 Likes

Hi Vidhya,

Your solution has solved the problem.

Thanks your help.

Regards,

Spinoza.

Answers (0)