Ansicht
Dokumentation

EXIT_SAPDBPSJ_001 - PS Customer Exit Autorization Check in the PSY Logical Database

EXIT_SAPDBPSJ_001 - PS Customer Exit Autorization Check in the PSY Logical Database

Vendor Master (General Section)   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The logical database (LDB) PSJ of the Project System supports field selection for the following tables: PROJ, PRPS_R, PSMLST, PLAFKBED04, RESB04, AUFK, AFKO, AFPO, AFFL, ACT01, AFAB01, MLSTD, AFFH01, KBED01, RESB01 und AFRU01.

The LDB selects all fields required for the authorization. These fields are independent of the field list specified by the programer during GET. Enter the fields in the function module that you have reserved for the customer for self-defined authorization checks. Note that the system accesses tables using structures sometimes in the LDB PSJ. Specify these structure names here.

Example

Your self-defined authorization check requires the fields PROJ-XXXXPROJ-YYYY and PRPS-ZZZZ. Transfer these to the internal table SAP_SELECT_FIELDS as follows:

  CLEAR SELECT_FIELDS.
  SELECT_FIELDS-TABLENAME = 'PROJ'.
  RSFS_STRUC_LINE         = 'XXXX'.
  APPEND RSFS_STRUC_LINE TO SELECT_FIELDS-FIELDS.
  RSFS_STRUC_LINE         = 'YYYY'.
  APPEND RSFS_STRUC_LINE TO SELECT_FIELDS-FIELDS.
  APPEND SELECT_FIELDS TO SAP_SELECT_FIELDS.

* In the LDB PSJ you access the table PRPS via the structure PRPS and PRPS_R,
* respectively, depending on the transcation, so fields have to be appended
* to both structures:
  CLEAR SELECT_FIELDS.
  SELECT_FIELDS-TABLENAME = 'PRPS'.
  RSFS_STRUC_LINE         = 'ZZZZ'.
  APPEND RSFS_STRUC_LINE TO SELECT_FIELDS-FIELDS.
  APPEND SELECT_FIELDS TO SAP_SELECT_FIELDS.
  CLEAR SELECT_FIELDS.
  SELECT_FIELDS-TABLENAME = 'PRPS_R'.
  RSFS_STRUC_LINE         = 'ZZZZ'.
  APPEND RSFS_STRUC_LINE TO SELECT_FIELDS-FIELDS.
  APPEND SELECT_FIELDS TO SAP_SELECT_FIELDS.

Notes

Information on how to program ABAP/4 Reports with field selection are located in the ABAP/4 Online Documentation using the key terms "GET dbtab FIELDS f1 ... fn" and "SELECTION-SCREEN FIELD SELECTION FOR TABLE dbtab". There is also online documentation for the logical database PSJ (Transaction SE36).

Further information





Parameters

SAP_SELECT_FIELDS

Exceptions

Function Group

XCN1

General Data in Customer Master   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2680 Date: 20240604 Time: 063809     sap01-206 ( 43 ms )