Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Text Elements

Former Member
0 Kudos
89

Hi All..

I have a code as follows..

value2-key = 'Incomplete Information'.

APPEND value2 TO it_rejcode.

value2-key = 'Processing Error'.

APPEND value2 TO it_rejcode.

Now need to know about HOW TO PASS the Text ('Incomplete Information') through Text Elements..???

If i use the code as it is, it shows Error in Code Inspector..

Hence need to tune up the Performance of the code by avoiding such Text in the Editor.

Please Help me out....

1 ACCEPTED SOLUTION

Former Member
0 Kudos
59

Hi

The right code is like this:

value2-key = text-001. (Text element 001)

APPEND value2 TO it_rejcode.

value2-key = text-002. (Text element 001)

APPEND value2 TO it_rejcode.

Where text elements:

text-001 = Incomplete Information

text-002 = Processing Error

If you want to leave the descriptions in the abap code you can write:

value2-key = 'Incomplete Information'(001).

APPEND value2 TO it_rejcode.

value2-key = 'Processing Error'(002).

APPEND value2 TO it_rejcode.

Do a doubleclick on 001 and 002 and the system'll create the text elements 001 and 002.

Max

1 REPLY 1

Former Member
0 Kudos
60

Hi

The right code is like this:

value2-key = text-001. (Text element 001)

APPEND value2 TO it_rejcode.

value2-key = text-002. (Text element 001)

APPEND value2 TO it_rejcode.

Where text elements:

text-001 = Incomplete Information

text-002 = Processing Error

If you want to leave the descriptions in the abap code you can write:

value2-key = 'Incomplete Information'(001).

APPEND value2 TO it_rejcode.

value2-key = 'Processing Error'(002).

APPEND value2 TO it_rejcode.

Do a doubleclick on 001 and 002 and the system'll create the text elements 001 and 002.

Max