Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem with this function.

aris_hidalgo
Contributor
0 Likes
697

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.

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
685

Hi,

Did you try <b>language = 'E'</b> ?

Regards,

Suresh Datti

5 REPLIES 5
Read only

Former Member
0 Likes
685

Did you try passing SY-LANGU to this parameter?

Regards,

Ravi

Read only

suresh_datti
Active Contributor
0 Likes
686

Hi,

Did you try <b>language = 'E'</b> ?

Regards,

Suresh Datti

Read only

0 Likes
685

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!

Read only

Former Member
0 Likes
685

Hello,

Make it 'E' and try. pass the data as database format.

Hope this helps.

best Regards, Murugesh AS

Read only

Former Member
0 Likes
685

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.