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

Similar Messages

  • 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

  • Upload Material master with long text using LSMW

    Hello,
    i want ot upload material master data via MM01 using LSMW in following views: basic data 1 ,2,  purchasing, purchase order text, plant data 1,2.
    i have to upload long text in purchase order text with length more then 132 char. (approx 700 char long text). and i have text file in which long text is maintained in a single row. then how can i do it without formating text file or anyother possible solution.
    please help.

    ca u clarify how can i do it.
    suppos i have longtext   "Air cooled type air-conditioning unit complete with following components & distance between indoor & outdoor unit is  10 RMT.  A).Indoor evaporating unit comprising of cooling coils,insulated drain tray,20 micron HDPE washable filters,blower,motor,electical junction box etc. B).Outdoor condensing unit comprising of hermatic/semiharmetic compressor's.condenser coils,propeller/axial fans,motors,pressure switches/cutout etc.C).Charging of refrigerant gas & oil.D).Inter connecting refrigerating piping  of copper duly insulated with EXPANDED POLYETHYLENE tubing.E).Complete electical power wiring of AL.&Control wirng of copper required from indoor & outdoor units.Earthing of the complete system with 8 G G.I.wire.  F).Electrical panel will be completed with necessary starter,fuses,switches,timers,over-load relays,contactors,push button and indicating lamps,single phasing preventer etc..and also with remote control with cording. G).The panel should have 1 no.potential free contactor to connect with central fire detection system.The panel should have voltage scanner to ensure stabilized power input to the machine.H).Outdoor unit shall be mounted on MS angle base frame structure duly black painted with synthetic epoxy paint.I).The frame structure shall be mounted on MS plate & serrated rubber pads."
    then what i have to do changes in lsmw.?

  • How to display a long text with several in multiple lines in template cell

    Hi,
       here i have one string such as 'Power MOS_TestTestTest'. But it will display in the template cell as
       'Power
       MOS_TestTestTest'.
       And what i want is 'Power MOS_TestTes
                                   tTest'.
      How to achieve this ? ths

    Hi,
    If the Width of the Templete in not sufficient to display whole text then from the next word it is dislpayed in the next line. As in your case ..
    'Power
    MOS_TestTestTest'.
    If you want to have this like
    'Power MOS_TestTes
    tTest'.
    You need to write the logic to split the string as per your rquirement and print them.

  • FM to get the long text of a notification/CRM order?

    I use select statement into database table BALHDR, but get only the protocol data. Does anybody know how to obtain the longtext (content) of a notification?
    Thanx.
    Nuno

    call function 'READ_TEXT'
          EXPORTING
               id                      = '0001'
               language                = 'EN'
               name                    = document number
               object                  = object name
          TABLES
               lines                   = lines
    cheers,
    sasi

  • 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 .

  • Upload purchase order text through LSMW

    Please tell me procedure for uploading sales order & purchase order text in material master through lsmw

    Hi
    Long Texts are stored in STXH table with 4 parameters TEXTNAME,OBJECT,ID and LANGUAGE
    You can't find the complete text in any table
    You will find these 4 parameters in the table STXH.
    Texts are created using the fun module CREATE_TEXT and SAVE_TEXT and these texts are fetched using READ_TEXT fun module
    For uploading these long texts using LSMW see
    for Long texts Upload
    Please take a look at this..
    http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Problem for uplaoding sales text using LSMW

    Hi,
    I have use LSMW for uplaoding material masters sales and purchase order text ,  first I have done for purchase order text  with object : MATERIAL  and ID : BEST  it works fine for this  after that when I am trying same for uploading sales text    OBJECT : MVKE  and ID : 0001  it is picking file proerly  and till final BDC step it is not giving any error  but  in material master  sales text is not getting updated for that material.
      what canb be the problemm
    also for pO text for matnr i have given only material code  18 Chr.
    and for sales text  i hva egiven MATNR + SALES ORG. + DISTRIBUTION CHANNEL  as it required for sales text.
    regards,
      zafar

    Dear Zafar,
    I found a similar problem while uploading Porduction order long text. May be this information is useful for you.
    The common task of changing the long text of a production orderu2019s operation can bring some surprises.
    The first problem that is usually encountered is that after updating the long text with the function SAVE_TEXT, the new text is not visible in standard SAP transactions like CO03. The new text can be read with the function READ_TEXT though. The trick is that SAP uses the u201Clong text existsu201D indicator, the field TXTSP in the table AFVC. To make the text u201Cvisibleu201D to standard transactions, we have to set the TXTSP value to the current language (or the textu2019s language). Unfortunately, this has to be done with the direct UPDATE on the AFVC u2013 there are no known workarounds.
    Another problem can be seen when the same order is processed by users that use different languages. While SAP allows to store the long text for the same operation in several languages, actually, only one text object will be active at the same time in regard to standard transactions u2013 the object in the last saved language. That means, when SAP writes the text back, the TXTSP will be overwritten with the current language (say, language A). If the next user is working in another language (language B), SAP will present the text in the u201Cfirstu201D language (A) in the CO03 (even if the text in language B exists!). But after saving, the text will be written in the new language and TXTSP will be set accordingly.
    So, when working with long texts directly, you have to read with READ_TEXT using the language stored in TXTSP, NOT with the current language. When saving, you save in the current language and set the TXTSP to the current language. This way you are consistent with what SAP does and this will prevent you from surprises in a multilingual environment.
    Regards,
    Kamal

  • Hyperlink In Long text

    Hi Champs,
    I have a requirement where in need to display a long text with hyperlink in the portal application. The long text will be created with SAP at backend.
    Need to know whether it is possible to create a hyperlink in the text.
    Thanks
    Regards,
    Nishant

    I'm not familiar with Portal (this is ABAP General forum). What is it that you're trying to achieve exactly? Are you developing a report in SAP? An FM? A web service? What means are you planning to use to display the message?
    [Similar Question?|se91 long text: wanna create a hyperlink in longtext;
    Edited by: Jelena Perfiljeva on Nov 3, 2009 3:43 PM

  • Long text so10 - filling of variables in abap.

    Hi all, im facing this, maybe easy, task.
    i have in SO10 created a long text with variable
    for example:
    "Hi, &USER&, how are you?".
    i read this long text in abap program and now i need to to fill this variable &USER& with some value. How to do it? I think there should be some standard FM.
    thanks, Philipp

    Hi,
    Use below two FMs:
    * Read standard text
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                  = sy-mandt
          id                      = 'ST'
          language                = 'EN'
          name                    = 'TEXT_NAME'
          object                  = 'TEXT'
        IMPORTING
          header                  = wa_header
        TABLES
          lines                   = git_lines           " Text Lines
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      IF sy-subrc = 0.
    * Replace the symbols with the values
        CALL FUNCTION 'TEXT_SYMBOL_REPLACE'
          EXPORTING
            header  = wa_header
            program = gc_program
          TABLES
            lines   = git_lines.
      ENDIF.
    Here you simple have to fill the global variables before you call these FM.
    Thanks.
    Ravi

  • Char. formats(Bold, Underline) in Long text editor not visible in ABAP WD

    Hi ABAP experts,
    Problem:
    I have created long text with using bold and under line formats in long text editor (FM TEXT_ EDIT). I am trying to show same text in WebDynpro using READ_TEXT FM. But FM READ_TEXT is getting long text with HTML tags as shown below for bold and underline and it long text showed as same in WebDynpro application with HTML tags.
    Long text shown in webdynpro:
    Type your message using the form below. When finished, you can
    optionally preview your post by clicking on the <H>"Preview"</> tab.
    Otherwise, click the <U><H>"Post Message"</></> button to submit your
    message immediately.
    Is there any function module available to change format and pass to WebDynpro context?
    Thanks
    Rajesh Yadla

    The normal text editor in Web Dynpro won't handle HTML tags (they get safe encoded as you described).  In NetWeaver 7.01 we do introduce a FormattedTextEditor that allows for such formatting. There are APIs to convert from SAPScript based texts to the XHTML FormattedText tags.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/2772f505605447e10000000a422035/frameset.htm

  • Uploading long text as one long text for the same records.

    Hi,
    i am uploading long text into one custom application.in that i had one issue,
    I am uploading long text with the combination of material,palnt,division,sales organization and distribution channel.
    Now my reqiurement is when ever two or more than two records are same for the material,palnt,division.The respected text shulod be created as a single text.
    will any body suggest me with logic, how to handle it?

    Hi,
    i am having records like this...
    MATNR    VKORG    VTWEG    TEXT
    865498    0012        00654       test1
    865498    0012        00654       test2
    865498    0012        00654       test3
    865498    0012        00654       test4
    865498    0012        00654       test5
    865498    0012        00654       test6
    865498    0012        00654       test7
    in the above test data MATNR , VKORG, VTWEG records are same but TEXT is different.
    Now my requirement is , i need to upload the data in to application as
    MATNR    VKORG    VTWEG    TEXT
    865498    0012        00654       test1test2test3test4test5test6test7
    how can i handle it?

  • Long text in operation

    I am developing a smartform with help of abaper for pm check list.
    in the task list operation i can select maximum of 40 characters,but my tasks are more than 40 characters.
    what ever is written in the operation should show  in my smartform.
    but how do i tackle where my operations text is longer than 40 characters.
    if i use long text how can i read the long text with the help of function module READ_TXT
    Edited by: Mohammed Iqbal on Sep 28, 2011 11:40 AM

    Hi
    you can use the function module READ_TEXT and reference tables are STXH,STXL.
    input the following
    CLIENT- actual
    ID             - PLPO
    LANGUAGE- EN
    NAME-- Text name from tables STXH
    OBJECT - ROUTING
    Regards
    Seenu

  • Long Text not Trasporting in QS41

    When I created code entries for a code group using transacation QS41, I filled in the short text but I also added long text to further clarify which code should be chosen.  When I test this option in our developement system, I can click on "Display Long Text" icon and read the extended text when I am choosing a particular code.
    When I transport these catalog entries up to our staging system, the code groups, codes, short text and long text icons transport great but when I click on the long text icon I get a message "No long text exists".
    Has anyone run into this or can you offer a solution?
    thanks

    Hi
    BAPI_DOCUMENT_CHANGE/CHANGE2/CREATE/CREATE2 (structure BAPI_DOC_TEXT)
    check following
    Re: reg how to retrieve long text
    Re: LSMW long text
    for additional info
    How to transfer long text to excel sheet?
    check wheather it is useful...
    Sujit

  • Regarding Saving of LONG TEXT in QP02/QP03

    Hi All,
    I am saving the long texts for Inspection Characteristics using SAVE_TEXT.
    The Text is getting saved but i am not able to see it in Display (QP03).
    To see it in display I need to Save the text first in QP02 and then it is available in QP03.
    I tried using COMMIT_TEXT after SAVE_TEXT..but it's not happening.
    Your help is needed on this.
    Regards,
    Priyanka

    Hi
    one way to upload the long text is to run a bdc.... in BDC check the long text and put the default data in the text with the length greater than 40 characters ........now use  the create_text to upload the long text with the data u need to upload with....
    second one in uploading the BOM header i had also updated a field LTXSP in table STKO for those BOM's..this field is required to be updated for the display of long text in BOM.....
    Similarly u can also find the field in the table for Inspection plan.....i m sory i dnt know much about inspection plan....but there also a similar logic can be applied....can u tell me about the table u are using to update the QP02
    kanishak

Maybe you are looking for