Table constraint for date

Is there any way to define constraint on date data type at table level?
I would like to ensure the data at the time of entering (tbale constraint level) that joining date should be greater than birth date.
I'll appreciate if you can answer my query.
jay

I assume joining date is a column is same table. If so:
SQL> create table user533470(
  2                          birth_date date,
  3                          joining_date date
  4                         )
  5  /
Table created.
SQL> alter table user533470
  2    add constraint user533470_chk1
  3      check(
  4            joining_date > birth_date
  5           )
  6  /
Table altered.
SQL> insert
  2    into user533470
  3    values(
  4           DATE '1987-11-22',
  5           DATE '2007-1-1'
  6          )
  7  /
1 row created.
SQL> insert
  2    into user533470
  3    values(
  4           DATE '1987-11-22',
  5           DATE '1987-11-22'
  6          )
  7  /
insert
ERROR at line 1:
ORA-02290: check constraint (SCOTT.USER533470_CHK1) violated
SQL> SY.

Similar Messages

  • Table Name for Date Profile & SLA

    Hi,
    What is the table name for Data Profile / Date Type etc and also for SLA tables?
    Rgds,
    VR.

    Hi
    here are the table for date profile, service profile and response profiles.
    1. Date profile:- CRMC_DATES_PRF
    2. Service profile:-  crmd_serwi
    3. Response profile :-crmd_escal
    Regards
    Naresh

  • How to add rows in table control for data recording BDC?

    hello,
    pl tell me the way to upload data through BDC in table control of screen .
    how to add fields inrecording of table control?
    Please give some code in this regard.
    I am generous in giving points..pl help!

    Hi,
    While doing code under recording first you need to do the recording with sample data under a particular transaction like T-code XK01 (Vendor creation).
    Take an example of create vendor using T-code XK01:
    Go to t-code 'SHDB' under make recording for XK01 with sample data and once if you complete the recording means after vendor creation check the source code bye by pressing the button  'Program', it shows the total coding for recording of what you entered the test data.
    Then you will create one program and copy that source code of recording into your program, and now you have to remove the values at perform statement and give the internal table field name.
    Like that you can develop your own code along with your validations.
    my best suggestion is don’t see the example code of recording method because any one for standard t-code should get the code from recording with sample data, so first tryout with your own recording method and you can understand the code step by step.
    With these I hope you will get some idea of recoding method.
    Let me know for further doubts.
    Regards,
    Vijay.

  • Mixed Data Type Table Control for Data Entry

    Hi Guys --
    I'm attempting to do error-checked data entry,
    My data is mixed: path, boolean, and numeric.  The natural organization is an array of clusters.  For instance, the cluster element would look like "path, boolean, numeric, numeric"  and I would have many rows of this data cluster.  To further complicate things I have to dynamically define the number of numeric elements in the cluster (tricky already) and also dynamically define the length of the array.
    I find the table control to be ideal to handle the dynamic nature of the data for editing.  I can easily use scroll bars to navigate to the appropriate part of the data.  I can delete rows and columns etc.
    On the other hand, the table can only handle string data.  I find that doing data checking and type conversion on the table elements to be extremely cumbersome. 
    I think what I'm looking for is a Table Control with ability to handle controls as elements.  From what I've read in this list and personally experienced, that functionality doesn't exist.
    Does LV have in-built functionality that I'm overlooking to resolve this problem?  Is there a third-party library that would do the job?
    Thanks,
    John

    Hi Ben --
    I think perhaps that I wasn't clear in my description. 
    As I pointed out, my data is organized naturally as an Array of Clusters.  More descriptively, my data looks like spreadsheet data; some text, some numbers.  I need to add rows and columns dynamically.  I need to be able to resize column widths dynamically... and while the program is executing.
    The Table Control does all of this.  The intuitive way that the Table Control permits a user to enter data is also good for my user.  The Array of Cluster data looks like spreadsheet data and a Table looks close enough to a spreadsheet.  A Table permits one to insert and delete rows, resize columns widths, and scroll around.
    I don't see that I get these features with an Array of Clusters Control.
    The issue with the Table Control is the lack of in-built data types, so I spend an inordinate amount of time doing type-conversion and range-checking. 
    At this point I'm pretty much convinced that LV doesn't have the in-built capability that I'm looking for. 
    I am curious if there are any LV libraries or Active-X controls somewhere that would implement the functionality that I require?

  • R3 Table Required for data load status

    Hi all,
    I am in 3.x version so rsstatmanpart(fast table only available in bi7) wont work.
    I want the no of records added and transferred for a specific cube on a specific date.
    Thanks in advance.

    Check Tables RSMONICTAB, RSMONFACT, RSMONICDP
    Hope this helps..
    /pradeep

  • Where Clause in Table Lookups for Data Load

    Hello,
    In Shared Components I created in Data Load Table. In this Data Load Table I added a Table Lookup. On the page to edit the Table Lookup, there is a field called Where Clause. I tried to add a Where Clause to my Table Lookup in this field but it seems that it has no effect on the Data Load process.
    Does someone know how to use this Where Clause field?
    Thanks,
    Seb

    Hi,
    I'm having the same problem with the where clause being ignored in the table lookup, is this a bug and if so is there a work around?
    Thanks in advance

  • How would i create a constraint for date joined which has to be less than date left?

    CONSTRAINT
    [CK_Member_DateJoined_todayorpast]
    CHECK
    (len(DateJoined)<=getdate()[DateLeft]>[DateJoined])
    I tried this but it will not work someone please help :))

    Hi,
    The Transact-SQL  Forums will be a better forums for you to ask this question. And I will help you to move your case to Transact-SQL  Forums.
    Thank you very much for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • External Table Creation for .dat file

    Hi,
    I have created an External Table, below is the code
    CREATE TABLE  "NFO_DATA_LOAD_STAGING_TEST1"
       (     "DATA_DISCRAPANCY" VARCHAR2(100),
         "APPLICATION_NUMBER" VARCHAR2(30),
         "BATCH_NUMBER" VARCHAR2(30),
         "AMC_ID" VARCHAR2(30),
         "TA_BRANCH" VARCHAR2(30),
         "SERVER_DATE_1" DATE,
         "SERVER_TIME_1" DATE,
         "ARN_NUMBER" VARCHAR2(30),
         "BROKER_CODE" VARCHAR2(30),
         "SUB_BROKER_CODE_1" VARCHAR2(30),
         "SUB_BROKER_CODE_2" VARCHAR2(30),
         "SUB_BROKER_CODE_3" VARCHAR2(30),
         "BROKER_ADDRESS" VARCHAR2(100),
         "FOLIO_NO" NUMBER,
         "MODE_OF_HOLDING" VARCHAR2(30),
         "STATUS" VARCHAR2(30),
         "SALUATION" VARCHAR2(30),
         "CONTACT_PERSON_NAME" VARCHAR2(30),
         "INVESTOR_NAME" VARCHAR2(30),
         "GUARDIAN_NAME" VARCHAR2(30),
         "PAN_NO" VARCHAR2(30),
         "POA_HOLDER_NAME" VARCHAR2(30),
         "KYC" VARCHAR2(30),
         "GUARDIAN_PAN_NO" VARCHAR2(30),
         "DOB_DOC" DATE,
         "GUARDIAN_RELATIONSHIP" VARCHAR2(30),
         "SALUATION_2" VARCHAR2(30),
         "DATE_OF_BIRTH" DATE,
         "SECOND_HOLDER_NAME" VARCHAR2(30),
         "GUARDIAN_NAME_2" VARCHAR2(30),
         "PAN_NO_2" VARCHAR2(30),
         "GUARDIAN_PAN_NO_2" VARCHAR2(30),
         "KYC_2" VARCHAR2(30),
         "GUARDIAN_RELATIONSHIP_2" VARCHAR2(30),
         "SALUATION_3" VARCHAR2(30),
         "DATE_OF_BIRTH_3" DATE,
         "THIRD_HOLDER_NAME" VARCHAR2(30),
         "GUARDIAN_NAME_3" VARCHAR2(30),
         "PAN_NO_3" VARCHAR2(30),
         "GUARDIAN_PAN_NO_3" VARCHAR2(30),
         "KYC_3" VARCHAR2(30),
         "GUARDIAN_RELATIONSHIP_3" VARCHAR2(30),
         "ADDRESS_LINE_1" VARCHAR2(100),
         "PINCODE" NUMBER,
         "ADDRESS_LINE_2" VARCHAR2(100),
         "CONTACT_NUMBER_O" VARCHAR2(15),
         "CITY" VARCHAR2(30),
         "CONTACT_NUMBER_R" VARCHAR2(15),
         "STATE" VARCHAR2(30),
         "MOBILE_NUMBER" VARCHAR2(15),
         "COUNTRY" VARCHAR2(30),
         "EMAIL_ID" VARCHAR2(30),
         "ALT_EMAIL_ID" VARCHAR2(30),
         "ADDRESS_LINE_1_A" VARCHAR2(100),
         "PINCODE_A" NUMBER,
         "ADDRESS_LINE_2_A" VARCHAR2(100),
         "CONTACT_NUMBER_O_A" VARCHAR2(15),
         "CITY_A" VARCHAR2(30),
         "CONTACT_NUMBER_R_A" VARCHAR2(15),
         "STATE_A" VARCHAR2(30),
         "MOBILE_NUMBER_A" VARCHAR2(15),
         "COUNTRY_A" VARCHAR2(30),
         "EMAIL_ID_A" VARCHAR2(30),
         "ALT_EMAIL_ID_A" VARCHAR2(30),
         "DESPATCH_ACCOUNT" VARCHAR2(30),
         "REDEMPTION_PAYOUT" VARCHAR2(30),
         "I_PIN_ASSIGN" VARCHAR2(30),
         "DIVIDEND_PAYOUT" VARCHAR2(30),
         "T_PIN_ASSIGN" VARCHAR2(30),
         "TO_FUND_NAME" VARCHAR2(30),
         "TO_FUND_ID" VARCHAR2(30),
         "OPTION_F_S" VARCHAR2(30),
         "MCR_NO" NUMBER,
         "BANK_NAME" VARCHAR2(30),
         "ACCOUNT_NUMBER" NUMBER,
         "BANK_BRANCH" VARCHAR2(30),
         "ACCOUNT_TYPE" VARCHAR2(30),
         "MCR_NO_P" NUMBER,
         "CHEQUE_DD_NO" NUMBER,
         "BANK_NAME_P" VARCHAR2(30),
         "PAYMENT_DATE" DATE,
         "BANK_BRANCH_P" VARCHAR2(30),
         "ADVICE_NO" NUMBER,
         "PAYMENT_TYPE_P" VARCHAR2(30),
         "AMOUNT_P" NUMBER,
         "MINIMUM_AMOUNT" NUMBER,
         "AMOUNT_WORDS" VARCHAR2(1000),
         "NOMINEE_NAME" VARCHAR2(30),
         "SALUATION_STG" VARCHAR2(30),
         "NOMINEE_DOB_STG" DATE,
         "GUARDIAN_NAME_STG" VARCHAR2(30),
         "RELATIONSHIP_STG" VARCHAR2(30),
         "ADDRESS_LINE_1_STG" VARCHAR2(100),
         "COUNTRY_STG" VARCHAR2(30),
         "ADDRESS_LINE_2_STG" VARCHAR2(100),
         "PINCODE_STG" NUMBER,
         "CITY_STG" VARCHAR2(30),
         "CONTACT_NUMBER_STG" VARCHAR2(15),
         "STATE_STG" VARCHAR2(30),
         "MOBILE_NUMBER_STG" VARCHAR2(15),
         "REMARKS_STG" VARCHAR2(100),
         "EXCEPTION_CHK_STG" CHAR(1),
         "HOLD_CHK_STG" CHAR(1),
         "PAN_STG" CHAR(1),
         "BOARD_RESOLUTION_STG" CHAR(1),
         "KYC_STG" CHAR(1),
         "MOA_STG" CHAR(1),
         "CHEQUE_STG" CHAR(1),
         "ASL_STG" CHAR(1),
         "TRUST_DEED_STG" CHAR(1),
         "PARTNERSHIP_DEED_STG" CHAR(1),
         "BYE_LAWS_STG" CHAR(1),
         "AUTO_DEBIT_STG" CHAR(1),
         "ENROLLMENT_FORM_STG" CHAR(1),
         "APPROVED" VARCHAR2(10),
         "CREATED_BY" NUMBER,
         "CREATION_DATE" DATE,
         "LAST_UPDATE_DATE" DATE,
         "LAST_UPDATED_BY" NUMBER,
         "FUND_TYPE" VARCHAR2(30)
       ORGANIZATION EXTERNAL
        ( TYPE ORACLE_LOADER
          DEFAULT DIRECTORY DUMP_DIR
          ACCESS PARAMETERS
          ( RECORDS DELIMITED BY NEWLINE
               BADFILE 'emp.bad'
                          LOGFILE 't.log_xt'               
                          FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY ' " ' LDTRIM
                          REJECT ROWS WITH ALL NULL FIELDS
                   "DATA_DISCRAPANCY" 
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "APPLICATION_NUMBER"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BATCH_NUMBER"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "AMC_ID"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "TA_BRANCH"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SERVER_DATE_1"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SERVER_TIME_1"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ARN_NUMBER"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BROKER_CODE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SUB_BROKER_CODE_1"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SUB_BROKER_CODE_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SUB_BROKER_CODE_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BROKER_ADDRESS"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "FOLIO_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MODE_OF_HOLDING"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "STATUS"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SALUATION"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_PERSON_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "INVESTOR_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAN_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "POA_HOLDER_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "KYC"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_PAN_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "DOB_DOC"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_RELATIONSHIP"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SALUATION_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "DATE_OF_BIRTH"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SECOND_HOLDER_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_NAME_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAN_NO_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_PAN_NO_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "KYC_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_RELATIONSHIP_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SALUATION_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "DATE_OF_BIRTH_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "THIRD_HOLDER_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_NAME_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAN_NO_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_PAN_NO_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "KYC_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_RELATIONSHIP_3"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_1"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PINCODE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_2"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_NUMBER_O"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CITY"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_NUMBER_R"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "STATE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MOBILE_NUMBER"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "COUNTRY"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "EMAIL_ID"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ALT_EMAIL_ID"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_1_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PINCODE_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_2_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_NUMBER_O_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CITY_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_NUMBER_R_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "STATE_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MOBILE_NUMBER_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "COUNTRY_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "EMAIL_ID_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ALT_EMAIL_ID_A"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "DESPATCH_ACCOUNT"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "REDEMPTION_PAYOUT"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "I_PIN_ASSIGN"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "DIVIDEND_PAYOUT"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "T_PIN_ASSIGN"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "TO_FUND_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "TO_FUND_ID"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "OPTION_F_S"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MCR_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BANK_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ACCOUNT_NUMBER"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BANK_BRANCH"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ACCOUNT_TYPE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MCR_NO_P"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CHEQUE_DD_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BANK_NAME_P"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAYMENT_DATE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BANK_BRANCH_P"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADVICE_NO"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAYMENT_TYPE_P"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "AMOUNT_P"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MINIMUM_AMOUNT"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "AMOUNT_WORDS"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "NOMINEE_NAME"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "SALUATION_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "NOMINEE_DOB_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "GUARDIAN_NAME_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "RELATIONSHIP_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_1_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "COUNTRY_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ADDRESS_LINE_2_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PINCODE_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CITY_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CONTACT_NUMBER_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "STATE_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MOBILE_NUMBER_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "REMARKS_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "EXCEPTION_CHK_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "HOLD_CHK_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PAN_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BOARD_RESOLUTION_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "KYC_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "MOA_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CHEQUE_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ASL_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "TRUST_DEED_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "PARTNERSHIP_DEED_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "BYE_LAWS_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "AUTO_DEBIT_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "ENROLLMENT_FORM_STG"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "APPROVED"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CREATED_BY"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "CREATION_DATE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "LAST_UPDATE_DATE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "LAST_UPDATED_BY"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " ' ,
                   "FUND_TYPE"
                                                             TERMINATED BY ","  OPTIONALLY ENCLOSED BY ' " '
          LOCATION
           ( 'Key_File_Report.dat'
    {code}
    while trying to select the data from external table, am facing the below error.
    {code}
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error KUP-00554: error encountered while parsing access parameters KUP-01005: syntax error: found "identifier": expecting one of: "and, column, exit, (, ltrim, lrtrim, ldrtrim, missing, notrim, rtrim, reject" KUP-01008: the bad identifier was: LDTRIM KUP-01007: at line 4 column 77
    {code}
    can anyone suggest me how to resolve this.
    Regards,
    Sakthi.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

    I think i found the problem:
    KUP-01008: the bad identifier was: LDTRIM KUP-01007: at line 4 column 77There is no LDTRIM. It is LDRTRIM or LRTRIM.
    this should work
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LDRTRIM{code}
    Edited by: Sven W. on Aug 27, 2010 2:59 PM -- removed the blanks in the optionally enclosed spec                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Change Time Constraint for Personal Data InfoType

    Hi,
    How to change the Time Constraint for Personal Data InfoType.
    I tried to do it in Customisation Procedure --> Infotypes, but the option to change Time Constraint is disabled for Infotype 0002.
    Thanks

    Hi,
    you can change time constraints in general attributes of infotype attributes,this can be done through table maintenace view V_T582A.
    But note that we cannot change the time contraints for mandatory infotyepe of personnel in an organization i.e -0000,0001,0002.
    ex:- without personal details like names no personnel will exist in an organization.
    regards,
    Soori

  • How to add primary key for table with existing data?

    The table is occupied data already. There was no primary key before, so for every column, there are some duplicate values.
    I want to add a new column, which should be of the datatype integer, and can automatically increment, starting from 001. I tried this in Oracle SQL Developer, but it says "ORA-01758: table must be empty to add mandatory (NOT NULL) column". How can I do it? Thanks!

    Hello, don't call the column ID, that could be an ID relating to anything. Perhaps be a little more specific like emp_id .
    Then to update it:
    UPDATE Employee emp
      SET emp_id = (
      SELECT row_num
        FROM (
      SELECT ROWID,
                 ROW_NUMBER() OVER (ORDER BY ROWID) row_num
        FROM Employee emp2) emp2
      WHERE emp.ROWID = emp2.ROWID);That will assign a new EMP_ID for each, beginning at 1.
    Then:
    ALTER TABLE Employee MODIFY emp_id NOT NULL;
    ALTER TABLE Employee ADD CONSTRAINT EMP_PK PRIMARY KEY (EMP_ID);Then create a sequence for future population of the Employee table:
    CREATE SEQUENCE emp_seq START WITH <maximum value of emp_id + 1>;

  • Issue with table ROOSPRMSF entries for data source 0FI_AP_4

    Hi Experts,
    I am facing with an issue where we found incosistencies with table ROOSPRMSF in R/3 system.
    In BW , we have done initializations based on fiscal period selections (none of the selections overlap) for data source 0FI_AP_4.
    We have done in total 7 initializations. So in BW system in table RSSDLINITSEL we have 7 initialization requests.
    But in R/3 system we have 49 records for data source 0FI_AP_4 in ROOSPRMSF table out of which 42 are invalid records.
    I suspect that these 42 invalid records are created due to the execution of program RSSM_OLTP_INIT_DELTA_UPDATE when the tables ROOSPRMSF are actually holding the 7 initialization request entries.   Due to this each and every initialization request is linked to rest of the other intialization requests and ended with 49 records in table ROOSPRMSF table.
    Now our data loads are running fine but daily a short dump is raised . In the daily loads, BW init records in RSSDLINITSEL are compared with ROOSPRMSF entries and all the other 42 records which are invalid are written into system log and a short dump is raised.
    In order to fix these inconsistencies i checked for OSS note 852443. (Point 3 in OSS note)
    But it is specified to delete the delta queue for data source 0FI_AP_4 in RSA7 and instructed to execute the program RSSM_OLTP_INIT_DELTA_UPDATE so that the ROOSPRMSF table will be reconstructed with valid records available in RSSDLINITSEL. 
    From OSS note 852443 point 3
    "3. If the RSSDLINIT table in the BW system already contains entries, check the requests listed there in the RNR column in the monitor (transaction RSRQ). Compare these entries with the entries in the ROOSPRMSF and ROOSPRMSC tables with the INITRNR field. If, in the ROOSPRMSF and ROOSPRMSC tables for your DataSource source system combination, there are more entries with different INITRNR numbers, use transaction RSA7 in an OLTP source system to delete all entries and then use the RSSM_OLTP_INIT_DELTA_UPDATE report mentioned in the next section. For a DataMart source system, delete the entries that you cannot find in the RSSDLINIT table using the procedure described above."
    My question is if we delete the delta queue in RSA7 then all the tables in R/3 (ROOSPRMSF, ROOSPRMSC, Time stamp table) and BW (RSSDLINITSEL, initialization requests will be deleted) will be cleared. Then how will the program RSSM_OLTP_INIT_DELTA_UPDATE  copy entries into ROOSPRMSF table in R/3 ?
    Could any one please clarify this ?
    Thanks
    Regards,
    Jeswanth

    Hi Amarnath,
    Did you unhide the new field in RSA6 and regenerated the DataSource?
    Often SAP will populate newly added fields (belonging to the same (set) of table(s) used for extraction) automatically (e.g. SAP uses 'move-corresponding' in it's extractor-code, or, in this case, reading all fields from the DD, FM BWFIU_TRANSFORM_FIELDLIST).
    If the DataSource looks fine to you and the field is still not populated in RSA3 you can't go without a user-exit.
    Grtx,
    Marco

  • Table name for delivery date

    Hi
    I like to know the table name for the field Delivery date

    Hi Mahesh,
    The table is: LIKP  (SD Document: Delivery Header Data)
    Delivery Date Field : LFDAT
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Table for dates in date-type in transaction

    Hi,
    Can anybody tell me the table inwhich the dates saved in the different date-types  ( which are part of date-profile) are stored for the transaction type.
    This date profile is assigned to transaction type( LEAD).
    thanks and regards,
    PD

    Hi Prashant,
    Use Table: BAD_APPOINTMENT
    Field: ORDERADM_H_GUID contains guid of Lead transaction obtained from table CRMD_ORDERADM_H.
    Field: APPT_TYPE contains information for Data Types.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • Is it possible to wait for data using ODIWaitForData on a column of table

    Hi,
    Is it possible to wait for data on a column instead of waiting for data on a table.I knwo there is ODIWaitForData for which I can use the Filter Column and Filter Variable expressions to wait for data.But I do not know what is the value that I amy recevie ,so in a sense I do not know what is the value that I may be expecting.So how else can I wait for the data on a column.Note that I have used even the SQLFilter option in ODIWaitForData..
    Thanks & Regards,
    Pera Mahendra

    Thank you for responding to my post Niel. The HD is completely empty like it's not even formatted and no partitions yet. I have the installation DVD that I borrowed from a friend. I tried to insert it into the external CD/DVD drive, restarted the PC while pressing and holding the C button then I see the apple logo after a while it was showing a not allowed sign, the icon that is circle and has slash in the middle of it. I replaced the HD because my old HD crashed after upgrading to OS X Mavericks.

  • Table Onwers and Users Best Practice for Data Marts

    2 Questions:
    (1)We are developing multiple data marts that share the same Instance. We want to deny access to the users when tables are being updated. We have one generic user (BI_USER) with read access through one of the popular BI Tools. The current (first) data mart we denied access by revoking the privilege to the BI_USER, however going forward with other data marts the tables will get updated on a different schedule and we do not want to deny access to all the data marts. What is the best approach?
    (2) What is the best Methodology for table ownership of tables in different data marts that share tables across marts? Can we create one generic ETL_USER to update tables with different owners?
    Thanx,
    Jim Masterson

    If you have to go with generic logins, I would at least have separate generic logins for each data mart.
    Ideally, data loads should be transactional (or nearly transactional), so you don't have to revoke access ever. One of the easier tricks to accomplish this is to load data into a shadow table and then rename the existing table and the shadow table. If you can move the data from the shadow table to the real table in a single transaction, though, that's even better from an availability standpoint.
    If you do have to revoke table access, you would generally want to revoke SELECT access to the particular object from a role while the object is being modified. If this role is then assigned to all the Oracle user accounts, everyone will be prevented from viewing the table. Of course, in this scenario, you would have to teach your users that "table not found" means that the table is being refreshed, which is why the zero downtime approach makes sense.
    You can have generic users that have UPDATE access on a large variety of tables. I would suggest, though, that you have individual user logins to the database and use roles to grant whatever ad-hoc privileges users need. I would then create one account per data mart, with perhaps one additional account for the truely generic tables, that own each data mart's objects. Those users would then grant different roles different database privileges, and you would then grant those different roles to different users. That way, Sue in accounting can have SELECT access to portions of one data mart and UPDATE access to another data mart without granting her every privilege under the sun. My hunch is that most users should not be logging in to, let alone modifying, all the data marts, so their privileges should reflect that.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • Zero Quantity in Purchase Analysis Report

    I have create Item AP invoice on today date,  raise AP credit note for that full AP invoice on today date. Then run  purchase analysis report. (Quantity column will show zero) How can I get rid of these zero quantities.

  • TV out resolution

    I finally connected my MSI MEGA 180 to my TV, but got some problems. If i use 800x600 on my 36"" Sony widescreen i get 3 cm black bars on top/bottom. What resolution should i use ? I tried adding a custom resolution of 720x576, then it shrinked to 1

  • Using same Idoc type & Message type for 2 Interfaces

    Hi all, we have 2 interfaces which uses same Idoc type, message type & Partner No.Only Process code is going to different according to the posting logic. How can we differentiate both while posting idocs to not mess up each other . Regards

  • Return to OAF page after invoking configurator

    Hi, I'm having a problem to return my OAF page – after invoking configuration pages. I know that this topic was discussed here before, but without any summering conclusions. Can anyone please assist? I'd appreciate any help. Thanks in advance, Rona

  • Sending alert emails from SharePoint

    Hi all, I'm having trouble sending emails from SP 2013. Can someone explain me in detail how to connect SP 2013 with Exchange 2010? The CRM and Exchange are located on two different servers. Vlastimir Sindelic