on 10-26-2007 11:55 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.