SAP CS_DU_SUI_MAX_NUMBER_PROVIDE Function Module for NOTRANSL: Bereitstellung der maximalen Unterpositionsnummer
CS_DU_SUI_MAX_NUMBER_PROVIDE is a standard cs du sui max number provide SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Bereitstellung der maximalen Unterpositionsnummer 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 cs du sui max number provide FM, simply by entering the name CS_DU_SUI_MAX_NUMBER_PROVIDE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CSDU
Program Name: SAPLCSDU
Main Program: SAPLCSDU
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CS_DU_SUI_MAX_NUMBER_PROVIDE 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 'CS_DU_SUI_MAX_NUMBER_PROVIDE'"NOTRANSL: Bereitstellung der maximalen Unterpositionsnummer.
EXPORTING
I_STLTY = "BOM Category
I_STLNR = "Bill of Material
I_STLKN = "BOM item node number
I_STPOZ = "Internal Counter
IMPORTING
E_SUI_MAX_UPOSZ = "Subitem Number
IMPORTING Parameters details for CS_DU_SUI_MAX_NUMBER_PROVIDE
I_STLTY - BOM Category
Data type: SUI_CLASS_DATA-STLTYOptional: No
Call by Reference: No ( called with pass by value option)
I_STLNR - Bill of Material
Data type: SUI_CLASS_DATA-STLNROptional: No
Call by Reference: No ( called with pass by value option)
I_STLKN - BOM item node number
Data type: SUI_CLASS_DATA-STLKNOptional: No
Call by Reference: No ( called with pass by value option)
I_STPOZ - Internal Counter
Data type: SUI_CLASS_DATA-STPOZOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CS_DU_SUI_MAX_NUMBER_PROVIDE
E_SUI_MAX_UPOSZ - Subitem Number
Data type: SUI_CLASS_DATA-UPOSZOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CS_DU_SUI_MAX_NUMBER_PROVIDE 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_i_stlty | TYPE SUI_CLASS_DATA-STLTY, " | |||
| lv_e_sui_max_uposz | TYPE SUI_CLASS_DATA-UPOSZ, " | |||
| lv_i_stlnr | TYPE SUI_CLASS_DATA-STLNR, " | |||
| lv_i_stlkn | TYPE SUI_CLASS_DATA-STLKN, " | |||
| lv_i_stpoz | TYPE SUI_CLASS_DATA-STPOZ. " |
|   CALL FUNCTION 'CS_DU_SUI_MAX_NUMBER_PROVIDE' "NOTRANSL: Bereitstellung der maximalen Unterpositionsnummer |
| EXPORTING | ||
| I_STLTY | = lv_i_stlty | |
| I_STLNR | = lv_i_stlnr | |
| I_STLKN | = lv_i_stlkn | |
| I_STPOZ | = lv_i_stpoz | |
| IMPORTING | ||
| E_SUI_MAX_UPOSZ | = lv_e_sui_max_uposz | |
| . " CS_DU_SUI_MAX_NUMBER_PROVIDE | ||
ABAP code using 7.40 inline data declarations to call FM CS_DU_SUI_MAX_NUMBER_PROVIDE
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.| "SELECT single STLTY FROM SUI_CLASS_DATA INTO @DATA(ld_i_stlty). | ||||
| "SELECT single UPOSZ FROM SUI_CLASS_DATA INTO @DATA(ld_e_sui_max_uposz). | ||||
| "SELECT single STLNR FROM SUI_CLASS_DATA INTO @DATA(ld_i_stlnr). | ||||
| "SELECT single STLKN FROM SUI_CLASS_DATA INTO @DATA(ld_i_stlkn). | ||||
| "SELECT single STPOZ FROM SUI_CLASS_DATA INTO @DATA(ld_i_stpoz). | ||||
Search for further information about these or an SAP related objects