cancel
Showing results for 
Search instead for 
Did you mean: 

Table to read PO Header text and item text

Former Member
0 Kudos

Hi,

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

regards,

zafar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

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.

Answers (5)

Answers (5)

Former Member

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

pardeep_malik
Active Contributor
0 Kudos

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

0 Kudos

HI

I have got the data TDNAME ,,TDOBJECT and TDID from STXH

Could you let me know in which fields the ABOVE data needs to be updated in table DRAD

Former Member
0 Kudos

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

Former Member
0 Kudos

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

module "READ_TEXT"

Former Member
0 Kudos

STXH----PO Header text