SAP HR_FORMS_FCL_INSERT_REF Function Module for
HR_FORMS_FCL_INSERT_REF is a standard hr forms fcl insert ref SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 hr forms fcl insert ref FM, simply by entering the name HR_FORMS_FCL_INSERT_REF into the relevant SAP transaction such as SE37 or SE38.
Function Group: PE51
Program Name: SAPLPE51
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_FORMS_FCL_INSERT_REF 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 'HR_FORMS_FCL_INSERT_REF'".
EXPORTING
MOLGA = "
CLASS = "
REFMOLGA = "
REFCLASS = "
CHANGING
* TASKNO = "
EXCEPTIONS
ACTION_CANCELLED = 1 TRANSPORT_ERROR = 2 READ_ERROR = 3 REFERENCE_ERROR = 4 REFERENCE_EXISTS_ALREADY = 5 FORMCLASS_DOES_NOT_EXIST = 6
IMPORTING Parameters details for HR_FORMS_FCL_INSERT_REF
MOLGA -
Data type: T514F-MOLGAOptional: No
Call by Reference: Yes
CLASS -
Data type: T514F-CLASSOptional: No
Call by Reference: Yes
REFMOLGA -
Data type: T514F-MOLGAOptional: No
Call by Reference: Yes
REFCLASS -
Data type: T514F-CLASSOptional: No
Call by Reference: Yes
CHANGING Parameters details for HR_FORMS_FCL_INSERT_REF
TASKNO -
Data type: E070-TRKORROptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ACTION_CANCELLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TRANSPORT_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
READ_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REFERENCE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REFERENCE_EXISTS_ALREADY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FORMCLASS_DOES_NOT_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_FORMS_FCL_INSERT_REF 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: | ||||
| lv_molga | TYPE T514F-MOLGA, " | |||
| lv_taskno | TYPE E070-TRKORR, " | |||
| lv_action_cancelled | TYPE E070, " | |||
| lv_class | TYPE T514F-CLASS, " | |||
| lv_transport_error | TYPE T514F, " | |||
| lv_refmolga | TYPE T514F-MOLGA, " | |||
| lv_read_error | TYPE T514F, " | |||
| lv_refclass | TYPE T514F-CLASS, " | |||
| lv_reference_error | TYPE T514F, " | |||
| lv_reference_exists_already | TYPE T514F, " | |||
| lv_formclass_does_not_exist | TYPE T514F. " |
|   CALL FUNCTION 'HR_FORMS_FCL_INSERT_REF' " |
| EXPORTING | ||
| MOLGA | = lv_molga | |
| CLASS | = lv_class | |
| REFMOLGA | = lv_refmolga | |
| REFCLASS | = lv_refclass | |
| CHANGING | ||
| TASKNO | = lv_taskno | |
| EXCEPTIONS | ||
| ACTION_CANCELLED = 1 | ||
| TRANSPORT_ERROR = 2 | ||
| READ_ERROR = 3 | ||
| REFERENCE_ERROR = 4 | ||
| REFERENCE_EXISTS_ALREADY = 5 | ||
| FORMCLASS_DOES_NOT_EXIST = 6 | ||
| . " HR_FORMS_FCL_INSERT_REF | ||
ABAP code using 7.40 inline data declarations to call FM HR_FORMS_FCL_INSERT_REF
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.| "SELECT single MOLGA FROM T514F INTO @DATA(ld_molga). | ||||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_taskno). | ||||
| "SELECT single CLASS FROM T514F INTO @DATA(ld_class). | ||||
| "SELECT single MOLGA FROM T514F INTO @DATA(ld_refmolga). | ||||
| "SELECT single CLASS FROM T514F INTO @DATA(ld_refclass). | ||||
Search for further information about these or an SAP related objects