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

Cannot complete the default for Focused Build Defect Priority. Change from Very High to Medium

Steve_Tieman
Discoverer
0 Kudos
415

The Focused Build defect priority is set to equal the setting of the test script.  The test script defaults to very high which causes the defect to also default to very high.  The business users neglect to adjust the defect priority to medium or low; therefore, the objective is to default the defect priority to medium.  The default BAdi: /SALM/IF_TM_TWL_DEFECT_DEFAULT seems to be the correct place to complete this change; however, the coding for the BAdi is unclear.

The setting on the method GET_DEFECT_VALUES that was tested:

 

Steve_Tieman_0-1734281820190.png

Does not properly match the Type required for the interface attributes:

Steve_Tieman_1-1734282026503.png

Steve_Tieman_2-1734282086663.png

What is the correct way to code the BAdi to default to Medium for the Defect Priority.

 

Accepted Solutions (1)

Accepted Solutions (1)

Holger_Braemer
Advisor
Advisor

Hi Steve, 

there is an example implementation available for this BaDI (class /SALM/CL_TM_TWL_DEF_DIA_SAMPL) which contains following code:
  " overwrite priority to use value '2: High' as default
  ch_default_values-priority '2'.

So for your requirement to always set it to Medium, you would need to add the following code in your implementation:
  " overwrite priority to use value '3: Medium' as default
  ch_default_values-priority '3'.

Best regards,
Holger

Answers (0)