SAP Function Modules

GET_OBJECT_LIST SAP Function module







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

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


Pattern for FM GET_OBJECT_LIST - GET OBJECT LIST





CALL FUNCTION 'GET_OBJECT_LIST' "
* EXPORTING
*   author =                    " vrsd-author
*   author =                    " vrsd-author   Author of the object
*   datum = 19930231            " vrsd-datum
*   datum = 19930231            " vrsd-datum    Date of the object
*   korrnum = ' '               " vrsd-korrnum
*   korrnum = ' '               " vrsd-korrnum  Correction number of the object
*   objname =                   " vrsd-objname
*   objname =                   " vrsd-objname  Object name in table VRSD
*   objtype =                   " vrsd-objtype
*   objtype =                   " vrsd-objtype  Object type in table VRSD
*   select_all =                " vrsd-versmode  = 'X' if entire VRSD is to be scanned
  TABLES
    object_list =               " vrsd          List of the selected objects
    .  "  GET_OBJECT_LIST

ABAP code example for Function Module GET_OBJECT_LIST





The ABAP code below is a full code listing to execute function module GET_OBJECT_LIST 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_object_list  TYPE STANDARD TABLE OF VRSD,"TABLES PARAM
wa_object_list  LIKE LINE OF it_object_list .


SELECT single AUTHOR
FROM VRSD
INTO @DATA(ld_author).


SELECT single AUTHOR
FROM VRSD
INTO @DATA(ld_author).


SELECT single DATUM
FROM VRSD
INTO @DATA(ld_datum).


SELECT single DATUM
FROM VRSD
INTO @DATA(ld_datum).


SELECT single KORRNUM
FROM VRSD
INTO @DATA(ld_korrnum).


SELECT single KORRNUM
FROM VRSD
INTO @DATA(ld_korrnum).


SELECT single OBJNAME
FROM VRSD
INTO @DATA(ld_objname).


SELECT single OBJNAME
FROM VRSD
INTO @DATA(ld_objname).


SELECT single OBJTYPE
FROM VRSD
INTO @DATA(ld_objtype).


SELECT single OBJTYPE
FROM VRSD
INTO @DATA(ld_objtype).


SELECT single VERSMODE
FROM VRSD
INTO @DATA(ld_select_all).


"populate fields of struture and append to itab
append wa_object_list to it_object_list. . CALL FUNCTION 'GET_OBJECT_LIST' * EXPORTING * author = ld_author * author = ld_author * datum = ld_datum * datum = ld_datum * korrnum = ld_korrnum * korrnum = ld_korrnum * objname = ld_objname * objname = ld_objname * objtype = ld_objtype * objtype = ld_objtype * select_all = ld_select_all TABLES object_list = it_object_list . " GET_OBJECT_LIST
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_author  TYPE VRSD-AUTHOR ,
ld_author  TYPE VRSD-AUTHOR ,
it_object_list  TYPE STANDARD TABLE OF VRSD ,
wa_object_list  LIKE LINE OF it_object_list,
ld_datum  TYPE VRSD-DATUM ,
ld_datum  TYPE VRSD-DATUM ,
ld_korrnum  TYPE VRSD-KORRNUM ,
ld_korrnum  TYPE VRSD-KORRNUM ,
ld_objname  TYPE VRSD-OBJNAME ,
ld_objname  TYPE VRSD-OBJNAME ,
ld_objtype  TYPE VRSD-OBJTYPE ,
ld_objtype  TYPE VRSD-OBJTYPE ,
ld_select_all  TYPE VRSD-VERSMODE .


SELECT single AUTHOR
FROM VRSD
INTO ld_author.


SELECT single AUTHOR
FROM VRSD
INTO ld_author.


"populate fields of struture and append to itab
append wa_object_list to it_object_list.

SELECT single DATUM
FROM VRSD
INTO ld_datum.


SELECT single DATUM
FROM VRSD
INTO ld_datum.


SELECT single KORRNUM
FROM VRSD
INTO ld_korrnum.


SELECT single KORRNUM
FROM VRSD
INTO ld_korrnum.


SELECT single OBJNAME
FROM VRSD
INTO ld_objname.


SELECT single OBJNAME
FROM VRSD
INTO ld_objname.


SELECT single OBJTYPE
FROM VRSD
INTO ld_objtype.


SELECT single OBJTYPE
FROM VRSD
INTO ld_objtype.


SELECT single VERSMODE
FROM VRSD
INTO ld_select_all.

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