SAP F4_MACO_MULTI_OBJECT_IDS Function Module for Choice of IDs from several MC objects









F4_MACO_MULTI_OBJECT_IDS is a standard f4 maco multi object ids SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Choice of IDs from several MC objects 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 f4 maco multi object ids FM, simply by entering the name F4_MACO_MULTI_OBJECT_IDS into the relevant SAP transaction such as SE37 or SE38.

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



Function F4_MACO_MULTI_OBJECT_IDS 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 'F4_MACO_MULTI_OBJECT_IDS'"Choice of IDs from several MC objects
EXPORTING
* F4_MACO_EXEC = ' ' "Execute Matchcode help
* TITEL = "Title
* DISPLAY_ONLY = ' ' "Display only

IMPORTING
RETURN_VALUE = "Chosen object and ID
F4_MACO_RETURN = "Matchcode help return value

TABLES
LIST_OF_OBJS_AND_IDS = "Table of Pseudo-IDs, Objects, IDs, Texts

EXCEPTIONS
UNKNOWN_ID = 1 USER_CANCEL = 2 NO_DATA_FOUND = 3 INTERNAL_ERROR = 4
.



IMPORTING Parameters details for F4_MACO_MULTI_OBJECT_IDS

F4_MACO_EXEC - Execute Matchcode help

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

TITEL - Title

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

DISPLAY_ONLY - Display only

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

EXPORTING Parameters details for F4_MACO_MULTI_OBJECT_IDS

RETURN_VALUE - Chosen object and ID

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

F4_MACO_RETURN - Matchcode help return value

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

TABLES Parameters details for F4_MACO_MULTI_OBJECT_IDS

LIST_OF_OBJS_AND_IDS - Table of Pseudo-IDs, Objects, IDs, Texts

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

EXCEPTIONS details

UNKNOWN_ID - ID does not exist or is not active

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

USER_CANCEL - Cancel object selection list

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

NO_DATA_FOUND - No Matchcode help values

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

INTERNAL_ERROR - Internal error

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

Copy and paste ABAP code example for F4_MACO_MULTI_OBJECT_IDS 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_unknown_id  TYPE STRING, "   
lv_f4_maco_exec  TYPE STRING, "   ' '
lv_return_value  TYPE F4TYP_MULT_OBJ_ID_RETURN, "   
lt_list_of_objs_and_ids  TYPE STANDARD TABLE OF F4TYP_MULT_OBJ_ID, "   
lv_titel  TYPE F4TYP_MULT_OBJ_ID, "   
lv_user_cancel  TYPE F4TYP_MULT_OBJ_ID, "   
lv_f4_maco_return  TYPE RSMDY2-MCFLDVALS, "   
lv_display_only  TYPE RSMDY2, "   ' '
lv_no_data_found  TYPE RSMDY2, "   
lv_internal_error  TYPE RSMDY2. "   

  CALL FUNCTION 'F4_MACO_MULTI_OBJECT_IDS'  "Choice of IDs from several MC objects
    EXPORTING
         F4_MACO_EXEC = lv_f4_maco_exec
         TITEL = lv_titel
         DISPLAY_ONLY = lv_display_only
    IMPORTING
         RETURN_VALUE = lv_return_value
         F4_MACO_RETURN = lv_f4_maco_return
    TABLES
         LIST_OF_OBJS_AND_IDS = lt_list_of_objs_and_ids
    EXCEPTIONS
        UNKNOWN_ID = 1
        USER_CANCEL = 2
        NO_DATA_FOUND = 3
        INTERNAL_ERROR = 4
. " F4_MACO_MULTI_OBJECT_IDS




ABAP code using 7.40 inline data declarations to call FM F4_MACO_MULTI_OBJECT_IDS

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_f4_maco_exec) = ' '.
 
 
 
 
 
"SELECT single MCFLDVALS FROM RSMDY2 INTO @DATA(ld_f4_maco_return).
 
DATA(ld_display_only) = ' '.
 
 
 


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!