SAP DYNPRO STRINGS ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_DYNPRO - Strings
This example demonstrates how to bind strings to dynpro fields.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The static next dynpro number of dynpro 100 is 0. There are four input fields STRING1, STRING2, CHAR1, and CHAR2 of type CHAR with a length of 10. No modules are called in the dynpro flow logic.
When the program is executed, the screen layout 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 associated ABAP fields at PBO and PAI.
At PBO, STRING1 contains ten characters, seven of which are trailing 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.
In both STRING2 and CHAR2, all characters that do not fit into the corresponding dynpro fields are cut off.