How to check if a certain field in mysql is gonna exceed its limit?

if let's say im going to insert some data into the db field & i might exceed that storage limit.
what r the ways i can do?

im having an alphanumeric field. im using longtext
it would keep increasing and i think one day it might filled up the size of the field.
hence i had i like to know how i can check if it's reaching...that limit.

Similar Messages

  • How to check lock status of field in current document?

    Hi,
    How to check the status of field in current document(master agreement), that is whether its locked or not.
    I locked "Publish to Supplier" checkbox after MA is saved first time. Now, I want to check the status whether this field is locked or not in the same document.
    IsLockOwner( ) is not returning the correct value. Its not giving the current document field lock status.
    Is there any way to get current document field status?
    Thanks,
    Saloni

    Hi,
    If I understand correctly, your requirement is to get the value of this field "Publish to Supplier on". It can be achieved by writing the below:
    isVendorVisible = doc.getExtensionField("VENDOR_VISIBLE").get();
    Meaning, if the box is checked, it will return a value = true and if not then false.
    Hope this helps,
    Regards,
    Vikram Shukla

  • How to check two internal table fields

    Hi all,
    I need to check two internal table fields are equal or not means which statement i can use.
    Not internal table ,table contents i need to check i.e
    it1-pernr = it2-pernr.
    like this
    if i put loop it'll check one table field for one loop.
    if i put two loop means some fields reflecting 2 in it1 then it'll pring 4 times like that.i want to print whatever in internal table only .
    pernr(0001) two times there in it1 means
    it1-pernr = it2-pernr then
    it's printing
    0001
    0001
    0001
    0001
    like this but actually in it1 only two records.
    Anybody know solution.tell me.
    Thanks
    Regards,
    Nandha

    Hi,
    code for your view
    data : begin of it1 occurs 0,
           z_pernr like pa9012-pernr,
           z_fac_c like pa9012-zz_fac_c,
           end of it1.
    data : it2 like Zsc1 occurs 0 with header line,
    It1 data
    pernr   FAC C
    0001   5555
    0001   5555
    0002   4444
    0003   3333
    0006   8888
    It2 data
    pernr   FAC C
    0001   5555
    0001   5555
    0005   6666
    0003   3333
    output(My code)
    loop at it2 .
    loop at it1 where pernr = it2-pernr.
      write:/01 it1-1pernr,
            10 it1-z_fac_c.
    endloop.
    endloop.
    out put i need.
    0001   5555
    0001   5555
    0002   4444
    0003   3333
    Thanks,
    Nandha

  • How to check for null value/field?

    Hi!
    I have created a form that is designed to calculate the rows using the FormCalc function.
    My problem is that if I have no value in the some of the rows, a 0 is automatically display as the calculated output field. If a row has no data, how can I get a null or blank field in the result (calculated field) field?
    Let's say, I have 5 rows and each row should have a calculated value in one of the fields; when I fill out only two of the rows, the remaining three rows come out with 0s in the calculated output field. I need a blank output field for the remaining calculated values instead of 0s. I am a newbie so please excuse me if I am not explaining well.
    Thanks
    Jofar1

    This is the value that I have on my calculate event: "Rate*Units_of_ServiceRow2".
    How should/can I incorporate the two codes?

  • How to check out a certain mail was sent or not in program?

    Hi, all
    I'm wondering that...
    I have to make sure that whether a mail has been sent or not in my program. The smartforms of this mail has been binded with an activity in SPRO. What I have are: Title of the mail, sender name&address, recipient name&address and also the smartforms data.
    It's easy to do that by checking the log in T-code: SOST, but how can I achieve that in program?
    Are there anything standard Function Module or something work on this?
    Or do I have to look up into the table SOST or SOOS?
    I'll be appreciate for your ideas. Anyway, thanks in advance.

    Hi Minghao,
    I have found  the t-code is SBWP very helpfull or else Go to the main sap easy access screen.there you will find a icon on application toolbar called business workplace.click on it.then go to the outbox.You can find the main sent by you in the outbox.You can use SCOT to know the status of the mail.
    <b>Kindly Reward points if you found the reply helpful</b>.
    Cheers,
    CHAITANYA.

  • How to select records with certain fields unique while others not

    Hi,
    For example, I have table with 6 columns, called 'A', 'B', 'C', 'D', 'E', 'F'. There's no unique constraint built-in, and I would like to select records that have both column 'A' and 'B' unique. What should the sql statement look like?
    Columns 'C', 'D', 'E', 'F' can have same data in different records or null, not a concern.
    Thanks.

    select A, B, max(C), max(D), max(E), max(F) from <your_tab>
    group by A, B
    select * from (select t.*, row_number() over (partition by A,B order by null) rn from <your_tab> t)
    where rn=1they are not the same, but seem to meet your needs both.

  • How to check if database/table exists in MYSQL

    I am writing a program which accesses databases in MYSQL, is there any way to check if the databases exists on the MYSQL server and if not create one && to check if a table exists and create one of if it does not

    OK, found out that as special permissions needed to create databases I assume it cannot be done via my app but how about Tables

  • How to check the number of connections to MySQL DB

    Hi,
    Is there some way to check the number of applications connected to a mysql database?
    I have two different Java applications that will be using the same instance of MySQL.
    My requirement is that, I want to close the MySQL instance while closing the Java application.
    But before doing so, I want to make sure the other application is not connected to it.
    Is there some way I can achieve this?
    Your suggestions will be of great help.
    Thanks,
    Sandeep

    Hi,
    Thanks for your response.
    "Show processes" definitely serves my need.
    Basically what I am trying to do is to check if there are any other open connections to a MySQL instance before closing it.
    In our application suite, if there is a MySQL instance running, then the applications connect to it by default which results in some undesirable behavior sometimes.
    Hence, we are making sure that we close the MySql instance before exiting the application.
    Thanks,
    Sandeep

  • How to store images in BLOB field in MySql database using java

    Hi....
    Currently am able to store character string into BLOB using byte array....in MySql.
    but i cannot store images or pictures.......
    to do this.........please help me out...............
    Thanx..........:)Bye...........

    Hello,
    I have done this for Oracle but it should be similar in MySQL also. Try reading thru these links below. Mail us if you have succeeded or not.
    http://forum.java.sun.com/thread.jspa?forumID=48&threadID=654086
    http://forum.java.sun.com/thread.jspa?forumID=48&threadID=384768
    http://forum.java.sun.com/thread.jspa?forumID=48&threadID=549705
    Thanks and regards,
    Pazhanikanthan. P

  • How to check import status in Windows??

    Hi,
    Import is running in my Wndows box.The log file is not updating from since long time. How to check the status of the import job??FYI its oracle 10g.
    And i checked from databse that.
    FYI
    ===
    Select * from DBA_DATAPUMP_SESSIONS;
    no rows selected.
    select * from DBA_JOBS_RUNNING;
    no rows selected
    select username,machine,module,sid,state,event,seq#,seconds_in_wait from v$session where type<>'IMPORT' and username='AUTOTIME';
    no rows selected
    Plz let me know.

    Hi
    use the below script two times and check the output.
    select
    substr(sql_text,instr(sql_text,'into "'),30) table_name,
    rows_processed, round((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60,1) minutes,
    trunc(rows_processed/((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60)) rows_per_minute
    from
    sys.v_$sqlarea
    where
    sql_text like 'insert %into "%' and command_type = 2 and open_versions > 0;
    KK

  • Help with creating a form, I want to add a check box to enable me to unlock certain fields and deselect the block again

    Help with creating a form, I want to add a check box to enable me to unlock certain fields and deselect the block again

    Look to the right under "More Like This". Your issue has been discussed many many times. The error you are seeing is because you do not have enough free "contiguous" space on your hard drive. Read the other threads that address this issue to find how to solve the issue.
    Or, put "The disk cannot be partitioned because some files cannot be moved" into the search box at the upper right of this page.

  • How to suppress certain fields in ALE Outbound INFREC IDOCs?

    Dear All
    Is it possible to suppress certain fields in Outbound ALE IDOCs (for example INFREC IDOCs) ?
    I am in need to send Info Records from one ECC system to another. The problem is, in the sending ECC system the INFREC IDOCs are created with the field E1EINAM-INFNR which carries the Info Record number. But the target ECC system might have a different Info Record already existing (for a different article) with the same Info Record Number. If the INFREC IDOCs are created without the INFNR field (i.e. if the field is blank) and then sent to the target system via ALE, it is successfully processed in the target system and a new Info Record is created with a different Info Record number. This is what is required. How can it be made possible?
    Thanks
    Vignesh Sankaranarayanan

    Use the transactions BD62, BD79 and BD55 to setup and assign conversion rules for your IDOC fields and set a constant '/' for the infnr field.
    Test if that is enough or you might need to take extra care for the name field of info record texts. I am not in a system currently, so I can't check whether long text name is based on info record number or only a mix of info record keyfields (without info record number itself).
    You should also have a look into my blog Stumbling blocks  in purchasing info record migration by LSMW IDOC method
    You will probably hit the one or other issue that I described too.

  • How can i assign value to the certain field in dynmic table ?

    i have created a dynmic table .now i want to assign value to the certain field,how can i do that?
    for eg,
    <dyn_table> contains fields of  name age ,now i want assign 'jack' to this internal talbe's field name ,

    Hi,
    try this:
    FIELD-SYMBOLS: <GT_ITAB>      TYPE TABLE,
                   <GS_ITAB>,
                   <FS>, <FS1>.
    DATA: GT_DATA   TYPE REF TO DATA.
    DATA: GS_DATA   TYPE REF TO DATA.
    START-OF-SELECTION.
      CREATE DATA GT_DATA TYPE TABLE OF PA0002.
      ASSIGN GT_DATA->*   TO <GT_ITAB>.
      CREATE DATA GS_DATA    LIKE LINE OF <GT_ITAB>.
      ASSIGN GS_DATA->*      TO <GS_ITAB>.
      ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Smith'.
      ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Paul'.
      APPEND <GS_ITAB> TO <GT_ITAB>.
      ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Jones'.
      ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
      <FS> = 'Martin'.
      APPEND <GS_ITAB> TO <GT_ITAB>.
      LOOP AT <GT_ITAB> INTO <GS_ITAB>.
        ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
        ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS1>.
        WRITE: / <FS>, <FS1>.
      ENDLOOP.
    Regards, Dieter

  • How can I detect a certain text within a field within CASE using IF

    Dear all,
    for a transformation / generation of values receiving from R/3 into BW I try to
    manupulate three fields. I have a problem detecting a string in a field.
    I am using a CASE with several WHEN clauses on one field. Depending on the
    value, an IF is integrated. There I look into another field evaluating, if it contains
    a certain string. E.g. IF STRING CP 'xyz' OR 'abc'.
    System gives error for the locigal expression. I also tried CS, but same error.
    How can I detect a certain text within a field and which is the right logical
    expression.
    Many thanks in advance!!!
    Claudia

    Hi,
    Folow the blow example...
    May be it helps....
    DATA: hex1 TYPE string,
          hex2 TYPE string.
    hex1 = 'FFFF'.
    hex2 = '123FF'.
    IF hex1 CP hex2.
    ENDIF.
    Cheers,
    SImha.

  • How to restrict AS02 access to certain fields only

    How to restrict AS02 (Asset Master Record) access to certain fields only. Currently when you assigned AS02 to a certain user, this will enable the user to change all the fields in the asset master record. Suppose i want only the user to restrict the access to certain field eg.NDJAR (Life in Yrs).
    Thanks for your inputs.
    Regards,
    Robert

    hello,
    basis has to assign the proper activity with object A_S_ANLKL. in this case they have to allow activity 03 only with combination of Cocode,asset class. see some more details below.
    This authorization object is the first part of the object "asset master record."
    The definition at this level determines whether the user is authorized to process data in a given company code. The activity type for the transaction is also defined here. This authorization object is used for master data transactions, for the display of value fields, and for reporting.
    Defined Fields
    The following fields are assigned to the authorization object
    Asset class (specified by entering a value in the pop-up window)
    Company code (specified by entering a value in the pop-up window)
    Activity type - there are three different activity types:
    01 = Create
    02 = Change (including blocking and deleting)
    03 = Display

Maybe you are looking for

  • How to store movies on Apple TV without keeping them in the iTunes library

    I'd like to know how I can store movies on the Apple TV without having to keep them in the iTunes library. I'd like to use the 160Gb of space on my Apple TV without having to use the same space on my nearly full MBP hard disk ! Thanks in advance...

  • How to set IE compatibility view programmatically in Browser Helper Object?

    Goal: In IE11, I need to set "IE=EmulateIE7" compatibility view for particular websites. Adding an HTML meta header or a HTTP response header is not an option as we do not control the websites. Configuring IE (Tools > Compatibility View settings...)

  • Index - How to create an index for multiple InDesign files?

    Hi everyone, I'm using InDesign CS2 to create a 250 page catalogue. Most of it is finished now, and I've come to creating the index. The catalogue is spread over about 10 InDesign files. How do I create an index for this? No paragraph styles were set

  • Zoom Level

    Hi Is it possible to programmatically set the zoom level of an interactive form? I guess it can be done using javascript. Thank you for your help regards Yuval

  • SunOne Portal integration with other application

    How Sun Portal Server integration with other appliction? Where are have this topic information(pdf,html,etc) Plealse help me ! Urgency!!!!! yuan [email protected]