Standard LSMW to load Routing Long text

We are migrating data to sap for Routings. We are using SAP best practices to load the data into sap using idocs. But we dont have idoc structure to load Long Text.
Do you know a LSMW standard direct input to upload the routing long text.
Please help me out.

Yes, you can upload long texts to pretty much any application, routings, boms, material masters, etc.
In LSMW select the following direct input method:
Object               0001   Long texts
Method               0001   (No selection)
Program Name         /SAPDMC/SAP_LSMW_IMP
Program Type         D   Direct Input
You can define the following as constants in field mapping and conversion rule.
TDOBJECT C(010) Text: 'ROUTING'
TDID C(004) Text ID : 'PLKO'           <<< if you're uploading to header
TDSPRAS C(001) Language : 'EN'
TDFORMAT C(002) Paragraph format for text line : '*'
If you want upload to operations etc look at the following table
ROUTING     PLFH     Long Text
ROUTING     PLFL     Long Text
ROUTING     PLFT     Long text
ROUTING     PLFV     Long Text
ROUTING     PLKO     Long Text
ROUTING     PLPH     Long text
ROUTING     PLPO     Long Text
internally SAP stores, routing group with zeros padded on the left. For example if your routing group is 200 it will be stored as 00000200 so in your flat file either you have to pad the zeros or in the LSMW you need to use the conversion exit function module.
You can following link below if you want to deeper understanding on this subject.
Re: LSMW : Long text not visible after the import of data

