Quantcast
Channel: SCN: Message List - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 2110

replace function in ABAP CDS

$
0
0

Hello all,

 

I try to display log messages in a IDA ALV based on a CDS view.

I have a log message table which contains the the message class, the message number and the values of the variables &1 to &4.

Afterwards I join table T100 and try to replace the variables of the message.

 

But when using the replace function  like this

     replace(MessageText ,'&1', MessageVariable1) as msgstring

I get the following error message when activating the view.

     "Number of positions > maximum number (1333) for data type CHAR"

 

Casting of the result seems to be ok but using nested replace statement, leads to the same error.

Any suggestions to solve this problem?

 

Regards

Klaus


Viewing all articles
Browse latest Browse all 2110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>