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.

Similar Messages

  • Loading long text more than 60 maximum of 240 characters into cube

    hi experts,
    I am loading from  flat file some time the description field have more than 60 characters  below then 240, so kindly advise me how to load onto the description field in cube. How to split the description fields.

    Hi Rajesh,
    Please check the below SDN blog for Long Texts in SAP BW.
    Long texts in SAP BW: Modeling
    Also go through the below thread.
    Flat File Datasource
    Hope it helps.
    Regards,
    Raghu

  • GR Page headers empty for 1st page for Long Text greated than 26 lines

    Gurus,
    I have this wierd problem on my GR. I added the following code and corresponding fetches in the printprogram to include PO Item long texts in the GR.
    /: INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE E PARAGRAPH Z8 NEW-PARAGRAPH Z8 
    When the text is upto 26 lines, everything seems fine. But when it is more than 26 lines and usually a new page needs to be created, all the dynamic texts like PO number, Buyer name, Plant name etc. in the header of the 1st page is blank. But all the details in the second page seem to apprear fine.
    Any suggestions on where to or what to look for to solve this problem?
    I'd appreciate any help with this problem.
    Thanks
    L

    Yes...the way the current print program works is that the header and footer contains information like PO number dat, buyer, isuued by etc and these will print on each page that is created. These are populated prior to the area where write forms for Main are issued.
    The main page contains the Item related information. I have added a code where the long text is also obtained before all the write forms. I then issue write form in the same subroutine where other Main-related write forms are coded.
    L

  • 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

  • Notification long text

    Dear All,
    The notification long text filled in  3rd party software and it passing through XI. Through function module I am updating the long text in the IW22. This long text is filled 132 characters only but I need to fill more than 132 characters through this integration. where I can do the changes.
    Thanks and regards,
    Krish...

    Hi Krish,
    It would be great if you can share the solution. How did you solve this problem? I am currently facing the same issue.
    Thanks,
    Mittal

  • How to send long text  in a mail using FM : SO_NEW_DOCUMENT_SEND_API1

    Hi All,
    In my BSp application user can enter long text   ( can be more than 300 char ) in TextEdit.
    problem is as below:
    1) i am getting all the text in oninput processing ...
    2) using the FM READ_TEXT to   get mail template built in SO10.
    3) Replacing all dynamic variables in mail template with user enterd text.
    4) then passing the data to FM SO_NEW_DOCUMENT_SEND_API1.  this FM has table parameter with 255 char ( please check once )
    i am able to send the data  in mail.   But long text more than 256 char is not comming as single paragraph.
    For expamle  ...user enter the following  text in text edit.
    Responsible for the development, implementation, and maintenance of human resource information systems (HRIS) associated with the collection, retrieval, accessibility, and usage of employee information for Human Resource department planning and activities.  Maintains internal database files and tables, and develops custom reports to meet the requirements of Human Resource management and staff.
    in inbox i am getting as below:
    Job Description for    : Responsible for the development, implementation, and maintenance of human resource information systems (HRIS) associated with the collection, retrieval, accessibility, and usage of employee information for Human Resource depa
      Maintains internal database files and tables, and develops custom reports to meet the requirements of Human Resource management and staff.
    Job Description for is fixed text from SO10 templete.   and  remainning text is user text.
    some data is missing in mail.
    SO10 template  is as below  :
    Job Description for : &INSTRUC1&
    &INSTRUC2&
    help to solve the above issue.
    Regads,
    Kishan
    Edited by: kishanrao.sap on Oct 11, 2010 3:12 PM

    Hi Krishna,
      Please use the object_type parameter of tthe FM as 'HTM'.
    Then divide the text by append them into the lines of the object_content. In the begining and end make sure you have
    <p> --  in the begining
    </p>-- in the end
    if i want to type the text in one para " My name is Imran and i am an ABAP developer".
    CLEAR: WA_OBJECT_CONTENT.
      WA_OBJECT_CONTENT-line = '<html>'<body><p> My name is Imran.
      APPEND WA_OBJECT_CONTENT TO T_OBJECT_CONTENT.
    CLEAR WA_OBJECT_CONTENT.
      WA_OBJECT_CONTENT-line = ' and i am an ABAP developer</p></body><html;>'.
      APPEND WA_OBJECT_CONTENT TO T_OBJECT_CONTENT.
    Hope this helps you.
    Regards
    Imran.

  • How to insert long text data in oracle for LONG column type??

    Anybody who can tell me what is best way to store long text (more than 8k) in Oralce table.
    I am using Long datatype for column but it still doenst let me insert longer strings.
    Also I am using ODP.Net.
    Anybody with a good suggestion???
    Thanks in advance

    Hi,
    Are you getting an error? If so, what?
    This works for me..
    Greg
    create table longtab(col1 varchar2(10), col2 long );
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    using System.Text;
    public class longwrite
    public static void Main()
    // make a long string
    StringBuilder sb = new StringBuilder();
    for (int i=0;i<55000;i++)
    sb.Append("a");
    sb.Append("Z");
    string indata = sb.ToString();
    Console.WriteLine("string length is {0}",indata .Length);
    // insert into database
    OracleConnection con = new OracleConnection("user id=scott;password=tiger;data source=orcl");
    con.Open();
    OracleCommand cmd = new OracleCommand();
    cmd.CommandText = "insert into longtab values(1,:longparam)";
    cmd.Connection = con;
    OracleParameter longparam = new OracleParameter("longparam",OracleDbType.Long,indata .Length);
    longparam.Direction = ParameterDirection.Input;
    longparam.Value = indata ;
    cmd.Parameters.Add(longparam);
    cmd.ExecuteNonQuery();
    Console.WriteLine("insert complete");
    //now retrieve it
    cmd.CommandText = "select rowid,col2 from longtab where col1 = 1";
    OracleDataReader reader = cmd.ExecuteReader();
    reader.Read();
    string outdata = (string)reader.GetOracleString(1);
    Console.WriteLine("string length is {0}",outdata.Length);
    //Console.WriteLine("string is {0}",outdata);
    reader.Close();     
    con.Close();
    con.Close();
    }

  • Difference betwen short text and long text

    Hi,
    what is the difference between short text, long text and variant.

    Hi,
    Short text is the short description you give for an object or field simlarly long text is the long description for a object or field.
    Short text cannot have lenght more than 20 and long text more than 60.
    Variant means for example if you give certain values as an input in one of your transaction for testing and you want the same values to be used every time you test in that particular screen, then instead of inputting the values again n again you call the variant.
    Hope this helps
    Assign points if useful
    Regards,
    venkat

  • Modifying the lengh of a long text field- Crystal Report version 2011

    Hello,
    I'm having a problem with the long text field in my crystal report.
    I'll desribe the problem:
    We work with BW version 7.4 sp 5.
    I created a BEX Report with an infobject of type Long Text (Long Text is XL).
    I know the length of this field is 1,333 char.
    When I run the Bex Report the field is displayed correctly (long text).
    I then created a Crystal Report 2011 version 14.0.6.1036 RTM based on my BEX Query.
    The problem is that the Crystal report brought this database long text field as a
    String[70]. Thus I get only the first 70 characters of the field.
    Can we modify the settings of the field to enlarge it to be 1,333 characters in
    length?
    Thank you,
    Ayelet

    Hi Jothi,
    Short Text and Long Text are associated objects of a Characteristic from a BEx query.
    The 'Short Text' will not turn to 'Long Text' by setting the 'Can Grow' option.
    In Fact, both are completely different objects.
    -Abhilash

  • Reading Text longer than 132 Characters including Special characters

    Hello Seniors,
    Could you please give me some information about the following Function Modules also?
    'SOTR_STRING_CREATE_CONCEPT'
    'LXE_OBJ_TEXT_PAIR_READ_SOTR'
    'SOTR_STRING_READ_TEXT_WITH_KEY'
    I was able to create a concept by using the Function module 'SOTR_STRING_CREATE_CONCEPT'. Now, I need to create a text and then read the text where ever I want (the text can be longer than 132 characters and also may contain special characters) from abap functions as per my requirement.
    my requirement is not based only on SAP Scripts.
    Thank you,
    cnc.

    check in  url    www.SE37.com
    regards,
    Prabhu

  • Reading Texts longer than 132 Characters

    Hello Seniors,
    I am working on Reading Texts more that 132 characters long.Texts should include Symbols also.I want to <b>Create and Save</b>the texts and then <b>read</b> them wherever I want from ABAP functions.
    I want to know the Transports information relating to this.
    Could there be any function modules (with relevant parameter passing)to create long texts and then read them where ever I need.
    Thank You,
    cnc.

    HI
    Check the fun module <b>READ_TEXT</b>, CREATE_TEXT and SAVE_TEXT and EDIT_TEXT etc related to the Std texts
    Have to pass the parameters like OBJECT,ID, OBJECTNAME,LANGUAGE
    You can transport these texts using the program <b>RSTXTRAN</b>
    see the doc
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to load long text in BOM line item

    Hello Experts
    How do i load Long text in BOM Line item using LSMW
    Thanks
    S
    Edited by: Alvaro Tejada Galindo on Jan 31, 2008 5:11 PM

    Use Read_text function module.
    you need to pass
    ID
    LANGUAGE
    NAME
    OBJECT   to the function moduel
    To find the Text id name language and object these are the following steps. Example: FB02
    1. goto FB02, Enter Document number
    2. from menuselect Goto>Header-->header Text..... New window will be displayed 
    3. select the Header Text. here you can see all the text. 
    4. click on the TEXT (which you want to know the Text id) , then press log ICON (you can find in bottom right of the text window) it looks like a rolled paper. 
    5. in the Next window you will find Text Name. Text ID, Language. etc...
    Regards,
    Lalit Mohan Gupta.

  • Is it possible to Create a Long Text Field (more than 255 Char Long)?

    Is it possible to Create a Long Text Field (more than 255 Char Long) as like Description field in Service Request Object??
    Thanks!

    Hi
    User can only create custom Long text field (255 Charcter) . Currently system does not support custom note creation

  • Error loading file in the operation long text in the General task list

    Hi all,
    I couldnt upload the detailed check lists in the operations (operation tab) of the general task lists through the long text uplaod via Text->Upload->RTF---> .System is throwing the following Information...
    1.Error loading file " specified path with filename.rtf"
    Could you please give me any idea to eliminate this.The client is having the detailed check list for each and every operation with safety measures to be taken.
    Plz help.
    Regards,
    Suresh.

    Hi all,
    It was an authorisation object missing and the problem got solved.
    Regards,
    Suresh.

Maybe you are looking for

  • Jumping to First & Last Pages of a PDF Doc.

    I am using Acrobat 9 Pro with Windows XP Pro. In Acrobat 8 Standard, I was able to jump to the first or last pages of a documents without have to use the page navigation arrows. Can I jump to the first and last pages of a PDF doc. in Acrobat 9 Pro? I

  • Error in BPC Administration

    Dear Experts, I Newly Installed SAP BPC 5.1 with SQL Server 2005. When iam trying to open BPC Administration its showing a error message "A dimension information file cannot be created. There may be a network or Security issue.Error Message: Empty Zi

  • Can I still get my photos. I don't know what happened.

    Can I still get my photos. I don't know hat happened.

  • 'All spots to process' Checked automatically. Please help

    Hi, I recently sent a job to print which was supposed to have 1 spot colour. It came back from the printer 4-colour with no spot and when I ckecked the artwork 'All spots to process' was checked in the Ink Manager. I definitely did not check the box

  • Can't rip CDs reliably in iTunes 10.5

    I have been experiencing problems ripping CDs on my iMac. Many CDs appear OK, but some have just absolutely dreadful distortion. I have tried using different Macs, and even switching to Windows. Once I've identified a CD which won't rip, the terrible