PS Function module Used the same way in S/4HANA

CJPN_GET_WBS_ELEMENT Read WBS Element

Reads one WBS element record (PRPS) by internal number, external number or object number and returns key fields such as the project, priority and short text. Custom ABAP code uses it as a buffered lookup, for example to convert a WBS element between external and internal number. It is not remote-enabled; handle the NOT_FOUND and INPUT_ERROR exceptions and set NO_BUFFER when you need a fresh read.

Function group
CJPN
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
I_PSPNRPRPS-PSPNRWBS element (internal number)—
I_POSIDPRPS-POSIDWBS element (external number)—
I_OBJNRPRPS-OBJNRObject number of the WBS element—
I_INDEXSY-TABIXLog line for message handling—
NO_BUFFERRCWBS-SEL01Read directly from the database—
NO_MESG_COLLECTRCWBS-SEL01Do not collect messages—

Exporting parameters

ParameterTypeDescription
E_PRPSPRPSSelected WBS element record
E_PSPNRPRPS-PSPNRWBS element (internal number)
E_PSPHIPRPS-PSPHIProject definition (internal number)
E_GRPKZPRPS-GRPKZGrouping WBS element indicator
E_PSPRIPRPS-PSPRIWBS element priority
OBJNR_EXPPRPS-OBJNRObject number of the WBS element
KTEXTCLIKEWBS element short text

Exceptions

  • INPUT_ERROR — Neither OBJNR, POSID nor PSPNR specified
  • NOT_FOUND — WBS element does not exist

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'CJPN_GET_WBS_ELEMENT'
  IMPORTING
    e_prps = lv_e_prps
    e_pspnr = lv_e_pspnr
    e_psphi = lv_e_psphi
    e_grpkz = lv_e_grpkz
    e_pspri = lv_e_pspri
    objnr_exp = lv_objnr_exp
    ktext = lv_ktext
  EXCEPTIONS
    input_error = 1
    not_found = 2
    OTHERS = 3.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report