SAP Function Modules

K_PLAN_DIMENSIONS_INFO_GET SAP Function module







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

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


Pattern for FM K_PLAN_DIMENSIONS_INFO_GET - K PLAN DIMENSIONS INFO GET





CALL FUNCTION 'K_PLAN_DIMENSIONS_INFO_GET' "
  EXPORTING
    i_tabname =                 " tkes1-tabname
    i_subclass =                " tkes1-subclass
  TABLES
*   special_fields =            " rwif_specf
*   special_values =            " kpp0a
    dimensions =                " kpp0d
*   dictionary_infos =          " kpp0dd
*   dependencies =              " kpp0da
*   set_infos =                 " kpp0ds
  EXCEPTIONS
    SUBCLASS_INVALID = 1        "
    .  "  K_PLAN_DIMENSIONS_INFO_GET

ABAP code example for Function Module K_PLAN_DIMENSIONS_INFO_GET





The ABAP code below is a full code listing to execute function module K_PLAN_DIMENSIONS_INFO_GET 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_special_fields  TYPE STANDARD TABLE OF RWIF_SPECF,"TABLES PARAM
wa_special_fields  LIKE LINE OF it_special_fields ,
it_special_values  TYPE STANDARD TABLE OF KPP0A,"TABLES PARAM
wa_special_values  LIKE LINE OF it_special_values ,
it_dimensions  TYPE STANDARD TABLE OF KPP0D,"TABLES PARAM
wa_dimensions  LIKE LINE OF it_dimensions ,
it_dictionary_infos  TYPE STANDARD TABLE OF KPP0DD,"TABLES PARAM
wa_dictionary_infos  LIKE LINE OF it_dictionary_infos ,
it_dependencies  TYPE STANDARD TABLE OF KPP0DA,"TABLES PARAM
wa_dependencies  LIKE LINE OF it_dependencies ,
it_set_infos  TYPE STANDARD TABLE OF KPP0DS,"TABLES PARAM
wa_set_infos  LIKE LINE OF it_set_infos .


SELECT single TABNAME
FROM TKES1
INTO @DATA(ld_i_tabname).


SELECT single SUBCLASS
FROM TKES1
INTO @DATA(ld_i_subclass).


"populate fields of struture and append to itab
append wa_special_fields to it_special_fields.

"populate fields of struture and append to itab
append wa_special_values to it_special_values.

"populate fields of struture and append to itab
append wa_dimensions to it_dimensions.

"populate fields of struture and append to itab
append wa_dictionary_infos to it_dictionary_infos.

"populate fields of struture and append to itab
append wa_dependencies to it_dependencies.

"populate fields of struture and append to itab
append wa_set_infos to it_set_infos. . CALL FUNCTION 'K_PLAN_DIMENSIONS_INFO_GET' EXPORTING i_tabname = ld_i_tabname i_subclass = ld_i_subclass TABLES * special_fields = it_special_fields * special_values = it_special_values dimensions = it_dimensions * dictionary_infos = it_dictionary_infos * dependencies = it_dependencies * set_infos = it_set_infos EXCEPTIONS SUBCLASS_INVALID = 1 . " K_PLAN_DIMENSIONS_INFO_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_i_tabname  TYPE TKES1-TABNAME ,
it_special_fields  TYPE STANDARD TABLE OF RWIF_SPECF ,
wa_special_fields  LIKE LINE OF it_special_fields,
ld_i_subclass  TYPE TKES1-SUBCLASS ,
it_special_values  TYPE STANDARD TABLE OF KPP0A ,
wa_special_values  LIKE LINE OF it_special_values,
it_dimensions  TYPE STANDARD TABLE OF KPP0D ,
wa_dimensions  LIKE LINE OF it_dimensions,
it_dictionary_infos  TYPE STANDARD TABLE OF KPP0DD ,
wa_dictionary_infos  LIKE LINE OF it_dictionary_infos,
it_dependencies  TYPE STANDARD TABLE OF KPP0DA ,
wa_dependencies  LIKE LINE OF it_dependencies,
it_set_infos  TYPE STANDARD TABLE OF KPP0DS ,
wa_set_infos  LIKE LINE OF it_set_infos.


SELECT single TABNAME
FROM TKES1
INTO ld_i_tabname.


"populate fields of struture and append to itab
append wa_special_fields to it_special_fields.

SELECT single SUBCLASS
FROM TKES1
INTO ld_i_subclass.


"populate fields of struture and append to itab
append wa_special_values to it_special_values.

"populate fields of struture and append to itab
append wa_dimensions to it_dimensions.

"populate fields of struture and append to itab
append wa_dictionary_infos to it_dictionary_infos.

"populate fields of struture and append to itab
append wa_dependencies to it_dependencies.

"populate fields of struture and append to itab
append wa_set_infos to it_set_infos.

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