Skip to Content
0
Former Member
Jun 05, 2013 at 04:25 AM

Function Module to hide Style System <H> </> in header text

286 Views

HI Experts,

I'm currently working on report MM - purchase order header text. My task is to display header text "F01" of MM-purchase order.

After execute the report, under field heading "Header Text", the description of item shows,

STYLE SYSTEM <H>Terms and Conditions:</> This Purchase Order is given to you subject to the terms and conditions.

I just need to display only Terms and Conditions:This Purchase Order is given to you subject to the terms and conditions.

I have searched many FM to hide STYLE SYSTEM <H> </> but no able to get the desired output.

Here is the sample of the coding:

FORM GET_TEXT_HEADER USING TDNAME CHANGING WA_LONGTX."WA_TLINE.

CALL FUNCTION 'READ_TEXT'

EXPORTING

ID = 'F01'

LANGUAGE = 'E'

NAME = TDNAME

OBJECT = 'EKKO'

TABLES

LINES = IT_LINES

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8.

CLEAR WA_LONGTX.

LOOP AT IT_LINES.

CONCATENATE WA_LONGTX IT_LINES-TDLINE INTO WA_LONGTX

SEPARATED BY SPACE.

ENDLOOP.

* MOVE WA_LONGTX TO WA_TLINE.

ENDFORM. "GET_TEXT_HEADER

Appreciate for your response, really grateful.

Urgent since user want to use it.