Similar Messages

  • Routing Long text not populated using LSMW

    I need help with the ROUTING LONG TEXT using LSMW. I'm using the standard LSMW direct input program /SAPDMC/SAP_LSMW_IMP . I'm confused with NAME field while loading the data. I have tried to create the routing long text manually after successful creation i opened the Longtext at header screen and opened GOTO--> HEADER there i have seen TEXT NAME is constructed based on CLIENT || N || GROUP || GROUPCOUNTER || INTERNAL_COUNTER (CLIENT||N||PLNTY||PLNNR||PLNAL||ZAEHL - field names)  I used the same logic to construct the test data for another routings which were created and doesn't have the long text. I have run the lsmw program and executed successfully but when i open the routing in CA03 i dont see the long text populated.
    Test data used looks like this:
    OBJECT   NAME TDID SPRAS TEXTFORM TEXTLINE
    ROUTING N500000890100000001 PLKO E * THIS IS A TEST1
    ROUTING N500000890100000001 PLKO E * THIS IS A TEST2
    ROUTING N500000890100000001 PLKO E * THIS IS LINE3
    ROUTING N500000910100000001 PLKO E * LONGTEXT1
    ROUTING N500000910100000001 PLKO E * LONGTEXT2
    My question here is do i need to construct the NAME as i have mentioned above or do i need to just send the Routing Group number into the file for the NAME field. Help me understand what do i need to populate into NAME field.
    Please help with the mistake i have done.
    Pretty much appriectiated for your replies.

    You asked the same question in two different forums multiple times:
    Standard LSMW to load Routing Long text
    Re: LSMW : Long text not visible after the import of data
    Please use same one thread for one question.
    I gave you most of the needed information assuming you know how to do LSMW in the first thread itself.
    You need to have the following fields in your source structure in addition to other fields like long text
    MANDT
    PLNTY
    PLNNR
    PLNAL
    ZAEHL
    In the step Maintain Field Mapping and Conversion Rules  assign the source field MANDT to the variable NAME and then again place the cursor on the variable NAME and assign variable PLNTY, (now you have two source field assigned to same variable) similarly assign all the remaining 3 source fields PLNNR, PLNAL, ZAEHL. (now you have 5 source field assigned to same variable).
    Now select the variable NAME by placing the cursor click on Rule (Insert Rule) and select the radio button Concatenation .
    Make sure that in  your input file you have leading zeros for PLNNR PLNAL and ZAEHL etc. like below
    50000089, 01, 00000001
    Also, you don't need maintain the value of OBJECT, TDID, SPRAS, TEXTFORM as source fields. You can directly maintain them as constants in Maintain Field Mapping and Conversion Rules by click on the push button Rule .

  • Routing long text editor change

    Hi,
    When we go to Routing long text and try to open it, it will open one word document.
    My requirement is, I want to change that word document as Notepad (text editor) for particular user.
    Please tell me is it possible to change that word doc to text doc, If yes then how to make settings?
    Regards,
    Chetan

    Hi Chetan,
    Even I have the same problem ! I had raised a SAP ticket & waiting for the response...
    Now can tell me how/what should i do to change to get a particular editor???
    Awaiting for your response..
    ~Guru

  • Routing long text-reg

    Hi,
    Is there nay table to see routing long text field for the multiple material

    Dear,
    Please refer these threads,
    Table for routing operation text?
    Re: Long text indicator
    Regards,
    R.Brahmankar

  • Problem loading hierarchy long text. Item text only displays 45 characters

    Hi,
    When loading the Financial Statement hierarchy from ECC to BI I am only getting a 45 character long text for the nodes. This text seems to correspond to the "Item" text seen in transaction fse3 in ECC. However, the text that I need to have is the (concatenated) long text enterer in the multiple fields under either "End of Group" or "Start of Group" (under Item: Display Texts in fse3).
    Does anyone know if it is possible to extract this information and how to go about when doing this?
    Points will be rewarded for help.
    Regards
    Nils

    Hello Vânia,
    >> fac586, Thank you very much for your help ….
    Just so you know, fac586 is called Paul :).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Problem in loading the long text in bdc.

    Hai Friends,
                  I am uploading the material master using bdc, Here i need to upload the long text field. so am using the separate report for upload the long text field using the create_text function module. but the problem is the long text field only accepting 132 charactors. but i need to upload the 500 charactors. what i want to do now ?
    Regards ,
    Sathis Kumar R

    Hi Sathis,
    What u do is that while recording the text part in bdc , click on the first delete button,  and then create button and after that double click on the editor or click on the text-editor change button, a window will get opened , then click go-to menu -> change editor.
    there u can use loop the text table and wirte it according .
    eg
    PERFORM bdc_dynpro      USING 'SAPMV45A' '4002'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TP_DELETE'.            "first delete
      PERFORM bdc_dynpro      USING 'SAPMV45A' '4002'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TP_CREATE'.             " then create
      PERFORM bdc_field       USING 'LV70T-SPRAS'
                                    sy-langu.
      PERFORM bdc_dynpro      USING 'SAPMV45A' '4002'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TP_DETAIL'.             "if not double click then click on change button after the delete button and then click on the change-editor menu .
      PERFORM bdc_field       USING 'LV70T-SPRAS'
                                    sy-langu.
      PERFORM bdc_dynpro      USING 'SAPLSTXX' '1100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RSTXT-TXLINE(02)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TXVB'.
      PERFORM bdc_field       USING 'RSTXT-TXPARGRAPH(02)'
      PERFORM bdc_field       USING 'RSTXT-TXPARGRAPH(03)'
      PERFORM bdc_field       USING 'RSTXT-TXLINE(02)'
                                    wa_itab-htext1.
      PERFORM bdc_field       USING 'RSTXT-TXLINE(03)'
                                    wa_itab-htext2.
      PERFORM bdc_dynpro      USING 'SAPLSTXX' '1100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RSTXT-TXLINE(02)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TXBA'.
      PERFORM bdc_dynpro      USING 'SAPMV45A' '4002'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/EBACK'.
    regards,
    Santosh Thorat

  • Recovery of Long Texts with LSMW in CRM

    Hi all,
    <b>How can I recovered long texts in LSMW, texts with more than 132 characters and with a lot of lines ?</b>
    I have to recovered Business Partners in CRM with technical IDOC (mesage type CRM_XIF_PARTNER_SAVE), and when the texts are recovered (structure E101BUS_EI_LONGTEXT), I have only one line (the first or the last).
    Thanks for help.

    Hi,
    Yes, I know that I can make a specific program to load the long texts with the function "SAVE_TEXT", but I want to know how to load long texts into LSMW. For example, I have the same problems when I used the standard program /SAPDMC/SAP_LSMW_IMPORT_TEXTS : it will only load one line with 132 characters. So, WHY ? and how to load more than one line ?
    Thanks

  • Loading Long text longer than 132.

    Hi,
    I am trying to load Material Master long text (Basic data, Purchase order Text) . The LSMW (a standard batch / direct input) for Long text only allows 132 chars and my long text is longer than 132?
    What can i use to load the long text?
    Regards,
    K.

    Hi
      Within the program, structure TLINE loads the text.
    This structure consists to fields TDFORMAT and TDLINE.
    The text exists in field TLINE-TDLINE.
    Whereever, we need to give extended text we can use '=' symbol for TDFORMAT. Just like in SAP Script Form(Extended Line).
    Alternatively you can use FM: SAVE_TEXT for loading the texts.
    Insert a convert routine to split the text in several lines.
    You can use the following function module to split your long text into multiple lines.
    QADB_DOCU_CONVERT_TO_SAPSCRIPT
    You can refer this link for further information
    Re: insert it into the next line in internal table
    Thanks.

  • How to upload Methods long text using LSMW

    Hi,
    I am using LSMW - direct input program (Object 0001 Method - 0001)  to upload methods long text.
    I have two files with header and item as below
    Header file:
    Object : QPMETHODE
    ID : QMTT
    Item_id : link between header and item (method number)
    NAME: Passing concatenated value of  "sy-mandt, company code, Method number, 6 char space for version and language"
    Language : E or S.
    Item file:
    Item_id : link between header and item (Method number)
    Text Format : blank
    Text line : long text
    Here the problem is, after converting the data i have run the direct input program to upload the long text, but it is not updated in the transaction QS34.
    Could any one help in this?
    Thanks & Regards,
    Suresh.

    Hello,
    The field QMTT-LTEXTKZ is a flag which says whether Inspection method has a long text associated with it at transaction level. You are not able to see the Long text in the transaction though you have loaded & able to see the long text by FM READ_TEXT because in your case the field QMTT-LTEXTKZ = ' '. so I suggest you to load the long text in following way.
    Step 1: make a small recording to Tx: QS33 - push the long text button to get the long text editor. in this editor, on second line of the tag, put a * and save the transaction. By this way you put a X in field QMTT-LTEXTKZ & hence register a longtext for Inspection Method.
    Step 2: proceed with the loading the Long text with object 0001as you mentioned.
    Now you will be able to see the LT on the transaction level.
    Hope this helps.
    Regards, Murugesh

  • Notes - Standard Function Modules long text functionality

    Hi All
    Need standard Function Modules for Notes (long text) functionality. I need to create a notes tab in dialog program, this notes tab has all formatting icons to enable create/upload/modify the text entered and passed to SAP standard text objects.
    Edited by: sharmalvn on Jun 29, 2009 4:34 PM

    Take a look at function modules:
    - SAVE_TEXT (saves text to an existing object)
    - READ_TEXT (read text from an existing object)
    - CREATE_TEXT (writes text to a new object)
    Hope that helps,
    Michael

  • How to download and upload long text for project, WBS , Network,

    Hi all,
    I have two isssues.
    1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
    BAPI_PROJECTDEF_GETDETAIL
    BAPI_PROJECT_GETINFO
    BAPI_NETWORK_GETINFO
    BAPI_BUS2054_GETDATA
    I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
    The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
    2)  I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
    All help will be greatly appreciated and rewarded.
    Thanks & Regards,
    Rajanidhi Rajasekeran.

    I don't think there is any BAPI to do it.
    We are doing it by read_text & edit_text . required fields for text name can be fetched by following select
      if not e_activity[] is initial.
        select aaufnr aaufpl baplzl bobjnr b~vornr
          into corresponding fields of table t_longtext
          from afko
            as a
        left join afvc
            as b
            on aaufpl = baufpl
           for all entries in  e_activity
           where a~aufnr = e_activity-network
           and a~aufnr is not null.
      endif.
          txtname = wa_longtext-objnr.
          replace c_nv in txtname with sy-mandt.

  • How to upload and download Long text for WBS, Project, Network

    Hi all,
    I have two isssues.
    1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
    BAPI_PROJECTDEF_GETDETAIL
    BAPI_PROJECT_GETINFO
    BAPI_NETWORK_GETINFO
    BAPI_BUS2054_GETDATA
    I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
    The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
    2)  I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
    All help will be greatly appreciated and rewarded.
    Thanks & Regards,
    Rajanidhi Rajasekeran.

    One thread in the correct forum is good enough, no need to double post across ABAP forums.  Thanks.
    Regards,
    Rich Heilman

  • Saving/Commiting the Long Text

    Hi,
    I am trying to save the long text created in a Z Transaction (Table Control). While saving it, I am getting the message as “Text Saved". But It is not actually stored in SAP. I am not sure, what is that I am missing. I am using the SAP Standard Routine to Save the Long Text. I am also calling the FM: COMMIT_TEXT explicitly after the long text is saved. Can any one please suggest me, what should I do to commit the long text in SAP?
    Appreciate Your Help.
    Thanks,
    Kannan

    May be my earlier post was confusing, I was asking you to set the Insert parameter to SPACE and the Savemode_direct to 'X' and see if it works or not.  I had the same issue and resolved it using the above parameters.  Also try and see if Srinivas's suggestion in the following thread:
    Problem with SAVE_TEXT FM
    hith
    Sunil Achyut

  • ABAP Function to read long texts in HR Infotypes

    Is there any standard ABAP function to read long texts in HR infotypes like ABAP function to read comments entered in infotype 19

    HI ,
    try this code
    tables pcl1.
    include rpc1tx00.  " This include is explained on web page above
    start-of-selection. 
    perform fill_key.  perform get_data.end-of-selection.
    form fill_key. 
      tx-key-pernr = p_pernr.
      tx-key-infty = p_infty.
      tx-key-subty = p_subty.
      tx-key-objps = p_objps. 
      tx-key-sprps = p_sprps.
      tx-key-endda = p_endda. 
    tx-key-begda = p_begda.
    tx-key-seqnr = p_seqnr.
    "OR
      SELECT * INTO CORRESPONDING FIELDS OF wa_p0219
       FROM pa0219
       WHERE pernr = p_pernr
         AND subty =  p_subtyp
         AND endda = '99991231'.
      ENDSELECT.
    MOVE-CORRESPONDING gs_p0219 TO tx-key.
        MOVE '0219' TO tx-key-infty.
         IF wa_p0219-itxex = 'X'.
           MOVE-CORRESPONDING wa_p0219 TO tx-key.
         endif.
    endif
    endform.                    " fill_key
    form get_data. 
          import ptext from database pcl1(tx) id tx-key.
           loop at ptext.            "ptext is defined in above include  
                   write: / ptext-line. 
          endloop.
    endform.  " get_data
    Prabhudas

  • Add Long text for consignement item

    Hello all,
    For Item category Standard, I can add a long text in a contract, but for item category consignement when I click the button text overview, I don't find the space to add a long text.
    It's clear that it's related to customizing but I can't find it. can someone help me in this issue.
    Thanks
    Mohamed

    Hi Mohamed,
    This issue seems related to the thread :
    Re: Item texts in contract
    could you please verify and eventually close also this one ?
    Thanx & Regards,
    Mauro

