SAP Function Modules

CNV_CDMC_CC_REPOSITORY_INFOF4 SAP Function module - F4 for Repository Objects







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

Associated Function Group: CNV_CDMC_CC_FUNCTIONS
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM CNV_CDMC_CC_REPOSITORY_INFOF4 - CNV CDMC CC REPOSITORY INFOF4





CALL FUNCTION 'CNV_CDMC_CC_REPOSITORY_INFOF4' "F4 for Repository Objects
  EXPORTING
    iv_object_type =            " euobj-id      Object type
*   iv_object_name =            " rseuap-obj_name  ABAP/4 Development Workbench: LIMU name
*   iv_enclosing_object =       " rseuap-encl_obj  ABAP program, current main program
*   iv_suppress_selection = 'X'  " sy-input     Internal
*   iv_variant = ' '            " rsvar-variant  Variant name
*   iv_list_variant = ' '       " rsvar-variant  Variant name
*   iv_display_field =          " sy-input      Internal
*   iv_multiple_selection =     " sy-input      Internal
*   iv_select_all_fields = ' '  " sy-input      Internal
*   iv_without_personal_list = ' '  " sy-input  Internal
  IMPORTING
    ev_object_name_selected =   " rseuap-obj_name  ABAP/4 Development Workbench: LIMU name
    ev_enclosing_object_selected =   " rseuap-encl_obj  ABAP program, current main program
    ev_strucinf =               " dd02l-tabname  Table name
* TABLES
*   it_objects_selected =       " rseui_f4      Structure for copying sets in F4 help
*   it_record_tab =             " seahlpres     Search help result structure
  EXCEPTIONS
    CANCEL = 1                  "               F12 executed
    WRONG_TYPE = 2              "               Type for INFO_OBJECT not implemented
    INVALID_USER_TYPE = 3       "               Not a Dialog user
    .  "  CNV_CDMC_CC_REPOSITORY_INFOF4

ABAP code example for Function Module CNV_CDMC_CC_REPOSITORY_INFOF4





The ABAP code below is a full code listing to execute function module CNV_CDMC_CC_REPOSITORY_INFOF4 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_ev_object_name_selected  TYPE RSEUAP-OBJ_NAME ,
ld_ev_enclosing_object_selected  TYPE RSEUAP-ENCL_OBJ ,
ld_ev_strucinf  TYPE DD02L-TABNAME ,
it_it_objects_selected  TYPE STANDARD TABLE OF RSEUI_F4,"TABLES PARAM
wa_it_objects_selected  LIKE LINE OF it_it_objects_selected ,
it_it_record_tab  TYPE STANDARD TABLE OF SEAHLPRES,"TABLES PARAM
wa_it_record_tab  LIKE LINE OF it_it_record_tab .


SELECT single ID
FROM EUOBJ
INTO @DATA(ld_iv_object_type).


DATA(ld_iv_object_name) = some text here

DATA(ld_iv_enclosing_object) = some text here
DATA(ld_iv_suppress_selection) = 'some text here'.

DATA(ld_iv_variant) = some text here

DATA(ld_iv_list_variant) = some text here
DATA(ld_iv_display_field) = 'some text here'.
DATA(ld_iv_multiple_selection) = 'some text here'.
DATA(ld_iv_select_all_fields) = 'some text here'.
DATA(ld_iv_without_personal_list) = 'some text here'.

"populate fields of struture and append to itab
append wa_it_objects_selected to it_it_objects_selected.

"populate fields of struture and append to itab
append wa_it_record_tab to it_it_record_tab. . CALL FUNCTION 'CNV_CDMC_CC_REPOSITORY_INFOF4' EXPORTING iv_object_type = ld_iv_object_type * iv_object_name = ld_iv_object_name * iv_enclosing_object = ld_iv_enclosing_object * iv_suppress_selection = ld_iv_suppress_selection * iv_variant = ld_iv_variant * iv_list_variant = ld_iv_list_variant * iv_display_field = ld_iv_display_field * iv_multiple_selection = ld_iv_multiple_selection * iv_select_all_fields = ld_iv_select_all_fields * iv_without_personal_list = ld_iv_without_personal_list IMPORTING ev_object_name_selected = ld_ev_object_name_selected ev_enclosing_object_selected = ld_ev_enclosing_object_selected ev_strucinf = ld_ev_strucinf * TABLES * it_objects_selected = it_it_objects_selected * it_record_tab = it_it_record_tab EXCEPTIONS CANCEL = 1 WRONG_TYPE = 2 INVALID_USER_TYPE = 3 . " CNV_CDMC_CC_REPOSITORY_INFOF4
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_ev_object_name_selected  TYPE RSEUAP-OBJ_NAME ,
ld_iv_object_type  TYPE EUOBJ-ID ,
it_it_objects_selected  TYPE STANDARD TABLE OF RSEUI_F4 ,
wa_it_objects_selected  LIKE LINE OF it_it_objects_selected,
ld_ev_enclosing_object_selected  TYPE RSEUAP-ENCL_OBJ ,
ld_iv_object_name  TYPE RSEUAP-OBJ_NAME ,
it_it_record_tab  TYPE STANDARD TABLE OF SEAHLPRES ,
wa_it_record_tab  LIKE LINE OF it_it_record_tab,
ld_ev_strucinf  TYPE DD02L-TABNAME ,
ld_iv_enclosing_object  TYPE RSEUAP-ENCL_OBJ ,
ld_iv_suppress_selection  TYPE SY-INPUT ,
ld_iv_variant  TYPE RSVAR-VARIANT ,
ld_iv_list_variant  TYPE RSVAR-VARIANT ,
ld_iv_display_field  TYPE SY-INPUT ,
ld_iv_multiple_selection  TYPE SY-INPUT ,
ld_iv_select_all_fields  TYPE SY-INPUT ,
ld_iv_without_personal_list  TYPE SY-INPUT .


SELECT single ID
FROM EUOBJ
INTO ld_iv_object_type.


"populate fields of struture and append to itab
append wa_it_objects_selected to it_it_objects_selected.

ld_iv_object_name = some text here

"populate fields of struture and append to itab
append wa_it_record_tab to it_it_record_tab.

ld_iv_enclosing_object = some text here
ld_iv_suppress_selection = 'some text here'.

ld_iv_variant = some text here

ld_iv_list_variant = some text here
ld_iv_display_field = 'some text here'.
ld_iv_multiple_selection = 'some text here'.
ld_iv_select_all_fields = 'some text here'.
ld_iv_without_personal_list = 'some text here'.

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