SAP Function Modules

CNIF_PROJECT_VERSION_TRANSFER SAP Function module







CNIF_PROJECT_VERSION_TRANSFER 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 CNIF_PROJECT_VERSION_TRANSFER into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CNIF_PROJECT_VERSION_TRANSFER - CNIF PROJECT VERSION TRANSFER





CALL FUNCTION 'CNIF_PROJECT_VERSION_TRANSFER' "
* EXPORTING
*   imp_version_destination =   "
*   imp_doc_maintain = 'X'      " rc27x-flg_sel
*   imp_text_maintain = 'X'     " rc27x-flg_sel
*   imp_flg_testmode =          " c
*   imp_version_source =        " vskopf-vsnmr
*   imp_posid =                 " prps-posid
  TABLES
    imp_methods =               " ifobjmethd
*   imp_vskopfd =               " vskopfd
*   imp_proj =                  " vsproj_cn
*   imp_prps =                  " vsprps_cn
*   imp_hierarchy =             " ifhierim
*   imp_prtee =                 " prtee
*   imp_caufvd =                " caufvd
*   imp_afvgd =                 " afvgd
*   imp_affld =                 " affld
*   imp_afpod =                 " afpod
*   imp_afabd =                 " afabd
*   imp_mlstd =                 " mlstd
*   imp_resbd =                 " resbd
*   imp_kbedd =                 " kbedd
*   imp_kbko =                  " kbko
*   imp_pstx =                  " pstx
*   imp_prtx =                  " prtxd
*   imp_nptx =                  " nptxd
*   imp_aufk_ref =              " aufk_ref
*   imp_act01_ref =             " act01_ref
*   imp_prps_ref =              " prps_ref
*   imp_proj_ref =              " proj_ref
*   imp_mlst_ref =              " mlst_ref
*   imp_resb_ref =              " resb_ref
*   exp_msg_text =              " msg_text
*   exp_obj_reference =         " ifobj_reference
*   exp_method_log =            " method_log
*   exp_msg_log =               " msg_log
    .  "  CNIF_PROJECT_VERSION_TRANSFER

ABAP code example for Function Module CNIF_PROJECT_VERSION_TRANSFER





