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

table stxh

Former Member
0 Likes
1,329

in this table

i have data:

name 'FORM'

object 'Z_name_LAYOUT'

THE fm READ TEXT WILL WORK ON IT?

IF IT's wrong , why this happend ? custom problem?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
995

FM READ_TEXT reads the standard text not the SAP Script.

FORM entry in STXH table means it is form.

Can you please more eloborate What exactly you need ?

6 REPLIES 6
Read only

Former Member
0 Likes
996

FM READ_TEXT reads the standard text not the SAP Script.

FORM entry in STXH table means it is form.

Can you please more eloborate What exactly you need ?

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
995

Yes, you will also need the ID from the STXH table as well. Send all of these to the READ_TEXT function module, and you will get your text.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
995

Hi rani,

you can try to use INCLUDE options to insert the standard text in the layout.

Regards

vijay

Read only

Former Member
0 Likes
995

i will ask again i did not do it well sorry.

this is the FM

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = 'TXT'

language = sy-langu

name = 'z_name_layout'

object ='FORM'

  • IMPORTING

  • HEADER =

TABLES

lines = it_lines

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

is the parametres right?

i dont need number in name?

if i make it in sapscript

how can i define the name of the layout ( what the comma)and also to form?

Read only

0 Likes
995

Make sure that the NAME is in all caps.

This is working good for me.



report zrich_0001.

data: ilines type table of tline with header line.


call function 'READ_TEXT'
     exporting
          id                      = 'TXT'
          language                = sy-langu
          name                    = 'ZMFG_LABEL'
          object                  = 'FORM'
     tables
          lines                   = ilines
     exceptions
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          others                  = 8.


loop at ilines.
  write:/ ilines.


endloop.


Regards,

Rich Heilman

Read only

0 Likes
995

how do we know they are rite or wrong.

you check it in STXH

but they should be in cAps

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = 'TXT'

language = sy-langu

name =<b> 'Z_NAME_LAYOUT'</b>

object ='FORM'

  • IMPORTING

  • HEADER =

TABLES

lines = it_lines

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.