SAP PROCESS_SERIALS_FOR_PRINT Function Module for NOTRANSL: Aufbereitung der Serialnummern für den Druck
PROCESS_SERIALS_FOR_PRINT is a standard process serials for print 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: Aufbereitung der Serialnummern für den Druck 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 process serials for print FM, simply by entering the name PROCESS_SERIALS_FOR_PRINT into the relevant SAP transaction such as SE37 or SE38.
Function Group: IPW0
Program Name: SAPLIPW0
Main Program: SAPLIPW0
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PROCESS_SERIALS_FOR_PRINT 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 'PROCESS_SERIALS_FOR_PRINT'"NOTRANSL: Aufbereitung der Serialnummern für den Druck.
EXPORTING
* I_BOUNDARY_LEFT = '(_' "
* I_DIGITS = '0123456789' "
* I_SPECIAL_CHARS = '-' "
* I_WITH_SECOND_DIGIT = ' ' "
* I_BOUNDARY_RIGHT = '_)' "
* I_SEP_CHAR_STRINGS = ',_' "
* I_SEP_CHAR_INTERVAL = '_-_' "
* I_USE_INTERVAL = 'X' "
* I_BOUNDARY_METHOD = 'C' "
I_LINE_LENGTH = "
* I_NO_ZERO = 'X' "
I_ALPHABET = "
TABLES
SERIALS = "
SERIALS_PRINT = "
EXCEPTIONS
STRING_WITH_WRONG_CHAR = 1 TWO_EQUAL_SERIALS = 10 SERIAL_WITH_WRONG_CHAR = 11 SERIAL_SEPARATION_MISSING = 12 TWO_EQUAL_STRINGS = 2 WRONG_STRING = 3 BOUNDARY_MISSING = 4 INTERVAL_SEPARATION_MISSING = 5 LENGTH_TO_SMALL = 6 INTERNAL_ERROR = 7 WRONG_METHOD = 8 WRONG_SERIAL = 9
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLIPW0_001 Object Permissible for Contract (Copying of Order/Maintenance Order)
EXIT_SAPLIPW0_002 Object Permissible for Order (Copying of Maint. Order/Maint. Order)
EXIT_SAPLIPW0_003 Object Permissible for Contract (Maintenance of Maintenance Contract)
IMPORTING Parameters details for PROCESS_SERIALS_FOR_PRINT
I_BOUNDARY_LEFT -
Data type: CDefault: '(_'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DIGITS -
Data type: CLIKEDefault: '0123456789'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SPECIAL_CHARS -
Data type: CLIKEDefault: '-'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WITH_SECOND_DIGIT -
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BOUNDARY_RIGHT -
Data type: CDefault: '_)'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SEP_CHAR_STRINGS -
Data type: CDefault: ',_'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SEP_CHAR_INTERVAL -
Data type: CDefault: '_-_'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_USE_INTERVAL -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BOUNDARY_METHOD -
Data type: CDefault: 'C'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LINE_LENGTH -
Data type: SY-COLNOOptional: No
Call by Reference: No ( called with pass by value option)
I_NO_ZERO -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ALPHABET -
Data type: SYABCDEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PROCESS_SERIALS_FOR_PRINT
SERIALS -
Data type: RISERLSOptional: No
Call by Reference: No ( called with pass by value option)
SERIALS_PRINT -
Data type: KOMSEROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
STRING_WITH_WRONG_CHAR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TWO_EQUAL_SERIALS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SERIAL_WITH_WRONG_CHAR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SERIAL_SEPARATION_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TWO_EQUAL_STRINGS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_STRING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BOUNDARY_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERVAL_SEPARATION_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LENGTH_TO_SMALL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Error While Preparing Printout
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_METHOD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_SERIAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PROCESS_SERIALS_FOR_PRINT 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_serials | TYPE STANDARD TABLE OF RISERLS, " | |||
| lv_i_boundary_left | TYPE C, " '(_' | |||
| lv_string_with_wrong_char | TYPE C, " | |||
| lv_i_digits | TYPE CLIKE, " '0123456789' | |||
| lv_two_equal_serials | TYPE CLIKE, " | |||
| lv_i_special_chars | TYPE CLIKE, " '-' | |||
| lv_serial_with_wrong_char | TYPE CLIKE, " | |||
| lv_i_with_second_digit | TYPE XFELD, " ' ' | |||
| lv_serial_separation_missing | TYPE XFELD, " | |||
| lt_serials_print | TYPE STANDARD TABLE OF KOMSER, " | |||
| lv_i_boundary_right | TYPE C, " '_)' | |||
| lv_two_equal_strings | TYPE C, " | |||
| lv_wrong_string | TYPE C, " | |||
| lv_i_sep_char_strings | TYPE C, " ',_' | |||
| lv_boundary_missing | TYPE C, " | |||
| lv_i_sep_char_interval | TYPE C, " '_-_' | |||
| lv_i_use_interval | TYPE XFELD, " 'X' | |||
| lv_interval_separation_missing | TYPE XFELD, " | |||
| lv_length_to_small | TYPE XFELD, " | |||
| lv_i_boundary_method | TYPE C, " 'C' | |||
| lv_i_line_length | TYPE SY-COLNO, " | |||
| lv_internal_error | TYPE SY, " | |||
| lv_i_no_zero | TYPE XFELD, " 'X' | |||
| lv_wrong_method | TYPE XFELD, " | |||
| lv_i_alphabet | TYPE SYABCDE, " | |||
| lv_wrong_serial | TYPE SYABCDE. " |
|   CALL FUNCTION 'PROCESS_SERIALS_FOR_PRINT' "NOTRANSL: Aufbereitung der Serialnummern für den Druck |
| EXPORTING | ||
| I_BOUNDARY_LEFT | = lv_i_boundary_left | |
| I_DIGITS | = lv_i_digits | |
| I_SPECIAL_CHARS | = lv_i_special_chars | |
| I_WITH_SECOND_DIGIT | = lv_i_with_second_digit | |
| I_BOUNDARY_RIGHT | = lv_i_boundary_right | |
| I_SEP_CHAR_STRINGS | = lv_i_sep_char_strings | |
| I_SEP_CHAR_INTERVAL | = lv_i_sep_char_interval | |
| I_USE_INTERVAL | = lv_i_use_interval | |
| I_BOUNDARY_METHOD | = lv_i_boundary_method | |
| I_LINE_LENGTH | = lv_i_line_length | |
| I_NO_ZERO | = lv_i_no_zero | |
| I_ALPHABET | = lv_i_alphabet | |
| TABLES | ||
| SERIALS | = lt_serials | |
| SERIALS_PRINT | = lt_serials_print | |
| EXCEPTIONS | ||
| STRING_WITH_WRONG_CHAR = 1 | ||
| TWO_EQUAL_SERIALS = 10 | ||
| SERIAL_WITH_WRONG_CHAR = 11 | ||
| SERIAL_SEPARATION_MISSING = 12 | ||
| TWO_EQUAL_STRINGS = 2 | ||
| WRONG_STRING = 3 | ||
| BOUNDARY_MISSING = 4 | ||
| INTERVAL_SEPARATION_MISSING = 5 | ||
| LENGTH_TO_SMALL = 6 | ||
| INTERNAL_ERROR = 7 | ||
| WRONG_METHOD = 8 | ||
| WRONG_SERIAL = 9 | ||
| . " PROCESS_SERIALS_FOR_PRINT | ||
ABAP code using 7.40 inline data declarations to call FM PROCESS_SERIALS_FOR_PRINT
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_i_boundary_left) | = '. | |||
| DATA(ld_i_digits) | = '0123456789'. | |||
| DATA(ld_i_special_chars) | = '-'. | |||
| DATA(ld_i_with_second_digit) | = ' '. | |||
| DATA(ld_i_boundary_right) | = '_)'. | |||
| DATA(ld_i_sep_char_strings) | = ',_'. | |||
| DATA(ld_i_sep_char_interval) | = '_-_'. | |||
| DATA(ld_i_use_interval) | = 'X'. | |||
| DATA(ld_i_boundary_method) | = 'C'. | |||
| "SELECT single COLNO FROM SY INTO @DATA(ld_i_line_length). | ||||
| DATA(ld_i_no_zero) | = 'X'. | |||
Search for further information about these or an SAP related objects