SAP HRNA_EVAL_ATTR_SET Function Module for Set attribute for evaluation run
HRNA_EVAL_ATTR_SET is a standard hrna eval attr set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Set attribute for evaluation run 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 hrna eval attr set FM, simply by entering the name HRNA_EVAL_ATTR_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: EVAL
Program Name: SAPLEVAL
Main Program: SAPLEVAL
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HRNA_EVAL_ATTR_SET 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 'HRNA_EVAL_ATTR_SET'"Set attribute for evaluation run.
EXPORTING
SAGRP = "ReportID for wage type applications
APPL = "Wage type application
RUNID = "ReportID for wage type applications
ATTR = "Number of posting run
* ID = '0' "Text on posting run
VALUE = "Posting run: Simulation indicator
MOLGA = "Country Grouping
EXCEPTIONS
RUN_NOT_FOUND = 1 ATTR_NOT_VALID = 2
IMPORTING Parameters details for HRNA_EVAL_ATTR_SET
SAGRP - ReportID for wage type applications
Data type: PCERT-SAGRPOptional: No
Call by Reference: No ( called with pass by value option)
APPL - Wage type application
Data type: PCERT-APPLOptional: No
Call by Reference: No ( called with pass by value option)
RUNID - ReportID for wage type applications
Data type: PCERV-RUNIDOptional: No
Call by Reference: No ( called with pass by value option)
ATTR - Number of posting run
Data type: PCERV-ATTROptional: No
Call by Reference: No ( called with pass by value option)
ID - Text on posting run
Data type: PCERV-IDDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
VALUE - Posting run: Simulation indicator
Data type: PCERV-VALUEOptional: No
Call by Reference: No ( called with pass by value option)
MOLGA - Country Grouping
Data type: PCERT-MOLGAOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
RUN_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ATTR_NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRNA_EVAL_ATTR_SET 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_sagrp | TYPE PCERT-SAGRP, " | |||
lv_run_not_found | TYPE PCERT, " | |||
lv_appl | TYPE PCERT-APPL, " | |||
lv_attr_not_valid | TYPE PCERT, " | |||
lv_runid | TYPE PCERV-RUNID, " | |||
lv_attr | TYPE PCERV-ATTR, " | |||
lv_id | TYPE PCERV-ID, " '0' | |||
lv_value | TYPE PCERV-VALUE, " | |||
lv_molga | TYPE PCERT-MOLGA. " |
  CALL FUNCTION 'HRNA_EVAL_ATTR_SET' "Set attribute for evaluation run |
EXPORTING | ||
SAGRP | = lv_sagrp | |
APPL | = lv_appl | |
RUNID | = lv_runid | |
ATTR | = lv_attr | |
ID | = lv_id | |
VALUE | = lv_value | |
MOLGA | = lv_molga | |
EXCEPTIONS | ||
RUN_NOT_FOUND = 1 | ||
ATTR_NOT_VALID = 2 | ||
. " HRNA_EVAL_ATTR_SET |
ABAP code using 7.40 inline data declarations to call FM HRNA_EVAL_ATTR_SET
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 SAGRP FROM PCERT INTO @DATA(ld_sagrp). | ||||
"SELECT single APPL FROM PCERT INTO @DATA(ld_appl). | ||||
"SELECT single RUNID FROM PCERV INTO @DATA(ld_runid). | ||||
"SELECT single ATTR FROM PCERV INTO @DATA(ld_attr). | ||||
"SELECT single ID FROM PCERV INTO @DATA(ld_id). | ||||
DATA(ld_id) | = '0'. | |||
"SELECT single VALUE FROM PCERV INTO @DATA(ld_value). | ||||
"SELECT single MOLGA FROM PCERT INTO @DATA(ld_molga). | ||||
Search for further information about these or an SAP related objects