cancel
Showing results for 
Search instead for 
Did you mean: 

TEXT MODULE FUNCTION

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

venkat_o
Active Contributor
0 Kudos

HI Praveen,

what is the NAME field having value at runtime? Are you passing anything through that ?

Thanks

Venkat.O

Former Member
0 Kudos

i am passing the name.

name = ifinal-vbeln.

data name type thead-tdname.

Former Member
0 Kudos

Please check what you are passing within the 'name' parameter