前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Organizational Unit useful function module

Organizational Unit useful function module

作者头像
Jerry Wang
发布2019-08-12 16:04:16
3820
发布2019-08-12 16:04:16
举报
知识共享许可协议
知识共享许可协议

版权声明:署名,允许他人基于本文进行创作,且必须基于与原先许可协议相同的许可协议分发本文 (Creative Commons

you can use the function module RH_STRUC_GET to read information from the org model:

Created by Wang, Jerry on Jul 04, 2015

代码语言:javascript
复制
* read all org units a specific user is assigned to
   call function 'RH_STRUC_GET'
     exporting
        act_otype  = 'US'
        act_objid  = lv_username "e.g. sy-uname
        act_wegid  = 'US_CP_O'
     tables
        result_tab = lt_result "all org units the user is assigned to
     exceptions
       others      = 3.
   delete lt_result where otype <> 'O'.
* get all employees who are assigned to an org unit
   call function 'RH_STRUC_GET'
     exporting
        act_otype  = 'O'
        act_objid  = lv_org
        act_wegid  = 'OO-S-BP'
        act_plvar  = lv_plvar
     tables
        result_tab = lt_result " all employees that are assigned to an org unit
     exceptions
       others      = 0.
   delete lt_result where otype ne 'BP' .

There are a lot of other combinations possible. But please keep in mind this FM is not really fast.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019年08月09日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Created by Wang, Jerry on Jul 04, 2015
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档