Skip to Content

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

READ_TEXT in SCRIPTS?

Hi all,

How to read and display the sales order header text in SCRIPTS?

Sachin.

Tags:
replied

hi,

DATA: tdname like thead-tdname..

data : t_line LIKE tline OCCURS 0 WITH HEADER LINE.

tdname = VBDKA-VBELN.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = '0002'

LANGUAGE = 'E'

NAME = tdname

OBJECT = 'VBBK'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

LINES = t_line

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Regards,

Vikram.S

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