SAP Function Modules

CUCK_VERS_VIEW SAP Function module







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

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


Pattern for FM CUCK_VERS_VIEW - CUCK VERS VIEW





CALL FUNCTION 'CUCK_VERS_VIEW' "
  EXPORTING
    cuobj =                     " ibst-root
    xinput_instance =           " ibst-instance
    xinput_time =               " ibst-valfr
    sing_sel =                  " c
  IMPORTING
    error_db_inconsistency =    " c
    error_no_dataset_found =    " c
    warning_no_configuration =   " c
  TABLES
    x_output_tab =              "
    .  "  CUCK_VERS_VIEW

ABAP code example for Function Module CUCK_VERS_VIEW





The ABAP code below is a full code listing to execute function module CUCK_VERS_VIEW 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_error_db_inconsistency  TYPE C ,
ld_error_no_dataset_found  TYPE C ,
ld_warning_no_configuration  TYPE C ,
it_x_output_tab  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_x_output_tab  LIKE LINE OF it_x_output_tab .


SELECT single ROOT
FROM IBST
INTO @DATA(ld_cuobj).


SELECT single INSTANCE
FROM IBST
INTO @DATA(ld_xinput_instance).


SELECT single VALFR
FROM IBST
INTO @DATA(ld_xinput_time).

DATA(ld_sing_sel) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_output_tab to it_x_output_tab. . CALL FUNCTION 'CUCK_VERS_VIEW' EXPORTING cuobj = ld_cuobj xinput_instance = ld_xinput_instance xinput_time = ld_xinput_time sing_sel = ld_sing_sel IMPORTING error_db_inconsistency = ld_error_db_inconsistency error_no_dataset_found = ld_error_no_dataset_found warning_no_configuration = ld_warning_no_configuration TABLES x_output_tab = it_x_output_tab . " CUCK_VERS_VIEW
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_error_db_inconsistency  TYPE C ,
ld_cuobj  TYPE IBST-ROOT ,
it_x_output_tab  TYPE STANDARD TABLE OF STRING ,
wa_x_output_tab  LIKE LINE OF it_x_output_tab,
ld_error_no_dataset_found  TYPE C ,
ld_xinput_instance  TYPE IBST-INSTANCE ,
ld_warning_no_configuration  TYPE C ,
ld_xinput_time  TYPE IBST-VALFR ,
ld_sing_sel  TYPE C .


SELECT single ROOT
FROM IBST
INTO ld_cuobj.


"populate fields of struture and append to itab
append wa_x_output_tab to it_x_output_tab.

SELECT single INSTANCE
FROM IBST
INTO ld_xinput_instance.


SELECT single VALFR
FROM IBST
INTO ld_xinput_time.

ld_sing_sel = 'Check type of data required'.

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