cancel
Showing results for 
Search instead for 
Did you mean: 

Printing 500 char field in smartform

Former Member
0 Kudos

Hi Experts,

I want to print a field in smartform which has nearly 500 characters. But while printing the filed, I am getting only 256 characters and the rest is truncated.

Can any one let me know how I can print all the characters.

Thanks in Advance,

Satish

Accepted Solutions (0)

Answers (4)

Answers (4)

naimesh_patel
Active Contributor
0 Kudos

One way is: to fill one table from the variabel value and print the data from that table.

Create a Porgram lines

Split your text in smaller parts and fill the internal table. You can use FM RKD_WORD_WRAP for that

Create LOOP and assign the internal table there

Print the text.

Regards,

Naimesh Patel

Former Member
0 Kudos

Thanks Naimesh...

naimesh_patel
Active Contributor
0 Kudos

More that:

System calls FM SSFRT_SYMBOL_VALUE to write the symbol value. It has the exporting parameter O_SYMBOL_VALUE which has TYPE C. That field can only accomodate 255 characters So, SmartForm is not able to print more than 255 characters.

Regards,

Naimesh Patel

Former Member
0 Kudos

Thanks a lot Naimesh for the help.

Is there any other way round to print all the characters.

Thanks

naimesh_patel
Active Contributor
0 Kudos

I am able to print 500 char field. May be your window size is small and it prevents it to print more characters.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Naimesh,

I am printing it in main window.

Thanks,

Satish

naimesh_patel
Active Contributor
0 Kudos

Oh.. You seems to be right. I have tried with 500 hardcoded value instead of the variable.

I have tried with the variable and it seems it is only printing 256 characters.

So, try to print like:


&W_VAR+0(256)&&W_VAR+256(256)&

And it get printed.

Now, when I tried like:


&W_VAR+0(500)&

I got this exception raised and message:


Exception       FORMATTING_ERROR                                              
Message ID:          SSFCOMPOSER                Message number:           603 
Message:                                                                      
Field W_VAR: Output area not wide enough for field value                 

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Satish

You can store the text in standard text use save_text and then retrive in the smartform by read_text.

Regards

Naresh

Former Member
0 Kudos

Hi Naresh,

My field is obtained by concatenating different numbers into one field. So I cannot use standard text.

Thanks in Advance,

Satish

Former Member
0 Kudos

After concatenating you can save that field into Standard text.