The ABAP code below is a full code listing to execute function module CNIF_PROJECT_VERSION_TRANSFER 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:
it_imp_methods  TYPE STANDARD TABLE OF IFOBJMETHD,"TABLES PARAM
wa_imp_methods  LIKE LINE OF it_imp_methods ,
it_imp_vskopfd  TYPE STANDARD TABLE OF VSKOPFD,"TABLES PARAM
wa_imp_vskopfd  LIKE LINE OF it_imp_vskopfd ,
it_imp_proj  TYPE STANDARD TABLE OF VSPROJ_CN,"TABLES PARAM
wa_imp_proj  LIKE LINE OF it_imp_proj ,
it_imp_prps  TYPE STANDARD TABLE OF VSPRPS_CN,"TABLES PARAM
wa_imp_prps  LIKE LINE OF it_imp_prps ,
it_imp_hierarchy  TYPE STANDARD TABLE OF IFHIERIM,"TABLES PARAM
wa_imp_hierarchy  LIKE LINE OF it_imp_hierarchy ,
it_imp_prtee  TYPE STANDARD TABLE OF PRTEE,"TABLES PARAM
wa_imp_prtee  LIKE LINE OF it_imp_prtee ,
it_imp_caufvd  TYPE STANDARD TABLE OF CAUFVD,"TABLES PARAM
wa_imp_caufvd  LIKE LINE OF it_imp_caufvd ,
it_imp_afvgd  TYPE STANDARD TABLE OF AFVGD,"TABLES PARAM
wa_imp_afvgd  LIKE LINE OF it_imp_afvgd ,
it_imp_affld  TYPE STANDARD TABLE OF AFFLD,"TABLES PARAM
wa_imp_affld  LIKE LINE OF it_imp_affld ,
it_imp_afpod  TYPE STANDARD TABLE OF AFPOD,"TABLES PARAM
wa_imp_afpod  LIKE LINE OF it_imp_afpod ,
it_imp_afabd  TYPE STANDARD TABLE OF AFABD,"TABLES PARAM
wa_imp_afabd  LIKE LINE OF it_imp_afabd ,
it_imp_mlstd  TYPE STANDARD TABLE OF MLSTD,"TABLES PARAM
wa_imp_mlstd  LIKE LINE OF it_imp_mlstd ,
it_imp_resbd  TYPE STANDARD TABLE OF RESBD,"TABLES PARAM
wa_imp_resbd  LIKE LINE OF it_imp_resbd ,
it_imp_kbedd  TYPE STANDARD TABLE OF KBEDD,"TABLES PARAM
wa_imp_kbedd  LIKE LINE OF it_imp_kbedd ,
it_imp_kbko  TYPE STANDARD TABLE OF KBKO,"TABLES PARAM
wa_imp_kbko  LIKE LINE OF it_imp_kbko ,
it_imp_pstx  TYPE STANDARD TABLE OF PSTX,"TABLES PARAM
wa_imp_pstx  LIKE LINE OF it_imp_pstx ,
it_imp_prtx  TYPE STANDARD TABLE OF PRTXD,"TABLES PARAM
wa_imp_prtx  LIKE LINE OF it_imp_prtx ,
it_imp_nptx  TYPE STANDARD TABLE OF NPTXD,"TABLES PARAM
wa_imp_nptx  LIKE LINE OF it_imp_nptx ,
it_imp_aufk_ref  TYPE STANDARD TABLE OF AUFK_REF,"TABLES PARAM
wa_imp_aufk_ref  LIKE LINE OF it_imp_aufk_ref ,
it_imp_act01_ref  TYPE STANDARD TABLE OF ACT01_REF,"TABLES PARAM
wa_imp_act01_ref  LIKE LINE OF it_imp_act01_ref ,
it_imp_prps_ref  TYPE STANDARD TABLE OF PRPS_REF,"TABLES PARAM
wa_imp_prps_ref  LIKE LINE OF it_imp_prps_ref ,
it_imp_proj_ref  TYPE STANDARD TABLE OF PROJ_REF,"TABLES PARAM
wa_imp_proj_ref  LIKE LINE OF it_imp_proj_ref ,
it_imp_mlst_ref  TYPE STANDARD TABLE OF MLST_REF,"TABLES PARAM
wa_imp_mlst_ref  LIKE LINE OF it_imp_mlst_ref ,
it_imp_resb_ref  TYPE STANDARD TABLE OF RESB_REF,"TABLES PARAM
wa_imp_resb_ref  LIKE LINE OF it_imp_resb_ref ,
it_exp_msg_text  TYPE STANDARD TABLE OF MSG_TEXT,"TABLES PARAM
wa_exp_msg_text  LIKE LINE OF it_exp_msg_text ,
it_exp_obj_reference  TYPE STANDARD TABLE OF IFOBJ_REFERENCE,"TABLES PARAM
wa_exp_obj_reference  LIKE LINE OF it_exp_obj_reference ,
it_exp_method_log  TYPE STANDARD TABLE OF METHOD_LOG,"TABLES PARAM
wa_exp_method_log  LIKE LINE OF it_exp_method_log ,
it_exp_msg_log  TYPE STANDARD TABLE OF MSG_LOG,"TABLES PARAM
wa_exp_msg_log  LIKE LINE OF it_exp_msg_log .

DATA(ld_imp_version_destination) = 'some text here'.

DATA(ld_imp_doc_maintain) = some text here

DATA(ld_imp_text_maintain) = some text here
DATA(ld_imp_flg_testmode) = 'Check type of data required'.

SELECT single VSNMR
FROM VSKOPF
INTO @DATA(ld_imp_version_source).


SELECT single POSID
FROM PRPS
INTO @DATA(ld_imp_posid).


"populate fields of struture and append to itab
append wa_imp_methods to it_imp_methods.

