Include autoincrement field in oracle view

Hi,
i need to include autoimcrement field in oracle view. I know that sequence is not permitted there.
Is there any other way to have autoincrement field in view?
Thanks in advance.
Dominik

If you are using view for query purpose only, you can use ROWNUM.
select rownum,columns from myview

Similar Messages

  • Include new field in dynamic selection in fbl1n

    Hi Guys,
    I want to add a new field in dynamic selection in tcode FBL1N.
    Regards,
    H.Sathiskumar

    Hi Sathiskumar,
    Here are general instructions for adding new fields to the dynamic selection:
    1) Call Transaction SE36
    2) Enter logical database DDF, KDF or SDF (for FBL5N, FBL1N, FLB3N)
    3) Menu -> Extras -> selection views
    4) Here you can find 2 origins of the view (SAP and CUS).
       The standard view SAP is used. Create your own using view CUS. First copy the view SAP.
       On the left side are the functional groups.
       01  Customer master  => fields from table KNA1
       02  Company code     => fields from table KNB1
       03  Documents        => fields from table BSID
      Only those fields from these tables can be used for dynamic selection
    5) To get another field from e.g. table KNB1 for the dynamic    selection double click on the right side on
        table KNB1. The field in the lower area will be changed.  Search for the desired field and enter a 03
        in front of the field.  Save.
    6) Test in your report.
      Note: Not every table and field can be used as dynamic selection. It is also necessary that the report
               allows selection for that field."
    Furthermore I suggest You to have a look at the note number 310886 that can be useful.
    Customers: logical database: DDF
    Permitted tables:
    KNA1, KNB1: All fields are permitted that are contained in the VF_DEBI view. If necessary, you have to
                         include additional fields in the view fields category using Transaction SE11.
    I hope this information may help you in resolving the reported issue.
    Regards,
    Emoke

  • HOW to include a reference currency fields in a view ?

    Hello Experts,
    <b>I am having Currency fields error in generic extraction</b>
    I have table where I am trying to extract data to BW via generic extraction. When I tried
    to extract with the TABLE its giving me an error
    <b>Invalid extract structure template RPSCO of DataSource ZBW_REP3_TEST
    You tried to generate an extract structure with the template structure RPSCO. This operation failed, because the template structure quantityfields or currency fields, for example, field WLP00 refer to a differenttable</b>.
    Now I created a view with all the fields same as my table.
    But its still giving me the same error and taking all the fields as a primary keys. I have over 12 currency fields in the table. I am confused how to fix this issue and add a currency field to my view?
    hOW to include a reference currency fields in a view ?
    All inputs are much appreciated.
    Thanks and Regards,
    Harish

    Thank you for your responce,
    Can you please check my view and let me know where I am going wrong     
    View    Table   Field  Dataele  Data
    field                    type                                            0                                                                
    WLP01     RPSCO     WLP01     BP_WPL     CURR     15     Period value in ledger currency
    WLP02     RPSCO     WLP02     BP_WPL     CURR     15     Period value in ledger currency
    WLP03     RPSCO     WLP03     BP_WPL     CURR     15     Period value in ledger currency
    WLP04     RPSCO     WLP04     BP_WPL     CURR     15     Period value in ledger currency
    WLP05     RPSCO     WLP05     BP_WPL     CURR     15     Period value in ledger currency
    WLP06     RPSCO     WLP06     BP_WPL     CURR     15     Period value in ledger currency
    WLP07     RPSCO     WLP07     BP_WPL     CURR     15     Period value in ledger currency
    WLP08     RPSCO     WLP08     BP_WPL     CURR     15     Period value in ledger currency
    WLP09     RPSCO     WLP09     BP_WPL     CURR     15     Period value in ledger currency
    If I add a
    Table TCURC against any field what would be the view field and data element
    Do I need to tick MOD?
    Please suggest.
    Kapadia,
    If I do that its still taking all the fields are a primary keys and bringing 6 lakh records to where I originally have 49 records in a table
    Thanks and Regards,
    Harish

  • How to save to PDF form View Responses tab without including blank fields?

    Is there a way to save in PDF form from View Responses withouth including blank fields? More specifically, my form has several fields that have action (Show/hide) depending on the values. Once form is submitted and I am reviewing it from View Response tab, I use "save as PDF" button to save/download my completed form, however when I open it, it shows blank fields as well. Is there a way to somehow specify not to include blanks. If there is no way it would be a nice feature to have. Please let me know.

    No, the PDF is always going to show all fields, the "Show/Hide" does not affect the PDF we generate.
    I will soon post a Form for users to submit feature requests, keep your eyes out for an announcement in the forums for it and you can submit this request.
    Thanks,
    Josh

  • Modify DataSource to include new fields from view

    Hello all, I have been tasked to bring new fields into a DataSource from a view. The new required fields are in the table and view below the DataSource. How do I update the DataSource to recognize the new fields in the view?
    I am pretty sure I just need to have the DataSource extract structure ZOXDEV0038 regenerated and then unhide the fields in the DataSource, but I can't figure out how to get it to regenerate.
    Thanks in advance,
    Justin

    Hi,
    Example of a view
    Hope you have this joining condition in your view.
    Tbales
    VBAP
    VBAk
    Join Conditions
    VBAP MANDT = VBAK MANDT
    VBAP VBELN = VBAK VBELN
    and <b>InView Flds Tab</b>
    all field whihc you want see in datasourcelike
    MANDT
    VBELN
    <b>[Have to added this new fields in this tab]</b>
    and foe your error
    Re: Generic Extraction : Invalid Extract structure
    Hope i m clr.
    Regards,
    San!
    Message was edited by: San!

  • Nullable fields in a View

    I am having issues trying to get the nullable attribute of a view to be "No". I created a very simple view to test, and the issue I am running into is anytime I specify a Union in the query every field in the view is set to nullable. In this very simple example I am querying 3 columns from a table, none of which are nullable. If I do not include a union then the view fields fields are not nullable as expected, however as soon as I introduce the union (even though no possiblity of null values are introduced) the columns change to being nullable. In this simple example it isn't such a big deal, but this is causing significant performance implications using LINQ to query more complex views. Any help would be much appreciated.
    Example 1:
    SELECT comp_id, comp_typ_id
    from component
    where comp_id = 1
    --Columns of resulting View
    Column_name: comp_id      
    Data_Type: NUMBER(5,0)
    Nullable: No
    Column_name: comp_typ_id      
    Data_Type: NUMBER(5,0)
    Nullable: No
    Example 2:
    SELECT comp_id, comp_typ_id
    from component
    where comp_id = 1
    UNION
    SELECT comp_id, comp_typ_id
    from component
    where comp_id = 2
    --Columns of resulting View
    Column_name: comp_id      
    Data_Type: NUMBER(5,0)
    Nullable: Yes
    Column_name: comp_typ_id      
    Data_Type: NUMBER(5,0)
    Nullable: Yes
    Edited by: 916327 on Feb 22, 2012 12:15 PM
    Edited by: 916327 on Feb 22, 2012 12:21 PM
    Edited by: 916327 on Feb 22, 2012 12:42 PM
    Edited by: 916327 on Feb 22, 2012 12:48 PM

    916327 wrote:
    I am having issues trying to get the nullable attribute of a view to be "No". I created a very simple view to test, and the issue I am running into is anytime I specify a Union in the query every field in the view is set to nullable. In this very simple example I am querying 3 columns from a table, none of which are nullable. If I do not include a union then the view fields fields are not nullable as expected, however as soon as I introduce the union (even though no possiblity of null values are introduced) the columns change to being nullable.
    Example 1:
    SELECT week_nbr,
    period_nbr,
    year_nbr
    FROM time_hierarchy
    WHERE d_date = '03-JAN-99';HUH?
    The purpose of TO_DATE is to convert string datatype to DATE datatype.
    With Oracle characters between single quote marks are STRINGS!
    'This is a string, 2009-12-31, not a date'
    When a DATE datatype is desired, then use TO_DATE() function including format.
    '10-11-12'
    Which is correct DATE below for string above?
    Oct. 11 2012
    Nov. 10 2012
    Nov. 12 2010
    Dec. 11 2010
    Oct. 12 2011
    Dec. 10 2011
    I'll give you 6 guesses, since the first 5 will be incorrect.

  • ORA-02070: Error when updating a SQL Server table thru an Oracle View

    I have a SQL Server table TIMESHEET which contains a number of VARCHAR and NUMERIC columns plus a DATETIME column.
    Only the DATETIME column is giving me trouble.
    On the ORACLE side I have a view which selects from the SQL Server table but in order to get the SELECT to work, I had to either put a CAST or TO_DATE function call around the DATETIME field
    Below is the relevant part of the 2 view definitions I have tried
    create view TIMESHEET as
    SELECT
    "TsKeySeq" as TS_KEY_SEQ,
    "EmployeeNo" as EMPLOYEE_NO,
    CAST("PeriodEnding" AS DATE) as PERIOD_ENDING,
    . . . (more columns - not relevant)
    FROM [email protected];
    An update to the view generates this message
    ORA-02070: database OLEMSQLPSANTDAS6 does not support CAST in this context
    create view TIMESHEET as
    SELECT
    "TsKeySeq" as TS_KEY_SEQ,
    "EmployeeNo" as EMPLOYEE_NO,
    TO_DATE("PeriodEnding") as PERIOD_ENDING,
    . . . (more columns - not relevant)
    FROM [email protected];
    An update to the view generates this message
    ORA-02070: database OLEMSQLPSANTDAS6 does not support TO_DATE in this context
    If I don't include either the TO_DATE() or CAST() then I get
    Select Error: ORA-28527: Heterogeneous Services datatype mapping error
    ORA-02063:preceding line from OLEMSQLSANTDAS6
    Does anyone have any idea how to update a SQL Server DATETIME column thru an ORACLE view?

    You can't cast accross heterogenious databases and there is no need to. HSODBC treats SQL Server DATETIME column as DATE. For example, I have SQL Server table:
    CREATE TABLE [Ops].[T_JobType](
         [JobType] [varchar](50) NOT NULL,
         [JobDesc] [varchar](200) NULL,
         [InsertDt] [datetime] NOT NULL CONSTRAINT [InsertDt_00000006]  DEFAULT (getdate()),
         [InsertBy] [varchar](128) NOT NULL CONSTRAINT [InsertBy_00000006]  DEFAULT (user_name()),
         [LastUpdated] [datetime] NOT NULL CONSTRAINT [LastUpdated_00000006]  DEFAULT (getdate()),
         [LastUpdatedBy] [varchar](128) NOT NULL CONSTRAINT [LastUpdatedBy_00000006]  DEFAULT (user_name()),
    CONSTRAINT [T_JobType_PK] PRIMARY KEY CLUSTERED
         [JobType] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 100) ON [DATA01FG]
    ) ON [DATA01FG]Now on Oracle side I do:
    SQL> desc "Ops"."T_JobType"@pbods
    Name                                      Null?    Type
    JobType                                   NOT NULL VARCHAR2(50)
    JobDesc                                            VARCHAR2(200)
    InsertDt                                  NOT NULL DATE
    InsertBy                                  NOT NULL VARCHAR2(128)
    LastUpdated                               NOT NULL DATE
    LastUpdatedBy                             NOT NULL VARCHAR2(128)
    SQL> select "InsertDt" from "Ops"."T_JobType"@pbods;
    InsertDt
    18-AUG-08
    09-OCT-08
    22-OCT-09
    18-AUG-08
    19-NOV-08
    SQL> SY.

  • SRM 7.0 New custom fields added to view do not appear in the component conf

    Hi
    I added two custom fields to the view V_QTE_DOFC_I_DESC of the WD componenet /SAPSRM/WDC_DODC_QTE_I_DS. This view gets called when bidder is trying to create a bid and clicks on add Substitute Item in the Item tab. This view is simply a popup window where we can enter ther substitute item.
    I added two custom fields to the context of the above view and placed on the layout of the view as input fields. Then I tried to modify the component configuration /SAPSRM/WDCC_DODC_QTE_I_DS_SUB. When I look in t he web dynrpo built-in for the view V_QTE_DOFC_I_DESC, I don't see the custom fields that I just added. As a result, these custom fields are not displayed when I try to substitute an item. Could anyone tell me how to brining in these two custom fields into the component configuration.
    Any help is greatly appreciated.

    Hi Prasuna,
    Sorry ..You are right..I was looking at some other WDC related to contract data..It you map the CUFs to /SAPSRM/S_CLL_CTR_ITEM which has the include structure INCL_EEW_PD_ITEM_CSF_CTR then it should work fine.
    If you do this, are you able to view the new fields on the screen?
    you mentioned that you are not able to save the data to the table.
    Include your fields in INCL_EEW_PD_ITEM_CSF as well because if you add CUF to any of those doc types, you also have to add those CUF to the global structure for CUF documents.
    Also Check if you fields are there in structures BBPS_CTR_CUF_ITEM,BBPS_CTR_UI_ITEM and BBPS_CTR_ITEM.
    Check whether you have implemented the BADI's like BBP_DOC_CHECK_BADI ,BBP_DOC_CHANGE_BADI and BBP_DOC_SAVE_BADI . check out the structures (whether they having the CUFS) used in those if you have implemented any of them .
    Regards
    Lavanya
    Edited by: LAVANYA CHAVA on Aug 25, 2010 10:10 AM

  • Manipulating fields in a view

    I have a table with a date and a time and I really need that data in a datetimestamp format.  I'm trying to avoid creating a custom table and a custom program to get this information that already exists in this table.
    If I put the data in a view, is there any way to perform calculations on the fields and show that as another field in the view?
    I've got a view partially set up, but I just don't see a way to manipulate the fields to that degree?
    Or any other way to do this without creating a custom table with the right field type and a program that converts the data from one to the other?
    Thanks for any help.

    Within the view?
    Let me restate my question, because I think we're all confused.
    I am looking at the table PEVSH.
    I need to use a few fields from this table, including the date and time, but I need that together in a timestamp format, not in two seperate date and time fields.
    Is there a way to create a view of PEVSH that displays those two fields together into a timestamp field?
    I'm not seeing how I can use a maintenace generator to do that if I don't have the field.  The same with the edit mask, there's no field to put the edit mask on.
    If I can't do it in a view, is there a way, if I create a custom table, to have lines inserted into it everytime PEVSH is updated?
    I'm happy to award points for helpful answers, but please consider my total problem when answering.  Thanks.

  • Protected Flex field and Custom Views

    Hi,
    I have created some project variables in oracle bpm 11.1.1.6.0 project.After deployment, these variables are coming as Protected flex field but for some reason these are not visible when I define custom views.
    I also tried creating Protected flex field on BPm workspace, mapped these variables to human task payload, yet again when creating custom view i cannot see them.
    This problem is only happening with protected flex field and not public flex field.
    Please let me know how to add protected flex fields in custom view.
    Regards...

    why do you think it's an apps question?

  • Including a field from a catalogue in 'create shopping cart' display screen

    Hi all,
       I am new to SRM, and i am faced with the following situation:
    I need to include a field called 'supplier part number'(found in the MDM catalogue screen) in the display for 'Create Shopping Cart'  screen. The field can be viewed in the detailed display for an individual item, once the item's details are fetched from the catalog; But now i need to include this field as an additional field corresponding to all the items listed in the normal display for 'Item overview' instead of selecting an individual item (from the 'item overview') and then checking its  'detailed display' . can you please give me any  leads like - where i could possibly do the changes in the webdynpro component ( in my case it is ' /SAPSRM/WDC_UI_SC_DOTC_BD'; view - 'v_sc_dotc_basic') and any other details that can help me.
    Regards,
    Abhinay.

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • Importing an SQL Server TEXT data type field in Oracle - problem with LONG

    Hello,
    I work in Oracle 9i and I created a view on a distant SQL Server database that contains a TEXT data type field. But I have a problem when I select that field in Oracle; I have the following error message: "ORA-00997: forbidden use of LONG data type".
    Could anybody have a solution for me, to solve that problem?
    Thanks a lot!

    It is very difficult to suggest anything without seeing your code.  I don't even know if what you are seeing is the actual value or an error code.  Often, negative numbers are indicative of error codes. 
    For instance -1 could mean that you have an invalid reference or path, etc...
    Can you post your code?

  • Adding Inbuilt OIM fields in User View form OIM 11gR2

    I am working on customizing my OIM User View form. I want to include some internal OIM dates like USER create date (USR_CREATE in USR table)
    USER update date (USR_UPDATE in usr table) in my USER VIEW FORM.
    Below are the steps i am performing:
    1. Login into identity console
    2. Activate sandbox
    3. Go to users link
    4. Click on search
    5. Click on any user (user login)
    6. In view page click on Customize button on the top right
    7. click on view-->source-->click on area--> edit
    But after here i do not see any option to import the inbuilt OIM dates to form.
    Please provide a solution/documentation/referrence material.
    This is a bit urgent so quick action will be very helpful..
    thanks

    If you don't able to see this in the Managed User data component then you can't include those field.As you know these attributes are for OIM internal usage.
    So, you can't include these OOTB system attributes.
    If realy it is required for your business need. you can try below
    1. create an UDF say USR_UDF_UPDATE
    2. write a trigger(insert,update) on USR table and copy USR_UPDATE value into USR_UDF_UPDATE if any insert update happen on USR table.(you can specify the trigger based on specific column as well).
    3. now add this UDF to the user view page
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • What is the meaning of different fields of Oracle Software e.g 11.1.0.2.0

    What is the meaning of different fields of Oracle Software e.g 11.1.0.2.0
    Please share.

    The first digit is the most general identifier. It represents a major new version of the software that contains significant new functionality.
    Database Maintenance Release Number
    The second digit represents a maintenance release level. Some new features may also be included.
    Application Server Release Number
    The third digit reflects the release level of the Oracle Application Server (OracleAS).
    Component-Specific Release Number
    The fourth digit identifies a release level specific to a component. Different components can have different numbers in this position depending upon, for example, component patch sets or interim releases.
    Platform-Specific Release Number
    The fifth digit identifies a platform-specific release. Usually this is a patch set. When different platforms require the equivalent patch set, this digit will be the same across the affected platforms.Check
    Meaning of each number in version

  • Autoincrment field in SAP database

    Hi
    I'm trying to create autoincrement field in one of my SAP tables, but i can't find any such data type.
    I' ve read some articles on forums over the internet, suggesting to create a trigger or sequence... i remember doing this once on an Oracle DBMS, but i can't find something similar here in SAP.
    Any ideas?
    Regards
    Uros

    Hi uros,
    1. This concept is at oracle database level.
    2. but SAP does not use it.
    3. In sap there is, another concept
       of NUMBER RANGE.
    regards,
    amit m.

Maybe you are looking for