ARTIClE
Dynpros, Strings
The example demonstrates how to link strings to dynpro fields.
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
The static next-screen number of dynpro 100 is 0. There are four input
fields STRING1 , STRING2 , CHAR1 and CHAR2 of
type CHAR with a length of 10. In the dynpro flow logic no
modules are called.
When executing the program, the screen is displayed with the values
"123" and "1234567890" in the fields STRING1/CHAR1 and
STRING2/CHAR2 . After confirming with Continue , a list
appears that displays the length of the content of the respective ABAP
fields at PBO and PAI .
At PBO , STRING1 contains ten characters, seven of which
are terminating blanks. These are lost during the assignment to
CHAR1 and the character length of CHAR1 is only three.
At PAI , STRING1 contains only three characters, because
the blanks are suppressed during the transport to and from the dynpro.
Both with STRING2 and with CHAR2 all characters that do
not fit into the respective dynpro fields, are truncated.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved