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: 

using read text fm in smartforms

Former Member
0 Kudos

hi experts,

I have captured a text using Read_text Fm .now i need to use it inside a smartforms .how to do .

i have used that code inside a program line .

and in text i have called the field.

declaration in form interface

text type char20

itab type tline

in program lines

data itab like TLINE occurs 0 with header line.

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • * CLIENT = SY-MANDT

id = '0001'

language = 'E'

name = '0080000055'

object = 'VBBK'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

lines = itab.

LOOP AT ITAB.

text = ITAB-TDLINE.

ENDLOOP.

in text

&text&

but the text value is not printing .but i am getting the value when i do it in SE38.

what shall i do?

regards,

mani

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

Instead of using the FM, Use the standard functionality to print the required text provided by Smartforms.

Create a text element, in the left top...in the drop down there is an option of include text...

id = '0001'

language = 'E'

name = '0080000055'

object = 'VBBK'

u will get the dessired output

Regards,

Himanshu

2 REPLIES 2

Former Member
0 Kudos

Hi ,

Instead of using the FM, Use the standard functionality to print the required text provided by Smartforms.

Create a text element, in the left top...in the drop down there is an option of include text...

id = '0001'

language = 'E'

name = '0080000055'

object = 'VBBK'

u will get the dessired output

Regards,

Himanshu

0 Kudos

thanx man ...i got the output...