Application Development 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: 

how to display long text in smartforms

Former Member
0 Kudos
3,232

Hi experts,

Iam trying to display long text into smartforms.I got the long text into ITAB frm database

in the abap program.In the form interface how to define the variable?In the long text i have 6 lines.

points guaranteed

cheers

kaki

1 ACCEPTED SOLUTION

Former Member
0 Kudos
1,031

Hi Kaki,

In Smartform,

Create a Text Element:

- Text type = Include Text

- Fill all Text Key Info. (Text Name, Object, ID)

If it's fixed text, Create a Standard text for the text you want to display. If it's variable text, update standard text using Text function and then call Smartform.

Hope this helps. Kindly close the message thread if it works.

-Bharat

7 REPLIES 7

Former Member
0 Kudos
1,031

Hello,

The maximum length is 73 charcters so define such variable & keep appending. add the 73 length char field in your itab & perform the display operation.

Kindly rewards points if help you.

Dilip

Message was edited by: Diliip Gupchup

0 Kudos
1,031

Hi dilip,

In the form interface how to define?It is asking parameter name,type assignment & associated type.

How to define VAR(73)?.

kaki

0 Kudos
1,031

Hello,

just add that field in u r itab. data type is char not VAR

Dilip

0 Kudos
1,031

Hi shekhar,

That is only the way? Is there any other simple way?

If this is only the way i need to define lot of variables.

kaki

Message was edited by: Kaki R

0 Kudos
1,031

Kaki,

Delcare a table and getting the LONG TEXT is not the right way of doing this.

You create a TEXT object and change the TYPE to INCLUDE TEXT. Once that is done all you have to do specify the parameters of your long text - TEXT ID, TEXT OBJECT and TEXT NAME. These are the same parameters that you use for READ_TEXT funciton. You don't have to fetch the text manually, it happens automatically.

Make sure this is a part of the main window as this might run into multiple pages.

Regards,

Ravi

Note : Please reward the posts that help you.

Former Member
0 Kudos
1,031

Hi Kaki,

In your form interface have six variables for these 6 lines of text.

In the program lines read that field data(long text), split into these six variables, and then display these variables data.

Regards,

Raj

Former Member
0 Kudos
1,032

Hi Kaki,

In Smartform,

Create a Text Element:

- Text type = Include Text

- Fill all Text Key Info. (Text Name, Object, ID)

If it's fixed text, Create a Standard text for the text you want to display. If it's variable text, update standard text using Text function and then call Smartform.

Hope this helps. Kindly close the message thread if it works.

-Bharat