Application Development and Automation 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: 
Read only

How to read_text function module in script

ram_sahoo
Participant
0 Likes
914

Hi Experts,

I have a requirement to read the custom standard text using function module READ_TEXT but i am confuse after collect text in internal table that text how i will pass to script,Anyone can help me for this requirement.Here below logic that internal table T_clines data how to pass in script.

CALL FUNCTION 'READ_TEXT'

       EXPORTING

         id                            = c_st

         language                      = c_e

         name                          = gs_text-text_name

         object                        = c_text

*   ARCHIVE_HANDLE                = 0

*   LOCAL_CAT                     = ' '

* IMPORTING

*   HEADER                        =

*   OLD_LINE_COUNTER              =

       TABLES

         lines                         = t_clines

      EXCEPTIONS

        id                            = 1

        language                      = 2

        name                          = 3

        not_found                     = 4

        object                        = 5

        reference_check               = 6

        wrong_access_to_archive       = 7

        OTHERS                        = 8.

     IF sy-subrc <> 0.

     ENDIF.

Thanks.

1 ACCEPTED SOLUTION
Read only

former_member191761
Active Participant
0 Likes
665


Hi Ram,

No need to use Read_text in print program and pass it to script.

Rather you can just use below statement in your script to read and print the text directly.

/: INCLUDE &GS_TEXT-TEXT_NAME& OBJECT C_TEXT LANGUAGE 'EN' ID C_ST .

Thanks

Sri

3 REPLIES 3
Read only

paul_bakker2
Active Contributor
0 Likes
665

Why it's..

T_CLINES##

cheers

Paul

Read only

former_member191761
Active Participant
0 Likes
666


Hi Ram,

No need to use Read_text in print program and pass it to script.

Rather you can just use below statement in your script to read and print the text directly.

/: INCLUDE &GS_TEXT-TEXT_NAME& OBJECT C_TEXT LANGUAGE 'EN' ID C_ST .

Thanks

Sri

Read only

Former Member
0 Likes
665

Hi

After getting text in internal table loop that internal table and cancatenate that text into one variable and print that variable in script..

regards.

laxman