cancel
Showing results for 
Search instead for 
Did you mean: 

Text not getting fully displayed in Smartform table cell.

karun_prabhu
Active Contributor
0 Kudos

I have a char2000 (opsdes_txt) variable that is displayed in the table cell in a smartform.

                              INTERNAL TABLE TEXTLINES0

TDFORMATTDLINE
*Chuck,face the end for squareness,turn od to d 42 mm
*Step turn to d 30 mm for 14 mm long.Repeat Step turning
*to D 26 mm for 4 mm long.Counter bore to d 19 mm for 2 mm
*long.After 14 mm long,turn OD to suit M 42 x 4.5  threads
*for 120 mm long &  chamfer edge to 4 X 45 deg.Reverse,
*face to maintain 334 mmlong & complete OD turning to D42 mm.
*Turn od to suit M 42 x 4.5 threads for 120 mm long &
*chamfer edge to 4 X 45 deg.Cut M 42 x 4.5 threads on 120 mm
*long in both ends as per drg.

          LOOP AT TEXTLINES0.

           if opsdes_txt is initial.

             opsdes_txt  = textlines0-tdline.

             CONDENSE opsdes_txt.

           else.

             CONDENSE textlines0-tdline.

             CONCATENATE OPSDES_TXT TEXTLINES0-TDLINE INTO OPSDES_TXT SEPARATED BY ' '.

             CONDENSE opsdes_txt.

           endif.

         ENDLOOP.

At the end of this loop, I expected  all lines to be in the variable opsdes_txt.

But while printing in table cell, only till 4th  line chamfer edge, it is printing.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

aidan_black
Active Contributor
0 Kudos

Hi,

In the ABAP debugger, what are the contents of opsdes_txt variable after the loop above is executed? Is the text already missing or is it somehow truncated in the processing of the smartform?

regards, Aidan

karun_prabhu
Active Contributor
0 Kudos

Please refer the attachments.

DEBUGGING:

In VAR_SHORT format, I can see only the data that gets displayed in the smartform.

Whereas in the VAR_HTML format, I can see the full data.

They are not very clear.

Former Member
0 Kudos

Hi Arun,

If I am not wrong , you are getting full text to be displayed in debugging but not in smart forms.

If yes then I believe this is causing due to some Printer Settings. Just do one thing , create a spool and get covert it into PDF through RSTXPDF4 and check.

-Rick

karun_prabhu
Active Contributor
0 Kudos

I am still getting the truncated data in PDF.

aidan_black
Active Contributor
0 Kudos

Hi,

This seems to be the limitation described in SAP note 485296. The output of a symbol is limitied to 255 characters in smartforms. So perhaps you can split the text into two symbols and putsomething like &opsdes_txt1&&opsdes_txt2& in the table field in the smartform.

regards,

Aidan

karun_prabhu
Active Contributor
0 Kudos

But I am getting 399 characters in the smartform.

However I solved my problem here by looping the internal table textlines0 and printing line by line.

But I could not understand what went wrong with the concatenation method into a single variable opsdes_txt.