SAP HRIQ_RFC_GET_MODULE_DETAILS Function Module for Get Module Details









HRIQ_RFC_GET_MODULE_DETAILS is a standard hriq rfc get module details SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Module Details processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for hriq rfc get module details FM, simply by entering the name HRIQ_RFC_GET_MODULE_DETAILS into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPIQ00RFCACADEMICSTRUC
Program Name: SAPLHRPIQ00RFCACADEMICSTRUC
Main Program: SAPLHRPIQ00RFCACADEMICSTRUC
Appliation area:
Release date: 16-Feb-2005
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function HRIQ_RFC_GET_MODULE_DETAILS pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'HRIQ_RFC_GET_MODULE_DETAILS'"Get Module Details
EXPORTING
* MODULE_ID = "Module (ID)
* READ_DESCRIPTION = ' ' "Read Description
* READ_CAPACITIES = ' ' "Read Capacities
* READ_MODULEDATA = ' ' "Read Module Data
* READ_MODULECREDITS = ' ' "Read Module Credits
* READ_DISCIPLINES = ' ' "Read Disciplines
* READ_RULES_RELATIONS = ' ' "Read Relationships to Rule Containers
* READ_COREQUISITES = ' ' "Read Corequisite Modules
* READ_PREREQUISITES = ' ' "Read Prerequisite Modules
* READ_OFFERPATTERN = ' ' "Read Session Patterns
* READ_TEACHEMPHASES = ' ' "Read Teaching Emphases
* PLVAR = "Plan Version
* READ_REF_RELATION = ' ' "Read Reference Module
* READ_OFFERSESSION = ' ' "Read Session of Offering
* LANGUAGE = SY-LANGU "Language Key of Current Text Environment
* LANGUAGE_ISO = "Language According to ISO 639
* BEGDA = '19000101' "Start Date
* ENDDA = '99991231' "End Date
* ISTAT = ' ' "Planning Status
* SUBTY = ' ' "Description Subtype
* READ_ADATA = ' ' "Read Additional Data for Relationships

TABLES
* MODULES = "Import Table: Modules
* MODULEDATA = "Export Table: Module Data
* TEACHEMPHASES = "Export Table: Teaching Emphases
* REF_RELATIONS = "Table Type for PIQRFC_RELATION
* ERRORTAB = "Export Table: Error Message Table
* ET_OFFERSESSION = "Export Table: Session of Offering
* DESCRIPTION = "Export Table: Description
* CAPACITIES = "Export Table: Capacities
* DISCIPLINES = "Export Table: Module Disciplines for RFC Modules
* OFFERPATTERN = "Export Table: Session Patterns
* RULES_RELATIONS = "Export Table: Rules
* CO_REQUISITES = "Export Table: Read Corequisite Modules
* PRE_REQUISITES = "Export Table: Prerequisite Modules
* CREDITS = "Export Table: Credits
.



IMPORTING Parameters details for HRIQ_RFC_GET_MODULE_DETAILS

MODULE_ID - Module (ID)

Data type: HROBJID
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_DESCRIPTION - Read Description

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_CAPACITIES - Read Capacities

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_MODULEDATA - Read Module Data

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_MODULECREDITS - Read Module Credits

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_DISCIPLINES - Read Disciplines

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_RULES_RELATIONS - Read Relationships to Rule Containers

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_COREQUISITES - Read Corequisite Modules

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_PREREQUISITES - Read Prerequisite Modules

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_OFFERPATTERN - Read Session Patterns

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_TEACHEMPHASES - Read Teaching Emphases

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLVAR - Plan Version

Data type: PLVAR
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_REF_RELATION - Read Reference Module

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_OFFERSESSION - Read Session of Offering

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGUAGE - Language Key of Current Text Environment

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGUAGE_ISO - Language According to ISO 639

Data type: BAPI_LAISO-LANGU_ISO
Optional: Yes
Call by Reference: No ( called with pass by value option)

BEGDA - Start Date

Data type: BEGDATUM
Default: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENDDA - End Date

