ABAP_DOCU_SHOWis a standard SAP function module available within R/3 SAPsystems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import/export parameters, exceptions etc as well as any documentation contributions specific to the object. See here to view full function module documentation and code listing, simply by entering the name ABAP_DOCU_SHOW into the relevant SAP transaction such as SE37 or SE80.
Contribute (Add Comments) Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ABAP_DOCU_SHOW or its description.
Pattern for FM ABAP_DOCU_SHOW - ABAP DOCU SHOW
Associated Function Group:
ABAP_DOCU
Released Date:
06.03.2000
CALL FUNCTION 'ABAP_DOCU_SHOW' "Display ABAP Keyword Documentation
* EXPORTING
* area = 'ABEN' " c Documentation Area
* name = 'ABAP' " c Document Name
* langu = SY-LANGU " syst-langu Language
* anchor = " c Internal Text Mark for Direct Control
* searched = " standard table Search Terms for Full Text Search
* search_mode = " c I, F for Index, Full Ttext
* search_word = " csequence Search argument
IMPORTING
docu_container = " cl_gui_control Reference to Control
. " ABAP_DOCU_SHOW
ABAP code example for ABAP_DOCU_SHOW Function Module
The ABAP code below is a full code listing to execute function module ABAP_DOCU_SHOW including all data declarations. The code uses the latest IN-LINE DATA DECLARATION SYNTAX but I have included an ABAP code snipet at the end to show how declarations would look using the original method of declaring data variables up front. 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).
DATA:ld_docu_container | TYPE CL_GUI_CONTROL. |
DATA(ld_area) = 'Check type of data required'.
DATA(ld_name) = 'Check type of data required'.
DATA(ld_langu). = 'Check type of data required'
DATA(ld_anchor) = 'Check type of data required'.
DATA(ld_searched) = 'Check type of data required'.
DATA(ld_search_mode) = 'Check type of data required'.
DATA(ld_search_word) = 'Check type of data required'..
CALL FUNCTION 'ABAP_DOCU_SHOW'
* EXPORTING
* area = ld_area
* name = ld_name
* langu = ld_langu
* anchor = ld_anchor
* searched = ld_searched
* search_mode = ld_search_mode
* search_word = ld_search_word
IMPORTING
docu_container = ld_docu_container
. " ABAP_DOCU_SHOW
IF SY-SUBRC EQ 0.
"All OK
ENDIF.
ABAP code to compare 7.40 inline data declaration with original syntax
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
ld_docu_container | TYPE CL_GUI_CONTROL , |
ld_area | TYPE C , |
ld_name | TYPE C , |
ld_langu | TYPE SYST-LANGU , |
ld_anchor | TYPE C , |
ld_searched | TYPE STANDARD TABLE , |
ld_search_mode | TYPE C , |
ld_search_word | TYPE CSEQUENCE . |
ld_area = 'Check type of data required'.
ld_name = 'Check type of data required'.
ld_langu. = 'Check type of data required'
ld_anchor = 'Check type of data required'.
ld_searched = 'Check type of data required'.
ld_search_mode = 'Check type of data required'.
ld_search_word = 'Check type of data required'..
SAP Documentation for FM ABAP_DOCU_SHOW