SAP Managed Tags: ABAP Development Hello, I got it with new open SQL Syntax avalaible from enhancement 740. For example: Table ZHR_EXAMPLE_TABLE2 has the column ID_EMPLEADO with 6 characters instead of 8 like PERNR in table ZHR_EXAMPLE_TABLE1. SELECT T0~COLUMN1, T0~COLUMN2, T0~COLUMN...
Syntax Forms 1... substring(val = text[off = off][len = len]) ... 2... substring_from(val = text{sub = substring}|{regex = regex} [case = case][occ = occ][len = len]) ... 3... substring_after(val = text{sub = substring}|{regex = regex} [case...
ABAP - Keyword Documentation→ABAP - Reference→Obsolete Language Elements→Obsolete Processing of Internal Data→Obsolete Character String and Byte String Processing→ Obsolete Syntax REPLACE substring WITH new INTO dobj [IN{BYTE|CHARACTER}MODE]
SAP Managed Tags: ABAP Development Hi, there is no standad ABAP command which supports this. You need to get length of string with STRLEN and then convert it proper index. Another solution could be to reverse string and then use standard syntax. Cheers Reply Former Member 2010 Aug 04...
If the prerequisites are not met or if the subarea defined by off and len is not completely contained in the data object (except in the case of ASSIGN), a syntax error occurs (if statically identifiable). Otherwise, an exception of the class CX_SY_RANGE_OUT_OF_BOUNDS is raised. If ...
SAP Managed Tags: ABAP Development Hi, Use Split command. Syntax SPLIT <c> AT INTO <c1>... <cn> INTO TABLE . Searches the field <c> for the character and places the partial fields before and after into the target fields <c1> … <cn>, or into a new line of the internal t...
Syntaxformen 1... substring(val = text[off = off][len = len]) ... 2... substring_from(val = text{sub = substring}|{regex = regex} [case = case][occ = occ][len = len]) ... 3... substring_after(val = text{sub = substring}|{regex = regex} [case...
Obsolete Syntax REPLACE substring WITH new INTO dobj [IN{BYTE|CHARACTER}MODE] [LENGTH len]. Extras: Effect This statement scans a character string or byte chaindobjfor the substring specified insubstringand replaces the first character sequence or byte sequence indobjthat matchessubstringwith the ...