Creating Queries Programmatically

Hi,
I need to create the queries programmatically using the APIs in my 7.1 Laptop webdynpro application. when I try to use the class QueryRuntime to instantiate the query, the project is not able to reference to the package com.sap.ip.me.api.persist.query.QueryRuntime.
I want to know how to create the queries programmatically using the above class.
Regards,
Priya

Hi,
I am sure ( although without having testet it myself ) that the administrative EJBs behind the portal administration tool could be used here.
consult the java - doc for theese classes.
Are you sure this is the only solution to the problem ? If you could elaborate on the problem leading to you wanting to create portlets prgrammatically perhaps the community could provide you with another solution if there are any.
- Anders M.

Similar Messages

  • FM for Create ASN programmatically in SNC (Supplier Network Collaboration)

    Hello,
    I am working in SNC (Supplier Network Collaboration) with version SAP SCM 7.0. I wanted to create ASN programmatically.
    Can anyone tell me the ways possible to create ASN programmatically using purchasing information?
    Thanks & Regards,
    Nitin

    HI Jens,
    In our forum, we discussed topic about BizTalk & SAP Integration before, hope it helps you.BizTalk
    & SAP Integration
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • User unable to create queries on a multiprovider that exists in production.

    Helo,
        I have an  issue where one of the users  is unable to create queries in BE X on a multiprovider as the multiprovider is not geting listed .He gets the message "No objects found ".
    I have Checked and the multiprovider exist in test and production
    We replicated the same  user's production id into a test id in Test system , and the user is able to see the mutiprovider geting listed to create the query
    Not sure what is the problem in production, Any help on this will be very useful.
    Regards
    Jayu

    Hi,
    That User may not have the authorizations on that InfoArea and MP, so check it. See SAP help on Roles and Authorizations.
    http://help.sap.com/saphelp_nw70/helpdata/en/44/599b3c494d8e15e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/be/076f3b6c980c3be10000000a11402f/frameset.htm
    Using RSECADMIN we can define the roles and authorizations in BI 7.
    See some good posting sin SDN
    First define the Roles as per your business and then assign the Objects i.e. Plant . Division etc..
    http://wiki.sdn.sap.com/wiki/display/BI/AnalysisAuthorizationsinBI-+approach
    http://help.sap.com/saphelp_nw70/helpdata/en/44/599b3c494d8e15e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/659fa0a2-0a01-0010-b39c-8f92b19fbfea
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a6c54319-0e01-0010-20a4-fb81ad32f330
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ded59342-0a01-0010-da92-f6b72d98f144
    Thanks
    Reddy

  • How to create queries on multiproviders& what are steps to be taken.

    Hi all,
    How to create queries on multiproviders& what are steps has to be take care.
    Thanks,
    cheta.

    Hi,
    Following scenario for  sample for slow moving items for multiproviders.
    Slow Moving Item Scenario
    You want to define a query that displays all products that have been purchased only
    infrequently or not at all. In other words, the query is also display characteristic values for
    which no transaction data or only low values exist for the selected period.
    Procedure
    In the Administrator Workbench;
    1. Create a MultiProvider consisting of a revenue InfoCube, containing the InfoObject
    Material (0MATERIAL), and the InfoObject 0MATERIAL. The InfoObject must be set as
    an InfoProvider in InfoObject maintenance. In other words, you need to have assigned
    the InfoObject to an InfoArea. (also refer to Tab Page: Master Data/texts [Ext.]).
    In the BEx Analyzer:
    2. Select your MultiProvider in the Query Designer.
    3. Define a query that contains the InfoObject 1ROWCOUNT in the columns.
    The InfoObject 1ROWCOUNT is contained in all “flat” InfoProviders, that is, in all
    InfoObjects and ODS objects. It counts the number of records in the InfoProvider.
    In this scenario, you can see from the row number display whether or nor values
    from the InfoProvider InfoObject are really displayed.
    4. Save the query and execute it. All values are now displayed, including those for materials
    that were not purchased.
    If you filter by time (0CALYEAR, for example), values from the InfoProvider
    InfoObjects are not displayed since 0CALYEAR is not an attribute of
    0MATERIAL. You can see this from the absence of values in the 1ROWCOUNT
    column in the query. If you want to restrict by time, you need to proceed as
    follows:
    Constant Selection for the InfoObject
    You need to set the constant selection for the 1ROWCOUNT key figure in order to be able to
    set a filter by time in this query.
    1. In the Query Designer, via the context menu for 1ROWCOUNT, choose Edit.
    2. On the left hand half of the screen, under the data package dimension, select the
    characteristic InfoProvider (0INFOPROV) and drag it into the right-hand screen area.
    3. From the context menu for the InfoProvider, choose Restrict, and restrict across the
    InfoProvider InfoObject.
    4. Also from the context menu for the InfoProvider, choose the function Constant Selection.
    5. Save the query and execute it. You can now also set a filter for a time characteristic, the
    materials display remains as it was.
    Displaying Slow Moving Items
    If you want to display a list of slow moving items, excluding products that are selling well, you
    need to proceed as follows:
    1. In the Query Designer, via the context menu for 1ROWCOUNT, choose Edit.
    2. Via the context menu for InfoProvider, choose the function Display Empty Values. Also
    select Constant Selection.
    3. Save the query and execute it. The result is that the system displays the materials for
    which there was no revenue.
    Displaying Products with Small Revenues
    If you want to display a list of products that have not been sold or have only been selling
    badly, you need to proceed as follows:
    1. Set constant selection as described above, but do not select the display empty values
    function.
    2. In the Query Designer, define a condition for the 0MATERIAL InfoObject. Specify a value
    that is to be the upper limit for a bad sale.
    3. Save the query and execute it. The result is that the system displays all materials that
    have not been sold or have been selling badly.
    Thanks,
    Sankar M

  • Creating Builds Programmatically LV8.0.1

    Salut.
    From LV8.0.1 help :
    QUOTE
    Creating Builds Programmatically
    You can use the BuildTargetBuildSpecification VI located in the vi.lib\AppBuilder directory to build source distributions programmatically from build specifications. If you have the Application Builder installed, you can use the VI to build stand-alone applications, shared libraries, Windows installers, and zip files programmatically. The VI is not available on the Functions palette.
    Note The LabVIEW Professional Development System includes the Application Builder. If you use the LabVIEW Base Package or Full Development System, you can purchase the Application Builder separately by visiting the National Instruments Web site.
    The BuildTargetBuildSpecification VI creates a build from a build specification that you specify in the Name of build specification input. If you do not specify a build specification, the VI creates builds from all build specifications in the specified LabVIEW project. You must specify the path and filename of the project to use in the Path to project input.
    If you want the VI to create a build from a build specification located in a target that is not My Computer, specify a target in the Name of target input.
    After you run the VI, you can view the path to the completed build files in the Generated files output.
    END QUOTE
    1-
    QUOTE After you run the VI, you can view the path to the completed build files in the Generated files output.END QUOTE
    Does someone know how to also get the created installer files? (i only get the exe output files)
    2- How can i start the build status feedback window when using the BuildTargetBuildSpecification.vi?

    Hi jacemdom,
    I hope you're doing well.  I have tested building an Installer specification on my end, and I am seeing the same results.  The correctly passes in the appropriate build specification reference, but no files are actually generated as you have noticed.  I am currently looking for more documentation for you on the BuildTargetBuildSpecification as it is a relatively new feature.  Regarding the status window with this VI, it looks like that feature is currently unsupported.  I will verify this an update you with what I find.  Have a great day!
    Thaison V
    Applications Engineer
    National Instruments

  • Can i create pdx programmatically in c# ?

    Can i create pdx programmatically in c# ? If yes, then is it must to use adobe sdk for it ?

    I did this using an unpublished API - it took some experimentation but worked great at the end. I used a page template in release 2 of Portal. the idea was that when a user added a project we would programatically create a page for that project. In that manner their portal would end up with several hundred pages, one for each project, that were created and look similar as they added project information for their company. Here is an example from the code using Oracle's API, wwpob_api_page.create_page - if you open up the specification for this package in a pl/sql browser such as TOAD you will see some comments that help explain how to use it:
              p_page_id := WWPOB_API_PAGE.create_page
    (p_id => null
    ,p_parent_id => 1
    ,p_type_id => WWPOB_API_PAGE.PAGETYPE_PORTLETS
    ,p_type_siteid => 0
    ,p_type_value => 1
    ,p_name => p_page_url_info
    ,p_title => v_page_title
    ,p_category_id => null
    ,p_site_id => p_page_group_id
    ,p_plsql_executemode => null
    ,p_username => v_user_name
    ,p_description => v_page_description
    ,p_image => null
    ,p_titleimage => null
    ,p_rolloverimage => null
    ,p_styleid => v_style_id
    ,p_style_siteid => 0
    ,p_exposure => WWPOB_API_PAGE.DONTEXPOSE_AS_PORTLET
    ,p_ispublic => WWPOB_API_PAGE.PAGE_PRIVATE
    ,p_inheritpriv => WWPOB_API_PAGE.OWN_PRIV
    ,p_isready => 1
    ,p_cachemode => WWPOB_API_PAGE.CACHE_MODE_PING
    ,p_cacheexpires => null
    ,p_template_id => p_template_id
    ,p_template_siteid => p_page_group_id
    ,p_allow_style => WWPOB_API_PAGE.NO_PAGE_STYLE
    ,p_allow_acl => WWPOB_API_PAGE.ALLOW_PAGE_ACL
    ,p_istemplate => WWPOB_API_PAGE.PAGE_TEMPLATE_NO
    ,p_dav_id => null
    ,p_init_jspfile => null
    ,p_displaybanner => WWPOB_API_PAGE.SHOW_BANNER
    ,p_region_type => WWPOB_API_REGION.region_type_portlet
    ,p_create_region => true
    ,p_navpage_id => null
    ,p_navpage_siteid => null
    ,p_uitemplate => null
    ,p_template_ispublic => WWPOB_API_PAGE.PAGE_TEMPLATE_PRIVATE
    ,p_use_def_template => false
    ,p_copy_from_template => true
    Good luck - Art

  • Creating Items Programmatically?

    Hi,
    What's the easiest way to create items programmatically? Our goal is to push new items (and later business partners & sales orders) into SAP without wasting valuable staff time on this kind of tedious stuff.
    I'm assuming it's not the obvious answer of simply INSERT'ing into the relevant tables (OITM etc)
    Do we need to buy the SDK to do what I'm asking?
    If someone can give me a pointer in the right direction, I'd really appreciate it!
    Many thanks,
    William.

    Hi there,
    I don't really undersand your question. If it is for data take on purposes, you can use DTW. You can use SDK if you need to stuff "automatically". You can write a Windows service that runs in the background, using SDK or an Add-on that will execute in the normal ways.
    Hope this helps.
    Kind regards

  • How to create Request programmatically to trigger Approval Process

    My scenario is dificult... I need to start Approval Process when the user want to assign AD Resource to other user without Request service. So I want to create Request programmatically from Event Handler to start Approval Process for Provision Resource request type.
    Is this right Way?

    If you talk of request, you will have to use RequestService. You can use code to work with the RequestService to create the request and the approval for you.
    -Bikash

  • RRMX for executing and creating queries

    Hi,
    I have some users which are able only to create queries and another group which are only able to execute them.
    Which auth object and values should I consider in order to distinguish these 2 roles?
    Thanks and regards
    FedeX

    Hello, Firstly, may I suggest that the subject is misleading for the question asked.
    Transaction RRMX only excute the BEX analyzer add in.
    In BI/BW the authorization objects that govern whether the user is authorized to display/ execute / create / change queries are S_RS_COMP and S_RS_COMP1.
    Both these objects work in tandem. Where as S_RS_COMP covers the infocube, info area authorizations along with activity and Report IDs, S_RS_COMP1 covers the authorization to execute reports (queries) created by author /Owner  (SAP username). example: If the owner field in S_RS_COMP1 has user ID PTERRY01, a user who is assigned the role containing this authorization will only be able to execute queries created by the user PTERRY01.
    Standard Activities 03, 16 allow the user to display / execute reports while 01,02 determine whether the user can create / change reports and if he can, what reports example: If the acitivty 01 is combined with report ID Y*, the user can only create queries whose names start with Y.
    And please note, RRMX (Bex analyzer) does not allow you to create queries, Query designer does (link from BEX Analyzer opens up Designer).
    Regards,
    Prashant

  • Creating Presentations Programmatically

    Hi,
    I would like to know how to create presentations programmatically using PresentationBuilder, PresentationCustomizerContext and Presentation objects.
    Thanks in advance
    Ajesh A

    Hi,
    You can see an example of that in BI Beans samples - open the Java client project. You can donwload the BI Beans samples from here:
    http://www.oracle.com/technology/products/bib/index.html
    You can also generate a BI Beans default Java client class in JDeveloper and look at the generated code. To generate a Java client class, follow these steps:
    1. In JDeveloper create a new workspace
    2. Create a new project
    3. Create a new BIDesigner and specify the connection details
    4. Right click on BI Designer, and in the New Gallerychoose Business Intelligence Beans -> Client Tier for OLAP -> Java client class to generate a default Java client application.
    Hope this helps
    BI Beans PM

  • Creating portlet programmatically

    Hi dev2dev
    I want to create portlet programmatically
    if there is any hints or package related pls do mail me
    Thanks n Regards
    Surya
    [email protected]

    Hi,
    I am sure ( although without having testet it myself ) that the administrative EJBs behind the portal administration tool could be used here.
    consult the java - doc for theese classes.
    Are you sure this is the only solution to the problem ? If you could elaborate on the problem leading to you wanting to create portlets prgrammatically perhaps the community could provide you with another solution if there are any.
    - Anders M.

  • Creating ViewAcessor programmatically

    I have created ViewObject at runtime by providing sql query. Now i want to create ViewAccessor so that i can validate one of the fields in newly created ViewObject but i could not find any help regarding creating ViewAccessor programmatically. Any Help?????

    Hi,
    I am sure ( although without having testet it myself ) that the administrative EJBs behind the portal administration tool could be used here.
    consult the java - doc for theese classes.
    Are you sure this is the only solution to the problem ? If you could elaborate on the problem leading to you wanting to create portlets prgrammatically perhaps the community could provide you with another solution if there are any.
    - Anders M.

  • I am struggling to learn  to create queries(using variables)

    Hi all,
    I am struggling to learn  to create queries(using variables)
    I want to learn from basics to all existing technics.
    (eg of each variable types and process types).
    if you have any docs please mail to <REMOVED>.
    thanks,
    BW Cheta

    check these links.
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/89533e5ff4d064e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/af/809528939d5b4fbff7e16a5bdc0d85/content.htm
    http://help.sap.com/search/highlightContent.jsp
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    thanks
    kevin.

  • Funcion process of creating queries

    i wonder how it works the process of creating queries, for example: the user logs in system, and then the user chooses to new document Web intelligence,  the user it builds your query. What are the servers responsible for these processes? items involved and what each of them do?
    thank you

    not answered

  • Unable to create queries on portal

    Hi,
    We have implemented Buyer business package on portal and all the ABAP views are coming up fine. For the POWL views like "My Vendors", My Materials" there is an option to create a new query and then view the results in the table based on the query.
    Now this step of creating query is coming up for a particular user. But for certain users the view shows message "No active queries" and there is no option to even create a new query.
    Please let me know what authorization do I need to give in ECC so that they can get this option of creating new queries.
    Regards,
    Namrata

    Hi,
    That User may not have the authorizations on that InfoArea and MP, so check it. See SAP help on Roles and Authorizations.
    http://help.sap.com/saphelp_nw70/helpdata/en/44/599b3c494d8e15e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/be/076f3b6c980c3be10000000a11402f/frameset.htm
    Using RSECADMIN we can define the roles and authorizations in BI 7.
    See some good posting sin SDN
    First define the Roles as per your business and then assign the Objects i.e. Plant . Division etc..
    http://wiki.sdn.sap.com/wiki/display/BI/AnalysisAuthorizationsinBI-+approach
    http://help.sap.com/saphelp_nw70/helpdata/en/44/599b3c494d8e15e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/659fa0a2-0a01-0010-b39c-8f92b19fbfea
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a6c54319-0e01-0010-20a4-fb81ad32f330
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ded59342-0a01-0010-da92-f6b72d98f144
    Thanks
    Reddy

Maybe you are looking for