SAP HR 组织ID 搜索帮助

  CLEAR:S_ORGEH.
DATA: sel_object TYPE objec,
      sel_hrobject_tab LIKE hrobject OCCURS 0 WITH HEADER LINE.

  CALL FUNCTION 'RH_OBJID_REQUEST'
    EXPORTING
      plvar            = '01'
      otype            = 'O'
      seark_begda      = sy-datum
      seark_endda      = sy-datum
      set_mode         = 'X'
      orgbeg           = sy-datum
      orgend           = sy-datum
    IMPORTING
      sel_object       = sel_object
    TABLES
      sel_hrobject_tab = sel_hrobject_tab
    EXCEPTIONS
      cancelled        = 1
      wrong_condition  = 2
      nothing_found    = 3
      internal_error   = 4
      illegal_mode     = 5
      OTHERS           = 6.
  IF sy-subrc EQ 0.
    LOOP AT sel_hrobject_tab.
      S_ORGEH-low = sel_hrobject_tab-objid.
      APPEND S_ORGEH.
    ENDLOOP.
  ENDIF.

?mid=&wid=51824&sid=&tid=8555&rid=LOADED&custom1=mp.csdn.net&custom2=%2Fpostedit&t=1572521802006?mid=&wid=51824&sid=&tid=8555&rid=FINISHED&custom1=mp.csdn.net&t=1572521802007

posted @ 2021-07-16 10:42  linhuang  阅读(25)  评论(0编辑  收藏  举报  来源