SAP S_CUS_IMG_EXTERNAL_ENTRY Function Module for
S_CUS_IMG_EXTERNAL_ENTRY is a standard s cus img external entry 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 s cus img external entry FM, simply by entering the name S_CUS_IMG_EXTERNAL_ENTRY into the relevant SAP transaction such as SE37 or SE38.
Function Group: S_IMG_TOOL_3
Program Name: SAPLS_IMG_TOOL_3
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function S_CUS_IMG_EXTERNAL_ENTRY 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 'S_CUS_IMG_EXTERNAL_ENTRY'".
EXPORTING
* IMG_TO_DISPLAY = 'P' "
* PROJECT_NUMBER = ' ' "Object You Want to Navigate to
* PROJECT_INPUT_OBLIGATORY = ' ' "
* SHOW_ALL_ENTRIES_AT_ONCE = ' ' "Single-Character Flag
* ACTIVITY = 'M' "
* LANGUAGE = SY-LANGU "Language Key
* CALLED_BY_SOLUTION_MANAGER = ' ' "
IMPORTING
MESSAGE = "Transfer structure for messages
TABLES
* IMG_ACTIVITIES = "
* DOCU_IDS = "
* NODE_IDS = "
EXCEPTIONS
NO_ACTIVITIES_GIVEN = 1 NOT_FOUND_IN_IMG = 2 NOT_FOUND_IN_PROJECT = 3 NO_PROJECT_GIVEN = 4 PROJECT_IMG_NOT_GENERATED = 5 PROJECT_VIEW_NOT_GENERATED = 6
IMPORTING Parameters details for S_CUS_IMG_EXTERNAL_ENTRY
IMG_TO_DISPLAY -
Data type: CHAR1Default: 'P'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROJECT_NUMBER - Object You Want to Navigate to
Data type: PROJECT_IDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROJECT_INPUT_OBLIGATORY -
Data type: HIER_TYPES-CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_ALL_ENTRIES_AT_ONCE - Single-Character Flag
Data type: HIER_TYPES-CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVITY -
Data type: CHAR01Default: 'M'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE - Language Key
Data type: SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLED_BY_SOLUTION_MANAGER -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for S_CUS_IMG_EXTERNAL_ENTRY
MESSAGE - Transfer structure for messages
Data type: HIER_MESSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for S_CUS_IMG_EXTERNAL_ENTRY
IMG_ACTIVITIES -
Data type: CUS_IMGACHOptional: Yes
Call by Reference: No ( called with pass by value option)
DOCU_IDS -
Data type: HIER_REFOptional: Yes
Call by Reference: No ( called with pass by value option)
NODE_IDS -
Data type: HIER_IFACEOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_ACTIVITIES_GIVEN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND_IN_IMG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND_IN_PROJECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PROJECT_GIVEN -
Data type:Optional: No
Call by Reference: Yes
PROJECT_IMG_NOT_GENERATED -
Data type:Optional: No
Call by Reference: Yes
PROJECT_VIEW_NOT_GENERATED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for S_CUS_IMG_EXTERNAL_ENTRY 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_message | TYPE HIER_MESS, " | |||
| lt_img_activities | TYPE STANDARD TABLE OF CUS_IMGACH, " | |||
| lv_img_to_display | TYPE CHAR1, " 'P' | |||
| lv_no_activities_given | TYPE CHAR1, " | |||
| lt_docu_ids | TYPE STANDARD TABLE OF HIER_REF, " | |||
| lv_project_number | TYPE PROJECT_ID, " SPACE | |||
| lv_not_found_in_img | TYPE PROJECT_ID, " | |||
| lt_node_ids | TYPE STANDARD TABLE OF HIER_IFACE, " | |||
| lv_not_found_in_project | TYPE HIER_IFACE, " | |||
| lv_project_input_obligatory | TYPE HIER_TYPES-CHAR1, " SPACE | |||
| lv_no_project_given | TYPE HIER_TYPES, " | |||
| lv_show_all_entries_at_once | TYPE HIER_TYPES-CHAR1, " SPACE | |||
| lv_activity | TYPE CHAR01, " 'M' | |||
| lv_project_img_not_generated | TYPE CHAR01, " | |||
| lv_language | TYPE SPRAS, " SY-LANGU | |||
| lv_project_view_not_generated | TYPE SPRAS, " | |||
| lv_called_by_solution_manager | TYPE XFELD. " SPACE |
|   CALL FUNCTION 'S_CUS_IMG_EXTERNAL_ENTRY' " |
| EXPORTING | ||
| IMG_TO_DISPLAY | = lv_img_to_display | |
| PROJECT_NUMBER | = lv_project_number | |
| PROJECT_INPUT_OBLIGATORY | = lv_project_input_obligatory | |
| SHOW_ALL_ENTRIES_AT_ONCE | = lv_show_all_entries_at_once | |
| ACTIVITY | = lv_activity | |
| LANGUAGE | = lv_language | |
| CALLED_BY_SOLUTION_MANAGER | = lv_called_by_solution_manager | |
| IMPORTING | ||
| MESSAGE | = lv_message | |
| TABLES | ||
| IMG_ACTIVITIES | = lt_img_activities | |
| DOCU_IDS | = lt_docu_ids | |
| NODE_IDS | = lt_node_ids | |
| EXCEPTIONS | ||
| NO_ACTIVITIES_GIVEN = 1 | ||
| NOT_FOUND_IN_IMG = 2 | ||
| NOT_FOUND_IN_PROJECT = 3 | ||
| NO_PROJECT_GIVEN = 4 | ||
| PROJECT_IMG_NOT_GENERATED = 5 | ||
| PROJECT_VIEW_NOT_GENERATED = 6 | ||
| . " S_CUS_IMG_EXTERNAL_ENTRY | ||
ABAP code using 7.40 inline data declarations to call FM S_CUS_IMG_EXTERNAL_ENTRY
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.| DATA(ld_img_to_display) | = 'P'. | |||
| DATA(ld_project_number) | = ' '. | |||
| "SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_project_input_obligatory). | ||||
| DATA(ld_project_input_obligatory) | = ' '. | |||
| "SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_show_all_entries_at_once). | ||||
| DATA(ld_show_all_entries_at_once) | = ' '. | |||
| DATA(ld_activity) | = 'M'. | |||
| DATA(ld_language) | = SY-LANGU. | |||
| DATA(ld_called_by_solution_manager) | = ' '. | |||
Search for further information about these or an SAP related objects