cancel
Showing results for 
Search instead for 
Did you mean: 

TYPE of Methodparameter for Textelements (text-001)

Former Member
0 Kudos

Hello,

I'm trying to create an Importparameter with TYPE Textelement.

The call of the method should look like this:

testclass=>write( message = <b>text-001</b> ).

The question is which TYPE does the message parameter have to be.

Parameter: Message

Art: Importing

<b>Type: ?</b> (I tried C, STRING und ITEX132)

Any suggestions?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

The text element entry has a character data type of length 255. You can refer textpool structure in which it clearly shows that the entry length is 255.

Hence you can use the type textpool-entry.

Regards,

Srikanth

Former Member
0 Kudos

Hi,

Type : string will work for you.

Please see SAP standard message class : CL_MESSAGE_MM

this may help you.

Lanka

former_member188685
Active Contributor
0 Kudos

try type <b>LCHR</b> with length,

regards

vijay

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Dominik!

I guess, text-001 is more like a variable or key word. You have different options for an interface:

- you want to have a (ready) text, so write text-001 into helper_char and user helper_char in interface.

- you want to use the text element (because of several translations, ...), just forward the number and try to handle this generic. Generic might be, selecting the text manually based on report, number and language.

Regards,

Christian