SAP Function Modules

SMAP_PROCESS_F4_HELP SAP Function module







SMAP_PROCESS_F4_HELP is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SMAP_PROCESS_F4_HELP into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SMAP_PRC
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM SMAP_PROCESS_F4_HELP - SMAP PROCESS F4 HELP





CALL FUNCTION 'SMAP_PROCESS_F4_HELP' "
  EXPORTING
    object_type =               " smapobject-type  Object Type
*   default_object_text = SPACE  " smapobject-text
*   display_f4_popup = 'X'      " hier_types-char1
*   multiple_selection = SPACE  " hier_types-char1
*   display_only = SPACE        " hier_types-char1  Single-Character Flag
*   w_deleted = SPACE           " hier_types-char1
*   result_display = SPACE      " bmf4result    Indicator for F4 Help
*   result_display_all = SPACE  " hier_types-char1  Single-Character Flag
*   result_display_generic = SPACE  " hier_types-char1  Single-Character Flag
* TABLES
*   e_selected_objects =        " smapobject    Solution Map: Object - General Attributes
  EXCEPTIONS
    CANCELLED = 1               "
    NO_OBJECT_FOUND = 2         "
    .  "  SMAP_PROCESS_F4_HELP

ABAP code example for Function Module SMAP_PROCESS_F4_HELP





The ABAP code below is a full code listing to execute function module SMAP_PROCESS_F4_HELP including all data declarations. The code uses 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 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:
it_e_selected_objects  TYPE STANDARD TABLE OF SMAPOBJECT,"TABLES PARAM
wa_e_selected_objects  LIKE LINE OF it_e_selected_objects .


DATA(ld_object_type) = some text here

DATA(ld_default_object_text) = some text here

DATA(ld_display_f4_popup) = some text here

DATA(ld_multiple_selection) = some text here

DATA(ld_display_only) = some text here

DATA(ld_w_deleted) = some text here
DATA(ld_result_display) = 'Check type of data required'.

DATA(ld_result_display_all) = some text here

DATA(ld_result_display_generic) = some text here

"populate fields of struture and append to itab
append wa_e_selected_objects to it_e_selected_objects. . CALL FUNCTION 'SMAP_PROCESS_F4_HELP' EXPORTING object_type = ld_object_type * default_object_text = ld_default_object_text * display_f4_popup = ld_display_f4_popup * multiple_selection = ld_multiple_selection * display_only = ld_display_only * w_deleted = ld_w_deleted * result_display = ld_result_display * result_display_all = ld_result_display_all * result_display_generic = ld_result_display_generic * TABLES * e_selected_objects = it_e_selected_objects EXCEPTIONS CANCELLED = 1 NO_OBJECT_FOUND = 2 . " SMAP_PROCESS_F4_HELP
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_object_type  TYPE SMAPOBJECT-TYPE ,
it_e_selected_objects  TYPE STANDARD TABLE OF SMAPOBJECT ,
wa_e_selected_objects  LIKE LINE OF it_e_selected_objects,
ld_default_object_text  TYPE SMAPOBJECT-TEXT ,
ld_display_f4_popup  TYPE HIER_TYPES-CHAR1 ,
ld_multiple_selection  TYPE HIER_TYPES-CHAR1 ,
ld_display_only  TYPE HIER_TYPES-CHAR1 ,
ld_w_deleted  TYPE HIER_TYPES-CHAR1 ,
ld_result_display  TYPE BMF4RESULT ,
ld_result_display_all  TYPE HIER_TYPES-CHAR1 ,
ld_result_display_generic  TYPE HIER_TYPES-CHAR1 .


ld_object_type = some text here

"populate fields of struture and append to itab
append wa_e_selected_objects to it_e_selected_objects.

ld_default_object_text = some text here

ld_display_f4_popup = some text here

ld_multiple_selection = some text here

ld_display_only = some text here

ld_w_deleted = some text here
ld_result_display = 'Check type of data required'.

ld_result_display_all = some text here

ld_result_display_generic = some text here

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 SMAP_PROCESS_F4_HELP or its description.