How to Export VO query data for all the columns.
Hi All,
I have advanced Table where i will be displaying only few of the columns from the VO query, when i export it will display only those columns which are displayed in advanced Table, so is it possible to export other columns also?
Thanks
Babu
I faced this similar issue ...as per my knowledge if the widget for the underlying VO attribute is rendered then only one can export the data...a possible workaround is..u can create a similar page showing the respective columns intended to be exported and redirect to tht page and export it from there .....
Similar Messages
-
Query to get the data of all the columns in a table except any one column
Can anyone please tell how to write a query to get the data of all the columns in a table except one particular column..
For Example:
Let us consider the EMP table.,
From this table except the column comm all the remaining columns of the table should be listed
For this we can write a query like this..
Select empno, ename, job, mgr, sal, hiredate, deptno from emp;
Just to avoid only one column, I mentioned all the remaining ( 7 ) columns of the table in the query..
As the EMP table consists only 8 columns, it doesn't seem much difficult to mention all the columns in the query,
but if a table have 100 columns in the table, then do we have to mention all the columns in the query..?
Is there any other way of writing the query to get the required result..?
Thanks..Your best best it to just list all the columns. Any other method will just cause more headaches and complicated code.
If you really need to list all the columns for a table because you don't want to type them, just use something like...
SQL> ed
Wrote file afiedt.buf
1 select trim(',' from sys_connect_by_path(column_name,',')) as columns
2 from (select column_name, row_number() over (order by column_id) as column_id
3 from user_tab_cols
4 where column_name not in ('COMM')
5 and table_name = 'EMP'
6 )
7 where connect_by_isleaf = 1
8 connect by column_id = prior column_id + 1
9* start with column_id = 1
SQL> /
COLUMNS
EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,DEPTNO
SQL> -
How to generate test data for all the tables in oracle
I am planning to use plsql to generate the test data in all the tables in schema, schema name is given as input parameters, min records in master table, min records in child table. data should be consistent in the columns which are used for constraints i.e. using same column value..
planning to implement something like
execute sp_schema_data_gen (schemaname, minrecinmstrtbl, minrecsforchildtable);
schemaname = owner,
minrecinmstrtbl= minimum records to insert into each parent table,
minrecsforchildtable = minimum records to enter into each child table of a each master table;
all_tables where owner= schemaname;
all_tab_columns and all_constrains - where owner =schemaname;
using dbms_random pkg.
is anyone have better idea to do this.. is this functionality already there in oracle db?Ah, damorgan, data, test data, metadata and table-driven processes. Love the stuff!
There are two approaches you can take with this. I'll mention both and then ask which
one you think you would find most useful for your requirements.
One approach I would call the generic bottom-up approach which is the one I think you
are referring to.
This system is a generic test data generator. It isn't designed to generate data for any
particular existing table or application but is the general case solution.
Building on damorgan's advice define the basic hierarchy: table collection, tables, data; so start at the data level.
1. Identify/document the data types that you need to support. Start small (NUMBER, VARCHAR2, DATE) and add as you go along
2. For each data type identify the functionality and attributes that you need. For instance for VARCHAR2
a. min length - the minimum length to generate
b. max length - the maximum length
c. prefix - a prefix for the generated data; e.g. for an address field you might want a 'add1' prefix
d. suffix - a suffix for the generated data; see prefix
e. whether to generate NULLs
3. For NUMBER you will probably want at least precision and scale but might want minimum and maximum values or even min/max precision,
min/max scale.
4. store the attribute combinations in Oracle tables
5. build functionality for each data type that can create the range and type of data that you need. These functions should take parameters that can be used to control the attributes and the amount of data generated.
6. At the table level you will need business rules that control how the different columns of the table relate to each other. For example, for ADDRESS information your business rule might be that ADDRESS1, CITY, STATE, ZIP are required and ADDRESS2 is optional.
7. Add table-level processes, driven by the saved metadata, that can generate data at the record level by leveraging the data type functionality you have built previously.
8. Then add the metadata, business rules and functionality to control the TABLE-TO-TABLE relationships; that is, the data model. You need the same DETPNO values in the SCOTT.EMP table that exist in the SCOTT.DEPT table.
The second approach I have used more often. I would it call the top-down approach and I use
it when test data is needed for an existing system. The main use case here is to avoid
having to copy production data to QA, TEST or DEV environments.
QA people want to test with data that they are familiar with: names, companies, code values.
I've found they aren't often fond of random character strings for names of things.
The second approach I use for mature systems where there is already plenty of data to choose from.
It involves selecting subsets of data from each of the existing tables and saving that data in a
set of test tables. This data can then be used for regression testing and for automated unit testing of
existing functionality and functionality that is being developed.
QA can use data they are already familiar with and can test the application (GUI?) interface on that
data to see if they get the expected changes.
For each table to be tested (e.g. DEPT) I create two test system tables. A BEFORE table and an EXPECTED table.
1. DEPT_TEST_BEFORE
This table has all EMP table columns and a TEST_CASE column.
It holds EMP-image rows for each test case that show the row as it should look BEFORE the
test for that test case is performed.
CREATE TABLE DEPT_TEST_BEFORE
TESTCASE NUMBER,
DEPTNO NUMBER(2),
DNAME VARCHAR2(14 BYTE),
LOC VARCHAR2(13 BYTE)
2. DEPT_TEST_EXPECTED
This table also has all EMP table columns and a TEST_CASE column.
It holds EMP-image rows for each test case that show the row as it should look AFTER the
test for that test case is performed.
Each of these tables are a mirror image of the actual application table with one new column
added that contains a value representing the TESTCASE_NUMBER.
To create test case #3 identify or create the DEPT records you want to use for test case #3.
Insert these records into DEPT_TEST_BEFORE:
INSERT INTO DEPT_TEST_BEFORE
SELECT 3, D.* FROM DEPT D where DEPNO = 20
Insert records for test case #3 into DEPT_TEST_EXPECTED that show the rows as they should
look after test #3 is run. For example, if test #3 creates one new record add all the
records fro the BEFORE data set and add a new one for the new record.
When you want to run TESTCASE_ONE the process is basically (ignore for this illustration that
there is a foreign key betwee DEPT and EMP):
1. delete the records from SCOTT.DEPT that correspond to test case #3 DEPT records.
DELETE FROM DEPT
WHERE DEPTNO IN (SELECT DEPTNO FROM DEPT_TEST_BEFORE WHERE TESTCASE = 3);
2. insert the test data set records for SCOTT.DEPT for test case #3.
INSERT INTO DEPT
SELECT DEPTNO, DNAME, LOC FROM DEPT_TEST_BEFORE WHERE TESTCASE = 3;
3 perform the test.
4. compare the actual results with the expected results.
This is done by a function that compares the records in DEPT with the records
in DEPT_TEST_EXPECTED for test #3.
I usually store these results in yet another table or just report them out.
5. Report out the differences.
This second approach uses data the users (QA) are already familiar with, is scaleable and
is easy to add new data that meets business requirements.
It is also easy to automatically generate the necessary tables and test setup/breakdown
using a table-driven metadata approach. Adding a new test table is as easy as calling
a stored procedure; the procedure can generate the DDL or create the actual tables needed
for the BEFORE and AFTER snapshots.
The main disadvantage is that existing data will almost never cover the corner cases.
But you can add data for these. By corner cases I mean data that defines the limits
for a data type: a VARCHAR2(30) name field should have at least one test record that
has a name that is 30 characters long.
Which of these approaches makes the most sense for you? -
GL Account Master Data for all the inventory Accounts
Hi,
What is common & unique feature in the GL Master data of all the Inventory related accounts? Is it "POST AUTOMATICALLY" or some thing else
Thanks,
LavanyaIn addition to the 'post automatically' option, please also ensure the field status group selected is relating to 'material accounts'.
-
How to create a global property for all the reports in Oracle BIP
Hi,
I am a new guy to Oracle BIP. I have a set of reports which is running perfectly. But now, I have to create a property something like this:
If(bproperty)
else
I do not want to have a property for each of the reports but this should be a global one for all the reports.
Please help. Your help is greatly appreciated :)
Thanks,
KarthikHi,
I am a new guy to Oracle BIP. I have a set of reports which is running perfectly. But now, I have to create a property something like this:
If(bproperty)
else
I do not want to have a property for each of the reports but this should be a global one for all the reports.
Please help. Your help is greatly appreciated :)
Thanks,
Karthik -
How can i delete keychain data for all users on my Mac Server?
We have 2 Mac servers on our windows network and user passwords change every 30 days to keep up with security. How can i stop keychain asking for the users old passwords or get it to update with the change of password?
Hello,
First you have to create a new folder or 2/3, om My Mac... Mail>Mailbox>New Mailbox...> Loacation>On My Mac.
Highlight the eMails & drag to the new box(es), if IMAP Mail will try downlodaing them again.
If POP & Remove fron Server when downloaded it won't.
Quit Mail after the move, log into gMail Webmail via a browser & delete what you wish.
PS. Even though you delete everything in gMail, google keeps copies for themselves & the NSA, just you cannot see them. -
How to use one WAD template for all the available queries
Hi,
I have created a WAD template... Now we have close to 25 queries which will use that template for displaying their output at Portal...
Is there any way that i don`t have to create multiple copies of my WAD template...
I.e. all queries would call that same template through portal...Hi,
The Bex report uses the Standard Template 0ANALYSIS_PATTERN while it is executed.
So if your sure that the look and feel of all the Reports is going to remain same, you don't need to even attach all these Queries to Templates in WAD.
When you execute the BEx query, it would pick up the standard template and run it in portal.
But if you want to customize the Report Template:
1) You can change this standard template 0ANALYSIS_PATTERN and customize it according to ur requrement in WAD.
2) Or you can create a copy of this standard template and change it as required. Then change the template in spro (transaction RSCUSTV27) to point to this Z template.
Let me know if you need more details.
Regards,
Forum -
How to giv diff varible values for all the queries in a Workbook?
Hello BI Gurus,
I have an issue with the variable in a the workbook,
I have a workbook in which 4 queries are inserted in the same sheet one below the other and all these queries has same hierarchy variable (same technical name). In all these queries uses different hierarchies but same selection variable.
Now the issue is , when I refresh the workbook the first queryu2019s variable pops up selection option for the hier variable and when I enter the value this first query runs fine but it carries the same value to another query and fails as the 2nd query uses diff hier.
All I need is, is there any way by which these queries pop up selection screen separately for every query in workbook?
Thanks a lot..! have a great day!Hi,
You should open workbook settings and remove tick for display dubplicate veriables omly once.
Regards,
Veronika. -
LSMW me51n, how to create one PR document for all the records in the file
HI all,
I need to create LSMW for t-code me51n -Create Purchase Requisition. I`m using Bapi BUS2105, method CREATEFROMDATA, idoc message type PREQCR, basic type PREQCR03. The problem is that the LSMW is creating different idoc and different PR document for every record in the source file. My requirement is to create one PR document for one source file (Every source file is different Purchase Requisition) . I`m trying to do this with writing some code(global functions ) in the 'Mapping and conversion rules' events - BEGINOF_TRANSACTION_, ENDOF_TRANSACTION__..., but i`m not very sure what exactly i`m doing .
Please help me resolve this problem, any help will be appreciated .
Best regards, Emil Milchev.Thank you for you answer.
But I have found faster way of doing it - two source structures, one HEADER and ONE ITEM.
HEADER: one empty text field and identificator for it.
ITEM: everything else.
Then everything was just fine, i`ve mapped the different IDOC segments by PREQ_ITEM fields (equal values in the source file : 10-10-10..., 20-20-20,.... etc.) and put all required fields for my LSMW
SOURCE FIELDS:
Z_ME51N_V2 - MASS_UPLOAD - CREATE create
Source Fields
UPFILE upload file
IDENT C(010) ident
Identifing Field Content: header
TEXT C(001)
UPFILE2 123
IDENT C(010) ident
Identifing Field Content: item
BSART C(004) Document type
BANFN C(010) Purchase requisition number
BNFPO_FOR_MAP N(005) Item number of purchase req. for MAPPING acc.
BNFPO N(005) Item number of purchase requisition
KNTTP C(001) Account assignment category
PSTYP C(001) Item category in purchasing document
MATNR C(018) Material Number
WERKS C(004) Plant
LGORT C(004) Storage Location
MENGE N(013) Purchase requisition quantity
EKGRP C(003) Purchasing group
KONNR C(010) Number of principal purchase agreement
KTPNR N(005) Item number of principal purchase agreement
LIFNR C(010) Desired Vendor
FLIEF C(010) Fixed Vendor
AFNAM C(012) Name of requisitioner/requester
PREIS AMT4(011) Price in purchase requisition
ABLAD C(025) Unloading Point
WEMPF C(012) Goods Recipient
PS_POSID C(024) Work Breakdown Structure Element (WBS Element)
KOSTL C(011) COST_CTR v bapito ?
NAME1 C(040) Name1 - Name of an address
NAME2 C(040) Name2 - Name of an address 2
STREET C(060) Street
DELIVERY_DATE C(008) Date on which the goods are to be delivered
TEXT C(132) item text
STRUCTURE RELATIONS :
Structure Relations
E1PREQCR Header segment <<<< UPFILE upload file
E1BPEBANC Transfer Structure: Create Requisition Item <<<< UPFILE2 123
E1BPEBKN Transfer Structure: Create/Display Requisition Acct Assgt <<<< UPFILE2 123
E1BPEBANTX BAPI Purchase Requisition: Item Text <<<< UPFILE2 123
E1BPESUHC Communication Structure: Limits <<<< UPFILE2 123
E1BPESUCC Communication Structure: Contract Limits <<<< UPFILE2 123
E1BPESLLC Communication Structure: Create Service Line <<<< UPFILE2 123
E1BPESKLC Create Comm. Structure: Acct Assgt Distr. for Service Line <<<< UPFILE2 123
E1BPESLLTX BAPI Services Long Text <<<< UPFILE upload file
E1BPMERQADDRDELIVERY PO Item: Address Structure BAPIADDR1 for Inbound Delivery <<<< UPFILE2 123
E1BPMERQADDRDELIVERY1 PO Item: Address Structure BAPIADDR1 for Inbound Delivery <<<< UPFILE2 123
E1BPPAREX Ref. Structure for BAPI Parameter EXTENSIONIN/EXTENSIONOUT <<<< UPFILE2 123
MAINTAIN FIELD MAPPING AND... :
the MAPPING between two IDOC`s segments:
In first segment:
E1BPEBANC Transfer Structure: Create Requisition Item
Fields
PREQ_NO Purchase requisition number
Source: UPFILE2-BANFN (Purchase requisition number)
Rule : Transfer (MOVE)
Code: E1BPEBANC-PREQ_NO = UPFILE2-BANFN.
PREQ_ITEM Item number of purchase requisition
Source: UPFILE2-BNFPO (Item number of purchase requisition)
Rule : Transfer (MOVE)
Code: E1BPEBANC-PREQ_ITEM = UPFILE2-BNFPO.
In second segment :
E1BPEBKN Transfer Structure: Create/Display Requisition Acct Assgt
Fields
PREQ_NO Purchase requisition number
PREQ_ITEM Item number of purchase requisition
Source: UPFILE2-BNFPO_FOR_MAP (Item number of purchase req. for MAPPING
Rule : Transfer (MOVE)
Code: E1BPEBKN-PREQ_ITEM = UPFILE2-BNFPO_FOR_MAP.
After that everything was OK . -
I want to have a replication of Opera mail feature. This feature enables you to aggregate all mail items from across all the e-mail accounts into a single virtual aggregated view.
That is, say, we have 3 different mail accounts. In Mozilla Thunderbird on a daily basis I check if there is something new in the incoming folder for those accs. To do that I click on the corresponding folder for every account. Now, what i want is to click on a single folder where I would have an aggregated virtual view of the incoming folder for all of those 3 accounts. I guess, same thing can be done with different kinds of mails, such as:
* Unread messages (after having viewed the mail item, it automatically goes straight into "Sent messages" aggregate view, listed below)
* Read messages
* Sent messages
* Spam messages
* Drafts, etc
Also there is this cool feature (virtual thing applies here as well) that helps to have a view of all the attachments across all accounts categorized into different descriptions, such as:
* docs (xls, doc, ppt, etc)
* images (jpg, png, etc)
* archives (zip, rar, etc)
More then that, it would still be better to have labling aggregation view feature across all acounts. That is, if we have marked important several messages in, say, 2 accounts, those should be seen in a single aggregated virtual view under name, say, "Important messages". Same can be said with flags, todos, etc.Pop mail accounts can be set up to use a Global Inbox. Imap mail accounts cannot.
However, there are various 'views' in Thunderbird. I would suggest you try 'Unified'. This creates a visual Inbox containing all Inbox messages with sub folders showing individual Inboxes, so you can still see them separately if required.
via Menu Bar;
View > Folders > Unified
Via Menu icon
Menu Icon > Folders > Unified.
This view would show all the 'Important' tagged emails, so you could them sort by Tag. -
I am trying to get "First day of the week" data from CLDR spec24 but cannot find where to look for it in the spec. I need this data to calculate numeric value of "LOCAL day of the week".
This data to implement "c" and "cc" day formats that equals numeric local day of the week.
e.g if "First day of the week" data for a locale is 2 (Monday) , it means numeric value for local day of the week will be 1 if it is Monday that day, 2 if it is Tuesday that day and likewise.Hi
If you want to week to be started with Sunday then use the following formula:
TimestampAdd(SQL_TSI_DAY, 1-DAYOFWEEK(Date'@{var_Date}'), Date'@{var_Date}') if it's retail week(starts from Monday) then the follow below:
TimestampAdd(SQL_TSI_DAY, 1-DAYOFWEEK(Date'@{var_Date}'), Date'@{var_Date}')
I'm assuming var_Date is the presentation variable for prompt...
Edited by: Kishore Guggilla on Jan 3, 2011 4:48 PM -
How can I access an amount in all the columns
Hi,
In my query I have calendar month/year in the column structure. 0Calmonth is mapped to posting date. If an amount is posted in jan, it'll be displayed under jan only. But I want to display the amount under every month. Is there any way to do this?
Thanks,
Mayankyou need to use 2 structures in your query to use cell reference. Once you add 2 structures , you can see a blue icon in the toolbar which will take you to the cell editor. In there, you can choose to display the values in all columns.
-
How to call common error pages for all the exceptions
Hi All
I have created the common ErrorPage in my application. In case of any error whether SQL,IO or JBO I want that error page be displayed. In the page definition I have given the errorpage name and also defined the error page as IS_ERROR_PAGE = true.But it is throwing Jbo exception at the top of the page itself.No redirection to the error page is done.
Though I have gone through various threads in this forum but still its not clear how to get the things working.
Can anyone please help me out in this regard?Hi,
I assume you mean that you set the error page in the web.xml file. Note that exceptions are handled first by the JSF framework. Please have a look at the developer guide
http://download-uk.oracle.com/docs/html/B25947_01/toc.htm
http://download-uk.oracle.com/docs/html/B25947_01/web_val008.htm#CIHHBEEJ
Frank -
The user has permissions on site A B, and C. within the sites, the user has permissions on some lists/libraries.
how can i retrieve an entire list to see what the user has permissions on?
thank you
I might be a newbie in some area. But I'm working hard. :)You can get the report using powershell, please check below posts
http://social.technet.microsoft.com/Forums/sharepoint/en-US/5a3252bf-cb03-4488-9a0d-f4e0ce07d497/user-permissionsaccess-report-in-sharepoint-site
http://reality-tech.com/2011/12/30/reporting-on-all-user-permissions-in-a-web-application/
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
Updation of contract data for all the follow up documents
In crm I have created a service contract. From this I have created a sales-service order as follow up document. Then from this service order one suspension order.
When I am opening the sales-service order in item details tab and then in contract tab we get the contract details. When i press the follow up document button and choose the suspension order the suspension order is opening and this contract details should come here also but it is not coming. Please suggest whether this can be done by configuration or by badi. If by badi then suggest its name.Please not that the contract determination works fine when creating a new complaint ... but when the I am trying to create a complaint from service ticket the item level contract determination is not working fine ...
We have configured that the contract should be determined at the item level only option `F`.
I checked in one of the sap document that this cant be achieved by standard .
http://help.sap.com/saphelp_crm70/helpdata/en/46/5cd7335bbd516fe10000000a114a6b/frameset.htmhttp://help.sap.com/saphelp_crm70/helpdata/en/46/5cd7335bbd516fe10000000a114a6b/frameset.htm
Is there a way we can put this code in the BADI eg; CRM_SERVICE_CONTRACT ?? Please note that there is already an implementation of CRM_SERVICE_CONTRACT which is working fine for new service document creation .
Maybe you are looking for
-
No AAC audio in Premiere CC 2014.1? [bug - resolved]
--- Original post for reference I just updated to Premiere CC 2014.1 today. I have a set of files that I regularly convert with Handbrake into MP4s with an AAC audio stream. I have had no problems at all with CS6, CC, and CC 2014. But now with CC 201
-
Autonomous transaction in trigger
Hi, Can we use commit within a database trigger? I think yes if we use autonomous transaction in that trigger. Please confirm and if it is correct please provide an example of this. Thanks, Mrinmoy
-
Dear Experts, Can anyone please explain the Ship-to Address for BP master Vendor. What address should I provide there. My warehouse address to which they must supply or their Godown address from where they will ddespatch or anything else. Please clar
-
How to stop frequent keychain login password requests
This problem is very irritating, I'm getting asked frequently by OS X to enter a keychain login password. What I've read suggests this is related to a problem with Keychain Access. One explanation says it can be caused by an administrator account p
-
Is it possible to give a choice to user to connect any one server on a network.
Dear Forum members, I have three servers windows 2008 r2 in my network but each server has its own set of users. a user member of one server cant' login to other with the same credentials. Secondly PC at a time is part of one domain. every time I ha