Skip to Content
author's profile photo Former Member
Former Member

About routing text read using fm CP_EX_PLAN_READ


I am writing a program to copy routing from one plant to another. Everything works great except for long text. I did search the forum but could not find any helpful tips.

1> I am reading the routing using fm CP_EX_PLAN_READ



cmode_imp = 'R'

plnty_imp = wa_rthd-plnty

plnnr_imp = wa_rthd-plnnr

plnal_imp = wa_rthd-plnal

sttag_imp = wa_rthd-datuv


plpo_exp = lt_plpo_exp

pltx_exp = lt_pltx_exp

Even though header and operations has long text, table lt_pltx_exp is not getting populated (lt_plpo_exp is getting right data). Any idea why this would happen?

2> Once I successfully get the long text then what all is the mapping to populate the structure BAPI1012_TXT_HDR_C & BAPI1012_TXT_C, as I am using BAPI_ROUTING_CREATE to create the routing in the new plant.



testrun = lh_testrun


group = lh_group

groupcounter = lh_groupcounter


task = t_rthd_bapi_n

materialtaskallocation = t_rtma_bapi_n

operation = t_rtop_bapi_n

  • textallocation = t_rtxo_bapi_n

  • text = t_rttx_bapi_n

return = t_rt_ret.

Any feed back is greatly appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 10, 2008 at 05:57 AM


    I checked the FM for the Long text & as you said, it does not retirieve the long texts. Please note that this FM is not yet released ( on 46C ) & no FM documentation is maintained.

    So I suggest you read the LT by FM: READ_TEXT based on the value of field TXTSP in corresponding structures.

    Hope this helps.

    Best Regards, Murugesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.