cancel
Showing results for 
Search instead for 
Did you mean: 

How to put filter on CR type in the BADI USMD_RULE_SERVICE_CROSS_ET

Former Member
0 Kudos

Hi,

I Need to put a filter on CR type in the method 'DERIVE' of BADI USMD_RULE_SERVICE_CROSS_ET.

But I do not find the CR type in this method.

Could you please provide me any other option to get the value of CR type in this method.

Thanks,

Deepa 

Accepted Solutions (0)

Answers (1)

Answers (1)

benjamin_allsopp
Active Participant
0 Kudos

Please find sample code which would pull your request type into local value lv_crequest_type for use in any way you require.



  DATA:  lo_app_context                type ref to      if_usmd_app_context,

              lv_crequest_type             type              usmd_s_crequest-usmd_creq_type.



*====================================================================

*Get Change Request Type

*====================================================================

     lo_app_context = cl_usmd_app_context=>get_context( ).

     if lo_app_context is not initial.

       iv_cr_number = lo_app_context->mv_crequest_id.

       lo_app_context->get_attributes(

       importing

         ev_crequest_type = lv_crequest_type

     endif.