Skip to Content
0
Former Member
Oct 19, 2006 at 09:43 AM

Why does this not work?

18 Views

When I hardcode a value the program works. The output is generated! To be sure the variable: <traptab>-matnr

is filled correctly I inserted the variable into a table just prior to the Call FUNCTION and I can see the value is correct.

Also, I run this exact same logic in a standalone pgm and it works fine.

There are no compile errors, or runtime errors...

So what is going on???

Help...

Thanks,

Vincent

1) l_textname = <traptab>-matnr.

2) l_textname = '956771-CH1'.

3)

CALL FUNCTION 'READ_TEXT'

EXPORTING

ID = 'PRUE'

LANGUAGE = gv_language

NAME = l_textname

OBJECT = 'MATERIAL'

TABLES

lines = text_lines

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6.

Thanks,

Vince