Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8989

How to display long text(min 1000chars) in an internal table in smartforms?

$
0
0

Dear All,

Scenario is like, more than 1000 chars needs to show in smartforms in an internal table. What i did,

 

data :       l_txt(1000) type c.

data :       v_txt1(132) TYPE c,
               v_txt2(132) TYPE c,
               v_txt3(132) TYPE c,
               v_txt4(132) TYPE c,
               v_txt5(132) TYPE c,
               v_txt6(132) TYPE c,
               v_txt7(132) TYPE c,
               v_txt8(132) TYPE c,
               v_txt9(132) TYPE c.

     loop at tlinetab.
        concatenate l_txt tlinetab-tdline INTO l_txt seperated by space.
    endloop.

         v_txt1 = l_txt+0(132).
         v_txt2 = l_txt+133(132).
         v_txt3 = l_txt+266(132).
         v_txt4 = l_txt+399(101).

         .........................

i did this because l_txt only showing 255 chars. But i need to show more than 1000 chars. I'm getting my desired output. But i want to know if there is any way to show long texts other than this way? Because here i have declared data type l_txt of length 1000. What if user gave input more than this length? Increasing again the length is not standard way. Please tell me if it is possible in other way?


With best regards.


Viewing all articles
Browse latest Browse all 8989

Trending Articles



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