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

Function PROCESS_STRINGS_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_STRINGS_FOR_PRINT'"NOTRANSL: Aufbereitung von Strings für die Ausgabe.
EXPORTING
* I_BOUNDARY_LEFT = '(_' "
* I_DIGITS = '0123456789' "
* I_SPECIAL_CHARS = '-' "
* I_WITH_SECOND_DIGIT = ' ' "Checkbox
* I_BOUNDARY_RIGHT = '_)' "
* I_SEP_CHAR_STRINGS = ',_' "
* I_SEP_CHAR_INTERVAL = '_-_' "
* I_USE_INTERVAL = 'X' "Checkbox
* I_BOUNDARY_METHOD = 'C' "
I_LINE_LENGTH = "
* I_NO_ZERO = 'X' "Checkbox
I_ALPHABET = "Constant: Alphabet (A,B,C,...)
TABLES
STRING_IN = "String Table
STRING_OUT = "String Table
EXCEPTIONS
DIGITS_MISSING = 1 STRING_SEPARATION_MISSING = 10 BOUNDARY_MISSING = 2 INTERVAL_SEPARATION_MISSING = 3 LENGTH_TO_SMALL = 4 INTERNAL_ERROR = 5 WRONG_METHOD = 6 WRONG_STRING = 7 TWO_EQUAL_STRINGS = 8 STRING_WITH_WRONG_CHAR = 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_STRINGS_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 - Checkbox
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 - Checkbox
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 - Checkbox
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ALPHABET - Constant: Alphabet (A,B,C,...)
Data type: SYABCDEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PROCESS_STRINGS_FOR_PRINT
STRING_IN - String Table
Data type:Optional: No
Call by Reference: Yes
STRING_OUT - String Table
Data type:Optional: No
Call by Reference: Yes
EXCEPTIONS details
DIGITS_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STRING_SEPARATION_MISSING -
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 -
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_STRING -
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)
STRING_WITH_WRONG_CHAR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PROCESS_STRINGS_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_string_in | TYPE STANDARD TABLE OF STRING, " | |||
| lv_digits_missing | TYPE STRING, " | |||
| lv_i_boundary_left | TYPE C, " '(_' | |||
| lv_i_digits | TYPE CLIKE, " '0123456789' | |||
| lv_string_separation_missing | TYPE CLIKE, " | |||
| lv_i_special_chars | TYPE CLIKE, " '-' | |||
| lv_i_with_second_digit | TYPE XFELD, " ' ' | |||
| lt_string_out | TYPE STANDARD TABLE OF XFELD, " | |||
| lv_boundary_missing | TYPE XFELD, " | |||
| lv_i_boundary_right | TYPE C, " '_)' | |||
| lv_i_sep_char_strings | TYPE C, " ',_' | |||
| lv_interval_separation_missing | TYPE C, " | |||
| lv_length_to_small | TYPE C, " | |||
| lv_i_sep_char_interval | TYPE C, " '_-_' | |||
| lv_internal_error | TYPE C, " | |||
| lv_i_use_interval | TYPE XFELD, " 'X' | |||
| lv_wrong_method | TYPE XFELD, " | |||
| lv_i_boundary_method | TYPE C, " 'C' | |||
| lv_wrong_string | TYPE C, " | |||
| lv_i_line_length | TYPE SY-COLNO, " | |||
| lv_i_no_zero | TYPE XFELD, " 'X' | |||
| lv_two_equal_strings | TYPE XFELD, " | |||
| lv_i_alphabet | TYPE SYABCDE, " | |||
| lv_string_with_wrong_char | TYPE SYABCDE. " |
|   CALL FUNCTION 'PROCESS_STRINGS_FOR_PRINT' "NOTRANSL: Aufbereitung von Strings für die Ausgabe |
| 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 | ||
| STRING_IN | = lt_string_in | |
| STRING_OUT | = lt_string_out | |
| EXCEPTIONS | ||
| DIGITS_MISSING = 1 | ||
| STRING_SEPARATION_MISSING = 10 | ||
| BOUNDARY_MISSING = 2 | ||
| INTERVAL_SEPARATION_MISSING = 3 | ||
| LENGTH_TO_SMALL = 4 | ||
| INTERNAL_ERROR = 5 | ||
| WRONG_METHOD = 6 | ||
| WRONG_STRING = 7 | ||
| TWO_EQUAL_STRINGS = 8 | ||
| STRING_WITH_WRONG_CHAR = 9 | ||
| . " PROCESS_STRINGS_FOR_PRINT | ||
ABAP code using 7.40 inline data declarations to call FM PROCESS_STRINGS_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