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

Name in read_text function module

Former Member
0 Likes
2,242

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,370

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.

5 REPLIES 5
Read only

Former Member
0 Likes
1,372

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.

Read only

0 Likes
1,370

Thanks Kiran, I checked table STXH and the record does not exist there. What should be done in that case?

Read only

0 Likes
1,370

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!

Read only

0 Likes
1,370

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.

Read only

0 Likes
1,370

Hi,

Better to check in Production in which case the text is not triggering! is the texts are really appears in STXH?

Rg, Kiran