cancel
Showing results for 
Search instead for 
Did you mean: 

READ_TEXT

Former Member
0 Kudos

hi,

my requrirement is to read the header text using funtional module READ_TEXT

for transaction code J1IF .

in this i have to read text for

1> identification marks for this tdid = IDEN td object = J1IF

2> NATURE OF PROCESSING FOR THIS TDID : PROC TDOBJECT = J1IF

PLZ HELP WITH CODE HOW TO READ.plz give clear code

thanking u

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI,

The TCOde J1IF, what ever values you have given try to execute the STXH table, and you will come to know the value of the TDNAME..

It would be mostly the value which you enter in the J1if tcode...

and also other thing before writing the fnction module in program. try to check whether record exists in STXH table or not.

Former Member
0 Kudos

Hi Kumar,

Good,

The first thing you need to do is to check is there any text existing for that particular Text ID and Text Object From STXH Table ..

Go to SE11 then Try with your text Id and text Object value ... if entries exist then you can write the coding like below...

TREC-TDSPRAS = SY-LANGU.

TREC-TDID = 'IDEN'.

TREC-TDOBJECT = 'J1IF'.

TREC-TDNAME = give proper value here .

CALL FUNCTION 'READ_TEXT'

EXPORTING

ID = TREC-TDID

LANGUAGE = TREC-TDSPRAS

NAME = TREC-TDNAME

OBJECT = TREC-TDOBJECT

TABLES

LINES = LINES

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.

you need to declare the line table which you are getting here in the tables field in that functional module should be of type Tline.

if any issues are there please reply...

please reward if usefull.....

Former Member
0 Kudos

hi friend,

what is zaccount whar value i have to give in TDNAME

and how to find this id,object,name is their any procedure.plz help urgent

andreas_mann3
Active Contributor
0 Kudos

here's a sample for accounts

TREC-TDSPRAS = SY-LANGU.
  TREC-TDID = 'ECCS'.
  TREC-TDOBJECT = 'ZECCS'.
  TREC-TDNAME = Z_ACCOUNT.


  CALL FUNCTION 'READ_TEXT'
       EXPORTING
            ID                      = TREC-TDID
            LANGUAGE                = TREC-TDSPRAS
            NAME                    = TREC-TDNAME
            OBJECT                  = TREC-TDOBJECT
       TABLES
            LINES                   = LINES
       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.

...

A.

Former Member
0 Kudos

hi friend,

what is zaccount whar value i have to give and how to find this id,object,name is their any procedure.plz help urgent