Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Order Number Text

Former Member
0 Kudos

Hi Alll,

I am using FM READ_TEXT to read Order Number Long Text

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

ID = ''

LANGUAGE = SY-LANGU

NAME = NAME

OBJECT = 'AUFK'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

LINES = IT_TEXT

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8

.

What value I will use for parameter ID.

Thanks,

Pratibha

5 REPLIES 5

Former Member
0 Kudos

Pratibha,

Best thing for this is to the long text editor of an existing order, in the full screen mode.

There in the Menu -- Go To --> HEader you can see the values for the parameters TDOBJECT, TDNAME and TDID.

Regards,

Ravi

Note : Please mark the helpful answers

Former Member
0 Kudos

u can goto the long text editor(near the box wher u c the texts)..there goto-->header, u ll c the ID that u need to put ther..

hope it helps,

Regards,

Bikash

0 Kudos

Hi,

Thanks for reply.

I am using ID = 'KOPF' and OBJECT = 'AUFK'.

But it gives me an error.

Pratibha.

0 Kudos

The object look OK but the ID usually is only 2 CHAR length.

Regards,

Ravi

Former Member
0 Kudos

HI

GOOD

READ_TEXT To load long text into SAP

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

id = "Text ID

language = "Laguage

name = "Text name

object = "text object

  • ARCHIVE_HANDLE = 0

  • IMPORTING

  • HEADER =

tables

lines = IT_TEXTS "Internal table

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

GO THROUGH THIS LINK

http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm

THANKS

MRUTYUN