If you read directly from the table then for getting HEADER TEXT it is is STXH & item text STXL.

 

Better would be to use Function Module READ_TEXT

 

    CALL FUNCTION 'READ_TEXT'

      EXPORTING

        CLIENT                  = (Client ID)

        ID                      = (Text ID)

        LANGUAGE                = (Language)

        NAME                    = (PO Number)

        OBJECT                  = 'EKKO' for Header & EKPO for Item

      TABLES

        LINES                   = (Internal Table of type tlines)

      EXCEPTIONS

        ID                      = 1

        LANGUAGE                = 2

        NAME                    = 3

        NOT_FOUND               = 4

        OBJECT                  = 5

        REFERENCE_CHECK         = 6

        WRONG_ACCESS_TO_ARCHIVE = 7

        OTHERS                  = 8.

 

 

*********

To read the header or item text. You need to use function module REad_text.  To find out the ID and object in the read_text the process will be as follows. The text you want to read , say its header text of the purchase order; so double click on that text. It will take you to long txt screen like a word pad. From menu you need to select go to header you will find text id and text object there . Use this id and object in function module read_text.

posted on 2017-07-17 15:41  闻歌  阅读(147)  评论(0)    收藏  举报