How check the content of a field?

Hi,
i've a table with some fields, with varchar2, number and date format.
In this table i need to load a file.
Before loading, i must check if the value in the file is correct.
Now i perform some check like this:
begin
select to_number(Campo_file_1)
from dual
exception
when others then dbms....
end;
begin
select to_date(campo_file_2,'dd/mm/yyyy')
from dual;
exception
when others....
end;
is there any other method???
My db is in 10.2.0.4
Tnx
Edited by: davyp74 on Jul 15, 2010 4:46 AM

davyp74 wrote:
Hi,
i'va a table with some fields, with varchar2, number and date format.
In this table i need to load a file.
Before loading, i must check if the value in the file is correct.
Now i perform some check like this:
begin
select to_number(Campo_file_1)
from dual
exception
when others then dbms....
end;
begin
select to_date(campo_file_2,'dd/mm/yyyy')
from dual;
exception
when others....
end;
is there any other method???
My db is in 10.2.0.4
Your description doesn't match with your table's column description. You said,you have number, varchar and date. So what is "file" that you want to load in this table? Do you mean that you are going to store an actual file in some column? If yes, you need to use Bfile as the data type. If not, tell us with a reproducible example and/or a better explanation that what you want to do ?
Aman....

Similar Messages

  • How to get content of custom fields that were created via the EEWB for CIC?

    Hi
    Can anyone tell me how to get the content of custom fields that were created via the EEWB for CIC? This is required at a time when the data has not been written to the database.
    I would like to know how to read this data in the CRM_APPOINTMENT_MERGE method of CRM_APPOINTMENT_BADI.
    Thanks

    Hi Michael,
    I have a requirement to replicate custom setype data created for CRM sales order to R/3 sales order.These fields have been created at item level.
    Do you know the set of steps to achieve the same.
    Any help would be appreciated.
    Thanks,
    Chamu

  • How to check the contents of Control file, Log file & Parameter file

    Can anybody help me how i can check the contents of Control file, Log file & Parameter file.
    Arif

    OK ...
    Parameter file:
    It will normally be in the $ORACLE_HOME/dbs directopry. It could be aan init{sid}.ora or a spfile{sid}.ora ... do not edit an SPFILE as yu could corrupt it.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref434
    If it's an init{sid}.ora, use any editor to see the actual content.
    If it's a spfile{sid}.ora, use one of V$PARAMETER, V$PARAMETER2, V$SYSTEM_PARAMETER, V$SYSTEM_PARAMETER2 as aappropriate (read the Reference manual to get an idea about when each is appropriate)
    Control File:
    You should not edit a control file. It consists of many areas, as described here http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/physical.htm#i10135 and each are is interrogated by V$views as given in the reference manual. The following V$views all deal with some aspect of the control file or provide info about the control files or the contents of control files:
    V$ARCHIVE_DEST
    V$ARCHIVED_LOG
    V$BACKUP_ARCHIVELOG_DETAILS
    V$BACKUP_CONTROLFILE_DETAILS
    V$BACKUP_CONTROLFILE_SUMMARY
    V$BACKUP_COPY_DETAILS
    V$BACKUP_COPY_SUMMARY
    V$BACKUP_CORRUPTION
    V$BACKUP_DATAFILE
    V$BACKUP_DATAFILE_DETAILS
    V$BACKUP_FILES
    V$BACKUP_PIECE
    V$BACKUP_REDOLOG
    V$BACKUP_SET
    V$BACKUP_SET_DETAILS
    V$BACKUP_SPFILE
    V$CONTROLFILE
    V$CONTROLFILE_RECORD_SECTION
    V$COPY_CORRUPTION
    V$DATABASE
    V$DATABASE_INCARNATION
    V$DATAFILE
    V$DATAFILE_COPY
    V$DATAFILE_HEADER
    V$DELETED_OBJECT
    V$LOCK
    V$LOG
    V$LOG_HISTORY
    V$LOGHIST
    V$OBSOLETE_BACKUP_FILES
    V$OFFLINE_RANGE
    V$PROXY_COPY_DETAILS
    V$PROXY_COPY_SUMMARY
    V$PROXY_DATAFILE
    V$RMAN_BACKUP_JOB_DETAILS
    V$RMAN_BACKUP_SUBJOB_DETAILS
    V$RMAN_CONFIGURATION
    V$SESSION
    V$TABLESPACE
    V$THREAD
    V$UNUSABLE_BACKUPFILE_DETAILS
    3) Log Files
    The contents of the log files are viewed using LogMiner - read Chapter 11 of the Oracle Utilities manual

  • Any transaction to see the content of IDOC field ??

    HI Gurus,
    We have 1000's of Idocs of a particular type processed correctly in our system.
    However one of them had BAD data, which also got processed  in SAP.
    So I am trying to find out which IDOC it was.
    Going through WE02, its proving very difficult to go one-by-one into each and check the contents.
    I need to look for  IDOC where the value in field KUNNR = 'DUMMY'.
    So is theer a transaction/program which can let me know which IDOC number has the value 'DUMMY' in field KUNNR.
    Regards
    Shirin

    we09
    Regards,
    sukarna.ch

  • Clear the contents of a field on open

    Hello,
    I would like to clear the contents of a field upon opening a form record. This field will then be populated with the logged on user name, V('APP_USER'). This is to display the user who last edited the record.
    Does anyone know how to do this? The field will only update if it is empty to start with so I need to delete the field contents only if the 'Save' button is pressed and then replace it with the current logged in user.
    Thankyou in advance,
    Kind Regards,
    Steve Welch

    Hello Scott,
    Sorry it was very simple in the end. Thanks for pointing me in the right direction. PL/SQL Expression, V('APP_USER')
    Kind Regards,
    Steve Welch

  • User exit to check the consistency of filled fields before saving

    Hi,
    I am looking for a User Exit which can be executed when a user click on "Save" button.
    In this User Exit, I would like to implement some controls to check the consistency of filled fields.
    I have an example to better understand : I work on transaction code ME11 and ME12 (create and modify Info Record). When all mandatory fields are filled, the user can save its. When the user click on "Save" button, I want that a checking (with a user exit, or anything else) verify the consistency of some fields (for example, the consistency between the Tax code of the country and the country of the supplier).
    If it's not clear, I could precise...
    Thanks in advance for you help...

    Hi,
    I am looking for a User Exit which can be executed when a user click on "Save" button.
    In this User Exit, I would like to implement some controls to check the consistency of filled fields.
    I have an example to better understand : I work on transaction code ME11 and ME12 (create and modify Info Record). When all mandatory fields are filled, the user can save its. When the user click on "Save" button, I want that a checking (with a user exit, or anything else) verify the consistency of some fields (for example, the consistency between the Tax code of the country and the country of the supplier).
    If it's not clear, I could precise...
    Thanks in advance for you help...

  • How does the content repository differ from the ECM plugin capability

    How does the content repository differ from the ECM plugin capability suh as Documentum. What are the different use cases. Which is the best to use for managing document uploads by user for association with user's personal products/services ?

    Content Repository is a standards-based, fully featured repository, included in all the editions of the Adobe Digital Enterprise Platform and Solutions. You can use it to store and access content, execute rich set of content services like search, authorization, etc. As such, it's ideally suited for all the content/document/asset-related needs of your applications. It offers the JCR API, plus access through RESTful interface and WebDAV network drive (among others). Additionally, managing content in the Content Repository makes it immediately availble for all the solutions that run of the platform.
    In essence, Content Repository is your go-to place to store and manage content in the Digital Enterprise Platform/Solutions. It is well suited to cater to your use case.
    The ECM Plugins (Connectors) are used if you have existing LiveCycle document services, and you have one of the ECM systems in your infrastructure used as archive. It allows you then to connect to such a 3rd-party system, and retrieve document for processing, as well as store them back for archiving.

  • Change the content of a field for a record in table

    Dear guru ,
    i know that there is chance to change the content of a field for a record in table using SE16 for the table involved and debugging.
    Can you explain me the flow to run this ?
    Thanks.

    >
    CONS  SAP wrote:
    > Dear guru ,
    > i know that there is chance to change the content of a field for a record in table using SE16 for the table involved and debugging.
    > Can you explain me the flow to run this ?
    > Thanks.
    Hi CONS SAP,
    You can use se16n transaction. This is very user friendly trnasaction. You may use it like this:
    1) Start transaction SE16n.
    2) Type the table name and press ENTER.
    3) Type the string "&sap_edit" into the command line and press Enter.
    4) Enter your selection criteria and press F8.
    Now you can easily change/delete/add the lines you want and then save.
    All Changes are recorded in the tables SE16N_CD_DATA and SE16N_CD_KEY.
    But I would request you to keep in mind the suggestions from Vijay Babu Dudla
    >
    Vijay Babu Dudla wrote:
    > if you are trying on some test table then it is ok. but don't update any transactional data like that. it is not good practice.
    >
    Many regards,
    Ravi.

  • How to know or check the type of a field when processing a dynamic table?

    Dear all,
        When processing a dynamic table i have a short dump because of a convert_of_type incorrect, so i would like to check the type of field-symbol <f> before moving the data (type char) to this field-symbol <f>.
    Could you please help me how to check or get the type of field-symbol <f> (because field-symbol <f> is assigned dynamic, so this <f> can be type char, unit, or quantity, ...)?
    The source code same as below:
       ASSIGN COMPONENT lc_field OF STRUCTURE ls_data TO <f>.
       MOVE lv_field TO <f>. (Dump is here when lv_field is char type and <f> is quantity type => could i check the type of <f> if it's char type before using this instruction "MOVE ..."?)
    Thanks a lot in advance,
    Vinh Vo

    Try to use this way
    WRITE lv_field TO <f>.
    Instead of
    MOVE lv_field TO <f>.

  • How to read the contents of Input Field created via Screen Painter?

    Hi All,
    I have a module program / dialog program, on my second screen, I created an input/outbox field via screen painter of course,
    now in my PAI, how can I read the contents of the input/outbox field?
    Let's say the name of my input/outbox field is: P_WEKRS.  Note: Get Parameter and Set Parameter is ticked.
    PROCESS AFTER INPUT.
      LOOP WITH CONTROL TC_DATA.
        MODULE MODIFY_DATA.
      ENDLOOP.
    I want to get the value of the input/outbox field before my loop in table control?  I thought that it will work like normal parameter in non-dialog programs.
    Any helpful inputs will be appreciated/rewarded.
    Thanks.
    Jaime

    Hi, Jaime
    Do the following Change in you Follow Logic
    PROCESS AFTER INPUT.
    MODULE read_or_change_value. " Add this
    LOOP WITH CONTROL TC_DATA.
      MODULE MODIFY_DATA.
    ENDLOOP.
    Add the Bellow Module code in you Driver Program.
    MODULE read_or_change_value.
    DATA: P_WEKRS like " the Field on Screen. Must be the same name as on SCREEN. and Type must be same too.
    " Here you will find the Value in that Variable or if you will change the Value here you will find it change on Screen
    END MODULE.
    Please Reply if any Issue..
    Best Regards,
    Faisal

  • How to check the content of cluster table smw3_bdoc1(00)

    Hi!
    I want to check the business partner changes sending via bdoc from crm to sap.
    For this i want to look into the bdocs.
    I think it's the cluster-table smw3_bdoc1.
    'Cause i don't know which is the name of the structure in the clustd-field i use:
    data: dirtab type table of cdir,
          wa_dirtab like line of dirtab.
    import directory into dirtab from database
                                      smw3_bdoc1(00)
                                      id '49600667F6980046E1008002AC18C6E5'.
    if sy-subrc = 0.
      write  / 'Directory:'.
      loop at dirtab into wa_dirtab.
        write: / wa_dirtab-name,  wa_dirtab-otype, wa_dirtab-ftype,
                 wa_dirtab-tfill, wa_dirtab-fleng.
      endloop.
    else.
      write 'Not found'.
    endif.
    So i've found the directory object "BDOC_BODY".
    Now i want to read the content with:
    data:   iclust type string.
    loop at itbdocid.
         IMPORT BDOC_BODY = iclust FROM DATABASE smw3_bdoc1(00)
                                        ID itbdocid-bdoc_id.
    endloop.
    An error message raises with...
    "error importing the object BDOC_BODY"
    The dump tells me that object types of BDOC_BODY and iclust doesn't match.
    I've changed the field iclust to type xstring... but it's the same error.
    If somebody here can help... Thanks a lot!
    Cheers, Ingo

    Hi,
    Thanks, I can see the data now.I am expecting that data should display in the 2LIS_VDKON extractor.There are two records for particular condition type.Item 10 and Item 20, but in RSA3, it is showing only one record for Item 20 and not showing for Item 10.
    I have cleaned and filled the setup tables, but still no luck.
    Can you please guide me, where else to look?
    Thanks
    Priya

  • How to add the contents of a field of internal table.

    Hello Everybody,
    How to sum up the individual field from a internal table. Like i have a internal table that has menge field , I need to sum up the menge field for each matnr..
    exm : for each matnr there are 5 menge entries, I need to add all the menge fields and shud be put against the matnr .
    Thanks,

    Hi Khaleel,
    One more option is using the "collect" statement.....
    imagine in the internal table itab..we have 2 fields only..
    MATNR,MENGE,
    we have 2 internal tables itab1 and itab2...
    loop at itab1.
    collect itab1 to itab2.
    endloop.
    Action performed is ...for the same MATNR...menge gets added and saved as a single record...When matnr changes...new record is Appended
    another case is we have 3 fields in internal table
    MATNR,UNIT,MENGE
    imagine we hane the records
    Material1 KG  100
    Material1 LT   20
    Material1 LT   200
    MAterial2 KG 100
    in this case...the output will be
    Material1 KG 100
    Material1 LT  220
    MAterial2 KG 100
    Reason is that the fields before the addable value is checked for similarity..
    here field UNIT is also checked and also MATNR before adding up....
    Hope it gave you some alternative idea to proceed with....
    Reward if helpful
    Regards
    Byju

  • How to check the contents of MCVBAK table?

    Hi all of you,
    I am using MCVBAK table for extraction using LIS.  The problem I am facing is when I am running the init load in BW for my IS S511, it is successfully running but in the monitor screens it says only 1 from 1 record. I thought that there are no records in the table MCVBAK so I wanted to make sure if there are really no records in MCVBAK table.  
    So I went to R/3 gave the T.C SE11 and entered the table MCVBAK to check its contents.  But in the MCVBAK table what I find is the graphics button and contents button are invisible.  My question is
         How to find the contents of the table MCVBAK?
    Please help. 
    Thank you,
    Tristan.

    Hi TR,
    Yah, you need to check VBAK Table at SE11, Things that start with "MC...." are usually structures. Anther point, I want to mention is, When you schedule as Init load at the BW side, the system will get the data from S511 table(which is Information Structure table). So, you have do statistical setup first (at eg for sales Tcode is oli7) which will copy the records from VBAK table to your Information Structure (i.e S511).Only then, you can perform Init Load. Hope this Info help!
    Regards,
    Vj

  • How to check the length of a field symbol value

    hi all,
    i have a problem with string function, i have assined  table fields to  a field symbol in a loop i want check the length of the assigned fields symbol value  in every loop . i have written like ,,,,,len = strlen( <fs>). then i am getting the length of the field label what i ahve assigned to fiels symbol not the field value lenght ,
    please advise me on this,
    thanks,
    sre

    I think you're on the right track.  This should work:
    data: len type i.
    data: begin of itab OCCURS 1,
            a type string value '1',
            b type string value '12',
            c type string value '123',
          end of itab.
    FIELD-SYMBOLS: <fs> type ANY.
    do 3 times.
      assign component sy-index of STRUCTURE itab to <fs>.
      len = strlen( <fs> ).
    enddo.

  • How do I highlight the contents of a field

    HI,
    When I click on a field I would like the contents were revealed . can someone help me?
    thanks
    Silvia

    Check out the Cursor Position JPC demo in the Oracle Forms 10g Sample Code. This isn't exactly what you are looking to do but it is pretty close! :D
    Hope this helps,
    Craig
    If a response is helpful or correct, please mark it accordingly.

Maybe you are looking for