BAPI:RH_STRUC_GET
测试验证
结果:
程序里维护参数
FORM frm_set_scn_data .
DATA: lv_objid TYPE hrobjid,
lt_result TYPE TABLE OF swhactor.
lv_objid = '10'.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'O'
act_objid = lv_objid
act_wegid = 'O-O_DOWN'
* ACT_INT_FLAG =
* act_plvar = ''
act_begda = sy-datum
act_endda = sy-datum
act_tdepth = 2
act_tflag = 'X'
act_vflag = 'X'
authority_check = 'X'
* TEXT_BUFFER_FILL =
* BUFFER_MODE =
* IMPORTING
* ACT_PLVAR =
TABLES
result_tab = lt_result
* RESULT_OBJEC =
* RESULT_STRUC =
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3.
ENDFORM.
参数act_objid不可以直接赋值=‘10’,通过定义参数lv_objid(NUMC8类型)
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/17905.html