How to copy long text from production order to automatically created P.R

Hello experts,
I want to add some text to the long text , in the production order and save it.
There is an external process in our routing, in which when the order is saved and released, there is a P.R created automatically.
My requirement :-  The text in the long text tab of the Production order should flow to one of the text types {Item text} in the P.R item created.
I checked in SPRO [ IMG-> MM->Purchasing -> P.R-Texts for PR-> define copying rules].
For text type ,  'Item text' already has  the text linkages : Order/network, with source texts "component text' and 'transaction text'.
However, the text being maintained in the order is not flowing on its own anywhere into the P.R created.
Is there any other config that needs to be done to achieve this?
Regards
P.R

Hi, A production order long text exists at a header level and a Purchase req gets triggered at an operation level of a production order during external processing.
  So if you expect a mapping of a header text to operation level text, it should not be definitely possible in the SAP standard. (May be an enhancement would still work but you need to decide on it).
If you maintain a long text at the same operation where you trigger a pur.req (a text on your own or via a standard text key-CA10 tcode), you would see that populated, at the item-level text tab of the generated pur req automatically, as a standard behaviour.
Hope you would go with the standard system behaviour.

Similar Messages

  • Getting a runtime error in reading long text from production order

    Hi all,
    I am trying to read production order long text and the code is not showing any syntax error but if i execute it i am getting a runtime error as "Text object aufk is not available".
    But i did check for the text object , text id enties in TTXOB and TTXID tables. Also i am able to see the relevant text in tables STXH and STXL, dont know why i am getting this runtime error and unable to debug.
    I tried a lot searching in forums, but they all ask me to write the code in the way i did, so dont know what is the problem.
    Data Declarations
    data: xaufk  type aufk.
    data: l_name type thead-tdname.
    data: ilines type table of tline with header line.
    Parameters
    parameters: p_aufnr type aufk-aufnr.
    concatenate sy-mandt p_aufnr into l_name.
    condense l_name no-gaps.
              CALL FUNCTION 'READ_TEXT'
                EXPORTING
                 CLIENT                         = SY-MANDT
                  ID                                =  'kopf'
                  LANGUAGE                 =  sy-langu
                  NAME                          = l_name
                  OBJECT                       = 'aufk'
                TABLES
                  LINES                         =  ilines
              write : ilines.
    Regards
    Jessica

    Hey Vijay,
    Thanks for you reply, It worked, i am not getting the runtime error, but also not getting the output.
    am i missing anywrite statements?
    Please check the code and suggest changes if required. i want to see the long text in the production order in the output. should i say write: ilines.?
    Data Declarations
    data: xaufk  type aufk.
    data: l_name type thead-tdname.
    data: ilines type table of tline with header line.
    Parameters
    parameters: p_aufnr type aufk-aufnr.
    concatenate sy-mandt p_aufnr into l_name.
    condense l_name no-gaps.
              CALL FUNCTION 'READ_TEXT'
                EXPORTING
                 CLIENT                         = SY-MANDT
                  ID                            = 'KOPF'
                  LANGUAGE                      =  sy-langu
                  NAME                          = l_name
                  OBJECT                        = 'AUFK'
                TABLES
                  LINES                         =  ilines
                 write : ilines.
    Regards,
    Jessica.

  • How to add the long text in Production order through FM

    Hi,
    Iam having custom program which has BAPI (BAPI_PRODORD_CREATE) inside it and this program is used to create Production orders with the details of Sales order Number,Line item,Plant,Order type,Quantity and Start date. This program is scheduled in Background.
    Now client wants to add the Long text (seperate TAB in production order and they want to update the VC details of Sales order in the Long text area).
    One option is after creation of Production order, through BDC(calling CO02 and update the long text) we  can update the long text and client doesn't want this option.
    Another option is after creation of Production order, using Function module SAVE_TEXT, Update the Long text in Production Order and this is not working in Production order (already my ABAP consultant checked it ).
    If any one of you came across this requirement, pl share with me how you addressed it.
    Regards
    A.Sureshbabu

    Hi,
    The method is quite simple, i presume you're quite well versed with doing recording, so the key thing to keep in mind is how to prepare the input file.
    At my end i had about 5 lines of data which needed to be uploaded, hence i had a tab-delimited file with the order nos. in the first column & the five lines of text in five different columns (Refer format below)
    Order No.
    Line - 1
    Line - 2
    Line - 3
    Line - 4
    Line - 5
    12345
    txt - 1
    txt - 2
    txt - 3
    txt - 4
    txt - 5
    67890
    txt - a
    txt - b
    txt - c
    txt - d
    txt - e
    Now provide this input file for your lsmw or bdc program & it will work. You can work with your abaper if you're not so comfortable with LSMW or BDC programming he / she should be able to easily make it work for you.
    Regards,
    Vivek

  • Update Long Text of Production Order

    Hi ABAP Gurus,
    We want to update some information in long text automatically while releasing production order.
    We try PPCO0007
    We found that we must update AUFK-LTEXT as 'E' then we can see long text via CO02, CO03.
    Without updating AUFK-LTEXT, even if the long text value saved in SXTL, but it can not be displayed via CO02, CO03.
    After saving the text using 'SAVE_TEXT' function module and commiting it we update the 'ltext' field in AUFK table.
    SELECT SINGLE * INTO wa_aufk FROM aufk WHERE aufnr EQ '000012345678'.
    wa_aufk-ltext = 'D'.
    MODIFY aufk FROM wa_aufk.
    However, it only works when we go to CO02 and press 'Save' button without changing anything.
    If we press 'release' button, AUFK-LTEXT will be overwritten by system. >_<
    What we expect system to do is that when we release production order, AUFK-LTEXT can be changed to 'E', so that we can display long text via CO02, CO03.
    Please help.
    Cheers,
    Qiang

    There is no standard SAP enhancement we can use for this purpose.
    We have developed another program to maintian the long text in production order.
    This call can be closed.
    Cheers,
    Qiang

  • How to output serial number from production order in GLM ?

    how to pull serial number from production order in wwi template for GLM ?

    Hi,
    Please have a look to this thread:
    BAPI/RFC to get serial numbers for a production order
    Hope it helps,
    Kr,
    m.

  • Printing Long Text of Production Order

    Dear all,
    Can we print the long text of Production Order using Co04N transaction? Please suggest.
    regards,
    Kumar

    Hi,
    Thanks for suggestion,,, awarded points.
    Thread closed
    regards,
    Kumar

  • Add new tab of long text to production order

    Hi all
    i need to add new tab of long text to production order, which will be blocked for changes.
    anyone can help with this?
    thanks.

    Yossi,
    The purpose of long text is so that business users can add additional information while processing the order so that everyone can check the text.
    Please tell us why do you want to block the production order text? Also why do you need a new tab for long text? and where do you want that information to be stored?
    -Swapnil

  • Copy long text from PROJ to WBS

    When creating a new project (CJ01) I create new WBS and populate its fields from project automatically.
    I use enhancement and everything is copying ok except the long text.
    I do READ_TEXT and it get long text from project (TEXT_HEADER-TDNAME D99999999)
    Then i do SAVE_TEXT and not getting any error  (TEXT_HEADER-TDNAME E99999999)
    But the long text of WBS is empty.
    How should i copy long text right?
    I traced program and found out that after my enhancement is passed,
    WBS element is not activated and rewrited by initial data from PRPS-POST1
    How should i activate wbs then?
    Thank you for help!

    Hello,
    That code can help you If the text not exist.
    be carreful, that code have not declaration
    Thierry
    CALL FUNCTION 'NUMBER_GET_NEXT'
                EXPORTING
                  nr_range_nr = '01'
                  object      = 'PSTX'
                IMPORTING
                  number      = wl_name.
              ws_prtx-prmandt = sy-mandt.
              ws_prtx-probtyp = 'E'.
              ws_prtx-prpspnr = wv_posnr.
              ws_prtx-prtxtky = wl_name.
              APPEND ws_prtx TO wt_prtx.
              CALL FUNCTION 'CJVB_PRTX_POST'
                TABLES
                  tinsert = wt_prtx
                  tdelete = wt_d_prtx
                  tupdate = wt_u_prtx.
              ws_pstx-psmandt = sy-mandt.
              ws_pstx-pstxtky = wl_name.
              ws_pstx-pstxtar = '03'.
              ws_pstx-pstxtti = 'COMMENTAIRES'.
              ws_pstx-pstxthu = p_uname.
              ws_pstx-pstxthd = sy-datum.
              ws_pstx-pstxtau = p_uname.
              ws_pstx-pstxtad = sy-datum.
              ws_pstx-psformat = ''.
              APPEND ws_pstx TO wt_pstx.
              CALL FUNCTION 'CJVB_PSTX_POST'
                TABLES
                  tdelete = wt_d_pstx
                  tinsert = wt_pstx
                  tupdate = wt_u_pstx.
              IF sy-subrc = 0.
                wl_object = wc_obtxt.
                wl_id = wc_idtxt.
                wl_spras = sy-langu.
                ws_head-tdobject = wl_object.
                ws_head-tdname = wl_name.
                ws_head-tdid = wl_id.
                ws_head-tdspras = wl_spras.
                CALL FUNCTION 'SAVE_TEXT'
                  EXPORTING
                    client          = sy-mandt
                    header          = ws_head
                    insert          = ' '
                    savemode_direct = 'X'
                  TABLES
                    lines           = wt_tline
                  EXCEPTIONS
                    OTHERS          = 1.

  • How to Add Long Text from CA10 on SAP Script

    Hi Friends,
    I got a requirement to add a long text from CA10 on to the SAP Script.
    How to do this ?
    Is it using INCLUDE ?
    Please give me some solution
    Thanks in Adv.

    Hi Bhupal,
    Could you tell me how did u add the long text from CA10.  I have the same requirement.
    Thanks in advance.
    Manisha

  • How to create long text in production order?

    Hi,
    i have found that i could only change long text in the
    production order by 'SAVE_TEXT'.
    but i want to create long text and any advice?

    DATA:TEXT_HEADER LIKE THEAD.
    DATA:TEXT_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE.
    data: t_ponum  like BAPI_ORDER_KEY-ORDER_NUMBER.
    t_ponum = '000040000068'.
    TEXT_HEADER-TDID ='KOPF'.
    TEXT_HEADER-TDOBJECT = 'AUFK'.
    TEXT_HEADER-TDSPRAS = sy-LANGU .
    CONCATENATE SY-MANDT t_ponum INTO TEXT_HEADER-TDNAME.
    clear text_lines.
    refresh text_lines.
    text_lines-TDFORMAT = '*'.
    text_lines-TDLINE = '12567'.
    append text_lines.
    text_lines-TDFORMAT = '*'.
    text_lines-TDLINE = 'lg'.
    append text_lines.
    text_lines-TDFORMAT = '*'.
    text_lines-TDLINE = 'prh'.
    append text_lines.
    text_lines-TDFORMAT = '*'.
    text_lines-TDLINE = 'ueue'.
    append text_lines.
    CALL FUNCTION 'CREATE_TEXT'
      EXPORTING
        FID               = TEXT_HEADER-TDID
        FLANGUAGE         = sy-LANGU
        FNAME             = TEXT_HEADER-TDNAME
        FOBJECT           = TEXT_HEADER-TDOBJECT
                     SAVE_DIRECT       = 'X'
                     FFORMAT           = '*'
      TABLES
        FLINES            = text_lines
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
        CLIENT          = SY-MANDT
        HEADER          = TEXT_HEADER
        INSERT          = ' '
        SAVEMODE_DIRECT = 'X'
      TABLES
        LINES           = text_lines.
    CALL FUNCTION 'COMMIT_TEXT'
      EXPORTING
        OBJECT          = TEXT_HEADER-TDOBJECT
        NAME            = TEXT_HEADER-TDNAME
        ID              = TEXT_HEADER-TDID
        LANGUAGE        = sy-LANGU
        SAVEMODE_DIRECT = 'X'.

  • Long text in production order

    Hi All,
    I have enter some text in all my production order. Based on that txt can i pulled the orders in the report(in std report). Is there any report like this.
    Thanks and Regard,
    D.Dutta

    Hi,
    Check in COOIS report by adding executing at header level & adding the header text field.
    If this does not give you the desired result, then you can get the same from STXH table.
    pass the field value as below:
    TDOBJECT = AUFK
    TDID = KOPF
    TDSPRAS = EN
    TDNAME = (client nos + 12 digit order nos)
    The same can also be read from the FM - READ_TEXT.
    Hope the above answers your query.
    If helpful award points
    Regards,
    Vivek

  • How to copy Chinese text from MS Word to Indesign CS5.5

    Hello, I am a beginner and wanted to simply copy Chinese characters from MS WOrd to indesign CS 5.5. But it showed up in indesign as a bunch of squares. ANyone knows how to do it right? Thanks

    Joel Cherney wrote:
    If you cannot find any of these, the InDesign installation disk comes with a bunch of free high quality fonts, courtesy of Adobe.
    Use those.
    The chances are quite small that you will offend your Chinese readership by setting text in an overtly Japanese font like Mincho or Kozuka - but the chance is a non-zero chance. All the right glyphs are there, of course (thank you Unihan), but typographic standards differ between the two languages, and there's no sense in taking the risk.
    Ah -- apologies! Wait, let me check my ID ... I got
    * Apple LiGothic, Apple LiSung (installed by default on OS X)
    * BiauKai (umm, don't know)
    * Adobe Fan Heiti
    * STHeiti
    * LiHei Pro
    * LiSong Pro
    * Adobe Ming Std
    * Adobe Fangsong Std
    * GB18030Bitmap (exactly what it says: a bitmap font, and you can use it in InDesign! A bad idea...)
    * Hei
    * Heiti SC
    * Adobe Heiti Std
    * Hiragino Sans GB
    * Kai
    * Adobe Kaiti Std
    * Adobe Song Std
    .. and yet even more. If you are working on Windows, you get a couple of "MS Xxx" fonts as well, and in that case you are definitely better off with Adobe's set.
    I must admit I only see the difference because Japanese fonts usually do not include a "full" set of glyphs (at least, not the "usual" 3,000 to 10,000). Joel, care to point out some tell-tale glyph forms?

  • How to copy the text from textfield to jlist(please help me)..

    hi to all,i am making chat application , in my program user enters ip in the text field to connect to other computer.whenever user wants to send the message ,he has to enter ip in the text field , all i want to do is to copy the ip from text field to jlist , so user does'nt enter same ip every time , he can just select from the jlist . please help me in this ,can u tell me code for that , i would be thankful to u
    Thankyou
    Naresh

    You've asked a lot of questions the last few days. I think its time you do some reading. The Swing tutorial titled "Creating a GUI Using JFC/Swing: has sections on every component and example code of how to use them. You can even download the entire tutorial and all the example from the following link:
    http://java.sun.com/docs/books/tutorial/
    Here's the link specific link to the section on "Using Lists"
    http://java.sun.com/docs/books/tutorial/uiswing/components/list.html

  • Re: Copying Header Text from Sales order to Purchase order

    Dear Friends,
    We have requirement to copy the "shipping instructions text"  maintained in the Sales Order to Purchase Order.
    Could some body guide to configuration settings needed to get this.
    Thanks,
    Krishna Redy

    Dear Suresh,
    We are creating the Purchase order with account assignment and in the PO we are giving the sales order number.
    When system is copying the Customer and order dedails to PO, same way we want to copy the Texts as it plays big role for the clients business process.
    SAP must have solution for this as it is genuine requirement. Hope someone call the right card.
    Thanks,
    Krishna Reddy

  • How to copy link text from links?

    Currently when selecting a link, there is no easy option to copy link text. This feature should be implemented to be one of the options in the popup menu once a link is selected, alongside with "Open Link in New Tab"; "Copy Link"; !"Copy Link Text"!; "Share Link"; "Bookmark Link".
    This menu option will provide a convenient way to browse through search results and other various links and will add to the efficiency of navigation of web pages.

    Hi eva88, are you copying from a webpage or from the address bar? If you copy a link from a webpage, Gmail should pick up the HTML as is from the original. But when you copy from the address bar, you need to take the extra step of using the "link" button in Gmail. Due to changes in the Gmail UI, this may be harder to find, but for me, it appears when mousing over the lower part of the compose box. I've attached a series of screen shots showing where I see it.

Maybe you are looking for

  • Calendar Will Not Sync With Outlook

    Calendar won't sync with Outlook 2003. Tasks, memos, and contacts will though. Under default services, it lists Facebook as my Calendar (CICAL). What do I need to do to change this so that my calendar syncs properly? Solved! Go to Solution.

  • One application with Multiple schemas- common application frame work

    Hi All, I am trying setup a common application frame work in apex. Please help me. How to achieve this. Creation of one application attached to different schemas at run time. So that my application maintaince is going to be easy instated of creating

  • ABAP For HANA as secondary DB problem in execute query decleration.

    Hello Experts, I am fetching data from HANA DB as secondary database using ADBC. When I am going to concatenate native SQL query its geting more than 255 char and here is the problem. Please suggest how can I deal with more than 255 char string query

  • Using Consumer Object in an AS3 Project

    Hello, I'm currently testing BlazeDS and especially Data Push, on swf side, everything is fine when i do my tests with a Flex project ( with a mxml file ) but i'd like to use this feature in a pure AS3 project with no mxml For a classical remoting us

  • InstallShield 3.0.111.0

    Hi, i have been trying lately to package a very old application that we have, Poetica v1.5. The problem is that this application use InstallShield v3.0.111.0 to install itself. Here are the steps that i use right now: 1- Copy the files to a temp fold