"populate fields of struture and append to itab
append wa_imp_vskopfd to it_imp_vskopfd.

"populate fields of struture and append to itab
append wa_imp_proj to it_imp_proj.

"populate fields of struture and append to itab
append wa_imp_prps to it_imp_prps.

"populate fields of struture and append to itab
append wa_imp_hierarchy to it_imp_hierarchy.

"populate fields of struture and append to itab
append wa_imp_prtee to it_imp_prtee.

"populate fields of struture and append to itab
append wa_imp_caufvd to it_imp_caufvd.

"populate fields of struture and append to itab
append wa_imp_afvgd to it_imp_afvgd.

"populate fields of struture and append to itab
append wa_imp_affld to it_imp_affld.

"populate fields of struture and append to itab
append wa_imp_afpod to it_imp_afpod.

"populate fields of struture and append to itab
append wa_imp_afabd to it_imp_afabd.

"populate fields of struture and append to itab
append wa_imp_mlstd to it_imp_mlstd.

"populate fields of struture and append to itab
append wa_imp_resbd to it_imp_resbd.

"populate fields of struture and append to itab
append wa_imp_kbedd to it_imp_kbedd.

"populate fields of struture and append to itab
append wa_imp_kbko to it_imp_kbko.

"populate fields of struture and append to itab
append wa_imp_pstx to it_imp_pstx.

"populate fields of struture and append to itab
append wa_imp_prtx to it_imp_prtx.

"populate fields of struture and append to itab
append wa_imp_nptx to it_imp_nptx.

"populate fields of struture and append to itab
append wa_imp_aufk_ref to it_imp_aufk_ref.

"populate fields of struture and append to itab
append wa_imp_act01_ref to it_imp_act01_ref.

"populate fields of struture and append to itab
append wa_imp_prps_ref to it_imp_prps_ref.

"populate fields of struture and append to itab
append wa_imp_proj_ref to it_imp_proj_ref.

"populate fields of struture and append to itab
append wa_imp_mlst_ref to it_imp_mlst_ref.

"populate fields of struture and append to itab
append wa_imp_resb_ref to it_imp_resb_ref.

"populate fields of struture and append to itab
append wa_exp_msg_text to it_exp_msg_text.

"populate fields of struture and append to itab
append wa_exp_obj_reference to it_exp_obj_reference.

"populate fields of struture and append to itab
append wa_exp_method_log to it_exp_method_log.

