Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Outbound Delivery - Header (Text field - Table Name)

Hi All,

In outbound delivery header - Texts tab i notice that we can maintain some texts. May i know which table i should refer to read the text entered.

I can read the text type key from the table TTXTD, but i need to read the actual text entered by the user.

Hope my question is clear, await your inputs.

Regards,

Vivek

Former Member
Former Member replied

HI,

SAP has already provided a various functions for read the text element. So you no need to get the value from table directly!

There is some example

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = T_TEXT_ID

LANGUAGE = 'E'

NAME = T_UNIQUE_ID

OBJECT = T_TXTOBJ

IMPORTING

HEADER = HTEXT

TABLES

LINES = T_READ_LINE

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8.

Let me explains as below parameters.

T_TEXT_ID - Text id: example - '08000123', also is the document no.

T_UNIQUE_ID - Text unique ID: example - 'ZD01'

T_TXTOBJ - Text Object: example - VBBK

That information can find it on relevant of document. In your case, you can fount it on the below path:

VF01n/VF02n > GoTo -> Header -> Text -> detail (is the push small button, then it will go to the next screen) -> Goto -> Header.

Return Value tales - THEXT and Table Line - T_Read_line

You must declare this variable before,

DATA: BEGIN OF HTEXT OCCURS 50.

INCLUDE STRUCTURE THEAD.

DATA END OF HTEXT.

DATA: BEGIN OF T_READ_LINE OCCURS 50.

INCLUDE STRUCTURE TLINE.

DATA: END OF T_READ_LINE.

READ TABLE T_READ_LINE INDEX 1. "read the line value

I hope this can help, so remembers reward the points

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question