且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SAP MM Table to read PO Header text and item text

更新时间:2022-08-16 23:00:55

SAP MM Table to read PO Header text and item text

[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.