cancel
Showing results for 
Search instead for 
Did you mean: 

how to display error message for choosing incorrect CR type?

Chandra_S
Explorer
0 Kudos
248

Hi Team,

I am working on some task.

When user selects a material, clicks on copy , Change request pop will come. If an incorrect CR type is selected , how to display error message on the screen?

Kindly provide some inputs on how this can be achieved.

 

Chandra_S_0-1730893729544.png

Chandra_S_0-1730953751422.png

 

error message (incorrect CR type)to be displayed here in yellow section?

Chandra_S_1-1730953802951.png

 

 

 

regards

Chandra.

View Entire Topic
adityaIngale
Active Participant
0 Kudos

Hi @Chandra_S ,

I'm not sure about the error message, but you can use the BADI 'USMD_CREQUEST_INTEGRATION' to filter out the incorrect CRs from the popup box. 

Obviously, you can display the error message after the CR is created for a particular CR type. However, I think you're looking to show the error message in the popup itself before the CR is created. Achieving this would require modifying the WebDynpro, which I'm not entirely sure how to do.

Chandra_S
Explorer
0 Kudos
@adityaIngale Hi Aditya, This is what we are trying to accomplish here. User trying to copy the existing material and create a new material. In this case ,material type is FERT and if Create Service CR type is chosen, error should be displayed(Incorrect CR type) in below screen 2??
Chandra_S
Explorer
0 Kudos
@adityaIngale Please check the screenshots in my first question.
adityaIngale
Active Participant
0 Kudos
You can use BADI USMD_RULE_SERVICE to display error message. Read the CR type and display error message in check entity method, if it is incorrect. Let me know if you want more details on this.
Chandra_S
Explorer
0 Kudos
Hi Aditya, I have implemented the BADI 'USMD_CREQUEST_INTEGRATION' , can get the current CR type but not able to get the material type. So implemented the enhancement in feeder class CL_MDG_BS_MAT_FEEDER_FORM_MAT( IF_FPM_GUIBB_FORM~GET_DATA) of basic data CR section and can display the error message.