ADF View with input parameter?

I've a table with three column:
company id, company name, revenue
Another table:
employee id, employee name, company id (foreign key in company table)
Now I've to display list of employees in 1 company (based on logged in user). How shall I achieve this in ADF using BCs?
A very standard requirement it seems... A tutorial would be good if someone can point me to that?
Thanks.

Create 2 EO for the 2 tables. Create VO on top of them. You can then create a View Criteria on the EMPVO which has the condition companyId = :bCompanyId (where bCompanyId is the bind variable defined and the values is passed from UI).
http://jobinesh.blogspot.com/2010/10/how-to-set-bind-variable-values-at.html

Similar Messages

  • Calculated view with input parameters

    Hello there.
    I've created a calculated view with input parameters, which I am going to call  it  'VIEW_A'.
    This view has been working just fine.
    But now I have to create another calculated view and import the last one(VIEW_A) in a projection.
    But I got a error when trying to see the data content. 
    It says :
    Error: SAP DBTech JDBC: [2048]: column store error: search table error:  [6968] Evaluator: syntax error in expression string;expected TK_ID,parsing '"DT_DOC_MES_ANO" >= [here]and "DT_DOC_MES_ANO" <='
    At the 'Problems' panel it says the all the input parameters are unmapped.
    What Am I doing wrong?  Sorry but I am kind new at SAP world.

    http://scn.sap.com/message/15489475Hello Tiago,
    Could you please let me know if you're able to resolve your issue, I'm getting the similar error when I'm passing alpha numeric values as parameter via my SP.
    Thanks for your help in advance!
    Regards,
    Sathish

  • Error when using Analytic view with Input Parameters

    Hi,
    I am trying to create an info space based on my Analytic view which has input parameters. The infospace is validated and indexed without any issue. However when I ran the view, I get an error (50011) as it is unable to fetch any results. I tried using an infospace based on Calculation view with input parameters and the explorer view works without any issue.
    Has anyone faced similar issues?
    We are using HANA SP 6 rev 67 and BI 4.0 SP 4.
    Also is there a way to enable input prompts for the users when they refresh the BO Explorer view? If not currently available is there any work around ?
    Thanks

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

  • Questions on CDS Views with input parameters

    Dear Experts,
    1. Can we call a CDS View (or generated database view) with input parameters inside an AMDP? I am looking for something similar to the feature in HANA where we can consume calculation view with filters inside SQL Script?
    2. I understand we can next CDS Views, but how we can next (call) a CDS View with input parameters inside another CDS View?
    Thanks,
    Giri

    Hi Thomas,
    I get the below error that the CDS View's generated table function cannot take field from AMDP.
    I have a requirement to query the CDS View using 2 timestamps (start & end). So, in AMDP I have used the TIME_STAMP and try to pass it to the CDS View
    View code:
    define view Z_Ngi_Cag_A
    with parameters start_ts:abap.dec( 15, 0 ) , end_ts:abap.dec( 15, 0 )
    as select from table {
    resource_key
    where
    (begtstmp > $parameters.start_ts or endtstmp > $parameters.start_ts )
    and
    (begtstmp < $parameters.end_ts or endtstmp < $parameters.end_ts )
    I am calling using the below AMDP:
    DECLARE iv_start_date TIMESTAMP;
    DECLARE iv_end_date TIMESTAMP;
    SELECT CURRENT_TIMESTAMP INTO iv_start_date from dummy;
    SELECT ADD_DAYS(CURRENT_TIMESTAMP, 30) INTO iv_end_date from dummy;
    et_data =      SELECT * FROM ZMR_H_CA ( start_ts => iv_start_date, end_ts =>  iv_end_date );
    What could be wrong ? Is this not supported?
    Thanks,
    Giri

  • Call a Graphical Calc view with input Parameters from a Script Based Calc View

    Hi All.
    I am trying to call a graphical calculation view with input parameters from a script based calculation view as below but getting syntax error:
    SESSION_SAMPLE = SELECT SESSION_CREATE_DATE,SHA256,CA_MEASURE
                                 FROM "_SYS_BIC"."WILDFIRE/CV_SESSION_SAMPLE"
                                 WITH PARAMETERS  ('PLACEHOLDER' = ('$$IP_START_DATE$$',:START_DATE),
                                     'PLACEHOLDER' = ('$$IP_END_DATE$$',:END_DATE));
    START_DATE  and END_DATE are input parameters of the script based calculation view.
    Can anyone please help me with the correct syntax for accomplishing this?
    Thanks,
    Goutham

    Hi Gautham,
    One more option  what i would like you to try is the below option , here i have just changed the order of passing nothing else.
    SESSION_SAMPLE = SELECT SESSION_CREATE_DATE,SHA256,CA_MEASURE
                                 FROM "_SYS_BIC"."WILDFIRE/CV_SESSION_SAMPLE"
                                   ('PLACEHOLDER' = ('$$IP_END_DATE$$','$$END_DATE$$'),
                                  'PLACEHOLDER' = ('$$IP_START_DATE$$','$$START_DATE$$'))
    Regards,
    Vinoth

  • Oracle Views with input

    Oracle Version:Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
    Hi Experts,
    Is it possible to write a view with input and with IN clause in where cluase ....For Example I want to create a view like Below ..
    The below query may be syntactically wrong , but my intension of writing is similary to this. And the query should contain a IN caluse and A union as below...
    create or replace VIEW view_name (col1,col2, P_inputparam VARCHAR2)
    as
    SELECT Col1,Col2
    FROM table_name1
    where any_column11 in (
    &P_inputparam
    UNION
    SELECT Col1,Col2
    FROM table_name2
    where any_column22 in (
    &P_inputparam
              Thanks In advance.
    Edited by: 883279 on May 10, 2013 1:41 AM

    883279 wrote:
    Oracle Version:Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
    Hi Experts,
    Is it possible to write a view with input and with IN clause in where cluase ....For Example I want to create a view like Below ..
    The below query may be syntactically wrong , but my intension of writing is similary to this. And the query should contain a IN caluse and A union as below...
    create or replace VIEW view_name (col1,col2, P_inputparam VARCHAR2)
    as
    SELECT Col1,Col2
    FROM table_name1
    where any_column11 in (
    &P_inputparam
    UNION
    SELECT Col1,Col2
    FROM table_name2
    where any_column22 in (
    &P_inputparam
              Thanks In advance.
    Not like that... no.
    What you're using as "input" there are SQL*Plus substitution variables. Those values are requested by SQL*Plus before the code is sent to the database and compiled. Code that runs on the database has no way of interacting with a client keyboard or screen, so you cannot get stored code to prompt for user input.
    See: {message:id=10744582}
    It's possible to use SYS_CONTEXT to get a view to pick up a value that has been previously assigned before the view is used, though I rarely find a need to do this myself.

  • BAM Report with input parameter

    Hi,
    How to design a report with input parameter? BAM ADC contains data about different clients.
    I have to design a report which iterates over these clients and display one client info at a time.
    Thanks
    Samatha

    Instructions in User guide on how to create surface prompts
    http://www.oracle.com/technology/products/integration/bam/index.html> 11g Documentation> User guide
    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10230/prompts_parameters.htm#CHDEEACD
    Also look at call center -->Reassign cases sample under demos in BAM 11g.

  • Regarding" Material PO text " with input parameter is PR requisition

    Hi Experts,
    I need to develop a ALV report in which the input parameter is PR requisition, Requisition date, Plant ,Purchase Group, Purchase organization
    And I needed to get its corresponding u201Cmaterial PO Textu201D.
    I am using the function module READ_TEXT with
    goto me53n( purchase requisition) -
    > text----->item_text->doubleclick->goto->header
    id = 'B04'.
    tname = '100000166000010'.
    tdobject = 'EBAN'.
    How do i display all the text in alv against the PR requisition, Requisition date, Plant ,Purchase Group, Purchase organization, PR item number  PO number , Po date , PO item number
    thanx.
    Moderator message: please open only one thread per issue.
    Edited by: Thomas Zloch on Jan 17, 2012 10:42 PM

    lets say item text is 8-10 lines, you want to display that as well in the output? how much the user have to scroll for 10 PRs  just think..
    rather give them the report output without the item text and give them a hotspot. once they click hotspot, show them a popup  for item text

  • How to create a Mapping with Input Parameter?

    Hi,
    I have a target table where the primary key column should be loaded with an Input parameter value. How can we implement this? Let me know if any examples are available?
    Regards
    Kishan

    Use a map input operator in your mapping. In the outgroup add an attribute, mapp the attribute with the column and then you can start the mapping with an extra input parameter.
    Bye
    Detlef

  • Starting/Openeing a  Workbook empty or with Input Parameter

    Hi,
    how to configure BW / BEX / a workbook  to start a workbook always empty or with the input parameter dialogue ?
    ThanXs
    Martin

    Sorry Martin, on the purge side of things....
    It depends on whether you are using BW 3.,5 or BI 7.
    If you are on 3.5 on the Tools menu there is an option to Delete Query Results.
    If you are on BI 7:00 then the link tell you all:
    SAP entertainment: Migration of 3.x objects to BI 7.0
    - Delete query results.. para.

  • Multible MBO's with input parameter's how to pass them?

    Hello gurus i'm currently working on native app that based on BAPI MBO's and each MBO takes input parameter and return some values
    at the first MBO i made the input parameter is personalization key but after adding a second MBO and make the same to the second MBO when i generated the code and passing the PK values only for the first MBO i got an error
    any help on how to pass input parameters for native app that based on BAPI for multiple MBO and i will not pass all the parameters at the same time depend on the screen that i'm in i will call MBO
    thanks in advance

    Steps to do a sync from MBO is given below (android native app):
    Create MBO and PK.
    Map MBO load parameter with PK.
    Create Second MBO and another PK (or use existing PK if the input parameter of first MBO is same as second MBO).
    Map Second MBO load parameter with second PK.
    Sample native code (android):
    //Assing Values to PK
    PersonalizationParameters param = CustomersDB.getPersonalizationParameters();
              param.setPK_CustomerInput("1001");
              param.save();
              CustomersDB.subscribe();
    //Make a blocking synchronize call to Unwired Server to pull in all MBO data
              CustomersDB.synchronize();
    //Finall is the query generated by SUP to get the data from the table Customers.
    //Customers is the MBO name in SUP and table name in Device DB
    Customers.findAll()
    Give the steps you performed with relevant screen shots to help you further.
    More info, Developing SAP Android Mobile app from scratch - Part 4
    Midhun VP

  • Search Help With Input Parameter in WebDynpro ABAP

    Hello all,
    I have been facing a problem regarding a search help I wanted to attach to an input field on my UI. The search help expects an import parameter and offers four output parameters. What I did was to create a context node based on a ddic structure. The structure has one attribute for each of the five parameters. I defined the search help for all context attributes except the importing one where I deactivated the search help. The search help is available on one of the input fields on the view and bound to one of the attributes in the context. The other context attributes are not bound to anything. The names as well as the data types are the same in the search help as well as in the ddic structure, bound to the context node.
    During WDDOINIT, I am setting the "import" context attribute. The problem is that the table with the search help parameters is empty when the search help exit is entered. Do you have any idea what I have to do in order to provide the import value to the search help?
    Thanks in advance and best regards
    Simeon

    Hi,
    By context node, do u mean that u made a drop down with values in ddic structure ,
    rather than that u can use FM 'VRM_SET_VALUES' this would be simpler if that makes sense for ur requirement.
    pls revert if any comments on it.
    regards,
    Dinesh.

  • Error while creating a BO Universe (using IDT) on top of SAP HANA Calculation View with Input Parameters

    Hi All..
          We are trying to create a Universe (using IDT-Version4.0) on top of the HANA Calculation view. The Calculation view has 4 input parameters, So
    in Universe side we have created the respective prompts. For the creation of derived table we have used the following code
    SELECT *
    FROM "_SYS_BIC"."<schema_name>.<CV_Calculation_View_test>"
    'PLACEHOLDER'=('$$IP_A$$','@Prompt(A)'),
    'PLACEHOLDER'=('$$IP_B$$','@Prompt(B)'),
    'PLACEHOLDER'=('$$IP_C$$','@Prompt(C)'),
    'PLACEHOLDER'=('$$IP_D$$','@Prompt(D)')
    While validating the above code we are getting an error.
    I have attached the snapshot of that error for your reference. Please find the attachment and help me in resolving it.
    Thanks in advance.

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

  • Calculation view with input parameters

    Hello there.
    I got a calculation with that expects 2 input parameters.
    But now I have to created another calculation view that import this calculation view.
    How can I pass these 2 parameters using sqlscript?
      My script so far
      cv1 = CE_CALC_VIEW("_SYS_BIC"."calc_1",["CR"],'"COMPANY"=''7000''');
    I must pass 2 parameters in this  "_SYS_BIC"."calc_1" table

    Hi Tiago,
    as I am aware, you cannot pass input parameters to CE function.
    You can try using regular SQL syntax:
    SELECT "CR" FROM "_SYS_BIC"."calc_1"
    WHERE "COMPANY" = 7000
    (PLACEHOLDER."$$PARAM_1$$" => VALUE_1,
    PLACEHOLDER."$$PARAM_2$$" => VALUE_2)

  • Dynamic Imagelink Component - Calling Impl method with input parameter

    Hi All,
    I have requirement where Imagelinks are created dynamically on the pageload. Generated the components and the components are displayed on the jspx.
    Now when I click the image link, a method in AMImpl should invoke and this method takes some input parameters.
    I am able to call the method successfully in AMimpl with the help of below code. But I could not understand how to pass the input parameters to that method.
                               RichCommandImageLink lockimageLink =
                                new RichCommandImageLink();
                            lockimageLink.setIcon("icon.png");
                            lockimageLink.setId("icon" + index);                   
                            MethodExpression me =
                                JSFUtils.getMethodExpression("#{bindings." +
                                                             "MyMethodName" +
                                                             ".execute}");
                            lockimageLink.addActionListener(new MethodExpressionActionListener(me));
      public static MethodExpression getMethodExpression(String name) { 
       Class [] argtypes = new Class[1]; 
       argtypes[0] = ActionEvent.class; 
       FacesContext facesCtx = FacesContext.getCurrentInstance(); 
       Application app = facesCtx.getApplication(); 
       ExpressionFactory elFactory = app.getExpressionFactory(); 
       ELContext elContext = facesCtx.getELContext(); 
       return elFactory.createMethodExpression(elContext,name,null,argtypes); 
      } Can some one please suggest how to pass input parameters to the Impl method.
    Jdeveloper Version : 11.1.1.4.0
    Thanks,
    Morgan.
    Edited by: 900114 on May 12, 2012 11:23 PM

    You can use the below method to call an AMImpl method. You can pass parameters as well to the AMImpl method.
    DCBindingContainer bindings = getDCBindingContainer();
    OperationBinding ob = bc.getOperationBinding("MyMethodName");
    Map m = ob.getParamsMap();
    ob.put("paramName", "paramValue"); paramName is the parameter in AMImpl and paramValue is the value to be passed.
    ob.execute();
    Where getDCBindingContainer() is:
    public DCBindingContainer getDCBindingContainer() {
    ExpressionFactory exprFactory;
    ELContext elContext;
    ValueExpression valueExpression;
    DCBindingContainer dcBindingContainer;
    FacesContext facesContext = FacesContext.getCurrentInstance();
    exprFactory = facesContext.getApplication().getExpressionFactory();
    elContext = facesContext.getELContext();
    valueExpression =
    exprFactory.createValueExpression(elContext, "#{bindings}",
    Object.class);
    dcBindingContainer =
    (DCBindingContainer)valueExpression.getValue(elContext);
    return dcBindingContainer;
    Hope this helps
    Edited by: umesh.agarwal on May 13, 2012 12:10 AM
    Edited by: umesh.agarwal on May 13, 2012 12:10 AM

Maybe you are looking for

  • Problem with Edit Preferences in iTunes

    I am having problems with my iTunes, which keeps reverting to a default file on my laptop rather than the file on the NAS drive I want it to use as a reference point for all my music.  This is particularly strange as I have just changed my NAS drive

  • Digital media card reader

    hi  when i using digital media crad ,it says very slow response and called not not responding and after 2-3 min its ok  and i if i try to move another picture it say the same . i m very fed up to hp pavillion g6 1159 laptop  ,  pls tell me if any sol

  • Video buffer amount

    So, I have an application that is stand-alone and will run on a kiosk. It is running on a vertically mounted monitor at 768x1366. Imagine a set of graphic panels all lined up next to each other, there are 13 of them and each one fills the screen comp

  • HT4528 I can't get siri to start when holding down home button?

    I can't get siri to start when holding down the home button?

  • Placing links in tables

    Hi, I need to insert links instead of plain text on the first column of a Table that I use to show the results of a search. I've managed to replace the TextView with a LinkToAction and now the text on the first column is clickable. Now all that I nee