Application Development and Automation 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: 
Read only

RFQ Header Texts

Former Member
0 Likes
1,150

Hi all,

I would like to extract texts from RFQ header text. Appreciate anyone could advise which table should i reference to. Is it ok to use function "READ_TEXT_INLINE" or "READ_TEXT"? Because there maybe mulitple lines in the text field. Thanks

regards,

CL

2 REPLIES 2
Read only

gopi_narendra
Active Contributor
0 Likes
728

You can use the FM: READ_TEXT. You may also refer to table STXH to know the object ids, object name,etc related to the data to be passed to the FM.

Regards

Gopi

Read only

JoffyJohn
Active Contributor
0 Likes
728

Double click on the header text in RFQ.

Then in menu GOTO-> Header

find the Text ID

Text object

then take Tcode: SE75

text object and text id are changed there.

In order to get the content :

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

id = <Text id>

language = sy-langu

name = <rfqno>

object = <Text object name>

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

lines = tlines

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.

The contents will be available in tlines internal table.