Ansicht
Dokumentation
ABENSTRING_PROCESSING_TRAIL_BLANKS - STRING PROCESSING TRAIL BLANKS
General Data in Customer Master Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Trailing Blanks in Character String Processing
In statements for character string processing, leading blanks for operands of data types with fixed lengths (c, n, d, and t or character-like structures) are generally preserved and trailing blanks are truncated. Exceptions to this rule are explained in the affected statements. All blanks are generally preserved for operands of the data type string.
If the result of a statement for character string processing is assigned to an operand, it is generally padded on the right with blanks if the result is shorter than the length of the operand. Assignments to a string generally adapt the string length to the length of the result. Exceptions to this rule are explained in the affected statements.
Do not use trailing blanks in text field literals
Notes
- Truncating trailing blanks especially affects the text field literal ' ' and the constant space. These should therefore never be listed in operand positions where trailing blanks are truncated.
- In result fields that are too long, padding with blanks can produce invalid values, if the fields have the type n, d, or t.
- The preservation of trailing blanks can be forced for assignments using the addition RESPECTING BLANKS of the statement CONCATENATE.
The result of the following concatenation is a string with exactly one blank. The blank characters in space and ' ' are ignored. At the operand position after SEPARATED BY however, the blank character that is contained explicitly in '' is not ignored. If the addition RESPECTING BLANKS was used, the result would be a string with three blanks.
RFUMSV00 - Advance Return for Tax on Sales/Purchases CPI1466 during Backup
This documentation is copyright by SAP AG.
Length: 2298 Date: 20240426 Time: 094940 sap01-206 ( 44 ms )