on 06-29-2009 2:39 PM
Hi gurus,
When i calling the text fuctional module i put the all required fields. but in the internal tables i cannot get the text fields values.
DATA : IT_TLINE LIKE TLINE OCCURS 0 WITH HEADER LINE .
DATA : WA_TLINE LIKE Thead.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0001'
LANGUAGE = 'E'
NAME = name
OBJECT = 'VBBK'
IMPORTING
HEADER = WA_TLINE
TABLES
LINES = IT_TLINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8 .
READ TABLE IT_TLINE INDEX 1 .
IF SY-SUBRC EQ 0 .
IFINAL-TEXT = IT_TLINE-TDLINE.
ENDIF .
ENDIF .
Thanks in advance.
Hi,
I guess the problem is with NAME what u r passing to Function Module, it should be of length 10 digit.
Eg:
if u have the document no like '500001' which is of length 6, then u use CONVERSION Routine to make the Length given in the data type, after Conversion Routine it suppose to be something like '0000500001' and pass this value to name of 'READ_TEXT' FM..
eg:
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = name
IMPORTING
output = name.
Now, pass the name to below FM..
call function 'READ_TEXT'
name = name.
NOTE: U can also find all the details of the READ_TEXT (Name, Id, Objet,...) in Billing Invoice Transaction (VF03), just select menu Goto>Header>Header texts. If the text is available then click 'Detail' button at down, it opens a text editor here again select Goto-->Header, u ill get a pop-up and can see the values here...
Hope it helps!!
Rgds,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Praveen,
what is the NAME field having value at runtime? Are you passing anything through that ?
Thanks
Venkat.O
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check what you are passing within the 'name' parameter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.