2016 Mar 14 2:02 PM
Hello Experts,
I'm passing 500 length character field from driver program to smartform.
But only around 300 characters(definitely more than 255) are getting printed.
All declarations are proper. I'm getting the text from read_text and appending to a variable in workarea, passing total workarea to smartform.
Debugged the SMARTFORM itself. the workarea-variable is filled properly. But only while displaying it gets truncated.
I've declared table to display the text as table line expands based on value length.
Thanks in advance.
Sriram
Hello Experts,
I'm passing 500 length character field from driver program to smartform.
But only around 300 characters(definitely more than 255) are getting printed.
All declarations are proper. I'm getting the text from read_text and appending to a variable in workarea, passing total workarea to smartform.
Debugged the SMARTFORM itself. the workarea-variable is filled properly. But only while displaying it gets truncated.
I've declared table to display the text as table line expands based on value length.
Thanks in advance.
Sriram
2016 Mar 14 2:04 PM
2016 Mar 14 2:26 PM
If you already have the text as a text object - which I understand you have, because you are using READ_TEXT - you should just include that text object in the Smartform directly, without doing the concatenation.
Thanks,
Juwin
2016 Mar 14 2:42 PM
I use read_text to get standard text into a variable and then passing it to smartform.
2016 Mar 14 2:45 PM
That's what I said, you don't have to do that. You can directly include the text object inside smartform.
Thanks.
2016 Mar 14 2:50 PM
2016 Mar 14 2:53 PM
Have a look at: http://saptechnical.com/Tutorials/Smartforms/Text/Index.htm
Thanks
2016 Mar 14 2:57 PM
thanks,
But do you think we can pass object id name dynamically in this approach?
2016 Mar 14 3:00 PM
Absolutely yes, use & signs for passing the variable.
Thanks.
2016 Mar 15 8:47 AM
Thanks that's a good idea. But while displaying the text I'm doing lot of validations in text like, when text line contains word "comments" I wont be printing that line.
And if text has time format like XX:XX:XX, I wont display that line.
So how to handle these things in include text in smartform?
2016 Mar 15 12:40 PM
You can't do that with include text. In that case, instead of concatenating the text lines into a big string, keep it as an internal table itself and then create a loop inside the smartform to print the table line contents.
Thanks, Juwin
2016 Mar 15 12:44 PM
Yes that's one way. I'm now saving the altered text in one z-text object and use that as include text in smartform.
Thanks for your replies.
I just wanted to know why it is not printing all characters in my previous approach.
2016 Mar 15 12:51 PM
2016 Mar 15 11:22 AM
Hi,
please try like below with condense.
&WA_FINAL-REMOVAL_REASON(C)&
Regards.
Palaniyappan.S
2016 Mar 15 12:40 PM
Condense just reduce spaces in front. Anyway, it didn't work