Skip to Content
author's profile photo Former Member
Former Member

PO TEXTS AND SO TEXTS FOR MATERIAL NUMBERS

Hi Friends,

how to retrive the PO TEXTS AND SO TEXTS FOR MATERIAL NUMBERS in ALL LANGUAGES.

I WROTE THE PRG FOR EN LANGUAGE USING READ_TEXT

F.MODULE.

help me.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 30, 2008 at 12:21 PM

    Hi Venu,

    Create an internal table for Table t002 and seelect all the langauges. in loop and endloop use FM READ _TEXT.

    It is not possible to use * for Langauge in READ_TEXT.

    Thanks & Regards,

    Nagaraj Kalbavi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 30, 2008 at 12:21 PM

    Answer is in your question itself.

    use LANGUAGE parameter in read_text to pick text in any laguage.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 30, 2008 at 12:23 PM

    use FM Read_text witht the parameters

    for Purchage order texts...

    p_id = 001 or 002

    p_vbeln = first try with sales order no + item no (16), if fails try with sales oder no(10)

    p_object = EKKO or EKPO

    for sales order texts...

    p_id = 001 or 002

    p_vbeln = first try with sales order no + item no (16), if fails try with sales oder no(10)

    p_object = VBBK or VBBP

      call function 'READ_TEXT'
        exporting
          client                  = sy-mandt
          id                      = p_id
          language                = sy-langu
          name                    = p_vbeln
          object                  = p_object
        tables
          lines                   = itb_tline
    

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI Venu Gopal,

      The only that I feel to get in all languages are, first go to table STXL and pass the TDOBJECT, TDNAME, TDID and donu2019t provide any language and fetch the entries. You will get at least one entry, if you have more entries then you will get number of languages.

      1. Select TDOBJECT, TDNAME, TDID, TDSPRAS into i_table where pass the TDOBJECT, TDNAME, TDID which you haveu2026.

      2. After getting the internal table, loop at the i_table and execute the read textu2026

      This will solves your problem. Donu2019t forget to reward points..

  • author's profile photo Former Member
    Former Member
    Posted on Jul 30, 2008 at 12:32 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 05:14 AM

    Hi Venu,

    data : v_spras LIKE thead-tdspras .

    dO THE FOLLOWING DECLARE AN INTERNAL TABLE FOR T002 WHICH contains all the lngauages.

    Read the data into internla table i_spras from t002 using select query.

    Once it is done do the looing.

    loop i_spras.

    CALL FUNCTION 'READ_TEXT'

    EXPORTING

    id = '0001'

    language = i_spras-v_spras

    name = v_textname

    object = 'MVKE'

    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.

    IF sy-subrc = 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    • READ TABLE t_lines INDEX 1.

    loop at t_lines.

    MOVE t_lines-tdline TO it_final-sotext.

    append it_final.

    clear it_final.

    endloop.

    ENDIF.

    endloop.

    Repeat the same thing for po text.

    Thanks & Regards,

    Nagaraj Kalbavo

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 05:21 AM

    copy all languages in an internal table from t002 so that u can loop read_text give tha parameter as internal table field ..

    Edited by: sudheer b on Jul 31, 2008 7:21 AM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.