SAP CJPN_GET_WBS_ELEMENT Function Module for NOTRANSL: gepuffertes Lesen eines PSP-Elementes









CJPN_GET_WBS_ELEMENT is a standard cjpn get wbs element SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: gepuffertes Lesen eines PSP-Elementes processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for cjpn get wbs element FM, simply by entering the name CJPN_GET_WBS_ELEMENT into the relevant SAP transaction such as SE37 or SE38.

Function Group: CJPN
Program Name: SAPLCJPN
Main Program: SAPLCJPN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CJPN_GET_WBS_ELEMENT pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CJPN_GET_WBS_ELEMENT'"NOTRANSL: gepuffertes Lesen eines PSP-Elementes
EXPORTING
* I_INDEX = 1 "
* I_OBJNR = ' ' "
* I_POSID = ' ' "
* I_PSPNR = '00000000' "
* NO_BUFFER = ' ' "read directly from hard disk
* NO_MESG_COLLECT = ' ' "

IMPORTING
E_PRPS = "
KTEXT = "Description (short text) from PRPS-POST1
OBJNR_EXP = "
E_PSPHI = "
E_PSPRI = "
E_PSPNR = "
E_GRPKZ = "Indicator: Grouping WBS element

EXCEPTIONS
INPUT_ERROR = 1 NOT_FOUND = 2
.



IMPORTING Parameters details for CJPN_GET_WBS_ELEMENT

I_INDEX -

Data type: SY-TABIX
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OBJNR -

Data type: PRPS-OBJNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_POSID -

Data type: PRPS-POSID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PSPNR -

Data type: PRPS-PSPNR
Default: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_BUFFER - read directly from hard disk

Data type: RCWBS-SEL01
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_MESG_COLLECT -

Data type: RCWBS-SEL01
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CJPN_GET_WBS_ELEMENT

E_PRPS -

Data type: PRPS
Optional: No
Call by Reference: No ( called with pass by value option)

KTEXT - Description (short text) from PRPS-POST1

Data type: CLIKE
Optional: No
Call by Reference: No ( called with pass by value option)

OBJNR_EXP -

Data type: PRPS-OBJNR
Optional: No
Call by Reference: No ( called with pass by value option)

E_PSPHI -

Data type: PRPS-PSPHI
Optional: No
Call by Reference: No ( called with pass by value option)

E_PSPRI -

Data type: PRPS-PSPRI
Optional: No
Call by Reference: No ( called with pass by value option)

E_PSPNR -

Data type: PRPS-PSPNR
Optional: No
Call by Reference: No ( called with pass by value option)

E_GRPKZ - Indicator: Grouping WBS element

Data type: PRPS-GRPKZ
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INPUT_ERROR - Neither OBJNR, POSID nor PSPNR specified

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NOT_FOUND - WBS element does not exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CJPN_GET_WBS_ELEMENT Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_e_prps  TYPE PRPS, "   
lv_i_index  TYPE SY-TABIX, "   1
lv_input_error  TYPE SY, "   
lv_ktext  TYPE CLIKE, "   
lv_i_objnr  TYPE PRPS-OBJNR, "   SPACE
lv_not_found  TYPE PRPS, "   
lv_i_posid  TYPE PRPS-POSID, "   SPACE
lv_objnr_exp  TYPE PRPS-OBJNR, "   
lv_e_psphi  TYPE PRPS-PSPHI, "   
lv_i_pspnr  TYPE PRPS-PSPNR, "   '00000000'
lv_e_pspri  TYPE PRPS-PSPRI, "   
lv_no_buffer  TYPE RCWBS-SEL01, "   SPACE
lv_e_pspnr  TYPE PRPS-PSPNR, "   
lv_no_mesg_collect  TYPE RCWBS-SEL01, "   SPACE
lv_e_grpkz  TYPE PRPS-GRPKZ. "   

  CALL FUNCTION 'CJPN_GET_WBS_ELEMENT'  "NOTRANSL: gepuffertes Lesen eines PSP-Elementes
    EXPORTING
         I_INDEX = lv_i_index
         I_OBJNR = lv_i_objnr
         I_POSID = lv_i_posid
         I_PSPNR = lv_i_pspnr
         NO_BUFFER = lv_no_buffer
         NO_MESG_COLLECT = lv_no_mesg_collect
    IMPORTING
         E_PRPS = lv_e_prps
         KTEXT = lv_ktext
         OBJNR_EXP = lv_objnr_exp
         E_PSPHI = lv_e_psphi
         E_PSPRI = lv_e_pspri
         E_PSPNR = lv_e_pspnr
         E_GRPKZ = lv_e_grpkz
    EXCEPTIONS
        INPUT_ERROR = 1
        NOT_FOUND = 2
. " CJPN_GET_WBS_ELEMENT




ABAP code using 7.40 inline data declarations to call FM CJPN_GET_WBS_ELEMENT

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single TABIX FROM SY INTO @DATA(ld_i_index).
DATA(ld_i_index) = 1.
 
 
 
"SELECT single OBJNR FROM PRPS INTO @DATA(ld_i_objnr).
DATA(ld_i_objnr) = ' '.
 
 
"SELECT single POSID FROM PRPS INTO @DATA(ld_i_posid).
DATA(ld_i_posid) = ' '.
 
"SELECT single OBJNR FROM PRPS INTO @DATA(ld_objnr_exp).
 
"SELECT single PSPHI FROM PRPS INTO @DATA(ld_e_psphi).
 
"SELECT single PSPNR FROM PRPS INTO @DATA(ld_i_pspnr).
DATA(ld_i_pspnr) = '00000000'.
 
"SELECT single PSPRI FROM PRPS INTO @DATA(ld_e_pspri).
 
"SELECT single SEL01 FROM RCWBS INTO @DATA(ld_no_buffer).
DATA(ld_no_buffer) = ' '.
 
"SELECT single PSPNR FROM PRPS INTO @DATA(ld_e_pspnr).
 
"SELECT single SEL01 FROM RCWBS INTO @DATA(ld_no_mesg_collect).
DATA(ld_no_mesg_collect) = ' '.
 
"SELECT single GRPKZ FROM PRPS INTO @DATA(ld_e_grpkz).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!