Skip to Content
author's profile photo Former Member
Former Member

Problem with concatenate

Hi,

I have a problem with concatenae in Right to Left

The Problem is very simple

data: data1 type char02 value 'AA'.

data: data2 type char10 value '12345'.


data: result type char20.


concatenate data1 '-' data2 into result.


or


concatenate data2 '-' data1 into result.


The result doesn't change

Try it by Debug or display to screen.


The result is AA-12345


I want to display 12345-AA


in LTR it's working fine

if the values are 123-456 it's working fine 123-456 => 456-123

if the values are ABC-DEF it's working fine ABC-DEF => DEF-ABC


AA-12345 => AA-12345 I Want 12345-AA In Right to left not Left to Right


but Numbers and chars it's not change the direction


How to solve the issue?


Jermy


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 22, 2016 at 04:52 PM

    Hi Germi.

    I couldn't simulate your problem here (I created a second "result" variable), see:

    DATA: data1 TYPE char02 VALUE 'AA'.

    DATA: data2 TYPE char10 VALUE '12345'.

    DATA: result TYPE char20.

    DATA: result2 TYPE char20.

    CONCATENATE data1 '-' data2 INTO result.

    CONCATENATE data2 '-' data1 INTO result2.

    WRITE: result, result2.

    DISPLAYS:

    AA-12345 12345-AA

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 22, 2016 at 07:35 PM

    You can't do it directly whatever the programming language is. Same for ABAP.

    It can be done only at output time, and is valid only if you're logged in a RTL language.

    More info in note 587150 - Support of Arabic-script languages

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.