Skip to Content
0
Former Member
Feb 10, 2014 at 04:04 PM

Get Recipe header long text using READ_TEXT

815 Views

Hi Experts,

I would like to know where to get the recipe header long text. I know I can just use PLKO-KTEXT however this only displays the first line of the header text. The problem is if there are multiple lines of the recipe header text.

I know I can also use READ_TEXT. However, I don't think this will return any value to ts_lines if there are no changes yet on the recipe header.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = PLKO

language = sy-langu

name = w_name

object = ROUTING

IMPORTING

header = e_textheader

TABLES

lines = ts_lines

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

Is there a table that keeps the whole recipe header data? Or can I use another FM to get this?


Thanks in advance!