SAP Function Modules

MSS_PARTITION_STORAGE_GET SAP Function module







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

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


Pattern for FM MSS_PARTITION_STORAGE_GET - MSS PARTITION STORAGE GET





CALL FUNCTION 'MSS_PARTITION_STORAGE_GET' "
  EXPORTING
    part_tabname =              " dd02l-tabname  Table Name
    source_hierarchy =          " storagesrc    Source hierarchy for storage structure
*   dbsys = SY-DBSYS            " sy-dbsys      R/3 System, Name of Central Database System
  IMPORTING
    part_colname =              " dd03l-fieldname
    left_right =                " msspartright
    value_type =                " msspartparatyp
    value_length =              " dd03l-leng
    value_decimals =            " dd03l-decimals
    part_type =                 " mssparttype
    keyflag =                   "
  TABLES
    part_values_out =           " msssysnametab
    filegroups_out =            " msssysnametab
    part_names_out =            " msssysnametab
*   storage_out =               " ddtextdata
  EXCEPTIONS
    WRONG_DATABASE_PLATFORM = 1  "
    WRONG_PARAMETER_INPUT = 2   "
    NO_STORAGE_PARAMETER_AVAILABLE = 3  "
    SCHEMA_NOT_FOUND = 4        "
    INVALID_INPUT = 5           "
    NO_DB_ACCESS = 6            "
    DB_NOT_FOUND = 7            "
    INTERNAL_ERROR = 8          "
    DB_ERROR = 9                "
    NOT_RUNNING_ON_MSSQL = 10   "
    .  "  MSS_PARTITION_STORAGE_GET

ABAP code example for Function Module MSS_PARTITION_STORAGE_GET





The ABAP code below is a full code listing to execute function module MSS_PARTITION_STORAGE_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:
ld_part_colname  TYPE DD03L-FIELDNAME ,
ld_left_right  TYPE MSSPARTRIGHT ,
ld_value_type  TYPE MSSPARTPARATYP ,
ld_value_length  TYPE DD03L-LENG ,
ld_value_decimals  TYPE DD03L-DECIMALS ,
ld_part_type  TYPE MSSPARTTYPE ,
ld_keyflag  TYPE STRING ,
it_part_values_out  TYPE STANDARD TABLE OF MSSSYSNAMETAB,"TABLES PARAM
wa_part_values_out  LIKE LINE OF it_part_values_out ,
it_filegroups_out  TYPE STANDARD TABLE OF MSSSYSNAMETAB,"TABLES PARAM
wa_filegroups_out  LIKE LINE OF it_filegroups_out ,
it_part_names_out  TYPE STANDARD TABLE OF MSSSYSNAMETAB,"TABLES PARAM
wa_part_names_out  LIKE LINE OF it_part_names_out ,
it_storage_out  TYPE STANDARD TABLE OF DDTEXTDATA,"TABLES PARAM
wa_storage_out  LIKE LINE OF it_storage_out .


SELECT single TABNAME
FROM DD02L
INTO @DATA(ld_part_tabname).

DATA(ld_source_hierarchy) = 'Check type of data required'.
DATA(ld_dbsys) = 'some text here'.

"populate fields of struture and append to itab
append wa_part_values_out to it_part_values_out.

"populate fields of struture and append to itab
append wa_filegroups_out to it_filegroups_out.

"populate fields of struture and append to itab
append wa_part_names_out to it_part_names_out.

"populate fields of struture and append to itab
append wa_storage_out to it_storage_out. . CALL FUNCTION 'MSS_PARTITION_STORAGE_GET' EXPORTING part_tabname = ld_part_tabname source_hierarchy = ld_source_hierarchy * dbsys = ld_dbsys IMPORTING part_colname = ld_part_colname left_right = ld_left_right value_type = ld_value_type value_length = ld_value_length value_decimals = ld_value_decimals part_type = ld_part_type keyflag = ld_keyflag TABLES part_values_out = it_part_values_out filegroups_out = it_filegroups_out part_names_out = it_part_names_out * storage_out = it_storage_out EXCEPTIONS WRONG_DATABASE_PLATFORM = 1 WRONG_PARAMETER_INPUT = 2 NO_STORAGE_PARAMETER_AVAILABLE = 3 SCHEMA_NOT_FOUND = 4 INVALID_INPUT = 5 NO_DB_ACCESS = 6 DB_NOT_FOUND = 7 INTERNAL_ERROR = 8 DB_ERROR = 9 NOT_RUNNING_ON_MSSQL = 10 . " MSS_PARTITION_STORAGE_GET
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 ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "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_part_colname  TYPE DD03L-FIELDNAME ,
it_part_values_out  TYPE STANDARD TABLE OF MSSSYSNAMETAB ,
wa_part_values_out  LIKE LINE OF it_part_values_out,
ld_part_tabname  TYPE DD02L-TABNAME ,
it_filegroups_out  TYPE STANDARD TABLE OF MSSSYSNAMETAB ,
wa_filegroups_out  LIKE LINE OF it_filegroups_out,
ld_source_hierarchy  TYPE STORAGESRC ,
ld_left_right  TYPE MSSPARTRIGHT ,
ld_dbsys  TYPE SY-DBSYS ,
it_part_names_out  TYPE STANDARD TABLE OF MSSSYSNAMETAB ,
wa_part_names_out  LIKE LINE OF it_part_names_out,
ld_value_type  TYPE MSSPARTPARATYP ,
ld_value_length  TYPE DD03L-LENG ,
it_storage_out  TYPE STANDARD TABLE OF DDTEXTDATA ,
wa_storage_out  LIKE LINE OF it_storage_out,
ld_value_decimals  TYPE DD03L-DECIMALS ,
ld_part_type  TYPE MSSPARTTYPE ,
ld_keyflag  TYPE STRING .


"populate fields of struture and append to itab
append wa_part_values_out to it_part_values_out.

SELECT single TABNAME
FROM DD02L
INTO ld_part_tabname.


"populate fields of struture and append to itab
append wa_filegroups_out to it_filegroups_out.
ld_source_hierarchy = 'some text here'.
ld_dbsys = 'some text here'.

"populate fields of struture and append to itab
append wa_part_names_out to it_part_names_out.

"populate fields of struture and append to itab
append wa_storage_out to it_storage_out.

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