Skip to Content
Jul 16, 2019 at 10:47 AM

[ABAP] Extract first four characters of EDID4-SDATA field


Dear ABAP Experts,

I'm facing some issues to extract iDOC Data.

EDID4-SDATA is troublesome due to its length.

Attached is the line i would like to extract from EDID4 table -> the first four characters of this field.

I can retrieve the idoc number (DOCNUM) without any problem and SEGNAM = 'ZEDKARCHIVE' always.

Can you please elaborate ABAP-Wise how this can be achieved?


Best regards,

Shérif Baldé