Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Stuck Smartforms !!

Former Member
0 Likes
1,255

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

11 REPLIES 11
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,187

Just a guess, make sure that the & is right beside the field. I looks like you have space in between.

Regards,

Rich Heilman

Read only

0 Likes
1,187

yeah it is right beside the field dunno whats happening

Read only

0 Likes
1,187

Hi

have you defined the global interface parameter for your work area..jus check it..

Cheers,

Abdul Hakim

Read only

0 Likes
1,187

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 ????

Read only

0 Likes
1,187

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

Read only

0 Likes
1,187

Because the req is : only if there is text then then:

booking number text - should be displayed else not .

Read only

0 Likes
1,187

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

Read only

0 Likes
1,187

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

Read only

0 Likes
1,187

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

Read only

0 Likes
1,187

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

Read only

Former Member
0 Likes
1,187

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