本文主要是介绍MDG页面隐藏掉不需要的CRTYPE,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
某些原因客户不希望普通用户在通用创建页面上使用特殊的CR TYPE,比如不带审批策略的。
该需求可以通过增强实现:BADI USMD_CREQUEST_INTEGRATION
创建该BADI的实施后通过IF_EX_USMD_CREQUEST_INTEGR~FILTER_CREQUEST_TYPE实现:
METHOD if_ex_usmd_crequest_integr~filter_crequest_type.DATA:lv_appl TYPE wdy_application_name.DATA:lc_cr_type TYPE usmd_crequest_type.
"VALUE 'ZB101'. "Mass Change AirlinesDATA:lo_fpm TYPE REF TO if_fpm.lo_fpm = cl_fpm=>get_instance( ).IF lo_fpm IS INITIAL.RETURN.ENDIF.lv_appl = lo_fpm->get_runtime_info( )-application.CASE iv_model.WHEN 'ZB'.lc_cr_type = 'ZB101'.WHEN 'ZP'.lc_cr_type = 'ZP01'.WHEN 'ZV'.lc_cr_type = 'ZV01'.WHEN 'ZS'.lc_cr_type = 'ZS01'.ENDCASE.CASE lv_appl.WHEN 'USMD_ENTITY'OR 'USMD_SEARCH'OR 'USMD_MASS_CHANGE'OR 'USMD_FILE_UPLOAD'.DELETE ct_crequest_type WHERE table_line EQ lc_cr_type.WHEN OTHERS."Filter change request types only for hierarchy processing, mass change, or file uploadRETURN.ENDCASE.* IF iv_model <> 'ZB'.
* "This implementation is only valid for model SF
* RETURN.
* ENDIF.
*
* IF iv_entity <> 'ZBP'.
* "Filtering of change request types only for entity type Airline (CARR)
* RETURN.
* ENDIF.ENDMETHOD.
这篇关于MDG页面隐藏掉不需要的CRTYPE的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!