SAP CJTR_CALL_FROM_EXTERN Function Module for









CJTR_CALL_FROM_EXTERN is a standard cjtr call from extern SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 cjtr call from extern FM, simply by entering the name CJTR_CALL_FROM_EXTERN into the relevant SAP transaction such as SE37 or SE38.

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



Function CJTR_CALL_FROM_EXTERN 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 'CJTR_CALL_FROM_EXTERN'"
EXPORTING
APLID = "
FCODE_IMP = "FCode
PROJ_IMP = "Project definition structure
* PRPS_IMP = "WBS element structure
TRTYP_IMP = "
* TOP_IMP = 1 "
* VSNMR_IMP = "
* RCNVS_IMP = "
* PSPNR_IMP = "WBS Element

IMPORTING
TRMACT = "
TOP_EXP = "Internal Tables, Current Row Index

TABLES
CJDI_IMP = "

EXCEPTIONS
NO_EXISTING_PSP = 1 NO_PPROFIL = 2
.



IMPORTING Parameters details for CJTR_CALL_FROM_EXTERN

APLID -

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

FCODE_IMP - FCode

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

PROJ_IMP - Project definition structure

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

PRPS_IMP - WBS element structure

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

TRTYP_IMP -

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

TOP_IMP -

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

VSNMR_IMP -

Data type: RCWBT-VSNMR
Optional: Yes
Call by Reference: No ( called with pass by value option)

RCNVS_IMP -

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

PSPNR_IMP - WBS Element

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

EXPORTING Parameters details for CJTR_CALL_FROM_EXTERN

TRMACT -

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

TOP_EXP - Internal Tables, Current Row Index

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

TABLES Parameters details for CJTR_CALL_FROM_EXTERN

CJDI_IMP -

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

EXCEPTIONS details

NO_EXISTING_PSP - No WBS elements exist

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

NO_PPROFIL - No network profile exists

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

Copy and paste ABAP code example for CJTR_CALL_FROM_EXTERN 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_aplid  TYPE C, "   
lv_trmact  TYPE RCWBT-SELKZ, "   
lt_cjdi_imp  TYPE STANDARD TABLE OF RCJ_MARKL, "   
lv_no_existing_psp  TYPE RCJ_MARKL, "   
lv_top_exp  TYPE SY-TABIX, "   
lv_fcode_imp  TYPE T185-FCODE, "   
lv_no_pprofil  TYPE T185, "   
lv_proj_imp  TYPE PROJ, "   
lv_prps_imp  TYPE PRPS, "   
lv_trtyp_imp  TYPE TC10-TRTYP, "   
lv_top_imp  TYPE SY-TABIX, "   1
lv_vsnmr_imp  TYPE RCWBT-VSNMR, "   
lv_rcnvs_imp  TYPE RCNVS, "   
lv_pspnr_imp  TYPE PRPS-PSPNR. "   

  CALL FUNCTION 'CJTR_CALL_FROM_EXTERN'  "
    EXPORTING
         APLID = lv_aplid
         FCODE_IMP = lv_fcode_imp
         PROJ_IMP = lv_proj_imp
         PRPS_IMP = lv_prps_imp
         TRTYP_IMP = lv_trtyp_imp
         TOP_IMP = lv_top_imp
         VSNMR_IMP = lv_vsnmr_imp
         RCNVS_IMP = lv_rcnvs_imp
         PSPNR_IMP = lv_pspnr_imp
    IMPORTING
         TRMACT = lv_trmact
         TOP_EXP = lv_top_exp
    TABLES
         CJDI_IMP = lt_cjdi_imp
    EXCEPTIONS
        NO_EXISTING_PSP = 1
        NO_PPROFIL = 2
. " CJTR_CALL_FROM_EXTERN




ABAP code using 7.40 inline data declarations to call FM CJTR_CALL_FROM_EXTERN

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 SELKZ FROM RCWBT INTO @DATA(ld_trmact).
 
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_top_exp).
 
"SELECT single FCODE FROM T185 INTO @DATA(ld_fcode_imp).
 
 
 
 
"SELECT single TRTYP FROM TC10 INTO @DATA(ld_trtyp_imp).
 
"SELECT single TABIX FROM SY INTO @DATA(ld_top_imp).
DATA(ld_top_imp) = 1.
 
"SELECT single VSNMR FROM RCWBT INTO @DATA(ld_vsnmr_imp).
 
 
"SELECT single PSPNR FROM PRPS INTO @DATA(ld_pspnr_imp).
 


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!