"populate fields of struture and append to itab
append wa_exp_msg_log to it_exp_msg_log. . CALL FUNCTION 'CNIF_PROJECT_VERSION_TRANSFER' * EXPORTING * imp_version_destination = ld_imp_version_destination * imp_doc_maintain = ld_imp_doc_maintain * imp_text_maintain = ld_imp_text_maintain * imp_flg_testmode = ld_imp_flg_testmode * imp_version_source = ld_imp_version_source * imp_posid = ld_imp_posid TABLES imp_methods = it_imp_methods * imp_vskopfd = it_imp_vskopfd * imp_proj = it_imp_proj * imp_prps = it_imp_prps * imp_hierarchy = it_imp_hierarchy * imp_prtee = it_imp_prtee * imp_caufvd = it_imp_caufvd * imp_afvgd = it_imp_afvgd * imp_affld = it_imp_affld * imp_afpod = it_imp_afpod * imp_afabd = it_imp_afabd * imp_mlstd = it_imp_mlstd * imp_resbd = it_imp_resbd * imp_kbedd = it_imp_kbedd * imp_kbko = it_imp_kbko * imp_pstx = it_imp_pstx * imp_prtx = it_imp_prtx * imp_nptx = it_imp_nptx * imp_aufk_ref = it_imp_aufk_ref * imp_act01_ref = it_imp_act01_ref * imp_prps_ref = it_imp_prps_ref * imp_proj_ref = it_imp_proj_ref * imp_mlst_ref = it_imp_mlst_ref * imp_resb_ref = it_imp_resb_ref * exp_msg_text = it_exp_msg_text * exp_obj_reference = it_exp_obj_reference * exp_method_log = it_exp_method_log * exp_msg_log = it_exp_msg_log . " CNIF_PROJECT_VERSION_TRANSFER
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_imp_version_destination  TYPE STRING ,
it_imp_methods  TYPE STANDARD TABLE OF IFOBJMETHD ,
wa_imp_methods  LIKE LINE OF it_imp_methods,
ld_imp_doc_maintain  TYPE RC27X-FLG_SEL ,
it_imp_vskopfd  TYPE STANDARD TABLE OF VSKOPFD ,
wa_imp_vskopfd  LIKE LINE OF it_imp_vskopfd,
ld_imp_text_maintain  TYPE RC27X-FLG_SEL ,
it_imp_proj  TYPE STANDARD TABLE OF VSPROJ_CN ,
wa_imp_proj  LIKE LINE OF it_imp_proj,
ld_imp_flg_testmode  TYPE C ,
it_imp_prps  TYPE STANDARD TABLE OF VSPRPS_CN ,
wa_imp_prps  LIKE LINE OF it_imp_prps,
ld_imp_version_source  TYPE VSKOPF-VSNMR ,
it_imp_hierarchy  TYPE STANDARD TABLE OF IFHIERIM ,
wa_imp_hierarchy  LIKE LINE OF it_imp_hierarchy,
ld_imp_posid  TYPE PRPS-POSID ,
it_imp_prtee  TYPE STANDARD TABLE OF PRTEE ,
wa_imp_prtee  LIKE LINE OF it_imp_prtee,
it_imp_caufvd  TYPE STANDARD TABLE OF CAUFVD ,
wa_imp_caufvd  LIKE LINE OF it_imp_caufvd,
it_imp_afvgd  TYPE STANDARD TABLE OF AFVGD ,
wa_imp_afvgd  LIKE LINE OF it_imp_afvgd,
it_imp_affld  TYPE STANDARD TABLE OF AFFLD ,
wa_imp_affld  LIKE LINE OF it_imp_affld,
it_imp_afpod  TYPE STANDARD TABLE OF AFPOD ,
wa_imp_afpod  LIKE LINE OF it_imp_afpod,
it_imp_afabd  TYPE STANDARD TABLE OF AFABD ,
wa_imp_afabd  LIKE LINE OF it_imp_afabd,
it_imp_mlstd  TYPE STANDARD TABLE OF MLSTD ,
wa_imp_mlstd  LIKE LINE OF it_imp_mlstd,
it_imp_resbd  TYPE STANDARD TABLE OF RESBD ,
wa_imp_resbd  LIKE LINE OF it_imp_resbd,
it_imp_kbedd  TYPE STANDARD TABLE OF KBEDD ,
wa_imp_kbedd  LIKE LINE OF it_imp_kbedd,
it_imp_kbko  TYPE STANDARD TABLE OF KBKO ,
wa_imp_kbko  LIKE LINE OF it_imp_kbko,
it_imp_pstx  TYPE STANDARD TABLE OF PSTX ,
wa_imp_pstx  LIKE LINE OF it_imp_pstx,
it_imp_prtx  TYPE STANDARD TABLE OF PRTXD ,
wa_imp_prtx  LIKE LINE OF it_imp_prtx,
it_imp_nptx  TYPE STANDARD TABLE OF NPTXD ,
wa_imp_nptx  LIKE LINE OF it_imp_nptx,
it_imp_aufk_ref  TYPE STANDARD TABLE OF AUFK_REF ,
wa_imp_aufk_ref  LIKE LINE OF it_imp_aufk_ref,
it_imp_act01_ref  TYPE STANDARD TABLE OF ACT01_REF ,
wa_imp_act01_ref  LIKE LINE OF it_imp_act01_ref,
it_imp_prps_ref  TYPE STANDARD TABLE OF PRPS_REF ,
wa_imp_prps_ref  LIKE LINE OF it_imp_prps_ref,
it_imp_proj_ref  TYPE STANDARD TABLE OF PROJ_REF ,
wa_imp_proj_ref  LIKE LINE OF it_imp_proj_ref,
it_imp_mlst_ref  TYPE STANDARD TABLE OF MLST_REF ,
wa_imp_mlst_ref  LIKE LINE OF it_imp_mlst_ref,
it_imp_resb_ref  TYPE STANDARD TABLE OF RESB_REF ,
wa_imp_resb_ref  LIKE LINE OF it_imp_resb_ref,
it_exp_msg_text  TYPE STANDARD TABLE OF MSG_TEXT ,
wa_exp_msg_text  LIKE LINE OF it_exp_msg_text,
it_exp_obj_reference  TYPE STANDARD TABLE OF IFOBJ_REFERENCE ,
wa_exp_obj_reference  LIKE LINE OF it_exp_obj_reference,
it_exp_method_log  TYPE STANDARD TABLE OF METHOD_LOG ,
wa_exp_method_log  LIKE LINE OF it_exp_method_log,
it_exp_msg_log  TYPE STANDARD TABLE OF MSG_LOG ,
wa_exp_msg_log  LIKE LINE OF it_exp_msg_log.

