|| 您当前的位置:首页 > SAP HR资源网

PNPCE 示例代码

来源:SAP HR资源网   作者:小彭  (查看评论)

REPORT Z_XP_0018.
*CE Mode (with function for evaluating concurrent employment)
* LD:PNPCE
*The enhanced functionality of PNPCE in comparison to PNP essentially concerns the evaluation of *Concurrent Employment , that is, the possibility to group evaluate several assignments/personnel *numbers of a person.
*PNPCE 是PNP的增强版,现在使用的PNP均可以用PNPCE所替代。

TABLES: PERNR.

NODES: PERSON, GROUP, PERAS.

INFOTYPES: 0001 NAME ALL_0001 AS PERSON TABLE MODE P. ” for evaluating Concurrent Employment.

” mode p 跳过授权

INFOTYPES: 0001 NAME PP0001 AS PERSON TABLE, ” for evaluating Concurrent Employment.
” The name ppnnnn is used if the addition AS PERSON TABLE is specified
0000,0002,0008.
INFOTYPES: 0006 NAME P0006.

GET PERSON.

* table ALL_0001 is filled with infotype 0001 data of all PERNRs

* stored in PERSON-ALL_PERNRS without authority check !!!

WRITE :/ PERSON-OBJID.
GET GROUP.

* table P0001 is filled with infotype 0001 data of all PERNRs

* stored in GROUP-ALL_PERNRS

WRITE :/ GROUP-GROUPING_REASON, GROUP-GROUPING_VALUE.
GET PERAS.

* table P0006 is filled with infotype 0006 data of PERNR

* stored in PERAS-PERNR

WRITE :/ PERAS-PERNR.

end-of-SELECTION.
WRITE : ‘TEST’.

考试辅导
最近更新内容
Google广告