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

Printing Problem in Smartform

Former Member
0 Likes
576

Dear all,

I have an internal table which contain data in like this format:

Internal Table:

Material 1

Material 2

Material 3

Material 4

Material 5

Material 6

.

.

.

Material n

Now i want to print this in smart form like this ....

Material 1, Material 2, Material 3, Material 4, Material 5, Material 6,............................Material n

How can i read this table to print as per above example?

Plz. Help Me

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
548

hi In general attributes tab of your text element give the text type as text element and start as append directly. Thanks & Regards Surender

3 REPLIES 3
Read only

Former Member
0 Likes
548

Hi,

U have not mentioned that in which window u want to print the data. There are many ways to achieve this. If u want to print the data in any window through a Text Element, first

Declare a "PROGRAM LINES" node under the window:

In the coding block loop on the internal table and concatenate the data to make a string.

Declare a TEXT ELEMENT in the same window.

Assign the string to the text element.

Regards,

Pulokesh

Read only

Former Member
0 Likes
549

hi In general attributes tab of your text element give the text type as text element and start as append directly. Thanks & Regards Surender

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
548

Hi,

Inside the loop in which you print the material numbers, create two text elements.

In the first text element print the material number and in the second text element print a comma (,)

For both the text elements, in the General Attributes tab specify Start as Append Directly instead of New Paragraph.

Now your output will be:-

Material 1,Material 2,Material 3 and so on.........

Hope this helps you.

Regards,

Tarun