Get Example source ABAP code based on a different SAP table
ID OVERLAY • OVERLAY ABAP Statement • WITH OVERLAY • ONLY OVERLAY
OVERLAY> Short Reference >
ABAP_SYNTAX OVERLAY text1 WITH text2 $[ONLY mask$].>
What does it do? Characters in the variable text1> are replaced by the characters in the operand text2> that are in the same place there. text2 > is a character-like expression position>. If the addition ONLY> is not specified, all blanks in text1> are replaced. If the addition ONLY> is specified, all characters are replaced that occur in the operand mask>. This is case-sensitive. mask> is also a character-like expression position>. If the lengths of text1> and text2> are different, text1 > is processed using the shorter length only. The operands text1>, text2>, and mask> must be character-like operands. In operands of fixed length, trailing blanks are respected. If mask> is an empty string, no replacements are made. System Fields> sy-subrc>Meaning> 0At least one character in text1> has been replaced. 4No characters in text1> have been replaced.
ABAP_EXAMPLE_VX5 After the text> field has been assigned to the time> field, it contains the invalid time 12__00> due to the conversion rules>. As a result of the overlay with the initial_time> constants, the two blanks are replaced by 00> and the result is the valid time 120000>. ABEXA 00483 ABAP_EXAMPLE_END