Maybe you are looking for

  • How can I create a new TC backup with ethernet, so I don't have to wait two days for a new wireless backup?

    How can I create a new TC backup with ethernet, so I don't have to wait two days for a new wireless backup? Several times in the last year, I've gotten a message that Time Machine needs to completely redo my backup. Using the wireless connection, thi

  • Homogeneus system copy error

    Hi all, I have already functionally a SAP instance PRD ECC 6.0(ABAP only) on server with Windows Server 2008 R2 X64 and Database MSSQL 2005. I tried to make a Homogeneus System Copy with Backup/restore method on same server but i have some errors. I

  • How to install an app CC thinks you already have

    Hi, i was having some trouble applying a new colors.xml file to DW CC, i put the file in place of the previous colors.xml file and nothing changed (yes, i renamed the old colors.xml file to colors.bak). As this didn't work, i started manually changin

  • ORA-00904 when exporting job queues

    Hi! I have a 8.1.6.3.7 database (although you only see 8.1.6.3.0) when you log in) which I'm trying to export. Everything is fine until the time comes to export job queues. I then get the following error messages: EXP-00008: ORACLE error 904 encounte

  • Impossibilité d'exporter en pdf (InDesign CS5)

    Bonjour, Parfois quand je veux exporter un document InDesign CS5 en pdf, rien ne se passe, et quand je veux fermer le document en question j'ai le message d'erreur suivant : "InDesign ne peut pas fermer le document car il est utilisé par une ou plusi