Skip to Content
Jun 09 at 05:41 PM

Reading last 3 characters of the contents inside a variable in ABAP


Hi Experts,

I have an enhancement request where I need to read the last '3' characters of all the individual IDs contained inside a variable LV_VALIDATION_TEAM.

Additionally, I will have to take those "Last 3 characters" of each ID and run them through a established set of IF statement conditions.

Currently my code does not recognize that there are multiple IDs contained within the variable and only reads the last 3 character of the last record. I believe I need to loop my current code along with my IF conditions but I am clueless onto how to do it. Any help is greatly appreciated. Thanks



image-badi-5.png (100.0 kB)