SAP Function Modules

ISU_ALL_SERVICES_SELECT SAP Function module







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

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


Pattern for FM ISU_ALL_SERVICES_SELECT - ISU ALL SERVICES SELECT





CALL FUNCTION 'ISU_ALL_SERVICES_SELECT' "
  EXPORTING
    x_int_pod =                 " euitrans-int_ui
*   x_keydate = SY-DATUM        " datum
*   x_ignore_service_duplicates =   " kennzx
  TABLES
    t_all_services =            " iallservices
*   t_ever =                    " ieever
*   t_nb_services =             " ieservice
  EXCEPTIONS
    NOT_FOUND = 1               "
    SERVPROV_NOT_FOUND = 2      "
    PROGRAMMING_ERROR = 3       "
    SYSTEM_ERROR = 4            "
    SERVICE_TYPE_DUPLICATES = 5  "
    .  "  ISU_ALL_SERVICES_SELECT

ABAP code example for Function Module ISU_ALL_SERVICES_SELECT





The ABAP code below is a full code listing to execute function module ISU_ALL_SERVICES_SELECT 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_t_all_services  TYPE STANDARD TABLE OF IALLSERVICES,"TABLES PARAM
wa_t_all_services  LIKE LINE OF it_t_all_services ,
it_t_ever  TYPE STANDARD TABLE OF IEEVER,"TABLES PARAM
wa_t_ever  LIKE LINE OF it_t_ever ,
it_t_nb_services  TYPE STANDARD TABLE OF IESERVICE,"TABLES PARAM
wa_t_nb_services  LIKE LINE OF it_t_nb_services .


SELECT single INT_UI
FROM EUITRANS
INTO @DATA(ld_x_int_pod).

DATA(ld_x_keydate) = 'Check type of data required'.
DATA(ld_x_ignore_service_duplicates) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_all_services to it_t_all_services.

"populate fields of struture and append to itab
append wa_t_ever to it_t_ever.

"populate fields of struture and append to itab
append wa_t_nb_services to it_t_nb_services. . CALL FUNCTION 'ISU_ALL_SERVICES_SELECT' EXPORTING x_int_pod = ld_x_int_pod * x_keydate = ld_x_keydate * x_ignore_service_duplicates = ld_x_ignore_service_duplicates TABLES t_all_services = it_t_all_services * t_ever = it_t_ever * t_nb_services = it_t_nb_services EXCEPTIONS NOT_FOUND = 1 SERVPROV_NOT_FOUND = 2 PROGRAMMING_ERROR = 3 SYSTEM_ERROR = 4 SERVICE_TYPE_DUPLICATES = 5 . " ISU_ALL_SERVICES_SELECT
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 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_x_int_pod  TYPE EUITRANS-INT_UI ,
it_t_all_services  TYPE STANDARD TABLE OF IALLSERVICES ,
wa_t_all_services  LIKE LINE OF it_t_all_services,
ld_x_keydate  TYPE DATUM ,
it_t_ever  TYPE STANDARD TABLE OF IEEVER ,
wa_t_ever  LIKE LINE OF it_t_ever,
ld_x_ignore_service_duplicates  TYPE KENNZX ,
it_t_nb_services  TYPE STANDARD TABLE OF IESERVICE ,
wa_t_nb_services  LIKE LINE OF it_t_nb_services.


SELECT single INT_UI
FROM EUITRANS
INTO ld_x_int_pod.


"populate fields of struture and append to itab
append wa_t_all_services to it_t_all_services.
ld_x_keydate = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_ever to it_t_ever.
ld_x_ignore_service_duplicates = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_nb_services to it_t_nb_services.

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