SAP HR_NL_GET_FEATURE_2_STRUCTURES Function Module for Bepalen van returnwaarde van kenmerk igv wijziging van structuur









HR_NL_GET_FEATURE_2_STRUCTURES is a standard hr nl get feature 2 structures SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Bepalen van returnwaarde van kenmerk igv wijziging van structuur 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 hr nl get feature 2 structures FM, simply by entering the name HR_NL_GET_FEATURE_2_STRUCTURES into the relevant SAP transaction such as SE37 or SE38.

Function Group: RPN2
Program Name: SAPLRPN2
Main Program: SAPLRPN2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_NL_GET_FEATURE_2_STRUCTURES 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_NL_GET_FEATURE_2_STRUCTURES'"Bepalen van returnwaarde van kenmerk igv wijziging van structuur
EXPORTING
IMP_FEATURE = "Naam van een kenmerk
IMP_STRUCTURE_NAME_1 = "Structuurnaam 1
IMP_STRUCTURE_1 = "Gevulde structuur 1
IMP_STRUCTURE_NAME_2 = "Structuurnaam 2
IMP_STRUCTURE_2 = "Gevulde structuur 2

IMPORTING
EXP_BACK_VALUE = "Teruggave waarde

TABLES
* EXP_BACK_TABLE = "Teruggave tabel

EXCEPTIONS
FEATURE_NOT_FOUND = 1 WRONG_STRUCTURES = 2 ERROR_READING_FEATURE = 3
.



IMPORTING Parameters details for HR_NL_GET_FEATURE_2_STRUCTURES

IMP_FEATURE - Naam van een kenmerk

Data type: MERK1
Optional: No
Call by Reference: Yes

IMP_STRUCTURE_NAME_1 - Structuurnaam 1

Data type: STRUC_D
Optional: No
Call by Reference: Yes

IMP_STRUCTURE_1 - Gevulde structuur 1

Data type: ANY
Optional: No
Call by Reference: Yes

IMP_STRUCTURE_NAME_2 - Structuurnaam 2

Data type: STRUC_D
Optional: No
Call by Reference: Yes

IMP_STRUCTURE_2 - Gevulde structuur 2

Data type: ANY
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for HR_NL_GET_FEATURE_2_STRUCTURES

EXP_BACK_VALUE - Teruggave waarde

Data type:
Optional: No
Call by Reference: Yes

TABLES Parameters details for HR_NL_GET_FEATURE_2_STRUCTURES

EXP_BACK_TABLE - Teruggave tabel

Data type:
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

FEATURE_NOT_FOUND - Kenmerk niet gevonden

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

WRONG_STRUCTURES - Verkeerde structuren meegegeven

Data type:
Optional: No
Call by Reference: Yes

ERROR_READING_FEATURE - Fout bij het lezen van het kenmerk

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_NL_GET_FEATURE_2_STRUCTURES 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_imp_feature  TYPE MERK1, "   
lt_exp_back_table  TYPE STANDARD TABLE OF MERK1, "   
lv_exp_back_value  TYPE MERK1, "   
lv_feature_not_found  TYPE MERK1, "   
lv_wrong_structures  TYPE MERK1, "   
lv_imp_structure_name_1  TYPE STRUC_D, "   
lv_imp_structure_1  TYPE ANY, "   
lv_error_reading_feature  TYPE ANY, "   
lv_imp_structure_name_2  TYPE STRUC_D, "   
lv_imp_structure_2  TYPE ANY. "   

  CALL FUNCTION 'HR_NL_GET_FEATURE_2_STRUCTURES'  "Bepalen van returnwaarde van kenmerk igv wijziging van structuur
    EXPORTING
         IMP_FEATURE = lv_imp_feature
         IMP_STRUCTURE_NAME_1 = lv_imp_structure_name_1
         IMP_STRUCTURE_1 = lv_imp_structure_1
         IMP_STRUCTURE_NAME_2 = lv_imp_structure_name_2
         IMP_STRUCTURE_2 = lv_imp_structure_2
    IMPORTING
         EXP_BACK_VALUE = lv_exp_back_value
    TABLES
         EXP_BACK_TABLE = lt_exp_back_table
    EXCEPTIONS
        FEATURE_NOT_FOUND = 1
        WRONG_STRUCTURES = 2
        ERROR_READING_FEATURE = 3
. " HR_NL_GET_FEATURE_2_STRUCTURES




ABAP code using 7.40 inline data declarations to call FM HR_NL_GET_FEATURE_2_STRUCTURES

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.

 
 
 
 
 
 
 
 
 
 


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!