SAP CRM IPM行业解决方案 - 如何删除IP Right Scope
发布日期:2021-06-30 14:05:58
浏览次数:3
分类:技术文章
本文共 2711 字,大约阅读时间需要 9 分钟。
REPORT zdelete_right_scope.PARAMETERS: order TYPE crmd_orderadm_h-object_id OBLIGATORY DEFAULT '5600000010'.DATA: lo_core TYPE REF TO cl_crm_bol_core, lo_collection TYPE REF TO if_bol_entity_col, lv_query_name TYPE crmt_ext_obj_name, lt_selection_parameter TYPE genilt_selection_parameter_tab, ls_selection_parameter TYPE genilt_selection_parameter, lr_del_handler TYPE REF TO cl_crm_ipm_item_delete_handler, ls_query_parameters TYPE genilt_query_parameters.ls_selection_parameter-attr_name = 'OBJECTID'.ls_selection_parameter-option = 'EQ'.ls_selection_parameter-sign = 'I'.ls_selection_parameter-low = order.APPEND ls_selection_parameter TO lt_selection_parameter.ls_query_parameters-max_hits = 1.lv_query_name = 'BTAdvQueryAUI'.lo_core = cl_crm_bol_core=>get_instance( ).lo_core->load_component_set( 'BT' ).lo_core->load_component_set( 'IPMRM' ).lo_collection = lo_core->dquery( iv_query_name = lv_query_name it_selection_parameters = lt_selection_parameter is_query_parameters = ls_query_parameters ).DATA(lo_contract) = lo_collection->get_current( ).CHECK lo_contract IS NOT INITIAL.DATA: lr_item_handler TYPE REF TO cl_crm_ipm_item_handler.CREATE OBJECT lr_item_handler EXPORTING iv_header_bol_entity = lo_contract.DATA(ips) = lr_item_handler->get_ips( ).DATA(ip_instance) = ips->get_first( ).WHILE ip_instance IS NOT INITIAL. DATA(ip_handler) = cl_crm_ipm_item_handler_provid=>get_instance( ip_instance ). DATA(scope_collection) = ip_handler->get_rights_scopes( ip_instance ). CHECK scope_collection IS NOT INITIAL. DATA(ip) = cl_crm_ipm_order_item_entity=>get_instance( io_original = ip_instance iv_ipm_admini_type = 'IP' ). DATA(scope) = scope_collection->get_first( ). WHILE scope IS NOT INITIAL. DATA(wrapped) = cl_crm_ipm_order_item_entity=>get_instance( io_original = scope iv_ipm_admini_type = 'RIGHTSCOPE' ). DATA(scope_handler) = cl_crm_ipm_item_handler_provid=>get_instance( wrapped ). CREATE OBJECT lr_del_handler EXPORTING ir_item_handler = scope_handler. lr_del_handler->delete_scope( ir_ip = ip ir_item = wrapped ). ip = cl_crm_ipm_order_item_entity=>get_instance( io_original = ip_instance iv_ipm_admini_type = 'IP' ). scope = scope_collection->get_next( ). ENDWHILE. ip_instance = ips->get_next( ).ENDWHILE.lo_core->modify( ).DATA(lo_transaction) = lo_core->get_transaction( ).CHECK lo_transaction->check_save_possible( ) = abap_true.CHECK lo_transaction->save( ) = abap_true.lo_transaction->commit( ).WRITE: / 'IP Right scope deleted successfully!'.
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
转载地址:https://jerry.blog.csdn.net/article/details/103967331 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
留言是一种美德,欢迎回访!
[***.207.175.100]2024年04月28日 17时29分53秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
YbtOJ——字符串处理【例题1】数字反转
2019-04-30
转trt步骤记录
2019-05-01
MatConvNet安装
2019-05-01
依赖错误
2019-05-01
ROS安装与卸载
2019-05-01
安装openrave 0.9的各种依赖包
2019-05-01
trajopt代码使用
2019-05-01
kpm代码使用细节
2019-05-01
redis
2019-05-01
@FeignClient注解的重复名称解决
2019-05-01
ClassFile之Methods
2019-05-01
java.net.BindException: 无法指定被请求的地址
2019-05-01
scala list
2019-05-01
k8s设置阿里云仓库
2019-05-01
svn服务器安装
2019-05-01
spark 笔记1
2019-05-01
svn 没有作者信息) | (没有时间信息
2019-05-01
shell dirname basename
2019-05-01
未来已至,5G加持下的云游戏将走向何方?
2019-05-01