HRIQAUDTMPL_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 HRIQAUDTMPL_GET into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
HRPIQ00AUDTMPL_READ
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'HRIQAUDTMPL_GET' "Read Template
EXPORTING
iv_tmpl_id = " piqaudtmpl_id
* iv_read_text = " piqflag General Indicator
* iv_read_str = " piqflag
* iv_read_subtmpl = 'X' " piqflag General Indicator
* iv_language = SY-LANGU " sylangu Language Key of Current Text Environment
IMPORTING
et_return = " piq_bapiret2_tab BAPI Results BAPIRET2 - Table
es_tmpl = " piqaudtmpl Requirement Template
et_tmplstr = " piqaudtmpl_str_t
et_tmplsubreq = " piqaudtmpl_subreq_t Requirement Profile Template (Subrequirements)
es_tmpltxt = " piqaudtmpltxt Structure: Requirement Profile Template (With Text)
et_tmpltrtxt = " piqaudtmpl_strgettxt_t Structure: Read Requirement Profile Template (Texts)
et_tmplsubreqtxt = " piqaudtmpl_subreqgettxt_t Requirement Profile (Subrequirements with Texts)
et_tmplsub = " piqaudtmpl_t Requirement Template
et_subtmpl = " piqaudtmpl_sub_t Subrequirement Profile
et_subtmplstr = " piqaudtmpl_str_t Table Type: Requirement Profile Template
et_subtmplsubreq = " piqaudtmpl_subreq_t Requirement Profile Template (Subrequirements)
et_subtmplsubtxt = " piqaudtmpl_subtxt_t Requirement Subprofile (With Texts)
et_subtmpltxt = " piqaudtmpltxt_t Structure: Requirement Profile Template (With Text)
et_subtmpltrtxt = " piqaudtmpl_strgettxt_t Structure: Read Requirement Profile Template (Texts)
et_subtmplsubreqtxt = " piqaudtmpl_subreqgettxt_t Requirement Profile (Subrequirements with Texts)
. " HRIQAUDTMPL_GET
The ABAP code below is a full code listing to execute function module HRIQAUDTMPL_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).
| ld_et_return | TYPE PIQ_BAPIRET2_TAB , |
| ld_es_tmpl | TYPE PIQAUDTMPL , |
| ld_et_tmplstr | TYPE PIQAUDTMPL_STR_T , |
| ld_et_tmplsubreq | TYPE PIQAUDTMPL_SUBREQ_T , |
| ld_es_tmpltxt | TYPE PIQAUDTMPLTXT , |
| ld_et_tmpltrtxt | TYPE PIQAUDTMPL_STRGETTXT_T , |
| ld_et_tmplsubreqtxt | TYPE PIQAUDTMPL_SUBREQGETTXT_T , |
| ld_et_tmplsub | TYPE PIQAUDTMPL_T , |
| ld_et_subtmpl | TYPE PIQAUDTMPL_SUB_T , |
| ld_et_subtmplstr | TYPE PIQAUDTMPL_STR_T , |
| ld_et_subtmplsubreq | TYPE PIQAUDTMPL_SUBREQ_T , |
| ld_et_subtmplsubtxt | TYPE PIQAUDTMPL_SUBTXT_T , |
| ld_et_subtmpltxt | TYPE PIQAUDTMPLTXT_T , |
| ld_et_subtmpltrtxt | TYPE PIQAUDTMPL_STRGETTXT_T , |
| ld_et_subtmplsubreqtxt | TYPE PIQAUDTMPL_SUBREQGETTXT_T . |
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_et_return | TYPE PIQ_BAPIRET2_TAB , |
| ld_iv_tmpl_id | TYPE PIQAUDTMPL_ID , |
| ld_es_tmpl | TYPE PIQAUDTMPL , |
| ld_iv_read_text | TYPE PIQFLAG , |
| ld_et_tmplstr | TYPE PIQAUDTMPL_STR_T , |
| ld_iv_read_str | TYPE PIQFLAG , |
| ld_et_tmplsubreq | TYPE PIQAUDTMPL_SUBREQ_T , |
| ld_iv_read_subtmpl | TYPE PIQFLAG , |
| ld_es_tmpltxt | TYPE PIQAUDTMPLTXT , |
| ld_iv_language | TYPE SYLANGU , |
| ld_et_tmpltrtxt | TYPE PIQAUDTMPL_STRGETTXT_T , |
| ld_et_tmplsubreqtxt | TYPE PIQAUDTMPL_SUBREQGETTXT_T , |
| ld_et_tmplsub | TYPE PIQAUDTMPL_T , |
| ld_et_subtmpl | TYPE PIQAUDTMPL_SUB_T , |
| ld_et_subtmplstr | TYPE PIQAUDTMPL_STR_T , |
| ld_et_subtmplsubreq | TYPE PIQAUDTMPL_SUBREQ_T , |
| ld_et_subtmplsubtxt | TYPE PIQAUDTMPL_SUBTXT_T , |
| ld_et_subtmpltxt | TYPE PIQAUDTMPLTXT_T , |
| ld_et_subtmpltrtxt | TYPE PIQAUDTMPL_STRGETTXT_T , |
| ld_et_subtmplsubreqtxt | TYPE PIQAUDTMPL_SUBREQGETTXT_T . |
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 HRIQAUDTMPL_GET or its description.