Dynamic values for column header / "AS" using XMLFOREST

Hello,
I was wondering if it was possible to show data from a select statement into an AS column, e.g. SELECT col.a AS col.b.
The reason I need this is for XMLFOREST, as I need the value of a SELECT statement to be the column name, so that it will be the value of the element. e.g. <col.b></col.b>
Anyone know if/how I can do this?

SQL> ed
Wrote file afiedt.buf
  1  WITH t AS (SELECT 'fred' name FROM DUAL UNION SELECT 'bob' FROM DUAL)
  2* SELECT XMLELEMENT(EVALNAME name, name) FROM t
SQL> /
ERROR:
ORA-19039: Keyword EVALNAME reserved for future use
no rows selected
SQL> ed
Wrote file afiedt.buf**** Throws a bit of magic dust into SQL...... ****
SQL> WITH t AS (SELECT 'fred' name FROM DUAL UNION SELECT 'bob' FROM DUAL)
  2  SELECT XMLELEMENT(EVALNAME name, name) FROM t
  3  /
XMLELEMENT(EVALNAMENAME,NAME)
<bob>bob</bob>
<fred>fred</fred>
SQL>This is an example of what you'll be able to do with 10.2.0.2 when it's released

Similar Messages

  • Show the period value in column header using Text Variable

    We are using Posting Period & Financial Year to calculate YTD & MTD, for current year and previous years. These posting period and financial year characteristics are custom created characteristics we are using due to customer specific requirement.
    Input values are posting period, financial year and numeric value. To calculate previous year, I need to subtract numeric value from the input financial year. Every thing is working fine up to this.
    In the report I need to show the posting period and financial year values dynamically in each column header of the report for MTD, YTD for current year & previous year. I tried to achieve this using Text Variables, but I didn’t succeed. If some one can give me some idea to resolve this, it would be very helpful.
    I am excellent in ABAP coding. If you can specify me to code in User Exit, I can do it.
    Column headers should be 08.1999 Sales Qty, 08.2008 Sales Qty, 1999 Sales Qty, 2008 Sales Qty.

    Hi Abhinav,
    Try using the content text variables 0T_FYEAR and 0T_FPER3, when used in the head these variable should display the year and period specified in the RKF.
    e.g
    &0T_FPER3&. &0T_FYEAR& Sales Qty = 08.1999 Sales Qty
    If that doesnt work, try creating text replacement path variables referencing the variables you created for the year and period input. To do this click on the RKF and click on the dropdown by the yellow box next to the description on the general tab and select New Variable, enter the description, tech name and set processng by to Replacment Path, then select period as the ref. characteristic, then on the replacement path tab change replace variable with to variable and then select the variable you are using for the period input, save then hit ok, this is now a text representation of the variable your are inputing for period and can be used in the column headers, you will need to repeat the process for the fiscal year.
    Hope this helps
    Josh

  • How to know the dynamic values for this :AND category_id_query IN (1, :3, )

    Hi Team,
    R12 Instance :
    Oracle Installed Base Agent User Responsibility --> Item Instances -->
    Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
    In the above page there are two table regions.
    Notes.
    -------------------------------------Table Region---------------------------
    Attachments
    -------------------------------------Table Region---------------------------
    --the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
    I want to know what are the document types are displayed in this page ?
    --We developed a custom program to attach the attachments to the  services contracts and the above seeded OAF page displays those ..as needed.
    But after recent changes..the Attachments--> table region is not showing the attachments.
    I have verified the query..and could not find any clue in that..
    but i need some help if you guys can provide..
    SELECT *
    FROM
    *(SELECT d.DOCUMENT_ID,*
    d.DATATYPE_ID,
    d.DATATYPE_NAME,
    d.DESCRIPTION,
    DECODE(d.FILE_NAME, NULL,
    *(SELECT message_text*
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code  = userenv('LANG')
    *), d.FILE_NAME)FileName,*
    d.MEDIA_ID,
    d.CATEGORY_ID,
    d.DM_NODE,
    d.DM_FOLDER_PATH,
    d.DM_TYPE,
    d.DM_DOCUMENT_ID,
    d.DM_VERSION_NUMBER,
    ad.ATTACHED_DOCUMENT_ID,
    ad.ENTITY_NAME,
    ad.PK1_VALUE,
    ad.PK2_VALUE,
    ad.PK3_VALUE,
    ad.PK4_VALUE,
    ad.PK5_VALUE,
    d.usage_type,
    d.security_type,
    d.security_id,
    ad.category_id attachment_catgeory_id,
    ad.status,
    d.storage_type,
    d.image_type,
    d.START_DATE_ACTIVE,
    d.END_DATE_ACTIVE,
    d.REQUEST_ID,
    d.PROGRAM_APPLICATION_ID,
    d.PROGRAM_ID,
    d.category_description,
    d.publish_flag,
    DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
    d.URL,
    d.TITLE
    FROM FND_DOCUMENTS_VL d,
    FND_ATTACHED_DOCUMENTS ad
    WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
    *) QRSLT*
    WHERE ((entity_name    ='OKC_K_HEADERS_V'-- :1
    AND pk1_value          IN ( 600144,599046) --:2
    AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    AND datatype_id       IN (6,2,1,5)
    AND (SECURITY_TYPE     =4
    OR PUBLISH_FLAG        ='Y')))
    --='000180931' -- 'ADP118'
    The above seeded query is the one which is used for table region to retrieve the data..
    how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    --Sridhar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Patricia,
    is it working for restricted key figure and calculated key figure ??
    Note Number Fisc Period Opening Days
    1 1 2
    2 1 3
    3 1 0
    because I have other restriction, so I create two restricted key figure..
    RK1  with restriction :  Total Number of Note,
    RK2  with restriction :  Total Opening Days ,
    then I Created a calculated key figure, average opening days in a period
    CK1 = RK2 / RK1..
    in this case, I am not sure if it will work or not..
    for example, during RK2 calclation, it might be this   2+3 = 5, the line with 0 will be ignored..
    during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
    could you please confirm..

  • Default cell values for column not properly saved in uir file in labwindows 2009 (9.1.0 427)?

    I've run into a strange problem with the table control.  Basically, even though I set default cell values for a particular column as numeric, when I try to add items to the list it tries to add them as strings, and returns an error message that it is expecting *char instead of int.  Furthermore, when I open the uir file that contains the table in question in 2010, it appears as if the default cell values for that column are still set as strings, even though in 2009 when I open the uir file it shows as numbers.  I tried converting the uir to C code, and sure enough the C code indicated that the column still is a string type.
    I've gone ahead and made a small project to show the issue.  If you open this project in labwindows 2009 and click on the table in the table_bug.uir, and edit default cell values for column 1, you will see that the cell settings have type as numeric and data type as int.  When you run the project, however, it will fail with an error message saying that it is looking for a *char.  When this same project is loaded into labwindows 2010, clicking on the table in table_bug.uir and edit default cell values (column 1) shows the type as string.  When I change this to numeric (and change numeric attribute to int), this runs fine in 2010.  I tried simply changing the uir in 2010, and then using it in 2009, but 2009 complains that the uir is from a newer version (understandable).  If there is any workaround that would let me continue to use 2009 for the time that would be great.
    Any help would be greatly appreciated.
    thanks,
    Alex Corwin
    Solved!
    Go to Solution.
    Attachments:
    table_bug.zip ‏324 KB

    I opened the UIR in 2009 (but I have 2009 SP1) and it still showed that the default value for the first column was a string. I didn't have any problems changing it to a numeric int, and then building and running the project without error.
    Here are a few things you can try:
    1) Change the default value to a string. OK out of the dialog, re-enter the dialog, and change it back to Numeric int. Resave and see if the problem has gone away.
    2) You said you get a ".UIR is from a newer version" error when opening the 2010 UIR in 2009. Does the UIR still open if you click okay? Often times this will work just fine. Assuming you don't have any problems with this, make a minor change to the UIR in 2009, such as moving the table to the left, and then back to the right and then re-save. See if your program works now.
    Kevin B.
    National Instruments

  • ORA-23460: missing value for column column name in resolution method

    Hi All,
    We have implemented bi-directional replication via oracle streams..Oracle 10g 10.2.0.4
    We are getting following error in conflict resolution .ORA-23460: missing value for column "ASSIGNED_APPL_USER_ID" in resolution method "<method>" for
    "TMADMIN"."PATIENT_VISITS"."REP_UPDATE" ORA-01403: no data found .
    Above column ASSIGNED_APPL_USER_ID is NULL column ,We are using MAXIMUM resolution method for update conflict handler .We tried many times on toad the same scenarios and working fine.
    We have set supplemental logging on primay and unique columns.
    I found many docs on internet and they all said add supplemental logging on all columns.
    We did set up like this ...:
    DECLARE
    COLS DBMS_UTILITY.NAME_ARRAY;
    BEGIN
    cols(1) := 'STUDY_ID';
    cols(2) := 'KENDLE_STUDY_SUB_ID';
    cols(3) := 'SITE_ID';
    cols(4) := 'PATIENT_ID';
    cols(5) := 'VISIT_NUMBER';
    cols(6) := 'VISIT_TYPE';
    cols(7) := 'VISIT_DATE';
    cols(8) := 'CRF_COLLECTION_DATE';
    cols(9) := 'DT_CREATED';
    cols(10) := 'DT_MODIFIED';
    cols(11) := 'MODIFIED_BY';
    cols(12) := 'MONITOR_VISIT_DATE';
    cols(13) := 'UNSCHEDULED_VISIT_REASON';
    cols(14) := 'LAST_SCHEDULED_VISIT_NUMBER';
    cols(15) := 'VISIT_DATE_IN_TRIALBASE';
    cols(16) := 'PROJECTED_VISIT_DATE';
    cols(17) := 'SEND_CERTIFIED_LETTER_YN';
    cols(18) := 'ASSIGNED_APPL_USER_ID';
    cols(19) := 'DATE_CERTIFIED_LETTER_SENT';
    cols(20) := 'DURATION_OF_CALL_IN_MINUTES';
    cols(21) := 'COMPLETED_APPL_USER_ID';
    cols(22) := 'CALL_STATUS';
    cols(23) := 'VISIT_HYPERLINK';
    cols(24) := 'NEXT_CALL_DATE';
    cols(25) := 'DT_PMNT_REQUESTED_TO_SPONSOR';
    cols(26) := 'VISIT_DATE_NAP_YN';
    cols(27) := 'MONITOR_VISIT_DATE_NAP_YN';
    cols(28) := 'CRF_COLLECTION_DATE_NAP_YN';
    cols(29) := 'IMPORTED_SUBJECT_VISIT_DATE';
    cols(30) := 'REMINDER_SENT_DATE';
    DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER(
    OBJECT_NAME =>'TMADMIN.PATIENT_VISITS',
    METHOD_NAME =>'MAXIMUM',
    RESOLUTION_COLUMN =>'DT_MODIFIED',
    COLUMN_LIST =>cols);
    END;
    DT_MODIFIED is our resolution columns......
    Any help would be appreciate...
    Thanks in advance.
    Thanks,
    Nick.

    You should post this question the Oracle Server forums.
    Good luck!
    Warm regards.
    ashok

  • Computing default value for column MRU. error.

    hi
    we moved from apex 3.x to 4.2
    AN apex application was working fine..After upgrade it gave error while trying to insert using apex front end
    Error computing default value for column Apply MRU.
    ORA-06550: line 3, column 46: PL/SQL: ORA-00972: identifier is too long
    The PK of the relevant table is based in a sequence.Can i relplace old seq. using new seq...will it help?
    When we insert using regular insert statement in sql developer, its fine though.
    thanks
    kp
    Edited by: user8612301 on Mar 15, 2013 7:09 AM

    Hi,
    Remember the error says "default value". What is your code to set the default value?
    I've seen this error before where it was simply a statement like
        column = "text123456789012345678901234567890";where the identifier error was given because it should have been
       column = 'text123456789012345678901234567890';Since the string doesn't begin with an apostrophe, the parse thinks it's a LONG identifier. Hence, error!
    Howard

  • Target finish value and Actual confirmed value for the header material

    Hi guys,
    For a given production order, I need to get the below mentioned two values for the header material of the production order:
    1. Planned or Target finish value
    2. Actual confirmed value
    will this value be calculated like: 
    Target finish quantity x standard price of the material (maintained in MBEW-STPRS)  = Target Finish Value
    Actual confirmed quantity x standard price of the material (maintained in MBEW-STPRS)  = Actual confirmed Value
    OR
    I can get these required value directly in DB table.
    Please guide here.
    Thanks & regards,
    Ravish
    Edited by: Ravish Kumar Ojha on Oct 28, 2009 5:41 AM
    Edited by: Ravish Kumar Ojha on Oct 28, 2009 5:41 AM

    CO03- go to Costs-- Analysis should give you these details.
    if you are not OK with the columns appearing, you can change by selecting the change Layout and selecting the required options.
    Regards
    Ratan

  • Checkbox and ORA-20507: Invalid numeric value #:# for column

    Hi All,
    I'm facing problems Checkboxes in a form.
    I created a form and report on a table. one of the fields on the form is a checkbox and when ever I want to create a new record or update with more than one value for the checkkbox I obtain the following error:
    ORA-20507: Invalid numeric value #:# for column COLUMN_NAME Where by #:# is numbers
    I think the error occurs at the processes of get_pk and process_row_of_......
    how should I change the processes to accommodate the checkbox values.
    Kind regards
    Mel

    Hi Roel,
    Colunm = number
    LOV Definition
    select product display, prod_num return from product_category_vw
    where prod_num not in (select p.prod_num from product_user_tb p, user_tb u
    where p.user_num = u.user_number
    and u.user_name = :APP_USER)
    ORDER BY 1column = number
    LOV Definition
    select school d, sch_id r from school_tbRegards
    Mel

  • How to set value for trim and bleed using jsx script?

    I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated.
    Following is the code I am trying with:
    var _saveName = new File ( root_path +_strFileName+".pdf");
        var _saveOpts = new PDFSaveOptions();
        _saveOpts.printerResolution = 300; 
        var bleedarray = new Array();
         bleedarray[0] =9.00;
         bleedarray[1]=9.00;
         bleedarray[2]=9.00;
         bleedarray[3]=9.00;    
        _saveOpts.bleedOffsetRect = bleedarray;

    I would expect although I've not actually tried this for the bleed off set box to be larger than the artbaord and the first two values to be negative or 0…
    var bleedarray = new Array(-9,-9,artboard.width+9,artboard.height+9);
    Where 'artboard.width' & 'artboard.height' you will have calculated from your file. An Array(9,9,9,9); would not constitute any boxes bounds.

  • Maintain values for the variables in using Transaction SM30_SSM_VAR

    Greetings
    I’m trying to start a customizing transaction of SRM from Transaction Solar02 in the Solution manager, and this message appears:
    Maintain values for the variables in <> using Transaction SM30_SSM_VAR
    I start the transaction SM30_SSM_VAR but there are no values maintained. I don't know which values have to be set.
    Please if anybody could help me, I will be much appreciated
    Regards
    Henry
    appreciated.
    Regards
    Henry

    Hi Henry,
    you probably clicked an URL that has some <value> brackets inside? In this case you need to create a variable in SM30_SSM_VAR with the name "value" and maintain as attribute the e.g. the SRM-server you want to be replaced in the URL.
    Regards
    Andreas

  • How to dynamically display value in column header

    Hi,
    I have a requirement where in the user selects a particular value from a drop down list, and the same has to be displayed in the column header. For example, there are A,B,C,D types of quantities in a drop down list. Once the user selects these values and submits, the column header should display the quantity type selected. Kindly let me know how this can be achieved.
    Regards
    Snehith.

    Hi Snehith,
    In Layout Mode, Double click the Column in the Table, the Control Properties window is opened, switch to the "Display" tab, then press on the formula button next to the "Label:".
    Use the Expression Builder to have the label be the value you want it to be: for example:
    NSTR(#ID[ACA9TU]@MAX_ROWS,'Z3.0')
    This formula takes a numeric field, formats it into a string and displays it.
    For more information about how to build expression, please see:
    http://help.sap.com/saphelp_nw70/helpdata/en/bd/90db4238bbf140e10000000a1550b0/frameset.htm
    Regards.
    Omer.

  • Passing prompt value to column header

    Hi experts
    I'd like to change the column header dynamically.
    the report is using presentation variable so it's displayed after the user had selected a value in the dashboard prompt and clicked on go.
    I'd like to have in the column header the value that the user had selected in the dashboard prompt.
    Is there anyway to do that??
    Regards

    Hi,
    Yes. you can do that by creating presentation variable.
    What you have to do is , create the presentation variable like LOCATION_NBR in the prompt, like this you can create as many as you want to display it in the header.
    The next step is to display the value the user selects in the prompt that should display in the header, for that , you can create narative and like the following things and achieve it.
    <table>
    <tr>
    <td bgcolot ="#00080" width="1500" height="25" align="center">
    The location No is @{LOCATION_NBR}
    </td>
    </tr>
    </table>
    Since we define the presentation variable in Prompt and use it narative view we able to display the header based on the customer choose it from prompt
    I hope the above explanation will resolve your requirement
    Regards
    Raj

  • Dynamically generate the Column header

    Hi friends,
    I am using Binary Cache method for Export to Excel. I am using a separate method for generating the column headers. My question is : Is there a way to put the attribute names from the node directly instead of the one I am currently using.
      public java.util.Map getOrderColumnInfos( )
        //@@begin getOrderColumnInfos()
              //     Returns Header for the Table to be passed on to method toExcel()
              Map columnInfosMap = new LinkedHashMap();          
    columnInfosMap.put(
                   IPrivateABC.ISearchResultstoExcelElement.ATTRIBUTE1,
                   "Name");
              columnInfosMap.put(
                   IPrivateABCSearchResultstoExcelElement.ATTRIBUTE2,
                   "Reference");
              columnInfosMap.put(
                   IPrivateABC.ISearchResultstoExcelElement.ATTRIBUTE3,
                   "Created By");
              columnInfosMap.put(
                   IPrivateABC.ISearchResultstoExcelElement.ATTRIBUTE4,
                   "Input Date");
              return columnInfosMap;
        //@@end
    Instead of putting the header texts, I want the attribute names to be displayed on the Excel file headers. Please let me know if this is possible.

    Hello Rasim,
    The idea was to create the Column headers dynamically. This means basically at runtime the Application would recognize what is there in the screen and use it for Column headers. This involved reading the from the View Table->The Table Column Element-> The header and saving those values in a Context. This context is then mapped to the Excel Custom Controller and then all we have to do is read from the context, Convert to XML (The usual way that is.... )
    And ...There it is....!!!!
    Bit hectic to code this than the obvious Map and stuff. But it saves a lot of headache for future additions/deletions of columns to the table.
    Sample Code :
      public void populateExcelColumnsFromView( java.lang.String tableName, com.sap.tc.webdynpro.progmodel.api.IWDView view )
        //@@begin populateExcelColumnsFromView()
              //Created By : AVIK SANYAL Date : 28 March 2008
              //This method will fetch the header names from the Table in the View and set the
              // Attributes in nodeExcelTableColumns(). These nodes are mapped to
              //Excel Custom Controller and hence used to set the Column headers for the Excel File.
              IWDTable searchTable = (IWDTable) view.getElement(tableName);
              wdContext.nodeExcelTableColumns().invalidate();
              String tableDataSource = searchTable.bindingOfDataSource();
              wdContext.currentContextElement().setDataSource(tableDataSource);
              for (int i = 0; i < searchTable.numberOfGroupedColumns(); i++) {
                   //               Read the Column
                   IWDTableColumn col =
                        (IWDTableColumn) searchTable.getGroupedColumn(i);
                   IWDTableCellEditor TCE = col.getTableCellEditor();
                   IWDCaption header = col.getHeader();
                   //               This will check if the column is visible in the View only then it will
                   //               go for further processing.
                   if (WDVisibility.VISIBLE.equals(col.getVisible())) {
                        IExcelTableColumnsElement columnElement =
                             wdContext
                                  .nodeExcelTableColumns()
                                  .createExcelTableColumnsElement();
                        //               If the header is not null then set the header as in the View
                        if (header != null) {
                             columnElement.setHeading(header.getText());
                        } else {
                        //               Add the column name to the nodeExcelTableColumns()
                        //This checks the type of column in the View and then take the value.
                        if (TCE != null) {
                             if (TCE instanceof IWDTextView) {
                                  IWDTextView element = (IWDTextView) TCE;
                                  columnElement.setBinding(element.bindingOfText());
                                  wdContext.nodeExcelTableColumns().addElement(
                                       columnElement);
        //@@end

  • Import and default values for columns

    Hi guys
    I have a table in which there are default values for some columns. I take export of this table.
    I go to another database where this table structure is already there (but default values are not set). I run the import of table with ignore=Y. It does all...import the data...create the indexes and all...but doesn't set the default values for the columns.
    Shouldn't it do that also ? ignore=Y means that ignore the object creation errors and proceed with the rest of the stuff ? Or there is some problem in my understanding ?
    Version 10gR2 on AIX 5.3 and using traditional export/import.
    Thanks
    Amardeep Sidhu

    Hanji Sidhu Sahib.
    Mein Tuhade liye eh example try kita hai.
    SQL> conn simar/simar
    Connected.
    SQL> SQL> create table orders (
    dept varchar2(20) primary key,
    place varchar2(20),
    intcol integer default 12
    2 3 4 5
    Table created.
    SQL>
    Inserted few values ...........+ commit.
    SQL> conn simar/simar
    Connected.
    SQL> select * from orders;
    DEPT PLACE INTCOL
    SALES TORONTO 12
    HR LA 12
    BILLING FLORIDA 12
    IT HALIFAX 5
    exp simar/simar@RACDB file=exptest.dmp log=exptest.log
    rac01:/software/backup>exptest.dmp log=exptest.log <
    Export: Release 10.2.0.3.0 - Production on Tue May 6 23:35:58 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user SIMAR
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user SIMAR
    About to export SIMAR's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export SIMAR's tables via Conventional Path ...
    . . exporting table ABC 12 rows exported
    . . exporting table ORDERS 4 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
    rac01:/software/backup>strings exptest.dmp |grep -i 'create'
    CREATE TABLE "ABC" ("A" VARCHAR2(10), "B" VARCHAR2(10)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING NOCOMPRESS
    CREATE TABLE "ORDERS" ("DEPT" VARCHAR2(20), "PLACE" VARCHAR2(20), "INTCOL" NUMBER(*,0)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING NOCOMPRESS
    rac01:/software/backup>strings exptest.dmp |grep -i 'alter'
    ALTER TABLE "ORDERS" MODIFY DEFAULT
    ALTER TABLE "ORDERS" MODIFY ("INTCOL" DEFAULT 12
    ALTER TABLE "ORDERS" ADD PRIMARY KEY ("DEPT") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING ENABLE
    SQL> conn simar/simar
    Connected.
    SQL> drop table orders;
    Table dropped.
    imp simar/simar@RACDB file=exptest.dmp log=imp_exptest_1.log tables='ORDERS'
    rac01:/software/backup>exptest.dmp log=imp_exptest_1.log tables='ORDERS' <
    Import: Release 10.2.0.3.0 - Production on Tue May 6 23:46:48 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    . importing SIMAR's objects into SIMAR
    . importing SIMAR's objects into SIMAR
    . . importing table "ORDERS" 4 rows imported
    Import terminated successfully without warnings.
    SQL> conn / as sysdba
    Connected.
    SQL> set heading off;
    set echo off;
    Set pages 999;
    set long 90000;
    SQL> SQL> SQL> SQL> SQL>
    SQL> select dbms_metadata.get_ddl('TABLE','ORDERS','SIMAR') from dual;
    CREATE TABLE "SIMAR"."ORDERS"
    ( "DEPT" VARCHAR2(20),
    "PLACE" VARCHAR2(20),
    "INTCOL" NUMBER(*,0) DEFAULT 12,
    PRIMARY KEY ("DEPT")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    SQL>
    Here the alter table statement is in the dmp file as well as in the imported table.
    Regards

  • Alv report to have 2 lines for column header

    How do I set the column header to have 2 lines?
    eg
              Week Ending  --- 1st  line
               09.10.2007    ---  2nd line
    My report always ends up with 2 detail lines when I tried to insert it into the catalog.

    Try this it may help you for multiple values for one instance....
    *Type-pools
    TYPE-POOLS: slis.
    Data declarations.
    DATA: BEGIN OF t_vbak OCCURS 0,
    vbeln TYPE vbeln,
    bstnk TYPE vbak-bstnk,
    erdat TYPE vbak-erdat,
    kunnr TYPE vbak-kunnr,
    END OF t_vbak.
    DATA: BEGIN OF t_vbap OCCURS 0,
    vbeln TYPE vbeln,
    matnr TYPE vbap-matnr,
    netpr TYPE vbap-netpr,
    waerk TYPE vbap-waerk,
    kwmeng TYPE vbap-kwmeng,
    meins TYPE vbap-meins,
    END OF t_vbap.
    DATA: t_fieldcatalog1 TYPE slis_t_fieldcat_alv.
    DATA: t_fieldcatalog2 TYPE slis_t_fieldcat_alv.
    DATA: v_repid TYPE syrepid.
    DATA: s_layout TYPE slis_layout_alv.
    DATA: v_tabname TYPE slis_tabname.
    DATA: t_events TYPE slis_t_event.
    start-of-selection event.
    START-OF-SELECTION.
    v_repid = sy-repid.
    Get the fieldcatalog for the first block
    PERFORM get_fieldcat1 CHANGING t_fieldcatalog1.
    Get the fieldcatalog for the second block
    PERFORM get_fieldcat2 CHANGING t_fieldcatalog2.
    Get the data for the first block
    SELECT vbeln bstnk erdat kunnr UP TO 10 ROWS
    INTO TABLE t_vbak
    FROM vbak WHERE vbeln > '0060000100'.
    Get the data for the second block
    SELECT vbeln matnr netpr waerk kwmeng meins UP TO 10
    ROWS
    INTO TABLE t_vbap
    FROM vbap WHERE vbeln > '0060000100'.
    init
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
    i_callback_program = v_repid.
    First block
    v_tabname = 'ITAB1'.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    is_layout = s_layout
    it_fieldcat = t_fieldcatalog1
    i_tabname = v_tabname
    it_events = t_events
    TABLES
    t_outtab = t_vbak.
    Second block
    v_tabname = 'ITAB2'.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    is_layout = s_layout
    it_fieldcat = t_fieldcatalog2
    i_tabname = v_tabname
    it_events = t_events
    TABLES
    t_outtab = t_vbap.
    *Display
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    FORM GET_FIELDCAT1
    Get the field catalog for the first block
    FORM get_fieldcat1 CHANGING lt_fieldcatalog TYPE
    slis_t_fieldcat_alv.
    DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
    Order number
    s_fieldcatalog-col_pos = '1'.
    s_fieldcatalog-fieldname = 'VBELN'.
    s_fieldcatalog-tabname = 'T_VBAK'.
    s_fieldcatalog-ref_tabname = 'VBAK'.
    s_fieldcatalog-ref_fieldname = 'VBELN'.
    APPEND s_fieldcatalog TO lt_fieldcatalog.
    CLEAR s_fieldcatalog.
    Customer purchase order.
    s_fieldcatalog-col_pos = '2'.
    s_fieldcatalog-fieldname = 'BSTNK'.
    s_fieldcatalog-tabname = 'T_VBAK'.
    s_fieldcatalog-ref_tabname = 'VBAK'.
    s_fieldcatalog-ref_fieldname = 'BSTNK'.
    APPEND s_fieldcatalog TO lt_fieldcatalog.
    CLEAR s_fieldcatalog.
    Creation date.
    s_fieldcatalog-col_pos = '3'.
    s_fieldcatalog-fieldname = 'ERDAT'.
    s_fieldcatalog-tabname = 'T_VBAK'.
    s_fieldcatalog-ref_tabname = 'VBAK'.
    s_fieldcatalog-ref_fieldname = 'ERDAT'.
    APPEND s_fieldcatalog TO lt_fieldcatalog.
    CLEAR s_fieldcatalog.
    Customer
    s_fieldcatalog-col_pos = '4'.
    s_fieldcatalog-fieldname = 'KUNNR'.
    s_fieldcatalog-tabname = 'T_VBAK'.
    s_fieldcatalog-ref_tabname = 'VBAK'.
    s_fieldcatalog-ref_fieldname = 'KUNNR'.
    APPEND s_fieldcatalog TO lt_fieldcatalog.
    CLEAR s_fieldcatalog.
    ENDFORM.
    FORM GET_FIELDCAT2
    Get the field catalog for the second block
    FORM get_fieldcat2 CHANGING lt_fieldcatalog TYPE
    slis_t_fieldcat_alv.
    DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
    Order number
    s_fieldcatalog-col_pos = '1'.
    s_fieldcatalog-fieldname = 'VBELN'.
    s_fieldcatalog-tabname = 'T_VBAP'.
    s_fieldcatalog-ref_tabname = 'VBAP'.
    s_fieldcatalog-ref_fieldname = 'VBELN'.
    APPEND s_fieldcatalog TO lt_fieldcatalog.
    CLEAR s_fieldcatalog.
    Material number
    s_fieldcatalog-col_pos = '2'.
    s_fieldcatalog-fieldname = 'MATNR'.
    s_fieldcatalog-tabname = 'T_VBAP'.
    s_fieldcatalog-ref_tabname = 'VBAP'.
    s_fieldcatalog-ref_fieldname = 'MATNR'.
    APPEND s_fieldcatalog TO lt_fieldcatalog.
    CLEAR s_fieldcatalog.
    Net price
    s_fieldcatalog-col_pos = '3'.
    s_fieldcatalog-fieldname = 'NETPR'.
    s_fieldcatalog-tabname = 'T_VBAP'.
    s_fieldcatalog-ref_tabname = 'VBAP'.
    s_fieldcatalog-ref_fieldname = 'NETPR'.
    s_fieldcatalog-cfieldname = 'WAERK'.
    s_fieldcatalog-ctabname = 'T_VBAP'.
    APPEND s_fieldcatalog TO lt_fieldcatalog.
    CLEAR s_fieldcatalog.
    Currency.
    s_fieldcatalog-col_pos = '4'.
    s_fieldcatalog-fieldname = 'WAERK'.
    s_fieldcatalog-tabname = 'T_VBAP'.
    s_fieldcatalog-ref_tabname = 'VBAP'.
    s_fieldcatalog-ref_fieldname = 'WAERK'.
    APPEND s_fieldcatalog TO lt_fieldcatalog.
    CLEAR s_fieldcatalog.
    Quantity
    s_fieldcatalog-col_pos = '5'.
    s_fieldcatalog-fieldname = 'KWMENG'.
    s_fieldcatalog-tabname = 'T_VBAP'.
    s_fieldcatalog-ref_tabname = 'VBAP'.
    s_fieldcatalog-ref_fieldname = 'KWMENG'.
    s_fieldcatalog-qfieldname = 'MEINS'.
    s_fieldcatalog-qtabname = 'T_VBAP'.
    APPEND s_fieldcatalog TO lt_fieldcatalog.
    CLEAR s_fieldcatalog.
    UOM
    s_fieldcatalog-col_pos = '6'.
    s_fieldcatalog-fieldname = 'MEINS'.
    s_fieldcatalog-tabname = 'T_VBAP'.
    s_fieldcatalog-ref_tabname = 'VBAP'.
    s_fieldcatalog-ref_fieldname = 'MEINS'.
    APPEND s_fieldcatalog TO lt_fieldcatalog.
    CLEAR s_fieldcatalog.
    ENDFORM.
    ALV Report to have two different Reports
    Plz Reward points if contents are useful,,,

Maybe you are looking for

  • Skype name connnected to country

    I like to know how it is possible that my skype name (and I know that there is not somebody else with the same skype name) appears in 2 countries ( Romanian and Dutch) I am living in the Netherlands so thats correct and i have visit Romania and used

  • Count of Data in the Internal Table

    I have a internal table which has a field 'X'. Now in this internal table i have couple of values with field 'X' as a key field. I want the count of the rows against the key field. For eg Row   Field 'X' 1          A 2          A 3          A 4      

  • Ipod 40 gb clickwheel

    This is the model with a screen that does not let you see images. Mine has a few hundred tiff files imported from a camera with a media reader. On the ipod these are listed in photo albums. When I mount the ipod on the desktop these are not visible b

  • Adobe AIR version compatibility

    Hi, I am trying to run my application built in Flex Builder 3 and compatibility with Adobe AIR beta 3 on Adobe AIR 1.0 (i.e. latest version 1.0.7.4880); but its not working. It gives "This application requires a version of Adobe AIR which is no longe

  • DVC PRO HD Question

    I just shot a music video with a varicam and edited it in FCP 5. How do I make a dvd for the client while retaining the quality of the footage. I know I'm not gonna have an HD dvd, but how would I keep it looking the best it can look. Exporting in wh