SAP STRING TEMPLATE WIDTH ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_STRINGTMPL - Specified Length
This example demonstrates how to specify a length for embedded expressions.

ABAP_SOURCE_CODE
DEMO CL_DEMO_STR_TEMPLATE_WIDTH

ABAP_DESCRIPTION
Two iteration expressions perform the built-in function substring for the system field sy-abcde in an embedded expression of a string template. The first iteration calculates the length from the length of the substring plus a fixed value. The second iteration constantly sets the length to half the length of the full string and is therefore ignored for longer substring accesses.