ld_imp_version_destination = 'some text here'.

"populate fields of struture and append to itab
append wa_imp_methods to it_imp_methods.

ld_imp_doc_maintain = some text here

"populate fields of struture and append to itab
append wa_imp_vskopfd to it_imp_vskopfd.

ld_imp_text_maintain = some text here

"populate fields of struture and append to itab
append wa_imp_proj to it_imp_proj.
ld_imp_flg_testmode = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_imp_prps to it_imp_prps.

SELECT single VSNMR
FROM VSKOPF
INTO ld_imp_version_source.


"populate fields of struture and append to itab
append wa_imp_hierarchy to it_imp_hierarchy.

SELECT single POSID
FROM PRPS
INTO ld_imp_posid.


"populate fields of struture and append to itab
append wa_imp_prtee to it_imp_prtee.

"populate fields of struture and append to itab
append wa_imp_caufvd to it_imp_caufvd.

"populate fields of struture and append to itab
append wa_imp_afvgd to it_imp_afvgd.

"populate fields of struture and append to itab
append wa_imp_affld to it_imp_affld.

"populate fields of struture and append to itab
append wa_imp_afpod to it_imp_afpod.

"populate fields of struture and append to itab
append wa_imp_afabd to it_imp_afabd.

"populate fields of struture and append to itab
append wa_imp_mlstd to it_imp_mlstd.

"populate fields of struture and append to itab
append wa_imp_resbd to it_imp_resbd.

"populate fields of struture and append to itab
append wa_imp_kbedd to it_imp_kbedd.

"populate fields of struture and append to itab
append wa_imp_kbko to it_imp_kbko.

"populate fields of struture and append to itab
append wa_imp_pstx to it_imp_pstx.

"populate fields of struture and append to itab
append wa_imp_prtx to it_imp_prtx.

"populate fields of struture and append to itab
append wa_imp_nptx to it_imp_nptx.

"populate fields of struture and append to itab
append wa_imp_aufk_ref to it_imp_aufk_ref.

"populate fields of struture and append to itab
append wa_imp_act01_ref to it_imp_act01_ref.

"populate fields of struture and append to itab
append wa_imp_prps_ref to it_imp_prps_ref.

"populate fields of struture and append to itab
append wa_imp_proj_ref to it_imp_proj_ref.

"populate fields of struture and append to itab
append wa_imp_mlst_ref to it_imp_mlst_ref.

"populate fields of struture and append to itab
append wa_imp_resb_ref to it_imp_resb_ref.

"populate fields of struture and append to itab
append wa_exp_msg_text to it_exp_msg_text.

"populate fields of struture and append to itab
append wa_exp_obj_reference to it_exp_obj_reference.

"populate fields of struture and append to itab
append wa_exp_method_log to it_exp_method_log.

"populate fields of struture and append to itab
append wa_exp_msg_log to it_exp_msg_log.

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 CNIF_PROJECT_VERSION_TRANSFER or its description.