Data type: ENDDATUM
Default: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ISTAT - Planning Status

Data type: ISTAT_D
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUBTY - Description Subtype

Data type: SUBTYP
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_ADATA - Read Additional Data for Relationships

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for HRIQ_RFC_GET_MODULE_DETAILS

MODULES - Import Table: Modules

Data type: HROBJECT
Optional: Yes
Call by Reference: Yes

MODULEDATA - Export Table: Module Data

Data type: PIQRFC_MODULEDATA
Optional: Yes
Call by Reference: Yes

TEACHEMPHASES - Export Table: Teaching Emphases

Data type: PIQRFC_TEACHEMPH
Optional: Yes
Call by Reference: Yes

REF_RELATIONS - Table Type for PIQRFC_RELATION

Data type: PIQRFC_RELATION_T
Optional: Yes
Call by Reference: Yes

ERRORTAB - Export Table: Error Message Table

Data type: BAPIRET2
Optional: Yes
Call by Reference: No ( called with pass by value option)

ET_OFFERSESSION - Export Table: Session of Offering

Data type: PIQOFFERSESSION_T
Optional: Yes
Call by Reference: Yes

DESCRIPTION - Export Table: Description

Data type: PIQRFC_DESCRIPTION
Optional: Yes
Call by Reference: No ( called with pass by value option)

CAPACITIES - Export Table: Capacities

Data type: PIQRFC_CAPACITY
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISCIPLINES - Export Table: Module Disciplines for RFC Modules

Data type: PIQRFC_DISCIPLINES
Optional: Yes
Call by Reference: Yes

OFFERPATTERN - Export Table: Session Patterns

Data type: PIQRFC_OFFERPATTERN
Optional: Yes
Call by Reference: Yes

RULES_RELATIONS - Export Table: Rules

Data type: PIQRFC_RELATION
Optional: Yes
Call by Reference: Yes

CO_REQUISITES - Export Table: Read Corequisite Modules

Data type: PIQRFC_RELATION
Optional: Yes
Call by Reference: Yes

PRE_REQUISITES - Export Table: Prerequisite Modules

Data type: PIQRFC_RELATION
Optional: Yes
Call by Reference: Yes

CREDITS - Export Table: Credits

