邏輯資料庫PCH常用的評估路徑(Evaluation path)及對介面上評估路徑選擇的隱藏
阿新 • • 發佈:2019-01-08
1 如果想查詢某個org.下的所有position的資訊,可以使用‘PLSTE’
這種方式下,是無法得到person的資訊的
REPORT ztest14.
TABLES: objec,gdstr.
INFOTYPES: 1007.
INITIALIZATION.
pchplvar = '01'."Plan version
pchotype = 'O'.
pchwegid = 'PLSTE'.
GET objec.
IF objec-otype = 'O'.
WRITE:/ '*****',objec-otype, objec-objid,objec-short,objec- stext,'****'.
ENDIF.
IF objec-otype = 'S'.
WRITE:/ objec-otype, objec-objid,objec-short,objec-stext.
SORT p1007 BY endda DESCENDING.
LOOP AT p1007 WHERE begda < pc-endda
AND endda > pc-begda.
WRITE : p1007-status.
EXIT.
ENDLOOP.
ENDIF.
執行結果如下圖所示:
2 Some structural evaluations only run with a fixed evaluation path that must not be overwritten on the Selection Screen .
If you require a Selection Screen without structure parameters for such structural evaluations,enter screen 900 in the report attributes.
將上面的例子屬性中設定selection screen 900,然後再次執行。
效果如下圖所示,評估路徑的選擇被隱藏了
2 如果想查詢某個org.下的所有的postion以及position的person的資訊,可以使用'O-S-P'
TABLES: objec,gdstr.
INFOTYPES: 1007.
INITIALIZATION.
pchplvar = '01'."Plan version
pchotype = 'O'.
pchwegid = 'PLSTE'.
GET objec.
IF objec-otype = 'O'.
WRITE:/ '*****',objec-otype, objec-objid,objec-short,objec-
ENDIF.
IF objec-otype = 'S'.
WRITE:/ objec-otype, objec-objid,objec-short,objec-stext.
SORT p1007 BY endda DESCENDING.
LOOP AT p1007 WHERE begda < pc-endda
AND endda > pc-begda.
WRITE : p1007-status.
EXIT.
ENDLOOP.
ENDIF.
執行結果如下圖所示: