SAP Function Modules

CJGR_CHG_PROT_COLLECT SAP Function module







CJGR_CHG_PROT_COLLECT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CJGR_CHG_PROT_COLLECT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CJGR
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CJGR_CHG_PROT_COLLECT - CJGR CHG PROT COLLECT





CALL FUNCTION 'CJGR_CHG_PROT_COLLECT' "
  EXPORTING
*   afvgd_imp =                 " afvgd
*   mlstd_imp =                 " mlstb
*   prps_imp =                  " prps_balk
*   prte_imp =                  " prteb
*   afabd_imp =                 " afabb
    object_imp =                "
    vbkz_imp =                  "
*   proj_imp =                  " proj
*   index_imp =                 " sy-tabix
*   hier_imp =                  " rcwbt-selkz
*   caufvd_imp =                " caufvd
*   rc27i_tmp =                 " rc27i
*   resbd_imp =                 " resbd
*   kbed_imp =                  " kbed
*   afvgd_old =                 " afvgd
*   proj_old =                  " proj
*   prps_old =                  " prps
*   prte_old =                  " prteb
*   mlstd_old =                 " mlstb
*   kbed_old =                  " kbed
*   resbd_old =                 " resbd
*   stat_imp =                  " rcwbt-selkz
*   nptxb_imp =                 " nptxb
*   prtxd_imp =                 " prtxd
*   aktyp_imp =                 " aktyp
    .  "  CJGR_CHG_PROT_COLLECT

ABAP code example for Function Module CJGR_CHG_PROT_COLLECT





The ABAP code below is a full code listing to execute function module CJGR_CHG_PROT_COLLECT including all data declarations. The code uses 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 original method of declaring data variables up front. 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).


DATA(ld_afvgd_imp) = 'Check type of data required'.
DATA(ld_mlstd_imp) = 'Check type of data required'.
DATA(ld_prps_imp) = 'Check type of data required'.
DATA(ld_prte_imp) = 'Check type of data required'.
DATA(ld_afabd_imp) = 'Check type of data required'.
DATA(ld_object_imp) = 'some text here'.
DATA(ld_vbkz_imp) = 'some text here'.
DATA(ld_proj_imp) = 'Check type of data required'.
DATA(ld_index_imp) = '123 '.

DATA(ld_hier_imp) = some text here
DATA(ld_caufvd_imp) = '123 '.
DATA(ld_rc27i_tmp) = '123 '.
DATA(ld_resbd_imp) = '123 '.
DATA(ld_kbed_imp) = '123 '.
DATA(ld_afvgd_old) = '123 '.
DATA(ld_proj_old) = '123 '.
DATA(ld_prps_old) = '123 '.
DATA(ld_prte_old) = '123 '.
DATA(ld_mlstd_old) = '123 '.
DATA(ld_kbed_old) = '123 '.
DATA(ld_resbd_old) = '123 '.

DATA(ld_stat_imp) = some text here
DATA(ld_nptxb_imp) = '123 '.
DATA(ld_prtxd_imp) = '123 '.
DATA(ld_aktyp_imp) = '123 '. . CALL FUNCTION 'CJGR_CHG_PROT_COLLECT' EXPORTING * afvgd_imp = ld_afvgd_imp * mlstd_imp = ld_mlstd_imp * prps_imp = ld_prps_imp * prte_imp = ld_prte_imp * afabd_imp = ld_afabd_imp object_imp = ld_object_imp vbkz_imp = ld_vbkz_imp * proj_imp = ld_proj_imp * index_imp = ld_index_imp * hier_imp = ld_hier_imp * caufvd_imp = ld_caufvd_imp * rc27i_tmp = ld_rc27i_tmp * resbd_imp = ld_resbd_imp * kbed_imp = ld_kbed_imp * afvgd_old = ld_afvgd_old * proj_old = ld_proj_old * prps_old = ld_prps_old * prte_old = ld_prte_old * mlstd_old = ld_mlstd_old * kbed_old = ld_kbed_old * resbd_old = ld_resbd_old * stat_imp = ld_stat_imp * nptxb_imp = ld_nptxb_imp * prtxd_imp = ld_prtxd_imp * aktyp_imp = ld_aktyp_imp . " CJGR_CHG_PROT_COLLECT
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_afvgd_imp  TYPE AFVGD ,
ld_mlstd_imp  TYPE MLSTB ,
ld_prps_imp  TYPE PRPS_BALK ,
ld_prte_imp  TYPE PRTEB ,
ld_afabd_imp  TYPE AFABB ,
ld_object_imp  TYPE STRING ,
ld_vbkz_imp  TYPE STRING ,
ld_proj_imp  TYPE PROJ ,
ld_index_imp  TYPE SY-TABIX ,
ld_hier_imp  TYPE RCWBT-SELKZ ,
ld_caufvd_imp  TYPE CAUFVD ,
ld_rc27i_tmp  TYPE RC27I ,
ld_resbd_imp  TYPE RESBD ,
ld_kbed_imp  TYPE KBED ,
ld_afvgd_old  TYPE AFVGD ,
ld_proj_old  TYPE PROJ ,
ld_prps_old  TYPE PRPS ,
ld_prte_old  TYPE PRTEB ,
ld_mlstd_old  TYPE MLSTB ,
ld_kbed_old  TYPE KBED ,
ld_resbd_old  TYPE RESBD ,
ld_stat_imp  TYPE RCWBT-SELKZ ,
ld_nptxb_imp  TYPE NPTXB ,
ld_prtxd_imp  TYPE PRTXD ,
ld_aktyp_imp  TYPE AKTYP .

ld_afvgd_imp = '123 '.
ld_mlstd_imp = '123 '.
ld_prps_imp = '123 '.
ld_prte_imp = '123 '.
ld_afabd_imp = '123 '.
ld_object_imp = 'some text here'.
ld_vbkz_imp = 'some text here'.
ld_proj_imp = '123 '.
ld_index_imp = '123 '.

ld_hier_imp = some text here
ld_caufvd_imp = '123 '.
ld_rc27i_tmp = '123 '.
ld_resbd_imp = '123 '.
ld_kbed_imp = '123 '.
ld_afvgd_old = '123 '.
ld_proj_old = '123 '.
ld_prps_old = '123 '.
ld_prte_old = '123 '.
ld_mlstd_old = '123 '.
ld_kbed_old = '123 '.
ld_resbd_old = '123 '.

ld_stat_imp = some text here
ld_nptxb_imp = '123 '.
ld_prtxd_imp = '123 '.
ld_aktyp_imp = '123 '.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CJGR_CHG_PROT_COLLECT or its description.