SAP HELPSCREEN_NA_CREATE Function Module for Message documentation output in help screen









HELPSCREEN_NA_CREATE is a standard helpscreen na create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Message documentation output in help screen 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 helpscreen na create FM, simply by entering the name HELPSCREEN_NA_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function HELPSCREEN_NA_CREATE 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 'HELPSCREEN_NA_CREATE'"Message documentation output in help screen
EXPORTING
* DYNPRO = ' ' "Screen no of the current calling screen
* PFKEY = ' ' "PF status of the calling program
* PROGRAMM = ' ' "Program name of the calling program
TITEL = "Text in title of the current calling screen
* LANGU = SY-LANGU "Language of the documentation module
* MELDUNG = ' ' "Message as it was output
MELD_ID = "Message ID
MELD_NR = "Message number
* MSGV1 = ' ' "First variable for the long text
* MSGV2 = ' ' "Second variable for the long text
* MSGV3 = ' ' "Third variable for the long text
* MSGV4 = ' ' "Fourth variable for the long text
.



IMPORTING Parameters details for HELPSCREEN_NA_CREATE

DYNPRO - Screen no of the current calling screen

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

PFKEY - PF status of the calling program

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

PROGRAMM - Program name of the calling program

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

TITEL - Text in title of the current calling screen

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

LANGU - Language of the documentation module

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

MELDUNG - Message as it was output

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

MELD_ID - Message ID

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

MELD_NR - Message number

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

MSGV1 - First variable for the long text

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

MSGV2 - Second variable for the long text

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

MSGV3 - Third variable for the long text

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

MSGV4 - Fourth variable for the long text

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

Copy and paste ABAP code example for HELPSCREEN_NA_CREATE 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_dynpro  TYPE SY-DYNNR, "   SPACE
lv_pfkey  TYPE SY-PFKEY, "   SPACE
lv_programm  TYPE SY-REPID, "   SPACE
lv_titel  TYPE SHKONTEXT-TITEL, "   
lv_langu  TYPE SY-LANGU, "   SY-LANGU
lv_meldung  TYPE SHKONTEXT-MELDUNG, "   SPACE
lv_meld_id  TYPE SHKONTEXT-MELD_ID, "   
lv_meld_nr  TYPE SHKONTEXT-MELD_NR, "   
lv_msgv1  TYPE SY-MSGV1, "   SPACE
lv_msgv2  TYPE SY-MSGV2, "   SPACE
lv_msgv3  TYPE SY-MSGV3, "   SPACE
lv_msgv4  TYPE SY-MSGV4. "   SPACE

  CALL FUNCTION 'HELPSCREEN_NA_CREATE'  "Message documentation output in help screen
    EXPORTING
         DYNPRO = lv_dynpro
         PFKEY = lv_pfkey
         PROGRAMM = lv_programm
         TITEL = lv_titel
         LANGU = lv_langu
         MELDUNG = lv_meldung
         MELD_ID = lv_meld_id
         MELD_NR = lv_meld_nr
         MSGV1 = lv_msgv1
         MSGV2 = lv_msgv2
         MSGV3 = lv_msgv3
         MSGV4 = lv_msgv4
. " HELPSCREEN_NA_CREATE




ABAP code using 7.40 inline data declarations to call FM HELPSCREEN_NA_CREATE

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 DYNNR FROM SY INTO @DATA(ld_dynpro).
DATA(ld_dynpro) = ' '.
 
"SELECT single PFKEY FROM SY INTO @DATA(ld_pfkey).
DATA(ld_pfkey) = ' '.
 
"SELECT single REPID FROM SY INTO @DATA(ld_programm).
DATA(ld_programm) = ' '.
 
"SELECT single TITEL FROM SHKONTEXT INTO @DATA(ld_titel).
 
"SELECT single LANGU FROM SY INTO @DATA(ld_langu).
DATA(ld_langu) = SY-LANGU.
 
"SELECT single MELDUNG FROM SHKONTEXT INTO @DATA(ld_meldung).
DATA(ld_meldung) = ' '.
 
"SELECT single MELD_ID FROM SHKONTEXT INTO @DATA(ld_meld_id).
 
"SELECT single MELD_NR FROM SHKONTEXT INTO @DATA(ld_meld_nr).
 
"SELECT single MSGV1 FROM SY INTO @DATA(ld_msgv1).
DATA(ld_msgv1) = ' '.
 
"SELECT single MSGV2 FROM SY INTO @DATA(ld_msgv2).
DATA(ld_msgv2) = ' '.
 
"SELECT single MSGV3 FROM SY INTO @DATA(ld_msgv3).
DATA(ld_msgv3) = ' '.
 
"SELECT single MSGV4 FROM SY INTO @DATA(ld_msgv4).
DATA(ld_msgv4) = ' '.
 


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!