Application Development 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: 

problem with this function.

aris_hidalgo
Contributor
0 Kudos

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

suresh_datti
Active Contributor
0 Kudos

Hi,

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

Regards,

Suresh Datti

5 REPLIES 5

Former Member
0 Kudos

Did you try passing SY-LANGU to this parameter?

Regards,

Ravi

suresh_datti
Active Contributor
0 Kudos

Hi,

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

Regards,

Suresh Datti

0 Kudos

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!

former_member214131
Active Contributor
0 Kudos

Hello,

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

Hope this helps.

best Regards, Murugesh AS

Former Member
0 Kudos

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.