Processing Character Fields Flashcards
What types of text in ABAP development objects may need to be translated for different end users?
Texts in ABAP development objects that may need to be translated for different end users include:
- Labels and headers from annotations in data definitions and metadata extensions.
- Labels from data elements.
- Messages from message classes.
How can you determine the original language of a development object in ABAP Development Tools?
you can find the original language of a development object on the Properties Tab below the editor view.
Are language-dependent texts in the ABAP source code translatable?
No, literals in the ABAP source code are not translatable by default. The content of literals remains the same, regardless of the logon language of the user.
What are text symbols and how are they stored?
Text symbols, also known as text elements, are stored in the text pool of global ABAP classes.
Each text symbol is identified by a unique three-character ID, which can consist of digits, letters, or a combination of both.
Text symbols are not case-sensitive and are stored in upper case in the text pool editor.
!!!
Do not confuse text IDs with message IDs. For messages in message classes only digits are allowed.
!!!
How can you access text symbols in ABAP?
There are two ways to access text symbols in ABAP:
Standalone: Using the text- syntax followed by the text ID.
Attached to a text literal: Placing the text ID inside a pair of brackets immediately after a text literal. If the text symbol exists in the loaded text pool, its content is used; otherwise, the literal is used as a fallback.
What is the significance of the maximum length defined for text symbols?
The maximum length of a text symbol defines a hard limit for the translator. It should be significantly higher than the actual length to avoid the need for cryptic abbreviations in translated text elements.
What are description functions?
These functions analyze the content of character-like input values and return a numeric value, typically of type integer. For example, the numofchar() function counts the number of characters in the input, ignoring trailing blanks.
What are processing functions?
These functions use the content of a character-like input value to derive a character-like result, usually of type string. For example, the replace() function scans the input value for a given substring and replaces it with another given substring if found.
What are predicate functions?
These functions analyze the content of a character-like input value and return a truth value. Predicate functions do not return a specific value because ABAP does not have a boolean type. They are used like logical expressions, such as in IF structures or WHERE-clauses.
What is the name of the main input parameter for built-in string functions when the input consists of several parameters?
In that case, the name of the main input parameter is always val.
What are the most important parameters used in built-in string functions?
VAL: Used to pass the text string to be processed.
SUB: Used to pass a character string to be searched for or inserted.
CASE: Determines whether searches and comparisons are case-sensitive.
OCC: Specifies the occurrence of a match in searches.
OFF: Specifies the offset for processing a substring.
LEN: Specifies the length of the substring to be processed.
Give an example for Description Functions
What are the differences between the length functions NUMOFCHAR() and STRLEN()?
While both NUMOFCHAR() and STRLEN() return the length of a string, STRLEN() includes trailing blanks in the result for strings with one or more blanks at the end, whereas NUMOFCHAR() ignores them. However, for arguments with fixed length, such as those of type C or N, both functions ignore trailing blanks.
Describe the two groups of search functions for strings.
COUNT() and COUNT_…(): These functions return the total number of occurrences of a search argument.
FIND() and FIND_…(): These functions return the position (offset) of one particular occurrence of a search argument.
Give an example for Processing Functions