Unable to create view on COSP table for enpense related GL accounts.

Hi,
I want to extract only expense GL accounts related expense into BW. I tried to use standard data source: 0CO_OM_CCA_01 & 0CO_OM_CCA_02. but as these two data sources doesn't have profit center, trading partner and segment. so we are planning to use a view on table: COSP.
When I am trying to create a view, its throwing error "the reference field is from some different table".
Need your suggestion in creating the view.
Regards,
Ravi.

Hi Ravi,
Before deciding to create a generic DataSource, you should evaluate the options to enhance a Business Content DataSource. It is possible to extend the extract structure with additional fields and fill them in Enhancement RSAP0001 or BAdI RSU5_SAPI_BADI.
If you would decide to go for a generic DataSource after all, then please share more details on the issue you are facing. I.e. detailed error message(s), screenshots, etc.
Best regards,
Sander

Similar Messages

  • Trouble Creating View on External Table in Diff Schema

    I am unable to create a view in a different schema on an external table in a different schema, even when I am connected to my database as SYS as SYSDBA.
    CREATE VIEW WH1.EXT1VIEW AS SELECT * FROM WH1.EXT1VIEW;
    returns the error:
    ORA-06564: object ER_ADMIN_DIR does not exist
    I created a directory:
    CREATE DIRECTORY ER_ADMIN_DIR AS 'C:\ER_Init';
    Granted privs:
    grant read,write on directory ER_ADMIN_DIR to public;
    Created the external table EXT1 in a different schema WH1:
    CREATE TABLE WH1.EXT1 (TABLE_NAME VARCHAR2(100), COLUMN_NAME VARCHAR2(100))
    ORGANIZATION EXTERNAL (TYPE ORACLE_LOADER DEFAULT DIRECTORY SYS.ER_ADMIN_DIR
    ACCESS PARAMETERS
    (RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL
    LOCATION ('FILE1.TXT')
    REJECT LIMIT UNLIMITED;
    I can query from the table successfully connected as SYS:
    SQL> select count(*) from wh1.ext1;
    1008
    1 row selected.
    However when I try to create a view on that table connected as SYS:
    CREATE VIEW WH1.EXT1VIEW AS SELECT * FROM WH1.EXT1VIEW;
    I get the following error:
    ORA-06564: object ER_ADMIN_DIR does not exist
    I can connect over to the WH1 schema and create the view successfully, however due to a specific situation I need to be able to create the view from the SYS schema. I can create the view FORCE and it creates with compilation errors, however the view cannot be compiled successfully from SYS.
    Is there a known bug on creating views on external tables remotely?
    Thanks for any help!
    Tina

    I have been able to reproduce your error, using scott instead of sys, and resolve it, as demonstrated below. The combination that I found that worked consisted of having wh1 grant select on ext1 to scott explicitly and using set current_schema to wh1, so that ext1view did not require the wh1 qualifier.
    scott@ORA92> CREATE USER wh1 IDENTIFIED BY wh1
      2  /
    User created.
    scott@ORA92> GRANT CONNECT, RESOURCE TO wh1
      2  /
    Grant succeeded.
    scott@ORA92> CREATE OR REPLACE DIRECTORY er_admin_dir AS 'c:\er_init'
      2  /
    Directory created.
    scott@ORA92> CREATE TABLE wh1.ext1
      2    (table_name  VARCHAR2(100),
      3       column_name VARCHAR2(100))
      4  ORGANIZATION EXTERNAL
      5    (TYPE ORACLE_LOADER
      6       DEFAULT DIRECTORY er_admin_dir
      7       ACCESS PARAMETERS
      8         (RECORDS DELIMITED BY NEWLINE
      9          FIELDS TERMINATED BY ','
    10          MISSING FIELD VALUES ARE NULL)
    11       LOCATION ('file1.txt'))
    12  REJECT LIMIT UNLIMITED
    13  /
    Table created.
    scott@ORA92> CREATE OR REPLACE VIEW wh1.ext1view AS SELECT * FROM wh1.ext1
      2  /
    CREATE OR REPLACE VIEW wh1.ext1view AS SELECT * FROM wh1.ext1
    ERROR at line 1:
    ORA-06564: object ER_ADMIN_DIR does not exist
    scott@ORA92> CONNECT wh1/wh1
    Connected.
    scott@ORA92> @ LOGIN
    scott@ORA92> SET ECHO OFF
    GLOBAL_NAME
    [email protected]2
    wh1@ORA92> GRANT SELECT ON ext1 TO scott
      2  /
    Grant succeeded.
    wh1@ORA92> CONNECT scott/tiger
    Connected.
    wh1@ORA92> @ LOGIN
    wh1@ORA92> SET ECHO OFF
    GLOBAL_NAME
    [email protected]A92
    scott@ORA92> ALTER SESSION SET CURRENT_SCHEMA = wh1
      2  /
    Session altered.
    scott@ORA92> CREATE OR REPLACE VIEW ext1view AS SELECT * FROM wh1.ext1
      2  /
    View created.
    scott@ORA92> ALTER SESSION SET CURRENT_SCHEMA = scott
      2  /
    Session altered.
    scott@ORA92> SELECT * FROM wh1.ext1view
      2  /
    TABLE_NAME
    ---------------------------------------------------------COLUMN_NAME
    ---------------------------------------------------------tab1
    col1
    tab2
    col2
    scott@ORA92>

  • Error Creating View on External Table

    I create my oracle directory connected as SYS as SYSDBA and grant read,write to public:
    CREATE OR REPLACE DIRECTORY ER_ADMIN_DIR AS 'C:\win32app\ingr\ER\ER_Init\scripts';
    grant read,write on directory ER_ADMIN_DIR to public;
    I creat my external table from SYS to reside in another schema called DRTEST:
    CREATE TABLE DRTEST.SPEC_REQUIRED (TABLE_NAME VARCHAR2(100), COLUMN_NAME VARCHAR2(100))
    ORGANIZATION EXTERNAL (TYPE ORACLE_LOADER DEFAULT DIRECTORY ER_ADMIN_DIR
    ACCESS PARAMETERS
    (RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL
    LOCATION ('atts_in_red.tx')
    REJECT LIMIT UNLIMITED ;
    I can select from the table and all is good at this point.
    However, I get an error when I try to create a view (in DRTEST from SYS) based on the external table.
    CREATE VIEW DRTEST.MYVIEW1 AS SELECT * FROM DRTEST.SPEC_REQUIRED;
    CREATE VIEW DRTEST.MYVIEW1 AS SELECT * FROM DRTEST.SPEC_REQUIRED
    ERROR at line 1:
    ORA-06564: object ER_ADMIN_DIR does not exist
    (note I'm still connected as SYS as SYSDBA here)
    I can create the view if I connect to DRTEST and run the exact same create view statement there. Is there something in Oracle that prevents me from doing this from the SYS account? I usually think of SYS as having the "Power of God to do all things".
    I have to create the external table and view on several schema's and I don't want the user to have to connect to each schema separately.
    Tina

    Tina,
    I think you are facing bug 2948123 (CREATE VIEW ON EXTERNAL TABLE ORA-6564). The workaround is to connect (in your case) as user DRTEST and then perform the CREATE VIEW statement (you tested this already). Or (according to the bug description) create the view under the SYS schema itself.

  • What is the procedure to create entry in NAST table for particualr document

    Hello ABAP GURUS,
    I need to know how to create objectkeys in NAST table for particualar document number.
    My requirement is i need to check my smartform output for Goods Receipt.IN nast table,i dont have any entries for Goods Receipt.So i need to create entries in NAST table.Please help me to solve this problem.
    waiting for your replies
    Regards
    Maruthi

    Hi!
    Ususally it is not neccessary to create manual entries in NAST.
    You have to print the document from its transaction. Naturally there may be some other settings which are required after setting transaction NACE.
    If you understand the Letter of delivery on the Goods Receipt, which can be printed from VL02N, then you have to set some automation to your printing using transaction VV22.
    Regards
    Tamá

  • Creating View Objects at Runtime for Validation

    In Oracle® Application Development Framework
    Developer’s Guide For Forms/4GL Developers tutorial there is a topic about Creating View Objects at Runtime for Validation.
    Is there any sample code available for this topic?
    Please help
    Regards
    S Karar

    I have created a helper method . The code is given below
    protected ViewObject getValidationVO(String viewObjectDefName) {
    // Create a new name for the VO instance being used for validation
    String name = "Validation_" + viewObjectDefName.replace('.', '_');
    // Try to see if an instance of this name already exists
    ViewObject vo = getDBTransaction().getRootApplicationModule().findViewObject(name);
    // If it doesn't already exist, create it using the definition name
    if (vo == null) {
    vo = getDBTransaction().getRootApplicationModule().createViewObject(name,viewObjectDefName);
    return vo;
    // Validation_bc4j_project of type ApplicationModule not found
    and created a validation method.
    The code inside validation method is given below.
    public boolean validateAvgMr(Number data) {
    String batch_catg = getQuality();
    // Get the view object instance for validation
    ViewObject vo = getValidationVO("bc4j_project.v_sqc0150");
    if (getTestStage()=="DOLLOP" && getQuality()=="DECO")
    // Set it's bind variables (which it will typically have!)
    vo.setNamedWhereClauseParam("batch_catg","DECO");
    vo.executeQuery();
    Number dol_mr_lcl=(Number)vo.first().getAttribute("DolMrLclStd");
    setStdMrLcl(dol_mr_lcl);
    return true;
    return true;
    I have checked the validation view and it is returing value with the same bind variable value but is not returning any value when using inside this method validation.
    I have checked several times but can't find the fault in the code.
    Please help

  • Unable to create Indexes on F table

    Hi
    We are unable to create Indexes on one of our Cube's fact table...I tried creating with Process chain , Batch and also tried with SE11 ...table name ... Indexes ...Activate...
    Its showing active object generated but the warning msg Index does not exist in database system MSSQL still exist  and not creating indexes...When I activate the indexes its not showing this warning for all other cubes...Please advice
    regards

    Hi Sam,.
    The index creation on F table is taken care by the system itself. When you activate the cube, the DIM and F table are created and at the same time, indexes are created.
    To create your own indes, though, go to se11...>F Table name-->Indeexes-it will show you system created indexes.
    There will be a create sign....click there... and give the name of the index(like 1, 2). It will open up the maintain index page, where you have to mention all the parameter.
    Thanbks...
    Shambhu

  • Unable to create wage types in It0015 for Zambia

    Hi Friends,
    I want to create Wage types in IT0015 - Additional Payments for Zambia. But I am unable to find any model wage types which can be copied to create the custome wage type for country grouping ZM - Zambia.
    I also tried to copy the wage typse by using the functionality "copy between country groupings" but I am unable to find Zambia in the country groupings drop down list.
    Can someone pls help asap. Its an urgent client requirement.
    Bye
    Naveen

    Hello All,
    Thanks to all of you for trying to solve my problem but at last the solution was very easy which I could find myself.
    There is a custome table T500L_CUST in which I can configure Zambia country grouping and accordingly create a wage type catalog for Zambia by copying the wage types from other countries 99 or in that matter any country.
    Let me know if anyone has any doubt in this.
    Bye
    Naveen

  • Unable to create view links ....

    Hi,
    when i try to create a view link on my custom VO's ..im getting the following error:Ia m not using any standard VO's but still iam facing this issue
    Error occurred trying to activate the wizard pageView objects.
    Unable to find referenced object.
    Object=oracle.apps.ego.common.server.EgoChangeOrderCreationVO
    Owner=xxcus.apps.xo2c.sample.server.EgoChangeOrderCreationVOEx
    Exception:oracle.jbo.dt.objects.jboReferenceException
    I checked for these files on both the server and my local jdev.
    only the PosShipmentsCustomVO.xml is present both on the server and my local jdev.the .class file is not there on the server.
    Any help is greatly appreciated.
    Thanks

    Hello,
    Check the developer's gude for the following:
    Developing Business components -->Creating and modifying View Objects, view Links, Application Modules -->Ways to create View Link instances in the code.
    Do let us know if you are still stuck some where.
    Pavan K

  • Unable to create a PivotChart in PowerPivot for Excel 2010

    I am unable to create a PivotChart from the PowerPivot window. It does not create a Chart# sheet nor does it appear as a PivotChart on the PivotTable worksheet in Excel. There is not even a PivotChart grid and Field List to create the PivotChart from.
    Help. Please and thank you.
    [email protected]

    Any ideas why this might be happening for Ed?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Unable to Create Fact and Dimension tables from the Tools menu in EIS conso

    Hi All,
    In the EIS console, I am unable to create the fact table and the dimension tables to produce my OLAP model from the TOOLS menu whereas I am able to create them by dragging from the left panel where the tables are displayed. I am geeting the below error message:
    "An exception occured while retrieving OLAP model metadata. Please verify you are connected to the catalog and try again"
    Any help appreciated.
    Thanks,
    Raja

    I have fact and dimension tables in one server and i moved those stuff to another server.If I do that what happen to essbase and about totale EPM System.I want to know how to do this and what I can expect?
    Please reply

  • Unable to create the portable home directory for this user

    This is driving me nuts!
    I have a network user who I can login to on any machine on the network. I want a PHD to be created on a laptop and eveytime I answer 'yes' to 'create PHD for this user' I get the "unable to create the PHD for this user" message.
    What am I doing wrong?

    I fixed this by unbinding the laptop from the od server as I had used this user previously for PHD's on this machine. Setting up the machine to bind to OD again and all is well.

  • Unable to create view

    I want to create a view with the code you may see below. Then, I get error "ORA-00942 table or view does not exist
    " when issuing a CREATE VIEW statement. However, I get no error when executing the query. All tables and views exist. What could be wrong? Thanks.
    Select grupo_costos,
    Sum(Enero)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '1', '2004','EDI','USD', '1') as Enero,
    Sum(Febrero)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '2', '2004','EDI','USD', '1') as Febrero,
    Sum(Marzo)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '3', '2004','EDI','USD', '1') as Marzo,
    Sum(Abril)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '4', '2004','EDI','USD', '1') as Abril,
    Sum(Mayo)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '5', '2004','EDI','USD', '1') as Mayo,
    Sum(Junio)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '6', '2004','EDI','USD', '1') as Junio,
    Sum(Julio)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '7', '2004','EDI','USD', '1') as Julio,
    Sum(Agosto)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '8', '2004','EDI','USD', '1') as Agosto,
    Sum(Septiembre)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '9', '2004','EDI','USD', '1') as Septiembre,
    Sum(Octubre)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '10', '2004','EDI','USD', '1') as Octubre,
    Sum(Noviembre)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '11', '2004','EDI','USD', '1') as Noviembre,
    Sum(Diciembre)/parts_cost_evol_api.Monthly_Avg_Curr_Rate__ ( '12', '2004','EDI','USD', '1') as Diciembre
    from
    ((select costs.part_group_desc as grupo_costos,
         decode(extract(month from trans.date_applied), 1, sum(acc.curr_amount),0) as Enero,
         decode(extract(month from trans.date_applied), 2, sum(acc.curr_amount), 0) as Febrero,
         decode(extract(month from trans.date_applied), 3, sum(acc.curr_amount), 0) as Marzo,
         decode(extract(month from trans.date_applied), 4, sum(acc.curr_amount), 0) as Abril,
         decode(extract(month from trans.date_applied), 5, sum(acc.curr_amount), 0) as Mayo,
         decode(extract(month from trans.date_applied), 6, sum(acc.curr_amount), 0) as Junio,
         decode(extract(month from trans.date_applied), 7, sum(acc.curr_amount), 0) as Julio,
         decode(extract(month from trans.date_applied), 8, sum(acc.curr_amount), 0) as Agosto,
         decode(extract(month from trans.date_applied), 9, sum(acc.curr_amount), 0) as Septiembre,
         decode(extract(month from trans.date_applied), 10, sum(acc.curr_amount), 0) as Octubre,
         decode(extract(month from trans.date_applied), 11, sum(acc.curr_amount), 0) as Noviembre,
         decode(extract(month from trans.date_applied), 12, sum(acc.curr_amount), 0) as Diciembre                    
    from ifsapp.inventory_transaction_hist2 trans, ifsapp.mpccom_accounting acc, ifsapp.part_catalog part, part_costs_evol_tab costs
    where trans.transaction_id = acc.accounting_id
         and trans.part_no = part.part_no
         and trans.part_no = costs.part_no
         and extract(year from trans.date_applied) = '2004'
         and ((upper(trans.transaction_code) IN ('INTSHIP', 'INTUNISS') and acc.str_code = 'M53') or
              (upper(trans.transaction_code) = 'NISS' and acc.str_code = 'M2') or
              (upper(trans.transaction_code) IN ('WOISS', 'WOUNISS') and acc.str_code = 'M50'))
    group by costs.part_group_desc, extract(month from trans.date_applied))
    UNION
    (select distinct costs.part_group_desc as grupo_costos, 0,0,0,0,0,0,0,0,0,0,0,0                
    from part_costs_evol_tab costs))
    group by grupo_costos

    We cannot build stored procedures or views using privileges granted to us through roles. That is just the way the Oracle security model works. Sometimes I understand it, sometimes I think it's weird - it depends whether there's an R in the month. I certainly find it annoying when I'm am trying to develop some code and a lazy DBA has only granted me CONNECT and RESOURCE instead of the precise privileges I actually need.
    Privileges granted through roles always work in SQL*Plus.
    Cheers, APC

  • Unable to view entries in FAGLL03 for Zero Balance Clearing Account

    Hi experts,
    We are facing a unique problem. We are not able to view the line items of the Zero Balance clearing account. The master data of the G/L has been activated for line items but still the display of the items is not happening. I am getting the foll message:
    Account 19900000, company code 1100 is clearing account
    Message no. MSITEM111
    Diagnosis
    You have stored account 19900000 in company code 1100 as a clearing account. At the same time, you use line item management with this account.
    System Response
    Error message issued because line item display cannot read data for an account in a ledger if line items exist partially in the entry view together with clearing items for which there are no line items. In such cases, only the data with line items would be selected.
    Procedure
    Check the Customizing settings or account control. Change the settings so that only automatic postings without line items can be made to the account, or select a different account as the clearing account.
    Regards,
    Sateesh

    Hi
    In splitting case you need not the give the line item display tab for Zero Balance Clearing Account.
    Just remove that line item display in FS00 for Zero Balance account. You could be able to see the entries in FAGLL03
    Regards
    Sandeep

  • Unable to create new entry in table that has no primary key

    Hi
       I have a table which is required to have no primary key (except mandt). After i generate table maintanance, when I go to create new entries, the table control to enter the new values does not appear. When I click on edit->new entries, it goes back to the fields tab of the table. Same when i check through SM30.
    If i maintain atleast one primary key, I am able to get the table control in new entries screen. However the requirement permits no primary keys except mandt. How can this be resolved?
    Thanks
    NM

    Hi,
    THE PROBLEM WITH UR TABLE IS
    YOU HAD DECLARED MANDT AS THE PRIMARY KEY AND THERE IS NO OTHER KEY IN UR TABLE
    iT'S NOT ALLOWING YOU TO ADD NEW ENTRIES BECAUSE MANDT IS THE ONLY PRIMARY KEY IN YOUR TABLE AND IT WILL HAVE A DEFAULT VALUE BASED ON THE CLIENT. SO  IT'S NOT SHOWING YOU THE CREATE NEW ENTRIES OPTION.
    SO TRY TO PUT ONE MORE FIELD AS THE PRIMARY KEY SO THAT YOUR PROBLEM WILL SOLVE VERY EASILY  ALSO MAKE SURE THAT TABLE IS ACTIVATED.
    REVERT IF U NEED SOME MORE HELP
    Thanks &Regards.
    Pavan.

  • I am unable to create shortcut on my desktop for photoshop

    I get a shortcut that takes me to the microsoft file index, but am unable to create shortcut that takes me directly to the photoshop program.

    Hi rgrstvr,
    Please try to refresh your Windows Explorer.
    Regards,
    Romit Sinha

Maybe you are looking for