2019 Apr 05 4:02 PM
Im trying to read the text from an order, but the function read_text won´t bring me other language than spanish.
Example:
DATA: v_id TYPE thead-tdid,
v_language TYPE thead-tdspras,
v_name TYPE thead-tdname,
v_object TYPE thead-tdobject.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = v_id
language = v_language
name = v_name
object = v_object
TABLES
lines = t_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
I'm doing the tests from debug.
If I pass the values:
v_id = 'ZF04'
v_language = 'S'
v_name = $000000001
v_object = 'VBBK'
It completes the table t_lines with the values.
But if only change v_language to 'E' it founds nothing.
And from the t-code VA02 I try putting only text in spanish, only text in english, both text in spanish and other in english, and in the last two the english didn´t work but the first two the spanish worked excellent.
Anyone know what could be the problem?
Thanks in advance.
Im trying to read the text from an order, but the function read_text won´t bring me other language than spanish.
Example:
DATA: v_id TYPE thead-tdid,
v_language TYPE thead-tdspras,
v_name TYPE thead-tdname,
v_object TYPE thead-tdobject.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = v_id
language = v_language
name = v_name
object = v_object
TABLES
lines = t_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
I'm doing the tests from debug.
If I pass the values:
v_id = 'ZF04'
v_language = 'S'
v_name = $000000001
v_object = 'VBBK'
It completes the table t_lines with the values.
But if only change v_language to 'E' it founds nothing.
And from the t-code VA02 I try putting only text in spanish, only text in english, both text in spanish and other in english, and in the last two the english didn´t work but the first two the spanish worked excellent.
Anyone know what could be the problem?
Thanks in advance.
2019 Apr 05 6:48 PM
So, you are calling READ_TEXT from a USER EXIT, during the checks (the "order" has not a number yet, only a temporary one i.e. $000000001).
Did you make sure that after the SAVE is complete, the text exists in English by calling READ_TEXT from transaction SE37?
Did you try passing the parameter LOCAL_CAT = 'X'?
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |