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: 

logic for textlines

Former Member
0 Kudos
78

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

4 REPLIES 4

Former Member
0 Kudos
39

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.

0 Kudos
39

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

0 Kudos
39

Hi,

These are the same parameters you pass to the 'READ_TEXT' Function module to get the text lines.

Thanks,

Rashmi.

Former Member
0 Kudos
39

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.