SAP GET_SAUF_WITH_INDEX Function Module for Manpower Planning II: Read SOP orders with index (from buffer SAUFX)
GET_SAUF_WITH_INDEX is a standard get sauf with index SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Manpower Planning II: Read SOP orders with index (from buffer SAUFX) 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 get sauf with index FM, simply by entering the name GET_SAUF_WITH_INDEX into the relevant SAP transaction such as SE37 or SE38.
Function Group: MCP8
Program Name: SAPLMCP8
Main Program:
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GET_SAUF_WITH_INDEX 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 'GET_SAUF_WITH_INDEX'"Manpower Planning II: Read SOP orders with index (from buffer SAUFX).
TABLES
CSAUF = "selected SOP orders(O)
CYFIL = "Filter table(I)
CYOUT = "Indexes of read SOP orders(O)
CYSEL = "Indexes for selecting(I)
EXCEPTIONS
NO_INDICES_SPECIFIED = 1 OBJECT_NOT_FOUND = 2
TABLES Parameters details for GET_SAUF_WITH_INDEX
CSAUF - selected SOP orders(O)
Data type: SAUFOptional: No
Call by Reference: No ( called with pass by value option)
CYFIL - Filter table(I)
Data type: CYFIL_TABOptional: No
Call by Reference: No ( called with pass by value option)
CYOUT - Indexes of read SOP orders(O)
Data type: CYSEL_OBJOptional: No
Call by Reference: No ( called with pass by value option)
CYSEL - Indexes for selecting(I)
Data type: CYSEL_OBJOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_INDICES_SPECIFIED - Index input table CYSEL empty
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECT_NOT_FOUND - No planned order for CYSEL index available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GET_SAUF_WITH_INDEX 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_csauf | TYPE STANDARD TABLE OF SAUF, " | |||
| lv_no_indices_specified | TYPE SAUF, " | |||
| lt_cyfil | TYPE STANDARD TABLE OF CYFIL_TAB, " | |||
| lv_object_not_found | TYPE CYFIL_TAB, " | |||
| lt_cyout | TYPE STANDARD TABLE OF CYSEL_OBJ, " | |||
| lt_cysel | TYPE STANDARD TABLE OF CYSEL_OBJ. " |
|   CALL FUNCTION 'GET_SAUF_WITH_INDEX' "Manpower Planning II: Read SOP orders with index (from buffer SAUFX) |
| TABLES | ||
| CSAUF | = lt_csauf | |
| CYFIL | = lt_cyfil | |
| CYOUT | = lt_cyout | |
| CYSEL | = lt_cysel | |
| EXCEPTIONS | ||
| NO_INDICES_SPECIFIED = 1 | ||
| OBJECT_NOT_FOUND = 2 | ||
| . " GET_SAUF_WITH_INDEX | ||
ABAP code using 7.40 inline data declarations to call FM GET_SAUF_WITH_INDEX
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.Search for further information about these or an SAP related objects