SAP Function Modules

PLM_AUD_QUEST_HIERARCHY_ALL SAP Function module







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

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


Pattern for FM PLM_AUD_QUEST_HIERARCHY_ALL - PLM AUD QUEST HIERARCHY ALL





CALL FUNCTION 'PLM_AUD_QUEST_HIERARCHY_ALL' "
  EXPORTING
    i_hierarchy_profil =        " plmc_hiera_prof-hierarchy_profil
*   i_langu =                   " langu
  IMPORTING
    e_profile_text =            " plmc_hiera_proft-profile_text
    e_hiera_h =                 " plmv_hiera_h
    e_last_level =              " plmt_hierarchy_level
    e_quests_allowed =          " plmt_quests_allowed
* TABLES
*   e_hiera_i_tab =             " plmv_hiera_i
  EXCEPTIONS
    ERROR = 1                   "
    .  "  PLM_AUD_QUEST_HIERARCHY_ALL

ABAP code example for Function Module PLM_AUD_QUEST_HIERARCHY_ALL





The ABAP code below is a full code listing to execute function module PLM_AUD_QUEST_HIERARCHY_ALL 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_e_profile_text  TYPE PLMC_HIERA_PROFT-PROFILE_TEXT ,
ld_e_hiera_h  TYPE PLMV_HIERA_H ,
ld_e_last_level  TYPE PLMT_HIERARCHY_LEVEL ,
ld_e_quests_allowed  TYPE PLMT_QUESTS_ALLOWED ,
it_e_hiera_i_tab  TYPE STANDARD TABLE OF PLMV_HIERA_I,"TABLES PARAM
wa_e_hiera_i_tab  LIKE LINE OF it_e_hiera_i_tab .


SELECT single HIERARCHY_PROFIL
FROM PLMC_HIERA_PROF
INTO @DATA(ld_i_hierarchy_profil).

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

"populate fields of struture and append to itab
append wa_e_hiera_i_tab to it_e_hiera_i_tab. . CALL FUNCTION 'PLM_AUD_QUEST_HIERARCHY_ALL' EXPORTING i_hierarchy_profil = ld_i_hierarchy_profil * i_langu = ld_i_langu IMPORTING e_profile_text = ld_e_profile_text e_hiera_h = ld_e_hiera_h e_last_level = ld_e_last_level e_quests_allowed = ld_e_quests_allowed * TABLES * e_hiera_i_tab = it_e_hiera_i_tab EXCEPTIONS ERROR = 1 . " PLM_AUD_QUEST_HIERARCHY_ALL
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_e_profile_text  TYPE PLMC_HIERA_PROFT-PROFILE_TEXT ,
ld_i_hierarchy_profil  TYPE PLMC_HIERA_PROF-HIERARCHY_PROFIL ,
it_e_hiera_i_tab  TYPE STANDARD TABLE OF PLMV_HIERA_I ,
wa_e_hiera_i_tab  LIKE LINE OF it_e_hiera_i_tab,
ld_e_hiera_h  TYPE PLMV_HIERA_H ,
ld_i_langu  TYPE LANGU ,
ld_e_last_level  TYPE PLMT_HIERARCHY_LEVEL ,
ld_e_quests_allowed  TYPE PLMT_QUESTS_ALLOWED .


SELECT single HIERARCHY_PROFIL
FROM PLMC_HIERA_PROF
INTO ld_i_hierarchy_profil.


"populate fields of struture and append to itab
append wa_e_hiera_i_tab to it_e_hiera_i_tab.
ld_i_langu = '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 PLM_AUD_QUEST_HIERARCHY_ALL or its description.