2005 Dec 12 10:28 AM
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
2005 Dec 12 2:54 PM
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
2005 Dec 12 10:36 AM
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
2005 Dec 12 10:46 AM
Hi dilip,
In the form interface how to define?It is asking parameter name,type assignment & associated type.
How to define VAR(73)?.
kaki
2005 Dec 12 10:47 AM
Hello,
just add that field in u r itab. data type is char not VAR
Dilip
2005 Dec 12 10:52 AM
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
2005 Dec 12 11:01 AM
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.
2005 Dec 12 10:51 AM
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
2005 Dec 12 2:54 PM
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