2006 Jul 06 2:42 PM
hi experts,
i want to read basix text lines from mara table for that i am using(mm03-basic data view) read_text FM to retrive the text lines to windows in the smart form which are
so in window -> program line i wrote code as follows
READ TABLE GT_LINES INDEX SY-TABIX INTO WA_LINES .
Loop at gt_lines into wa_lines from 7 to 12 .
IS_final = wa_lines.
append IS_final.
WRITE IS_FINAL.
endloop.
is it correct logic to display text lines in window?
plz suggest me
regards
nayak
2006 Jul 06 2:48 PM
Instead of read_text, in smartforms you have something called Text Type Object. You can use this to dynamically pass Text Name, Text Object, Text ID and Language.
2006 Jul 06 2:55 PM
hi
i did't get <b>text type object</b> which is mentioned by u . if its any FM plz send the name of the FM
regards
nayak
2006 Jul 06 2:58 PM
Hi,
These are the same parameters you pass to the 'READ_TEXT' Function module to get the text lines.
Thanks,
Rashmi.
2006 Jul 06 3:05 PM
Let me give you an example:
In your smartforms, you define a window, say suppose Main Window. Then when you right click and choose option Create->Text you will get a Text Type Object. Once you get this text type object choose "Include Text" from the drop down. Follow the rest as indicated in my previous thread.