2014 Jan 12 7:18 AM
Hi experts,
I am unable to read the long text of a word order using FM read_text. I think I have passed wrong parameters.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_ordno
IMPORTING
output = v_ordno.
v_client = sy-mandt.
v_id = 'KOPF'.
v_language = sy-langu.
CONCATENATE v_client v_ordno INTO v_name.
v_object = 'AUFK'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = v_client
id = v_id
language = v_language
name = v_name
object = v_object
TABLES
lines = gt_text_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
I am getting an error "Text 1001100003611 ID KOPF language EN not found".
Please let me know if I am going wrong somewhere.
Thanks.
2014 Jan 12 8:55 AM
Hi Deepa,
Nothing wrong in your code
TDOBJECT = 'AUFK'
TDNAME = combination of sy-mandt and order number( leading zeros)
( Order Number - 12 chars)
TDID = 'KOPF'.
I guess the text is not stored in the log on language- can you check the STXH table.
2014 Jan 12 8:55 AM
Hi Deepa,
Nothing wrong in your code
TDOBJECT = 'AUFK'
TDNAME = combination of sy-mandt and order number( leading zeros)
( Order Number - 12 chars)
TDID = 'KOPF'.
I guess the text is not stored in the log on language- can you check the STXH table.
2014 Jan 12 9:50 AM
Thanks Kiran, I checked table STXH and the record does not exist there. What should be done in that case?
2014 Jan 12 10:09 AM
Generally the text will be updated through the standard transactions! ( sales order, PO's..) by end users with the different logging languages! nothing to do developer side.
Special cases you want to save the text by program! do you have such requirement?
If you want the save the text us the FM SAVE_TEXT!
2014 Jan 12 10:16 AM
No, I was just supposed to read the long text of any work order(iw32). The code has been recently moved to production where this long text part is not working.
2014 Jan 12 10:24 AM
Hi,
Better to check in Production in which case the text is not triggering! is the texts are really appears in STXH?
Rg, Kiran