‎2006 Mar 21 10:13 AM
Hello experts,
I am currently having a problem with the function below because of the language parameter. I tried using sy-langu and 'EN' but my program dumps. Below is my code guys. Any help would be appreciated. Thanks a lot!
CONCATENATE v_vbeln v_posnv
INTO ls_thead-tdname.
*function to read text related to item
REFRESH: lt_lines.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = '0002'
language = 'EN' -
> here is the problem
name = ls_thead-tdname
object = 'VBBP'
TABLES
lines = lt_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4.
‎2006 Mar 21 10:19 AM
‎2006 Mar 21 10:17 AM
‎2006 Mar 21 10:19 AM
‎2006 Mar 21 10:22 AM
Hi Suresh,
I tried using 'E' and it works! I intially tried using sy-langu then 'EN' but the report dumped. Anyway, thanks a lot man!
‎2006 Mar 21 10:20 AM
Hello,
Make it 'E' and try. pass the data as database format.
Hope this helps.
best Regards, Murugesh AS
‎2006 Mar 21 10:27 AM
Hi,
<b>data: v_lang type SPRAS.
v_lang = 'E'</b>.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = '0002'
language = <b>v_lang</b> or pass 'E' directly
name = ls_thead-tdname
object = 'VBBP'
TABLES
lines = lt_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4.