Skip to Content
0
Former Member
Feb 04, 2009 at 08:41 AM

How to insert a space into a string?

10823 Views

Hello everyone,

I have a problem inserting a space into a string. It has to be between gs_ma-prename and gs_ma-name.

I don't want to use "SEPARATED BY SPACE" at the end, because that's not the layout I want and just ' ' doesn't work...

DATA lv_body TYPE string.

  CONCATENATE 'Bitte genehmigen.'
  CL_ABAP_CHAR_UTILITIES=>NEWLINE
  CL_ABAP_CHAR_UTILITIES=>NEWLINE
  'Mit freundlichen Grüßen'
  CL_ABAP_CHAR_UTILITIES=>NEWLINE
  CL_ABAP_CHAR_UTILITIES=>NEWLINE
  gs_ma-prename gs_ma-name
  INTO lv_body.

Thanks for help!

Best regards!