Contoling structure of view.
Hi,
Can we define the column datatype sizes during creation of view.
Let us consider the following view creation script.
create or replace view cmonlftWCr
select custcd,custnm,excldlryn,exdlrfrm,to_char(billdate,'YYYY-MM') Month,
sum(billqty) MthQty,mqtycrt(sum(billqty)) MthQtyCrit
from billdtl1
group by custcd,custnm,excldlryn,exdlrfrm,to_char(billdate,'YYYY-MM')
order by excldlryn,custcd,to_char(billdate,'YYYY-MM')
This creates the required view. but with the following structure.
SQL> desc cmonlftWCr;
Name Null? Type
CUSTCD NOT NULL NUMBER(7)
CUSTNM NOT NULL VARCHAR2(50)
EXCLDLRYN NOT NULL CHAR(1)
EXDLRFRM DATE
MONTH VARCHAR2(7)
MTHQTY NUMBER
MTHQTYCRIT VARCHAR2(4000)
My problem is with column mthqty and mthqtycrit.
I want mthqty should have the datatype number(9,3) and mthqtycrit should have the datatype char(3). The function mqtycrt returns only character string of 3 character long.
Can anybody help me out in this regard...?
Soumen.
Hello
You just need to use the CAST operator:
SQL> create or replace view dt_test_view as
2 select
3 '1' as col1,
4 CAST ('1' as NUMBER(1)) as col2,
5 CAST ('1' as VARCHAR2(10)) as col3,
6 '01-JAN-05' as col4,
7 CAST ('01-JAN-05' AS DATE) as col5
8 from
9 dual;
View created.
SQL> select * from dt_test_view;
C COL2 COL3 COL4 COL5
1 1 1 01-JAN-05 01-JAN-05
SQL> desc dt_test_view;
Name Null? Type
COL1 CHAR(1 CHAR)
COL2 NUMBER
COL3 VARCHAR2(10)
COL4 CHAR(9 CHAR)
COL5 DATEHTH
David
Similar Messages
-
Hi All,
On my SharePoint Online site (Office 365) all my “Site Content and Structure” default views are showing “There are no items to show in this view”. For example the “Checked out To Me” view shows “There are no items to show in this view” (shown in screenshot
below). I know this is incorrect and should show at least ten items that have been checked out to me for over two months. I am also a member of the Site Collection Administration and Owner groups.
What I am trying to do is view all the "Checked Out items" within a Site Collection including it's sub-sites.
Is there a feature that needs to be activated to get the correct information from the “Site Content and Structure” default views?
I hope you can help
ColinHi Colin,
As I understand, all “Site Content and Structure” default views are showing “There are no items to show in this view” in your SharePoint online site.
Check things below:
1. Go to site content and structure logs in site setting to check if there is correct information.
2. Create a new site collection to check if there are items in Site Content and Structure.
3. Switch another computer to check if it can work.
If the issue still exists, I recommend you to post it in the O365 forum.
http://community.office365.com/en-us/f/default.aspx
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Best regards,
Sara Fan
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Organizational structure graphical view
Hi Friends,
we have problem with the organizational structure graphical view in OM. the system can not read the texts fonts, we don't use english characters. what should we do?
ThanksHi there!
Hope you both don't mind but I am piggy backing on your OM discussion. You both sound like have good experience in working with Turkey. I am trying to find a standard infotype to store a Turkish Identification no, SSN, and Local ID card numbers. I am leaning towards IT0185 but first want to check around to see if there are Turkish infotypes specifically for these types of documentation. Your feedback is greatly appreciated.
Thank you in advance.
Dina -
Get the data from the structure OR View
Hi All,
how wud i take data from the structure OR View? when i m writing the select query then its saying that its not defind in data dictionary.
I hav the requirement to develop a report for PM module..
in that i hav all structure like AFVGD,CAUFVD,PMCOEA...
Plz tel me how to write a select quary for this...Hi,
You cannot select data from a structure.
A structure / work area contains data only at the run-time.
You can select data from views and tables.
The data you need to select will be in Database tables. All you need to do
is to find those table and select from there.
Let me know if you need further help.
Regards,
Rajat -
Is Structure Layout View a code smell?
I have an application that was built by using a double layered architecture. I needed to have a model where I store essential data about actions in this system.
This system must be able to display these actions on screen and needs to be in a Composite type fashion(an action can contain sub-actions, but also can contain other components like buttons, labels, etc.).
The structure model holds data and structure about actions(but not their positioning). The layout model is an observer of the logic model and holds the position and z-order of all components(actions + buttons + labels + etc.). And lastly there is the View that is an observer of the logic model and of the layout model to be able to display all the components(actions, buttons, etc.).
By doing this I've separated an action into three components(structure+layout+view). This separation was necessary because I wanted to have a layer where I make the decision of which component is under the cursor separated from the layer where I make structural decisions(like adding/deleting actions) and separated from the layer where I display all components. Now I have three layers that combined form one unique component.
The problem with this is that a component becomes formed from three distinct layers and it is a little harder to mantain.
Please tell me if there could be a better design for this problem.
Thanks in advanceThe following applies mainly to PHP and web pages, but the principles are the same: http://www.phpwact.org/pattern/template_view.
You want a series of template-generating classes. One option in doing so would be an event model:
interface TemplateComponent {
abstract public void render(final JComponent parent);
class TemplateManager {
private TemplateComponent header;
private TemplateComponent body;
private TemplateComponent footer;
public TemplateManager(TemplateComponent header, TemplateComponent body, TemplateComponent footer) {
super();
this.header = header;
this.body = body;
this.footer = footer;
public void render() {
JComponent panelHeader;
JComponent panelBody;
JComponent panelFooter;
// Create a series of JComponent and add to your layout
// This will be the template layout
header.render(headerPanel);
body.render(bodyPanel);
footer.render(footerPanel);
}- Saish -
I know a structure (xxxxxxxxxxx), how to see the underlying data under this structure.. I want to how the mapping is created for each field in the structure. For example
Structure A XXXXXXXX
Field 1 - Account
Field 2 - Balance
Field 3 - total
How would I know these values are populated from which table ? and how to trace back that table and fields ?
Thanks and I appreciate your quick posting
BIHello,
- Go to SE11 and View the fields in the structure.
In any case, structure do not contain data of their own.
So check the table in which this structure is included using where used list for this structure.
Regards -
USER EXIT- Structure or View as well?
Hello friends i have a quick question.
I created a User exit by adding the ZZfields in the Structure.When i replicated into BW i couldnt see those 3 zz fields.When i went back to the Generic Datasource and checked in 'Display Field List' i see my fields as hide field and field only boxes checked and greyed out.When i actually save the generic datasource it shows me all the fields i can edit but not the ZZ fields.I fi need to unhide them then where from and/or do they need to be added to my View aswell.
Thanks.hi,
to see the field in bw u have to uncheck the hide column for that field and only field only column is checked.
now if u are using view/table for extraction u have to add the field to the view.
and it will automaticlay come in extract structure and u do not have to append it.
if function module than u have to append the field and write user exit for it.
regards
pls assign popints if helpful. -
Content And Structure Page Missing Content And Structure Report Views
Hello,
In our Sharepoint 2013 farm, we have a site colllection with Turkish Language Pack.
When Farm admin displays the Content And Structure page, he has access to all
Content And Structure Reports from the View menu.
Howeverall other users including site collection admin
could only access to default view from the view menu.
Content And Structure Reports list can be displayed by those users.
I checked the permissions, sharepoint logs with verbose level and event logs but had no clue at all.
Is there any points that should be checked?
Kind regards
Serkanhttp://www.learningsharepoint.com/2014/01/28/users-only-see-default-view-in-content-and-structure-in-sharepoint/
To resolve the issue, I started by checking the following :
1. If the Publishing Features on the site Activated – The Publishing features were enabled on Site and Site Collection levels.
2. Does Site Collection Admins or another user see the Options – Only Site Collection admins were seeing the extra Options. Other users like with Contribute Permissions and even Full Control would not see the Options.
3. Lastly, I checked if the Users who are trying to Access the Views in Content and Structure tool had Contribute Permissions on the site –
All users who were experiencing these issues had Contribute Permissions on the site.
So after looking at the above facts, I realized that something is wrong with the permissions on the site and that is restricting these users to see all the View Options as seen by Site Collection admins.
Solution – While checking the permissions I found out that the Top-level Site Collection had NT authenticated users added to it but with a “Limited Access” assigned to it Instead of the required “Read”. Switching the permission for NT authenticated users
(or users who had this issue) to “Read” fixed the problem.
So the moral here is that if in case your users are not seeing any Options other than “Default View” in Content and Structure View drop-down, try giving them at least “Read” permissions at the Site Collection or top-level to make other Options Visible.
If this helped you resolve your issue, please mark it Answered -
OrgChart 3.0 - Reporting Structure - Portrait View is not showing portrait
Hi,
I have enabled the Reporting Structure in the OrgChart.
Everything works, but the portrait is not showing in the OrgChart when I have selected Portrait view for the position.
Portrait is showing on the Details Panel of the Position.
Portrait is also showing in the Organization Chart (not in Reporting Structure).
This error shows in Reporting Structure:
16 Feb 2011 15:40:59 ERROR com.nakisa.Logger - Hrwpc_Rfc_Ep_Read_Photo_Uri.runEmployeeReadPhotoURI() : Cannot identify key field or value. Whereclause :: (Object_ID='80000001')
16 Feb 2011 15:40:59 WARN com.nakisa.Logger - Detail - CurrentPositionPortrait : FetchData : Could not fetch data for details.
16 Feb 2011 15:40:59 WARN com.nakisa.Logger - Details - ManagerPhoto : Render : Failed because no data is available.
If the position has no PERNR, the log looks like this:
16 Feb 2011 16:14:35 ERROR com.nakisa.Logger - Hrwpc_Rfc_Ep_Read_Photo_Uri.runEmployeeReadPhotoURI() : Cannot identify key field or value. Whereclause :: ( (Pernr is null) or (Pernr='') )
I am guessing could it be the keyword in the WHERE clause that caused the FM in ECC couldn't be called properly.
Anyone else has this problem?Hi Jack,
This function is actually called by the class BAPI_Employee_GetDetails, which is a Nakisa class and not in SAP. Therefore I would raise an OSS note. There are a number of fixes to the SMP build that you have that will be in a build provided by Nakisa.
Best regards,
Luke -
Dictionary structure or view?
Hi
In 4.6 i decalred view as M_VMVLA, M_VMVLB,M_VMVLC
but the same are not working in ECC6.0 .(For unicode).Is there any standard view for the same ? What shall i use for each above views in ECC 6.0.Hi
Answer is purely assumption
Pls check OSS note
Note 1093055 - Empty index tables after you upgrade to ERP 6.0
Pls note - Take opinion from BASIS team if you need to implement this Note
Regards
MD -
Structure to view monthly and quaterly report urgent
Hi All,
Jan-07 Feb-07 Mar 07 Q1-07 Avg Apr 07 May 07 June 07 Q2-07 Avg Jul-07 Aug-07 Sep-07 Q3-07 Avg Oct 07 Nov-07 Dec 07 Q4-07 Avg Closing 07
Dec 06 Jan-07 Feb-07 Avg Q1-07 Ytd Mar 07 Apr 07 May 07 Avg Q2-07 Ytd Jun-07 Jul-07 Aug-07 Avg Q3-07 Ytd Sep-07 Oct 07 Nov-07 Avg Q4-06 Ytd "Dec 07
pm Jan08"
dis is the structure v need to create can it b possible plz throw some light on this. v r not using any variable for this report.
Thanx in Advance
PriyaYou should have 0calmonth a 0calquarter in your cube, then put 0calmonth below 0calquarter. Then supress total for 0calmonth and visible for 0calquarter and set calculate result as average.
-
Component structure browser - view highlighted
Hello Experts,
In the component browser, I have a view that has been enhanced. This view is now highlighted blue (ie there is a box around the view name), and I am unsure why. Several other views have been enhanced but does not show this behavior.
Please advise.
Thanks,
AYeungHI AYeung,
I assume, your view in BSP_WD_CMPWB.
If there are more than 1 enhancement set, then if you open in 1 enh set, then the views enhanced with other enh set is grayed out. The same applies if you choose no enh set.
Hope this helps.
Satish -
Structural Authorization views not displaying in EP
We are using PD profiles to allow managers in an alternative org unit to approve time in MSS for employees not in their org unit. When you log onto the Enterprise Portal in the MSS Team Overview iview the manager cannot see the employees from the other org unit defined in the structural authorization. He can only see his own employees for his org unit. However, in transaction OOSB when you click the Display Objects button you see the positions and persons that should be visible
to the manager. We have assigned the profile through both PO13 to the position and OOSB directly to the user. We make sure to run RHPROFL0 after assignments
of the profiles. HR has created a custom relationship Z99 and assigned to the positions for the alternate org unit.
We had a scenario working in our sandbox at one time but we could not reproduce this in the development system. Any tips would be greatly appreciated.Hi John,
I know SAP_ALL doesn't matter but I wanted to rule out all possibilities of any standard authorization issue to isolate the PD profiles as the real issue.
To answer your question, the user can see his own org unit and subordinate employees in MSS. The manager is a chief and manages his org unit.
A colleague of mine mentioned that there may need to be some configuration established for the iViews in question so I put it to the HR functional team to confirm the correct customization is set up in the IMG for Integration with Other mySAP.com Components > Business Packages/Functional Packages > Manager Self-Service (mySAP ERP) > Object and Data Provider. I'll report on the status of this as well when I hear back from them. Thanks again. -
Custom Datasource using View COVJ - R8359 Invalid extract structure
I'm trying to build a custom datasource so I can get at plan line item data with partner object (I've tried using 0CO_OM_CCA_1 but I dont get the partner object for plan data - no idea why). So I thought if I create a datasource using COVJ I can get it out. However when I try and save the custom datasource (created using RSO2) I get the error R8359 Invalid extract structure: You tried to generate an extract structure with the template structure COVJ. This operation failed, because the template structure quantity fields or currency fields, for example, field WOG001 refer to a different table.
I saw posts saying when people get this error thye should reference the table these fields come from in the view. So I've talked to our ABAP'er and I asked him to reference the table these fields come from but he said this cant be done because these come from a structure not a table.
Any ideas?
Thanks
JoelThe WOG* columns in table COEJ, one of the tables contributing to the COVJ view, use CCCUR-CURKY as the reference table-column for those quantities. The ABAPer you spoke to is correct that CCCUR is a structure. View value fields inherit their reference table-column from the source, in this case COEJ, and since this source table is an SAP delivered table it cannot be modified change this reference.
This means that you're only option for extracting the data out of the COVJ view would be to create a Function Module and use that Function Module as the basis for your DataSource. -
Structure problem very urgent .It is view
Hi .
How can I select RFIDTRBOE structure or view I am not sure . It gives an error (it is not defined in abap dictionary as a table )
Thanks
Message was edited by:
yanutHi Yanut,
RFIDTRBOE is a dictionary structure. Structures are not defined in the database but in ABAP dictionary.
The only usage I could find was in the report programs
RFIDTRBOE1 Bill of Exchange Transactions (Greece, Thailand, Turkey)
RFIDTRBOE2 Reversal of Bill of Exchange Transactions (Thailand, Turkey)
The structure fields
KTOPL Chart of Accounts
BUKRS Company Code
KOART Account Type
UMSKS Special G/L Transaction Type
BANKN G/L Account Number
BANKM G/L Account Number
BANKO G/L Account Number
PORT1 Bill of Exchange Portfolio
PORT2 Bill of Exchange Portfolio
PORT3 Bill of Exchange Portfolio
PORT4 Bill of Exchange Portfolio
PORT5 Bill of Exchange Portfolio
PORT6 Bill of Exchange Portfolio
UMSKZ Special G/L Indicator
LIFNA Account Number of Vendor or Creditor
VALUT Value Date
WAERS Currency Key
KURSF Exchange rate
are used in financial accountings. Study the above programs to find out how the data are retrieved from BKPF, BSEG and other tables.
Regards,
Clemens
Maybe you are looking for
-
How to open pdf from an url into an acrobat control for vb
I have a vb requirement like this: We have pdf files generated on a server and put in path like http://servername:port/pdfReports/report.pdf Desktop applications need to show these files.. we have an acrobat reader control on one of the forms and try
-
ITunes reporting wrong free space on iPhone 4S
On Friday, I signed up for iTunes Match. Let it do it's thing, and on Saturday afternoon, it completed. I went through and removed all the old m4p files I could, replaced with m4a, and downloaded 256k aac replacements for old files in my library fo
-
My iPhoto app disappeared. (? on icon in dock and no longer showing up Applications folder). My iPhoto library seems to be intact. I have a recent copy of everything on my iMac on an external drive using Super Duper. What's my best option for restori
-
How do you get those crisp vivid colors when taking photos?
I had a point and shoot that had the "vivid" color option and I want to be able to create photos with my t4i that look just as crisp and have vivid colors....any instructions?
-
I got a new computer and need to re-install it, and remove it from my old, how can I do that?