Skip to Content
author's profile photo Former Member
Former Member

using read text fm in smartforms

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2007 at 07:12 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.