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: 

Get Recipe header long text using READ_TEXT

Former Member
0 Kudos
1,162

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!

1 REPLY 1

Former Member
0 Kudos
264

I think you might get basically what you need here.

https://scn.sap.com/thread/1803840

Neal