Storing long text in database table

If the length of the text which is very long is not fixed,   how can we store it in a database table?

Hi
<b>no need for any FM</b>
You need to create a table have a filed longer than 512 char, so you should use a field with a domain with type LRAW or LCHR (it can be longer than 512 char):
see the data element PC03_DSATZ for example.
When you create your table, before this field you have to insert a field type INT4 where you'll indicate the lenght of your text.
So your table should be:
MANDT key
NAME (Text Name) key
ZLENG (Type INT4)
TEXT (type LCHR)
Rgds
Anver

Similar Messages

  • Can OWB 11.2 stored detailed Logging in database tables

    Hi All,
    I am evlatuationg OWB11.2 as ETL tools.
    I know that owb 11.2 can store detail error infomation in error table (in OWB user guide document),
    but i can not found information to support storing detailed logging in database table.
    could you please let me know if you have any clue?
    thanks for your attention.
    Best Regards

    Hi David,
    Thanks for you information.
    Yes, i think it is audit table.
    I will find some information of audit table in Oracle documents.
    Thanks for you information.

  • Recording Differences in Long Text Changes via Table Logging and AUT10

    Hello,
    I am trying to record changes to Long Text generated in a DMS DIR.  (This field is the Language Dependent Description field.)  We have set the system profile param rec/client.    We have enabled table logging for STXH & STXL in SE11.  When we make a change to the Long Text, we try to display the results in AUT10.  A change is indicated but when displayed, the text seems identical. 
    When displaying Logging status in RSTBHIST, the Active box for STXL is not checked despite the fact that we have set the "Log changes" box in SE11.
    Note #573291 talks about installing a PH-ELR add-on.  Is that necessary if we are already running SAP_APPL 6.04?
    Also, is Table Logging the best approach to capture these changes to Long Text?  Is there any way we could use Change Docs"?
    The field width of DBTABLOG-LOGDATA = 16000 if that matters.
    Thanks for any responses.
    Edited by: John K Ryan on Oct 13, 2011 9:20 AM

    Tobias,
    "You created a dynpro based transaction which allows you to change
    the content of a text. The text to change is not part of the dynpro
    screen, but you want to set it into an ITS field where you can access
    it using Bussiness HTML. Is this correct?"
    <b><u>This is correct.</u></b>
    Below is the portion of HTML template code in which I'm defining the web screen pushbuttons, providing the pushbutton names, and linking same to the function codes defined in the R/3 transaction.
    This is my first experience with ITS, so if I've missed something glaringly obvious, I apologize in advance.
    Thanks!
    <table>
      <tr>
        <input type=submit name="~OKCode=ANAL" value="Analysis Long Text">
      </tr>
      <tr>
        <input type=submit name="~OKCode=ROOT" value="Root Cause Long Text">
      </tr>
      <tr>
        <input type=submit name="~OKCode=RMCA" value="Remedial Corrective Action Plan Long Text">
      </tr>
      <tr>
        <input type=submit name="~OKCode=CRAP" value="Corrective Action Plan Long Text">
      </tr>
      <tr>
        <input type=submit name="~OKCode=PRAP" value="Preventative Action Plan Long Text">
      </tr>
      <tr>
        <input type=submit name="~OKCode=COMM" value="Comments">
      </tr>
    </table>

  • Storing Long text more that 2000 words

    Hi all,
            Can any tell me how can we save long text?
    1) i need to create a table which stores long text (instead of T-code SO10).
    Thanks
    Senthil Bala
    Message was edited by: senthil bala

    Hi
    You need to create a table have a filed longer than 512 char, so you should use a field with a domain with type LRAW  or LCHR (it can be longer than 512 char):
    see the data element PC03_DSATZ for example.
    When you create your table, before this field you have to insert a field type INT4 where you'll indicate the lenght of your text.
    So your table should be:
    MANDT             key
    NAME (Text Name)  key
    ZLENG (Type INT4)
    TEXT  (type LCHR)
    Max

  • Re: using create_text and read_text  should save text in database table

    Hi,
         what are the parameters i need to pass for create_text and read_text in dialog programming, i have a  4 i/o fields where in  each i  need to enter 30 email ids , after entering email ids i need to save to the database, what is the logic
    fields:  SNO---serial number
               mail1------> need to enter less than r more than 30 email address
               mail2----> need to enter less than r more than 30 email address
              mail3-----> need to enter less than or more than 30 email address
    when i click create insert into database and from database it should b displayed on the table control.  How to do using create_text  ( using text objects function modules)

    If you are updating a custom Z Table, then look at redesigning it:
    Fields:
    <b>Client</b>
    <b>SNO</b>
    <b>MAIL ID ( 1, 2, 3)</b> etc
    <b>COUNTER</b> (001 to 999)
    These fields make up the key.
    Email Address
    This way you can store many email addresses.
    It is not a good idea to store data in a free form text field.

  • How the Payload Message and Logs are stored in the B1i Database Table: BZSTDOC

    I would appreciate it if someone could provide any documentation regarding B1i database further maintenance.
    for example:
    I want to know how the payload message and logs are stored in the table BZSTDOC, and how can we retrieve the payload message directly from the column DOCDATA.
    As described in the B1iSNGuide05 3.2 LogGarbageCollection:
    to avoid the overload of the B1i Database, I set the Backup Buffer to 90 days : so this means Message Logs from the last 90 days will always be available, but is there some way we can save those old messages to a disk so that I can retrieve the payload message anytime?
    in addition, let’s assume the worst, the B1iSN server or the B1i database damaged, Can we just simply restore the B1i database from a latest backup DB then it can work automatically after the B1iSN server is up and running again?
    BR/Jim

    Dear SAP,
    Two weeks passed, I still haven't received any feedback from you guys.
    Could you please have a look at my question?
    How is this Question going? Is it Untouched/Solving/Reassigned ?

  • After storing pdf in a database table I miss some content

    Hello,
    we develop an Application with APEX 3.0.1 and create pdf-documents. The database is 10.2.0.3. Report Queries were created in APEX and layouts were created with BI Publisher. There were defined two buttons. The first one is for interactive printing the report pdf and it works correctly. The second button is for saving just this report pdf in the database, the PL/SQL procedure use the same ReportURL. If I view this report pdf after storing in the database, the pdf displays not all of the content like in interactive printing document.
    Is there anybody who knows this situation? What can I do for finding the reasons for this behavior?
    Best regards,
    Susanne

    Susanne,
    I'm not sure how you're retrieving the PDF document in the DB and store it there. But you mentioned that you use APEX 3.0.1, have you considered upgrading to APEX 3.1.2? In 3.1 we introduced print APIs, like apex_util.get_print_document that are designed specifically for this purpose:
    http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_util.htm#CHDIEDJH
    Regards,
    Marc

  • From which table i can get the long text

    Hi All
    I have created some long text through function module CREATE_TEXT And i am able to see the text in the transaction .
    My requirement is from which table i can get these stored long text???
    Any suggestions please.
    Thanks

    Appreciate your answers.
    I have checked the both the fields stxh as well as stxl but i am not able to find any text fields out there.
    My actual requirement is some third party software needs to b mapped the table fields in order to import it.
    So if i know the table fields that would be easier.
    Can you tell me y we can not read it from the tables?
    Thanks,
    @run.

  • Sending data from SAP-BW ODS to R/3 database table/ view

    I need to store data in an ODS in BW from an oracle view & then send this data to SAP R/3 so that the same data can be used by SAP-ABAP for making a BDC program ( i.e. finally storing it in some database tables in R/3).
    Is it possible to do that?? if yes then how.....??

    Hi,
    Yes it is possibel.
    Use SAP PI ie XI which will send the data from BW to ur R/3 system.
    Check the links about XI.
    XI is a Integration broker. U can integrate any systems using XI.
    REDDY

  • BAPI_ACC_DOCUMENT_POST long text field missing

    Hi,
    I will have to transfer our vendor open items from v 3.1 to ERP 2004. I
    am using <b>BAPI_ACC_DOCUMENT_POST</b> to upload these open items. However, I
    cannot find the <b>'LONG TEXT'</b> field in the said BAPI. In using <b>F-02</b>, a
    long text field/button is available. <u><b>How can i post an entry in the long text
    field of the line item in f-02 using BAPI_ACC_DOCUMENT_POST</b></u>.
    Also, i have used the extension1 table and a BTE (note 487722) in
    uploading the posting key. Since field bschl is available in table
    accit, there was no problem in doing this. However, i cannot seem to
    find the field long text in this table. Is it available? If not, what
    can I do with the above situation.
    Thanks.

    Hi
    Excuse me! you can't use RFBIBL00, use the fm SAVE_TEXT.
    After calling the BAPI you should have the number of FI document will be created and know in which item you need to insert the long text so:
    THEAD-TDOBJECT     = <Object text>.
    THEAD-TDNAME(4)    = <Company code>
    THEAD-TDNAME+4(10) = <Document number>
    THEAD-TDNAME+14(4) = <Fyscal year>
    THEAD-TDNAME+18(3) = <Item number>.
    THEAD-TDID         = <Id text>.
    THEAD-TDSPRAS      = <Language>.
    THEAD-TDLINESIZE   = 72.
    These are the header data, transfer the text in LINES parameters.
    Max

  • Getting Long Text of a Field Label

    Hi Friends,
    I have requirement in which , based on the filed I  need get the Long text of the data element.by default I am able to access the medium text of the data element. is there any function-module for getting Long text?
    Regards,
    Xavier.P

    Hi Xavier,
    check this
    Storing long text data
    hope it helps you.
    Regards!

  • Storing XML schema in database

    Hi everybody..I have question here related to the storing of the XML schema in the database. When an XML Schema is created like this.
    dbms_xdb.createResource('home/DEV/xml_schema_test.xsd'),
    then is the XSD created and stored in one of the database tables or is it stored physcially as an xsd file in the database repository or both?
    If it is stored in one of database tables, then which table is it?
    If it is stored as an XSD file in the database repository, then how can I access the xsd file if I created it like in the example above.
    To access the xsd file over http, do I need to start the xsdhttp server or is it already started if I loaded XDK in my database.
    Would the url for accessing the same over http be
    http://db_machine:8080/home/DEV/xml_schema_test.xsd.
    I think I have got information in bits and pieces but not able to put everything together.
    Thanks in advance for the replies.

    The questionssss you are asking are dealt with in the FAQ link at the top of the first page on this forum, the rest is described in detail in the XML DB Developers Guide. A little bit of reading wouldn't harm, would it.
    Message was edited by:
    mgralike

  • Text File Database

    Hello,
    i am a student at The Open University "APEIRON" Travnik (www.out.edu.ba), i am pursuing a Masters degree in IT, we have one Exam called Java programming.
    My practical exam part is to create a program that should enable user to manipulate students grades. The app should allow these options:
    - Read students data,
    Read students data, needs to ask a user for students name and some ID (Surname etc.), and after that lists students grades and Courses.
    - Inserting of new grades,
    Inserting of new grades should have option to insert a new Course name, students name and grade for that Course.
    - Change of existing grades.
    Change of existing grades needs to ask for students name and/or ID, surname and the name of a Course and shows his present grade, Then it should have an option to change students grade for that Course.
    For this App all of validations should be done.
    All of the data (students names, Course names, Grades etc.), needs to be stored in text file database?! Now, i am a newb to Java, but i worked before with VB, and SQL, and i saw there are some similarities to acces and modify data in SQL database. But the problem is, i never worked with Flat text file databases and now i am stuck, i do not even know how to create a text database or even to connect Java to that database.
    Please, if anyone can help me i would be very grateful!?

    HaloOo wrote:
    i am pursuing a Masters degree in ITPursuing as in commencing, or pursuing as in first/second year undergraduate student. If the former then I am abit worried at your lack of prior research (or is this how you research).
    Please, if anyone can help me i would be very grateful!?You will need to invest some time in the basics of programming in Java and OOL. There are multiple tutorials available on reading/writing to text files. One thing to note: a text file is treated in the majority of cases like a wipe board. You can write a whole bunch of stuff on it, but if you decide you want to write a line in the middle, then unfortunately you need to read what is currently on the whiteboard, rewrite it, append your new message, then append the remainding text from the white board. IMHO a (RAF) is not applicable in this situation.
    Task1: Java: hello world
    Task2: Introductory tutorials
    Task3: Read a text file/write a text file/display contents of file
    You choose,
    Mel

  • How to display Long text information in my view

    Hi
    I have a long text of static information , which i need to show in my view. its like agreement information. The user must be able to read it . It has some 20 lines of text. Which is the appropriate control to be used to show the information ?

    Hi Naresh
    I had some options of displaying the long text in the view.
    option 1 - The long text in sap table was in multiple rows in terms of having each line as one record and when displayed looks like  a paragraph statement. So I used a webdynpro table to populate the rows and made invisible the row/column lines. So When you run it on the browser it will display like a long text. By default, SAP table will have column some length of 72 characters, which I changed to 140 charcs, to get a long sentence formation.
    option 2 - If the long text is not from SAP table and its kind of direct information, then just keep on pasting the text in the text view by providing spaces appropriately, so that the display will be a continous form of paragraph. This is a trial and error way and providing the spaces between the lines.
    option 3 - Store the long text in a text file and call a import parameter, which will read the whole text and store it in string (node) and display it text view. ( alignment cannot be gauranteed)
    option 4 - Last one, is to call a office (msword) or a pdf control , which will display the long text through the word editor or a pdf form.
    If you have any specific issues do write back to the forum.
    thanks
    sathya

  • Logging exeptions to database  table

    Hi,
    I'd like to save all exceptions from ADF BC/Faces application to special database table. I want to store exception messages, date , time and user id. Have anybody tried to implement similar solution ? Thans for advice.
    Kuba

    Hi,
    It's not exactly what I'm looking for. I meen something like exeption handler - one class for application that will be saving exception messages into table in database. Presently, everytime when app users issue any problems, I must ask our administrator for log files from application server - it's not comfortable for me and admin. Storing this messeges in database table would be more friendly and faster.
    Kuba

Maybe you are looking for