Data type: PIQRFC_SMCREDITS
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for HRIQ_RFC_GET_MODULE_DETAILS Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_modules  TYPE STANDARD TABLE OF HROBJECT, "   
lv_module_id  TYPE HROBJID, "   
lt_moduledata  TYPE STANDARD TABLE OF PIQRFC_MODULEDATA, "   
lv_read_description  TYPE XFELD, "   SPACE
lt_teachemphases  TYPE STANDARD TABLE OF PIQRFC_TEACHEMPH, "   
lv_read_capacities  TYPE XFELD, "   SPACE
lt_ref_relations  TYPE STANDARD TABLE OF PIQRFC_RELATION_T, "   
lv_read_moduledata  TYPE XFELD, "   SPACE
lt_errortab  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_read_modulecredits  TYPE XFELD, "   SPACE
lt_et_offersession  TYPE STANDARD TABLE OF PIQOFFERSESSION_T, "   
lv_read_disciplines  TYPE XFELD, "   SPACE
lv_read_rules_relations  TYPE XFELD, "   SPACE
lv_read_corequisites  TYPE XFELD, "   SPACE
lv_read_prerequisites  TYPE XFELD, "   SPACE
lv_read_offerpattern  TYPE XFELD, "   SPACE
lv_read_teachemphases  TYPE XFELD, "   SPACE
lv_plvar  TYPE PLVAR, "   
lt_description  TYPE STANDARD TABLE OF PIQRFC_DESCRIPTION, "   
lv_read_ref_relation  TYPE XFELD, "   SPACE
lv_read_offersession  TYPE XFELD, "   SPACE
lv_language  TYPE SY-LANGU, "   SY-LANGU
lt_capacities  TYPE STANDARD TABLE OF PIQRFC_CAPACITY, "   
lt_disciplines  TYPE STANDARD TABLE OF PIQRFC_DISCIPLINES, "   
lv_language_iso  TYPE BAPI_LAISO-LANGU_ISO, "   
lv_begda  TYPE BEGDATUM, "   '19000101'
lt_offerpattern  TYPE STANDARD TABLE OF PIQRFC_OFFERPATTERN, "   
lv_endda  TYPE ENDDATUM, "   '99991231'
lt_rules_relations  TYPE STANDARD TABLE OF PIQRFC_RELATION, "   
lv_istat  TYPE ISTAT_D, "   ' '
lt_co_requisites  TYPE STANDARD TABLE OF PIQRFC_RELATION, "   
lv_subty  TYPE SUBTYP, "   ' '
lt_pre_requisites  TYPE STANDARD TABLE OF PIQRFC_RELATION, "   
lt_credits  TYPE STANDARD TABLE OF PIQRFC_SMCREDITS, "   
lv_read_adata  TYPE XFELD. "   SPACE

  CALL FUNCTION 'HRIQ_RFC_GET_MODULE_DETAILS'  "Get Module Details
    EXPORTING
         MODULE_ID = lv_module_id
         READ_DESCRIPTION = lv_read_description
         READ_CAPACITIES = lv_read_capacities
         READ_MODULEDATA = lv_read_moduledata
         READ_MODULECREDITS = lv_read_modulecredits
         READ_DISCIPLINES = lv_read_disciplines
         READ_RULES_RELATIONS = lv_read_rules_relations
         READ_COREQUISITES = lv_read_corequisites
         READ_PREREQUISITES = lv_read_prerequisites
         READ_OFFERPATTERN = lv_read_offerpattern
         READ_TEACHEMPHASES = lv_read_teachemphases
         PLVAR = lv_plvar
         READ_REF_RELATION = lv_read_ref_relation
         READ_OFFERSESSION = lv_read_offersession
         LANGUAGE = lv_language
         LANGUAGE_ISO = lv_language_iso
         BEGDA = lv_begda
         ENDDA = lv_endda
         ISTAT = lv_istat
         SUBTY = lv_subty
         READ_ADATA = lv_read_adata
    TABLES
         MODULES = lt_modules
         MODULEDATA = lt_moduledata
         TEACHEMPHASES = lt_teachemphases
         REF_RELATIONS = lt_ref_relations
         ERRORTAB = lt_errortab
         ET_OFFERSESSION = lt_et_offersession
         DESCRIPTION = lt_description
         CAPACITIES = lt_capacities
         DISCIPLINES = lt_disciplines
         OFFERPATTERN = lt_offerpattern
         RULES_RELATIONS = lt_rules_relations
         CO_REQUISITES = lt_co_requisites
         PRE_REQUISITES = lt_pre_requisites
         CREDITS = lt_credits
. " HRIQ_RFC_GET_MODULE_DETAILS




ABAP code using 7.40 inline data declarations to call FM HRIQ_RFC_GET_MODULE_DETAILS

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
DATA(ld_read_description) = ' '.
 
 
DATA(ld_read_capacities) = ' '.
 
 
DATA(ld_read_moduledata) = ' '.
 
 
DATA(ld_read_modulecredits) = ' '.
 
 
DATA(ld_read_disciplines) = ' '.
 
DATA(ld_read_rules_relations) = ' '.
 
DATA(ld_read_corequisites) = ' '.
 
DATA(ld_read_prerequisites) = ' '.
 
DATA(ld_read_offerpattern) = ' '.
 
DATA(ld_read_teachemphases) = ' '.
 
 
 
DATA(ld_read_ref_relation) = ' '.
 
DATA(ld_read_offersession) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
 
"SELECT single LANGU_ISO FROM BAPI_LAISO INTO @DATA(ld_language_iso).
 
DATA(ld_begda) = '19000101'.
 
 
DATA(ld_endda) = '99991231'.
 
 
DATA(ld_istat) = ' '.
 
 
DATA(ld_subty) = ' '.
 
 
 
DATA(ld_read_adata) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!