Using CONDENSE to remove blank spaces in a string in ABAP


Using CONDENSE to remove blank spaces in SAP ABAP programming, string function CONDENSE

A+ A-

CONDENSE is a string function/keyword which is used to remove blank spaces in a given string.
Syntax: CONDENSE <STRING>.

Example of using CONDENSE

ZSAPN_CONSENSE.
DATA LV_STRING TYPE STRING.
LV_STRING = 'THIS IS STRING WITH SPACES'.
CONDENSE LV_STRING.
WRITE : LV_STRING. "out put will be THISISSTRINGWITHSPACES

Learner Questions

No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question


    Was this lesson helpful to you? Yes No 23 People out of 26 think this lesson helpful

    Lesson Navigation

    ←Previous Chapter
    Next Chapter →