SAP ISH_HLP_GET_PFIELDS Function Module for









ISH_HLP_GET_PFIELDS is a standard ish hlp get pfields 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 ish hlp get pfields FM, simply by entering the name ISH_HLP_GET_PFIELDS into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_HLP_GET_PFIELDS 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 'ISH_HLP_GET_PFIELDS'"
EXPORTING
* SS_USER = SY-UNAME "Changed By
SS_HLPTYPE = "IS-H: Type of Input Help
* SS_EINRI = "IS-H: Institution

TABLES
SS_FIELDS = "

EXCEPTIONS
USER_NOT_FOUND = 1 WRONG_TYPE = 2 INVALID_EINRI = 3
.



IMPORTING Parameters details for ISH_HLP_GET_PFIELDS

SS_USER - Changed By

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

SS_HLPTYPE - IS-H: Type of Input Help

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

SS_EINRI - IS-H: Institution

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

TABLES Parameters details for ISH_HLP_GET_PFIELDS

SS_FIELDS -

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

EXCEPTIONS details

USER_NOT_FOUND -

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

WRONG_TYPE -

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

INVALID_EINRI -

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

Copy and paste ABAP code example for ISH_HLP_GET_PFIELDS 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_ss_user  TYPE NHLPVALUE-USERNAME, "   SY-UNAME
lt_ss_fields  TYPE STANDARD TABLE OF NHLPFIELD, "   
lv_user_not_found  TYPE NHLPFIELD, "   
lv_ss_hlptype  TYPE NHLPVALUE-HLPTYPE, "   
lv_wrong_type  TYPE NHLPVALUE, "   
lv_ss_einri  TYPE TN01-EINRI, "   
lv_invalid_einri  TYPE TN01. "   

  CALL FUNCTION 'ISH_HLP_GET_PFIELDS'  "
    EXPORTING
         SS_USER = lv_ss_user
         SS_HLPTYPE = lv_ss_hlptype
         SS_EINRI = lv_ss_einri
    TABLES
         SS_FIELDS = lt_ss_fields
    EXCEPTIONS
        USER_NOT_FOUND = 1
        WRONG_TYPE = 2
        INVALID_EINRI = 3
. " ISH_HLP_GET_PFIELDS




ABAP code using 7.40 inline data declarations to call FM ISH_HLP_GET_PFIELDS

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 USERNAME FROM NHLPVALUE INTO @DATA(ld_ss_user).
DATA(ld_ss_user) = SY-UNAME.
 
 
 
"SELECT single HLPTYPE FROM NHLPVALUE INTO @DATA(ld_ss_hlptype).
 
 
"SELECT single EINRI FROM TN01 INTO @DATA(ld_ss_einri).
 
 


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!