XSODATA for Parametrized view

Hi Friends
I have a parametrized view (using place holders), which i need to expose it with xsodata.
I tried with different options. But none worked. Could someone guide, how to expose a parametrized view using XSODATA?
Regards
Giri

Hi Giri,
Have you read this blog:
REST your Models on SAP HANA XS
At the end there is an appendix for exposing a calculation view with input parameters, I followed and it worked, can you explain more in details how are you proceeding?
Appendix
Calculation View with a Single Input Paramater:
service  {
      "copa::PLANNED_ACTUAL_SALES " as "PlannedvsActualCalcView"
      keys generate local "ID"
      aggregates always
      parameters via entity; 
http://server:port/copaxs/odata/PlannedvsActualCalcView.xsodata/
PlannedvsActualCalcViewWithInputParamsParameters(‘.20’)/ Results?$select=salesorg,material,anetrevn&$filter=startswith(material,’DPC')
Calculation View with multiple Input Paramaters:
service  {
      "copa::PLANNED_ACTUAL_SALES " as "PlannedvsActualCalcView"
      keys generate local "ID"
      aggregates always
      parameters via entity "InputParams";
http://server:port/copaxs/odata/PlannedvsActualCalcView.xsodata/
InputParams(ip_discount=’.20’,ip_region=’NW’)/Results?$select=salesorg,material,anetrevn&$filter=startswith(material,'DPC')&$format=json

Similar Messages

  • Parametric View Issue

    Hi,
    I have a project where I want to put a Parametric View.
    One of the project variables for this view is a date that is not established in the first step of the process so until that point where it is established it is null. In the parametric view I have a between condition based on this date. My expectation was that the requests with the date to null would come when applying the filter, in other words if it is null the condition is not consider in the filter, but they do not appear.
    I do not know if this is how it is supposed to work or it is a bug.
    If it is not a bug has somebody else faced this problem and has a solution for the same?
    Thank you very much
    Kind regards

    Hi,
    Even I tried to enable the check box "Is Parametric" in my custom view on cerain fields , but it doesn't seem to get me the results when I apply them in my Inbox. I'm confused if this is bug in my version (Version: 10.3.1.0) or am I missing something.
    Regards,
    Sri lakshmi.
    Edited by: Sri Lakshmi on 09-Jun-2010 02:36

  • Parametric view

    Are there any way how to create parametric view?
    Or will be it in the future versions?
    Anything as create view v_test (col1,:col_par) as select col1 from test where col2=:col_par
    and use it as select * from v_test(par)
    This is very simple view, but for more complex view it can save many of query time. Now I use instance specific variable for this view, but it must call package function to get value and value must be set before select.

    Hi,
    Even I tried to enable the check box "Is Parametric" in my custom view on cerain fields , but it doesn't seem to get me the results when I apply them in my Inbox. I'm confused if this is bug in my version (Version: 10.3.1.0) or am I missing something.
    Regards,
    Sri lakshmi.
    Edited by: Sri Lakshmi on 09-Jun-2010 02:36

  • I want to uninstall Acrobat reader. I got support in the community to access my HD and to send to trash the internet plugs in for PDF viewer, but when I try to download a PDF from internet a black screen appears and preview doesn't open

    I want to uninstall Acrobat reader. I got support in the community to access my HD and to send to trash the internet plugs in for PDF viewer, but when I try to download a PDF from internet a black screen appears and preview doesn't open

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Refresh time for Materialized View

    Hi,
    I have created a materialized view and set it to refresh everyday at 4 am . When I check the status of the job , it shows the refresh timing between 20 mins to 4 hours . That means , some times it takes 20 mins to refresh , some times 40 , some time 2 hours and some times up to 4 hours. Any reason for the wide range ? Here is the query for the view.
    CREATE MATERIALIZED VIEW BDS_COST_CATEGORY_MV
      ORGANIZATION HEAP 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"
      BUILD IMMEDIATE
      USING INDEX
      REFRESH COMPLETE ON DEMAND START WITH sysdate+0 NEXT ROUND(SYSDATE + 1) + 4/24
      USING DEFAULT LOCAL ROLLBACK SEGMENT
      DISABLE QUERY REWRITE
      AS    SELECT  AC.ACCOUNT_MANAGER, AC.ACCOUNT_NUMBER,
                    AC.ACCOUNT_NAME, DIV.DIVISION_NUMBER, ITEM.CODE_ID,
                    ITEM.CODE_NAME COST_CATEGORY_ITEM,
                    TO_NUMBER(TO_CHAR(AP.FIRST_DAY,'YYYY')) PERIOD_YEAR, 
                    AP.FIRST_DAY PERIOD,
                    SUM(NVL(AD.CURRENT_EXPENSE,0)) EXPENSE
            FROM ACCOUNTS AC, PERSONNEL AC_MGR, DIVISIONS DIV, ASR_HEADERS AH , ASR_DETAILS AD, CODES ITEM, CODES COSTCAT, ALL_PERIODS  AP,
                    CODES COST_ELEMENT, ACCOUNTING_BASE_GROUP ABG
            WHERE   AC.ACCOUNT_MANAGER = AC_MGR.PERSONNEL_ID
            AND     AC_MGR.DIVISION_ID = DIV.DIVISION_ID (+)
            AND     AC.ACCOUNT_ID = AH.ACCOUNT_ID
            AND     AH.ASR_HEADER_ID = AD.ASR_HEADER_ID
            AND     AH.PERIOD_ASR = AP.FISCAL_SYSTEM_PERIOD_CAL_YR_EQ||', '|| AP.FISCAL_YEAR
            AND     ABG.COST_ELEMENT_CAT_ITEM_ID = ITEM.CODE_ID 
            AND     COST_ELEMENT.CODE_ID = ABG.COST_ELEMENT_ID
            AND     AD.OBJECT_CODE = COST_ELEMENT.CODE_VALUE
            AND     ITEM.CODE_PARENT_ID = COSTCAT.CODE_ID
            AND     ( COSTCAT.CODE_NAME = 'BDS' OR ( COSTCAT.CODE_NAME = 'Base' AND ITEM.CODE_NAME = 'MTDC'))
            GROUP BY AC.ACCOUNT_MANAGER,AC.ACCOUNT_NUMBER, AC.ACCOUNT_NAME,
                     DIV.DIVISION_NUMBER, ITEM.CODE_ID, ITEM.CODE_NAME, 
                     TO_NUMBER(TO_CHAR(AP.FIRST_DAY,'YYYY')), AP.FIRST_DAY

    This appears to be a duplicate of Refreshing Materilized view. I replied on the other thread.
    Justin

  • Timeouts for Discoverer Viewer and SSO

    We've enabled SSO for Discoverer Viewer 9.0.4. We set the Viewer timeout in the web.xml file to 120 minutes. We set the SSO Global user Inactivity Timeout to 240 minutes. Viewer sessions don't timeout at 120 minutes. Does the GUIT timeout override the Viewer timeout?
    --- Steve

    Hi
    As far as I know, the Viewer sessions don't time out using the Discoverer settings. These only affect Discoverer Plus. The SSO timeouts will apply though. Out of interest can you tell in which folder was the web.xml you modified?
    By the way, 240 sounds an awful long time to allow an SSO connection to stay active.
    Best wishes
    Michael

  • How to create one filter for N views in the same report

    Hello everybody,
    I need to have the same filter for diferent views that I have in the same report. Anyone knows how to do it?
    Thanks in advance
    Mario Mesquita

    Hi,
    In India site, you can create a SMTP connector which point to the local ISP.
    Thanks.
    Niko Cheng
    TechNet Community Support

  • Action reference in the MAIN view for other Views

    Hi Experts,
    I have created a view(MAIN) that contains SUBMIT button and also included four other views(Using ViewContainerUIElement) in the MAIN view itslef. So am calling the respective view based on some certain condition from MAIN view.
    Now my problem is, am using  check_mandatory_attr_on_view() method which is being called on SUBMIT action from MAIN view of WDDOBEFOREACTION. But it is not checking Required Fields from other views. It checks the Required Fields only in the MAIN view.
    I know that I want to call the reference of other views in MAIN view, but how can I do it?
    Please help me, as how I can check the Required fields on action of SUBMIT button in MAIN view for other views.
    BR,
    RAM.

    Hi,
    Though am in MAIN view, If i clicks the submit button it checks the Required fields on both MAIN and Sub views, where still I have not called the Sub view.
    If you didn't call the sub view, the WDDOINIT method of your sub view wouldn't have been triggered and so the sub view reference is not set in the component controller, isn't it.?
    OR you are calling sub view separately in the initial state and get the reference and then in your MAIN view calling the sub view based on condition in the View Container UI..?
    If so, create an attribute in your Main view (say sub_view_name of type string) and then use the below code to get the current sub view name and then pass the corresponding sub view reference:
    DATA:lr_view_controller    type ref to        IF_WD_VIEW_CONTROLLER,
           lr_main_view_usage  type ref to        IF_WD_RR_VIEW_USAGE.
           lr_vc_assignment      type ref to        IF_WD_RR_VIEW_CNT_ASSIGNMENT.
           lr_view_usage           type ref to        IF_WD_RR_VIEW_USAGE.
           lr_t_views                 type                WDRR_VCA_OBJECTS.
           lr_s_view                  like line of        lr_t_views.
           lr_view                     type ref to        if_wd_rr_view.    
          lr_view_controller = wd_this->wd_get_api( ).
        lr_main_view_usage = lr_view_controller->GET_VIEW_USAGE( ).
       lr_t_views  = lr_main_view_usage->GET_VIEW_CNT_ASSIGNMENTS( ). "This will return all the View Container assignments.
    * Now loop over all the View containers and get the reference of embedding view.
       loop at lr_t_views  into lr_s_view .
          lr_vc_assignment = lr_s_view-VIEW_CNT_ASSIGNMENT.
          lr_view_usage  = lr_vc_assignment->GET_DEFAULT_VIEW_USAGE( ). " This will return view usage reference
          lr_view = lr_view_usage->get_view( ). " This will have the meta info of view
          wd_this->sub_view_name = lr_view->get_name( ).   
       endloop.
    Now in onAction submit,
    CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW(
                                  EXPORTING
                                   view_controller =  lr_view_controller " MAin view reference
    case wd_this->sub_view_name.
    when 'SUB_VIEW1'.
    CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW(
                                  EXPORTING
                                   view_controller = wd_comp_controller->gr_emb_view1.
    when 'SUB_VIEW2'.
    CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW(
                                  EXPORTING
                                   view_controller = wd_comp_controller->gr_emb_view2.
    Or, alternatively; create all the nodes(of sub views) in component controller, then map all those to MAIN view, then read the required node attributes and validate manually.
    hope this helps u,
    Regards,
    Kiran

  • HOw to start the project for first view in webdynpro application

    Hi,I am having  a problem regarding scenario for customer feedback for portal end user i.e..wen user login to a application for feedback there it check the Id of the user wether it had given the feedback or not by comparing the Id with the database Idu2019s from SQLserver.If the feedback is thr of that Id then a view shud say u hav already given feedback otherwise feedback form shud open ,the user will giv feedback and closes by thanking with other view.My problem is how to openthe  view were it will compare the userlogin Id with the database Id to move further.How shud I handle this scenario for first view.I am creating this application in webdynpro.In this project how shud I manage the viewsu2026

    Hanif,
    you can create a webdynpro application and create an iview and set the height and width to 0 .inside that webdynpro application open a popup that provides the feedback form .and you invoke this popup window in the WDDOINIT() or WDDOMODIFYVIEW() of the webdynpro main view.
    apart from this you need to get the logged user id in main view and get the output from database whether you want to open the feedback form
    check this forum on developing webdynpro application
    Web Dynpro Java
    Thanks
    Bala Duvvuri

  • How to create EVENTS for a View Cluster.

    Hi Tech Gurus,
    I have created a view cluster on 5 tables. I need to do a validation and this can be done by using events. But i am unable to create a EVENT for the View Cluster. Could anyone please tell me how to create events for a View Cluster.
    Thanks in advance for your esteemed replies.
    Regards,
    Raghavendra Goutham P.

    Hello Pasapula
    When you are in the View Cluster maintenance dialog (SE54) click on dialog "Events".
    Below the field for the view cluster you have an additional field <b>FORM routines main program</b>. There you have to add the main program containing the FORM routines called by the VC events.
    For example: I had defined a normal report containing an include with all the FORM routines. The report contains only the following lines of coding:
    report zus_0120_u1.
    * Common Data und access routines for user exits in VC maintenance
    include LSVCMCOD.
    include  zus_0120_f1. "FORM routines for VC events
    Now in the "Events" dialog of the view cluster maintenance you assign your FORM routines to the events.
    Regards
      Uwe

  • How to create variant for table/view ?

    Hi,
    When I go through SM30, I find a radio button called variant. I don't know the effect.
    Can anyone tell me how to create variant for table / view ?
    I want to know when we need to create variant for table/view.
    Best regards,
    Chris Gu

    hi ,
    Whenever you start a program in which selection screens are defined, the system displays a set of input fields for database-specific and program-specific selections. To select a certain set of data, you enter an appropriate range of values.
    For further information about selection screens, refer to Selection Screens in the ABAP User's Guide.
    If you often run the same program with the same set of selections (for example, to create a monthly statistical report), you can save the values in a selection set called a variant
    Procedure
    To create a new variant:
           1.      On the ABAP Editor initial screen, enter the name of the program for which you want to create a variant, select Variants, and choose Change.
           2.      On the variant maintenance initial screen, enter the name of the variant to be created.
    Note the naming convention for variants (see below).
           3.      Choose Create.
    If the program has more than one selection screen, a dialog box for screen assignment appears. The dialog box does not appear if the program only has one selection screen. The selection screen appears in this case.
           4.      If there is more than one selection screen, select the screens for which you want to create the variant
    5.      Choose Continue.
    The (first) selection screen for the report appears.
    If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them and to fill the fields with values. If you keep scrolling forwards, the Continue button appears on the last selection screen.
           6.      Enter the desired selection values, including multiple selection and dynamic selection.
           7.      Choose Continue.

  • How to create transaction code for maintenance view

    hai friends,
    i hope every thing goes good.
    i have doubt, how to create transaction code for maintenance view. I created view for tranperant table and now i want to create transaction code for the view.
    i tried and i donot know the screen number and program name and where can i give the view name.
    if any one know please post in details.
    thanks in advance.

    Hi Elam,
    You need to create a "Parameter Transaction".
    What this means is that you will have a transaction (let's call it "ZMAINT") which calls "SM30" and passes in your table name.
    Go to transaction SE93 and enter your new transaction code. Enter in the Tcode description and choose "Transaction with Parameters" (it shouldbe the last radio button).
    Enter in the default transaction "SM30" and tick the "Skip Initial Screen" check box. Hit Enter.
    Now scroll to the bottom of the screen and you will see a Table Control where you will need to enter in the values to the SM30 selection screen.
    Because you hit ENTER, the program will have loaded in the Selection Screen parameters into it's memory. Hit the drop down for "Name of Screen Field" and select "VIEWNAME" and then enter in your Z Table in the "Value" column.
    Now go to the next line and hit the drop down and select "UPDATE" in the "Name of Screen Field". Enter in a "X" in the value column.
    Now save the transaction and there you have it.
    Hope this helps.
    Cheers,
    Pat.
    PS. Kindly assign Reward Points to the posts you find helpful.

  • Is there a way for AutoVue viewer (JVue/VueBean object) to cancel long lasting loading/rendering operation?

    Is there a way for AutoVue viewer (JVue/VueBean object) to cancel long lasting loading/rendering operation? In our integration when we try to switch from a document being loading on another one we can get an error message “Cannot load page” (but the document is shown after that). Or if we try to stop loading document by calling jVue.closeDocument() we can see everlasting progress bar and indicator “Loading…” on the status bar.

    No, it is not possible

  • Can a web service be used as the datasource for a View Object?

    Has anyone used a web service as the datasource for a View Object?
    I am trying to do the same thing as "Publishing BC4J Components as a Web Service" example, except I want to recreate the View Objects on the client so that I can iterate through them and display them on a web page.
    I probably have two choices:
    1. Use the web service as the datasource.
    2. Use a file as the datasource with no data and then populate the View Objects from the XML from the Web Service.
    Please advise.
    Thank you.
    Richard Catlin
    SAIC

    You can adapt the examples provided in the BC4J Toy Store demo for how to build a programmatically-populated view object to create a view object that fetches its data from a web service.
    The methods that you need to override are the same for any kind of programmatically-populated view object.

  • Data for Classification View in Material Master

    Dear all,
    Can someone tell where the data for classification view is stored ??
    We are running a BDC and need to check whether classification view is maintained or not ??
    Thanks in Advance
    Regards,
    Vivek K

    Hi,
    Check the table MARA, there is a Field VPSTA. in this field the Material views will be stores with single charecters. so check for the Clasification view charecter
    also  it's PSTAT in MARA and MARC.
    Work scheduling                A                   
    Accounting                     B                   
    <b>Classification                 C</b>                   
    MRP                            D                   
    Purchasing                     E                   
    Production resources/tools     F                   
    Costing                        G                   
    Basic data                     K                   
    Storage                        L                   
    Forecasting                    P                   
    Quality management             Q                   
    Warehouse management           S                   
    Sales                          V                   
    Plant stocks                   X                   
    Storage location stocks        Z         
    Regards
    Sudheer
    Message was edited by:
            Sudheer Junnuthula

Maybe you are looking for

  • How do I get a video track in Logic Pro 9?

    I'm trying to sync a video I have recorded in Photo Booth with the music I recorded via my mixer into Logic Pro 9. I have tried dragging the video into Logic and it only gives me options like bring in the audio (also another issue is that the audio h

  • Replicate customer and vendor from ECC to CRM

    Hi experts, Is it possible to replicate customers and vendors extending the same BP in CRM? If i had one customer in ecc that is a vendor too, can I configure or implement some badi in middleware to replicate changes to the same BP in crm? Best regar

  • Exporting images with subfolders by album name

    Hello, I have a project with approx 800 images, organized in 12 different albums. Now I want to export all the images in a folder, which should contains 12 subfolders named with the original album names. For example, I have a project named "friends"

  • Which book do you recommend for 'MySQL 5 Certified Associate Exam' exam?

    Hello, this is my first post. I am familiar with SQL and I use it occasionally, but I decided to get certified. Which book and material would you recommend me studying to sit the 1Z0-870 exam? Online and college courses are too expensive for me and I

  • How can I get iTunes to transfer only the HD version???

    Hello, Is there a way I can set iTunes to transfer only the HD version of a video to AppleTV, and not include the SD version, while keeping both versions in the iTunes library? Currently, both versions are being transferred when I sync. Regards.