‎2006 Jun 02 3:00 PM
I get text using the read text FM in Smartforms into an Internal table of type TLINE.
Then I create a Loop node and loop the contents into a structure of type TLINE . In the loop node i create a Text node and try to display the content of the structure : & wa_txt-tdline &. On the form when i got to print preview it prints '& wa_txt-tdline &' as it is and is not prinitng the value .
I also debugged to see it the wa_txt gets populated ..and i found that it does have the value .
Can anyone tell the solution to this .
Thanks
‎2006 Jun 02 3:01 PM
‎2006 Jun 02 3:04 PM
‎2006 Jun 02 3:08 PM
Hi
have you defined the global interface parameter for your work area..jus check it..
Cheers,
Abdul Hakim
‎2006 Jun 02 3:21 PM
I used the Insert Field option and it worked
Whn I loop through the table into a structure and print it ( i included a text node in the loop ) , it somehow prints only the first line ...how do we print the multiple lines from a table ????
‎2006 Jun 02 3:26 PM
Hi,
Quick question, Why are you not using the INCLUDE TEXT option of the text element and just pass the TDNAME, TDID, TDOBJECT to the object and let the system take care of printing the entire text.
Its far more easy and you don't have to do anything.
Regards,
Ravi
Note - Please mark the helpful answers
‎2006 Jun 02 3:28 PM
Because the req is : only if there is text then then:
booking number text - should be displayed else not .
‎2006 Jun 02 3:40 PM
In that case there can be two ways in which this can be handled.
1. SELECT from STXH table to see if a TEXT exists and use the INCLUDE TEXT with a condition on the TEXT ELEMENT.
2. Use READ_TEXT and see if the internal table is full and then use the INCLUDE TEXT with a condition again.
Still you don't have to handle the formatting.
Regards,
Ravi
Note :Please mark the helpful answers
‎2006 Jun 02 3:55 PM
Still if i am doing the Include text , its only printing one line from the text
eg if i have two lines :
test1 and test2 for that text object , it only prints text .
Pls help
‎2006 Jun 02 4:00 PM
Two things again
1. I hope you are able to see multiple lines in the debug mode.
2. Do you have this TEXT on the MAIN WINDOW or a different window where the length is static because of which the data is getting cut off?
Regards,
Ravi
Note :Please mark the helpful answers
‎2006 Jun 02 6:09 PM
Hi,
Is that in Main Window?
and please make sure about the window size since it is printing the first line of the table...
Pavan
‎2006 Jun 02 3:13 PM
Hi
You have inserted the variable uncorrectly, so for the smartforms it's a text not a variable.
Use the old text editor and check how the line is, it should be:
&wa_txt-tdline&
but I believe it's: <(>&<)>&wa_txt-tdline&<(>&<)>
Max
Message was edited by: max bianchi