SAP MM Table to read PO Header text and item text

dicksonjyl560101發表於2015-05-25

SAP MM

[Question]

I want to know the table in which we can read the PO header and item text.

[Solution]

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

2>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 lines)

      EXCEPTIONS

        ID                      = 1

        LANGUAGE                = 2

        NAME                    = 3

        NOT_FOUND               = 4

        OBJECT                  = 5

        REFERENCE_CHECK         = 6

        WRONG_ACCESS_TO_ARCHIVE = 7

        OTHERS                  = 8.

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29829936/viewspace-1670672/,如需轉載,請註明出處,否則將追究法律責任。

相關文章