on 12-11-2007 8:58 AM
hi guys,
i need to display data from FM read_text in smartform simultaneously .
in the Text element, i am keen to have this code:
/: LOOP AT ILINE
P &iline-tdline&
/: ENDLOOP
how can i declare iline globally ? pls help
u can directly declare it in the progra like
ata: iline TYPE TABLE OF tline WITH HEADER LINE.
n loop at iline.
call the FORM text elemnt.
n write iline-tdline
endloop
Message was edited by:
Sheeba Bhaskaran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sheeba,
I have declared iline in Program Lines node , but when it comes to display the text to Text element node, error occurs: Field "ILINE-TDLINE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
thats why i need to declare iline globally, how can i do that , plz advice
Hi,
That is not the way to get the Long text in smartforms.
Create a text node and in the gerenal Attributes Maintain the text type as Include Text.
And take the Object details from the Long text text editor --> Header, Provide Object details in Text Key Box of in text node of the smartform as you give in READ_TEXT FM, you will get the long text automatically.
Regards,
Satish
Hi...
try to pass values of the iline into varibales n use the variable in FORm text element..
eg:
LOOP AT iline.
CASE sy-tabix.
WHEN '1'.
w_text1 = iline-tdline.
WHEN '2'.
w_text2 = iline-tdline.
WHEN '3'.
w_text3 = iline-tdline.
ENDCASE.
ENDLOOP.
CONCATENATE w_text1 w_text2 w_text3 INTO w_text4 SEPARATED BY space.
use w_text4 in FORm text elemt...
Hi Sheeba,
I have tried to declare in golbal definition tyline type tline
then in Program Lines node i code this:
call function 'READ_TEXT'
exporting
client = sy-mandt
id = 'Z02'
language = sy-langu
name = W_OBJ_NAME
object = 'ZEBAN'
tables
lines = iline
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
loop at iline.
append iline-tdline to tyline.
endloop.
it gives me error :"TYLINE" is not an internal table - the "OCCURS n" specification is missing.
how can i declare tyline to be internal table
Hi,
As i told you above do like this to get the text in your smartform
Create a text node and in the gerenal Attributes Maintain the text type as Include Text.
declare W_OBJ_NAME in form interface parameters and get the value in print program and pass this value to the parameter in Call Function Module of Smartform.
In the Text Key Provide these values
Text Name: &W_OBJ_NAME& << Get W_OBJ_NAME value in Print Program
Text Object: 'ZEBAN'
Text ID: 'Z02'
Language 'EN'.
Regards,
Satish
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.