Skip to Content
author's profile photo
Former Member

Table to read PO Header text and item text

Hi,

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

regards,

zafar

Add comment
10|10000 characters needed characters exceeded

6 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Nov 21, 2009 at 06:50 AM

    Hi,

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Mar 05, 2011 at 07:28 PM

    Hi,

    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.

    Regards

    Sangeeta

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Nov 21, 2009 at 06:19 AM

    STXH----PO Header text

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Nov 21, 2009 at 06:22 AM

    In order to retreive PO item text you would need to use function

    module "READ_TEXT"

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Nov 21, 2009 at 06:39 AM

    Hello,

    The TABLE which contains the HEADER TEXT is STXH

    and the ITEM TEXT in the table STXL

    If you want to read the text from these fields to any layout then use the FUNCTION MODULE READ_TEXT in SE37

    regards,

    santosh

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2009 at 06:44 AM

    Hi,

    STXH - SAPScript Text Header

    STXL - SAPScript Text Lines

    From these script system will pic TDNAME, TDOBJECT, TDID and

    Pass these information to these tables DARD and from DRAD pass Field DOKAR to DRAT.

    So use full table as

    DRAD and DRAT

    Hope Help U !

    Regards,

    Pardeep Malik

    Add comment
    10|10000 characters needed characters exceeded