SAP FUNKTIONHELP_CREATE Function Module for









FUNKTIONHELP_CREATE is a standard funktionhelp create 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 funktionhelp create FM, simply by entering the name FUNKTIONHELP_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 FUNKTIONHELP_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 'FUNKTIONHELP_CREATE'"
EXPORTING
DOKU_ID = "Internal table with tuples for bui
FCODE = "Internal table with tuples for bui
* FTASTE = 00 "Internal table with tuples for bui
* KZ_ANZEIGE = 'H' "Internal table with tuples for bui
LANGU = "Internal table with tuples for bui
* LONGTEXT = ' ' "Internal table with tuples for bui
PROGRAMM = "Internal table with tuples for bui
* SHORTTEXT = ' ' "Internal table with tuples for bui

IMPORTING
HEADER = "

TABLES
LINES = "

EXCEPTIONS
DOKU_NOT_FOUND = 1 MENFKT_NOT_FOUND = 2
.



IMPORTING Parameters details for FUNKTIONHELP_CREATE

DOKU_ID - Internal table with tuples for bui

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

FCODE - Internal table with tuples for bui

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

FTASTE - Internal table with tuples for bui

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

KZ_ANZEIGE - Internal table with tuples for bui

Data type:
Default: 'H'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGU - Internal table with tuples for bui

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

LONGTEXT - Internal table with tuples for bui

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

PROGRAMM - Internal table with tuples for bui

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

SHORTTEXT - Internal table with tuples for bui

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

EXPORTING Parameters details for FUNKTIONHELP_CREATE

HEADER -

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

TABLES Parameters details for FUNKTIONHELP_CREATE

LINES -

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

EXCEPTIONS details

DOKU_NOT_FOUND - Internal table with tuples for bui

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

MENFKT_NOT_FOUND - Internal table with tuples for bui

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

Copy and paste ABAP code example for FUNKTIONHELP_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:
lt_lines  TYPE STANDARD TABLE OF TLINE, "   
lv_header  TYPE THEAD, "   
lv_doku_id  TYPE DOKHL-ID, "   
lv_doku_not_found  TYPE DOKHL, "   
lv_fcode  TYPE D301T-PROGFUN, "   
lv_menfkt_not_found  TYPE D301T, "   
lv_ftaste  TYPE D301T, "   00
lv_kz_anzeige  TYPE D301T, "   'H'
lv_langu  TYPE SY-LANGU, "   
lv_longtext  TYPE D301T-LONGTEXT, "   SPACE
lv_programm  TYPE D301T-DDNAME, "   
lv_shorttext  TYPE D301T-SHORTTEXT. "   SPACE

  CALL FUNCTION 'FUNKTIONHELP_CREATE'  "
    EXPORTING
         DOKU_ID = lv_doku_id
         FCODE = lv_fcode
         FTASTE = lv_ftaste
         KZ_ANZEIGE = lv_kz_anzeige
         LANGU = lv_langu
         LONGTEXT = lv_longtext
         PROGRAMM = lv_programm
         SHORTTEXT = lv_shorttext
    IMPORTING
         HEADER = lv_header
    TABLES
         LINES = lt_lines
    EXCEPTIONS
        DOKU_NOT_FOUND = 1
        MENFKT_NOT_FOUND = 2
. " FUNKTIONHELP_CREATE




ABAP code using 7.40 inline data declarations to call FM FUNKTIONHELP_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 ID FROM DOKHL INTO @DATA(ld_doku_id).
 
 
"SELECT single PROGFUN FROM D301T INTO @DATA(ld_fcode).
 
 
DATA(ld_ftaste) = 00.
 
DATA(ld_kz_anzeige) = 'H'.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_langu).
 
"SELECT single LONGTEXT FROM D301T INTO @DATA(ld_longtext).
DATA(ld_longtext) = ' '.
 
"SELECT single DDNAME FROM D301T INTO @DATA(ld_programm).
 
"SELECT single SHORTTEXT FROM D301T INTO @DATA(ld_shorttext).
DATA(ld_shorttext) = ' '.
 


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!