New business query

Hi,
I have created a copy of Activity_Query BDoc and added one parameter and amended the where clause. Then I ran gnrwb / xml dump, BDox sych in MAS and created a new Business Query based on the new BDoc above. After that I generated the object and used it in the coding for a query. Unfortunately it does not work. When I call the method newbusinessquery("Z_ACTQuery") the query object remains on nothing.
When I test the Query in MAS I don't see a SLQ statement and I get the response "Query is empty".
Has anybody an advise?
Regards
Whityii

Hi Harish,
See this code sample, may be it will help you.
protected abstract Type BusinessObjectType { get; } 
/// <summary>
/// Test that the business object can be saved.
/// </summary>
[Test]
public virtual void CanBeSaved() {
   Save(BusinessObjectType);
/// <summary>
/// Test if the BusinessObject can be deleted.
/// </summary>
[Test]
public virtual void CanBeDeleted() {
   BusinessObject bizObject = Save(BusinessObjectType);
   Assert.IsTrue(bizObject .Delete(), "The object could not be deleted.");
/// <summary>
/// Helper method for saving and business object.
/// </summary>
/// <param name="bizObjectType">The type of business object to save.</param>
protected BusinessObject Save(Type bizObjectType) {
   BusinessObject bizObject = (BusinessObject) Activator.CreateInstance(BusinessObjectType);
   LoadProperties(bizObject);
   SaveAsIs(bizObject);
    return bizObject;
/// <summary>
/// Helper method for saving and business object in its current state.
/// </summary>
/// <param name="bizObject">The <c>BusinessObject</c> to save.</param>
private BusinessObject SaveAsIs(BusinessObject bizObject) {
   Assert.IsTrue(bizObject.Save(), "The " + bizObject.GetType().Name + " could not be saved.");
    return bizObject;
look at this link:
http://steve.emxsoftware.com/archive/2004/6/   for such samples
Hope this helps to give you an idea
Divya

Similar Messages

  • Business Query (or Business Objects) transparent sort

    Post Author: waldopepper
    CA Forum: Older Products
    We're using Business Query 6.5.1 to insert data into Excel and we've been doing for a while using a SQL 2000 database and making use of the useful 'transparent sort' feature that lets you order the query results by fields not actually in the selection.We've just started a similar project using a different database (same server) and whenever we create queries for this new database, the transparent sort button is disabled with Business Queries.The help file states: "Transparent sorts are only available if the database at your site supports them"
    It's definitely the database that is preventing this - we've used the same ODBC connection, Universe etc as the other DB that does work, just changing the DB it's accessing and it doesn't work when we switch databases to our new one.Does anyone have any idea what is preventing this? User permissions/rights, collation type etc?thanksw

    Hi Denis,
    Thanks for your response. I am aware that BO v5 is an outdated software but my client is still using it.
    I tried to replicate the BusinessQuery issue by using my citrix profile but I also got the same error whereas my colleague didn't have any BQ  issues with his profile.
    I assume that the citrix team had installed Business Objects v5 in shared environment on WTS long ago and all Citrix BO users will access Business query module with their own profiles. But the BOMAIN.key file didn't copied into shared folder which is under Business Objects installable folder and Citrix team had copied it at some local drive for some reason
    I asked the Citrix team to copy the BOMAIN.key file to affected user profile. Waiting to hear user response on output.
    Kind Regards,
    Srinivas

  • How to Create Approval for  New Business Partner Master Data

    Hello Experts,
    Is it possible for creation of an approval query such that while creation of New Business Partner:
    if
      a user forgets to add data in a field say TIN No. which is present in Tax Information,
    then
      the Business Partner Creation is withheld and sent for approval .
    Can someone please help me with creation of such an approval procedure ?
    Thanks and Regards,
    Manish Saluja

    Hello Manish...
    Sorry to say there is no way to create an approval template on master data (BP, item, etc).  However, we once had a similar problem and used the Alert Management to catch critical information that was missing during the creation process.  Everyone had to enter a credit limit with no exceptions.  I do not have the exact SQL in front of me, but it went something like this...
    Very simple...
    SELECT
    T0.CardCode,
    T0.CardName,
    T0.CreditLine
    FROM OCRD T0
    WHERE
    T0.CreditLine IS NULL
    Then we set an Alert Message to go off every minute and sent it to the Accounting Department.  Although it did not STOP them from adding the Business Partner, it sure did give someone the heads up to call the person who created it after looking at the Change Log.  Sort of a compromise...maybe that helps you???
    Take care - Zal

  • Business Query designer

    Hi All
    I try to see Bex Queries in Business Objects Designer. Bex  7.0
    Trouble : I try to click on the click box : Allow external queries in the Tab More (sorry I have them in German, so the translation is not perfect)
    and the click box is greyed (disabled)
    Any help will be welcomed
    Thanks in advance
    Vince

    Hi Santosh
    Thanks for your reply regarding the Business Query Designer Problem. I'm taking charge of the issue made by Vincent_BO.
    I think you missunderstood our Problem.
    It has nothing to do with the Language Configuration. When we create a new Query in Query Designer, it is possible to cross the Flag: "Allow External Access for this Query" under the right Panel: Options, register: advanced. ->please give me your email adress to send you the print screen of this configuration. Or is it possible to add a picture to this forum?
    Now the problem is:
    When we open an existing Query (from Bex) this Flag is disabled. (Please have a look on the following print screen again)
    How can we enable this flag? we allready tried to copy a existing Query but the flag is still disabled. Is it possible to change this configuration directly on the database? which field in wich table would this be?
    Thans so much for your help!!
    Yves

  • BUSINESS QUERY (used in lower version of BO 6.x) to be migrated to LIVE OFFICE u2013

    Post Author: shikhirgupta
    CA Forum: Migration to XI R2
    We have  requirement in one of the project whereby they have BUSINESS QUERY (used in lower version of BO 6.x) to be migrated to LIVE OFFICE u2013 new product available in BOXI r2.
    This cannot be migrated as BusinessQuery is no longer supported.
    So we need to do a manual task of getting these Business query converted into Live office.
    Please provide me with a writeup stating, what are the challenges, what is the process for converting BusinessQueries to live office, effort required to do the same.

    Post Author: shikhirgupta
    CA Forum: Migration to XI R2
    We have  requirement in one of the project whereby they have BUSINESS QUERY (used in lower version of BO 6.x) to be migrated to LIVE OFFICE u2013 new product available in BOXI r2.
    This cannot be migrated as BusinessQuery is no longer supported.
    So we need to do a manual task of getting these Business query converted into Live office.
    Please provide me with a writeup stating, what are the challenges, what is the process for converting BusinessQueries to live office, effort required to do the same.

  • New Business Object

    Hi Everyone,
    I am creating a new business object in MAS. and I am getting the following message.
    Unable to launch Business Object Wizard : BDoc validation is off - Switch on the Bdoc Validation from Tools-> Options-> BDoc Repository.
    I am getting confused with the following fields.
    Destination and Server.
    what should I enter in the above fields? Is it the IP address or the SID.
    Help will be appreciated.
    Thank you.
    Chan

    hi chanakya,
    u should enter sid only.
    see the links
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=newbusinessobjectsinMAS&adv=true&sdn_author_name=&sortby=cm_rnd_rankvalue
    www.businessobjects.com/pdf/product/catalog/platform/enterprise/xi3_whats_new.pdf -
    regards
    karthik
    if usefull reward me points

  • Creating a NEW Business Group, NO Security Profile generated

    Platform : R12 running on Linux86 --> FRESH install ( NOT Vision db )
    Resp : Global HRMS Super User
    Problem : No Security Profile generated for NEWLY created Business Group
    After creating a NEW business group ( ie. BG1 )
    I am able to see both BG1 and Setup Business Group ( I an view both Business Groups via Organization screen)
    When I access the Security Profile screen using the same resp "Global HRMS Super User"...
    I can ONLY see the default security profile ( Setup Business Group )...
    I am NOT able to view the default security profile ( BG1 ) that should have been created when I created my new business group earlier.
    NOTE : If I use the VISION db, and do the exact same thing... I can see both Security Profiles.. and both Business Groups.
    If I use the FRESH db, I can see both Business Groups... BUT... only 1 Security Profile... ( Setup Business Group )
    WHY ??
    Someone please HELP !!
    Thank-you
    Charlie :)

    hi charlie i tried the same in my vision instance, i am able to view my BG at the security profile level,
    when you query the system profiles,have you enabled the display checkbox at the responsibility level and try, or create an new responsibility and try... let me know the navigation you done clearly,
    Raj

  • ERROR :APP-PER-289381  While Creating New Business Group

    Hello,
    When i am creating new business group in new fresh implementation i am find this error.
    APP-PER-289381: A business group with this name exists. Please enter a different name.
    I have only Default business group: 'Setup Business group'
    Please can any provide a solution for this.. Your early response will highly appreciated.
    Thanks
    Mohsin

    Hi Mohsin,
    whatever name you are trying just run the below query to check if it already exists or not.
    select * from apps.per_business_groups where name = 'Give here the name you are tyring'
    If this returns any row means name already exist in deed. You can rename the existing business group and then create new on. However, if name doesnt exist, wait for any other reply in the forum.
    Thanks,
    Avinash

  • Can not see the menu of New Business Components Package in jdeveloper

    I am just follow the developer guide.
    and when I create the Business Components Package, the guide said that
    ========================================
    In the JDeveloper Navigator, select the OA Project where you want to create your package.
    From the main menu, choose File > New to open the New Object Gallery.
    In the Categories tree, expand the Business Tier node, and select Business Components (BC4J).
    In the Items list, select Business Components Package to open the Business Components Package Wizard. You can also right-click on the OA Project and select New Business Components Package to navigate directly to the Business Components Package Wizard.
    =====================================
    In fact I can not see the menu about Business Components (BC4J) in the File/new/buisness tier/Business Components (BC4J).
    I can only see the File/new/buisness tier/ADF Business Components.
    And can not find the "Business Components Package" under ADF Business Components either.
    I am using the JDev Extension for OA (p5856648_R12_GENERIC.zip) and EBS 12.0.0.
    And I create an OA Workspace and OA Project.
    can anyone help?

    James,
    Use search facility on forum. Chk thread Re: OAF Toolbox Tutorial Help - Search
    --Shiv                                                                                                                                                                                                                                                                       

  • Can not see new Power Query data sources?

    Hi, 
    New Power Query can connect to three new data sources: Sybase IQ, Exchange, Dynamics CRM Online
    http://office.microsoft.com/en-us/excel-help/whats-new-in-power-bi-ha104149776.aspx
    I just installed the latest Power Query and wanted to connect to CRM Online instance. For some reason I can not see these new data sources, what am I missing?
    Thanks in advance!

    Hmm... I didn't think we had quite released this version yet. It's possible that that website went live before the link to the new download. There should be a blog entry about this on the "Power BI" blog in the very near future.
    At the risk of providing a spoiler :), the CRM Online support is via OData.

  • Error While Generating Business query in Mobile Application Studio

    Hi,
    I made changes to the Business query BSOPPBPQUERY according to the SAP NOTES.
    Now I am trying to generate the business Query but it is giving out the error saying
    Error intializing RT Generator !.RT Generator Failed for ".Error arsrep.dat is in use so Generation cannot be done
    I am not a MSA Developer and have no clue regarding MAS(Mobile Application Studio)
    So any one can please give me a clue regarding the issue

    Hi Michael,
    I made some changes to the property of the business Object BOCAPGEN in dev MAS environment and generated the application
    It is working fine in Dev.
    Now i want to know how to transfer the changes i Made in Mobile Applicaiton Studio to all the Mobile Cleint.
    I made changes to MAS in the Test Client Assisgned to me.
    I want to replicate these chages to all the Clients.
    I am also having problem transporting the changes made in Dev to QA.
    I created the change list in Dev and released it and assigned the Transport Number to it..
    When I am trying to trasnport the transport number to QA in CRM online system it is giving out error saying "Change List is not complete in the system".
    Can you give me suggestiosn how to transport the change request created in Mobile Applicaiton Studio to QA

  • When I'm signing up for my ID number is it for a new business or for banking purposes

    I'm in the process of signing up for a federal ID number and it is asking me if I am getting the number for "starting a new business" or "banking purposes". Since it's a requirement to sell an Ibook in itunes, which is it? Banking or starting a business?

    The EIN?  if so this is an Apple requirement for tax purposes. Seems to be a USA employer requirement.
    On my form I declared as new business ....ebook publisher.
    The Banking and Contracts section is for you to confirm your bank details...if/ when you sell items...Apple transfer your earnings less their commission, to your bank. The contracts are Apple requirements.
    Its advisable to apply for EiN by telephone ..of you do the agents you will speak with are very helpful and will take you step by step through the forms. It takes about 10 -15 minutes. and they give you the number then and confirm i. writing.
    Apple have other banking requirements for UK, Canada and Australia.

  • Creation of New Business Area

    Hi Experts,
    I want to create a new Business Area in my system and my worry is will that have an impact on my live system.I tried out a possiblilty by creating a new Bus Area T-Code OX03 and created a new Profit and CostCenter for the same in QA Server.
    I tried out posting Journals for the same and the output was ok in FBL1/3/5N.
    We are using SAP ECC 6.0 with Sp Purpose Ledger functionality.Do i need to do any further customization for the same.Since i want to create this new BA in Live server now.
    Regards
    Rahul

    Business Area is an org. unit which you would want to fill in your documents, so you could draw business area-wise financial statements.  I think you are good to go with what you have done in QA system, if you do the same in your Prod. system.  But, what would happen to the documents that already exist in Prod. system.  You must come out with a way to populate those documents with the business area, if applicable.  If not (I mean, if it is a completely new business area for use in future only), your job is easy.

  • Step By Step Creation Of A new Business Object

    hi,
      Please Give Me Details Of A Business Object,like step by step creation of a new business object and it's utilization.

    Create a business object (SWO1).
    Give the business object name prefixed with Z_.
    Enter the following fields with values:
    Object type:      Z_TESTXX
    This is the internal technical key. Page: 1
    Object type can have maximum 10 characters. This must be unique across all object type. Objects are specific instances of object types at runtime.
    Object name: Object_Name_for_XX  
    The object type is addressed with this name by external applications. This is a descriptive English name and can be up to 32 characters. This also must be unique across all object type.
    Name:      Object Name: XX       
    This is a meaningful name of the business object.
    Description:     Object Description: XX     
    Page: 1
    Object description, can be up to 40 characters.
    Program:      Z_TESTXX       
    Each object type has an ABAP/4 program in which methods of the object are implemented. This program is generated automatically when you create or revise an object type.
    Application: indicates cross application.
    3: Create an event.
    Open the Object type in change mode. When you change your subtype the first step is to create a new event, this is done by selecting the Event node and clicking the create button. Give the event a name and a description.  Next set the status of this object type component to implemented.
    Event:          Z_EVENT_XX                              
    Name:          Event name: XX                          
    Description:     Event Description: XX                   
    Click on the new event andu2026
    Edit - Change Release Status- Object Type Component - Implemented
    (A small box sign vanishes from the right side of the event, indicating that it is implemented)
    There can be multiple triggering events for a standard/customer task.
    In R/3 4.0 the release strategy for new Object Types and Object Type Components (methods, attributes, events, etc.) was enhanced.  Now when an object type and/or components are created, there are different statuses to select, based on its required purpose.  The statuses are:
    u2022     Modeled - objects cannot be accessed at runtime.  This is the status that is automatically set when an object type or component is created.  Items with a modeled status cannot be referenced in any type of workflow task.
    u2022     Implemented - objects can be used internally in a test environment.  They are accessible, but may not be stable (especially if no delegation has been defined).
    u2022     Released - objects are ready for production. Note:  Local objects cannot be released.
    u2022     Obsolete - objects are typically replaced by new functionality or incompatible with previous versions.   This status is optional.
    4: Create a method.
    Next a method must be created without using any function module template. When creating the method ensure that the method call is synchronous - this means that the method doesn't require a terminating event.
    A method can be synchronous or asynchronous. Synchronous Method
    Method that, for the duration of its execution, assumes the process control and, after its execution, reports to the calling component (work item manager, in this case).
    Synchronous methods can return the following data, if defined: Return parameters, one result and Exceptions.
    Terminating events can also be defined for a single-step task described with a synchronous method. At runtime, the relevant work item is then terminated either when the synchronous method is successfully executed or when one of the defined terminating events occurs.
    Asynchronous Method
    Method that, after its execution, does not report directly to the calling component (work item manager, in this case).
    Asynchronous object methods do not return results, parameters or exceptions.
    At least one terminating event must be defined for a single-step task described with an asynchronous object method.
    At runtime, the relevant work item is only terminated if one of the defined terminating events occurs.
    Next set the status of this object type component to implemented. The methods are not implemented unless you once open their program.  Select the method and open its program. It gives a message u201CDo you want to generate a template automatically for the missing sectionu201D. Click u201CYesu201D. Inside the program insert the code u201CCALL TRANSACTION u2018FB03u2019. Display Financial Document.
    Method:     Z_METHODXX                              
    Name:      Method name: XX                        
    Description:     Method Description: XX                                                                               
    Edit - Change Release Status - Object Type Component - Implemented
    5. Create Key fields.
    Create key fields with ABAP dictionary field proposal.
    It is the identifying key, via which the system can access a specific object, that is, an instance of the object type. The key fields of an object type are usually also the key fields in the table containing the header data for the object type. Only character-based data types are allowed as key fields. The total length allowed for all key fields is 70 characters. Each key field refers to a field in the ABAP Dictionary.
    Enter u2018BKPFu2019 in table name field and select all the key fields. Press Continue button. Next set the status of these key fields to implemented.
    Edit - Change Release Status -Object Type Component - Implemented
    6:Implement business object.
    The whole business object needs to be implemented so click on the business object title andu2026
    Edit - Change Release Status - Object Type - Implemented
    Now you can check the syntax, generate the Business Object and then test it. Execute the custom method you created and give the Company code, Document number and Year.

  • Folders/tables in a new business area

    I4m creating a new business area, so in the second step of the
    wizard I select a user from which I want to take the folders,
    then in the third step I click on the user to see the tables I
    could put in the business area but nothing happens, only that
    after some seconds the sign (+) near to the name of the schema
    dissapears and no tables appear.
    This is a problem with this user, I have done it before with
    other users and i didn4t have any problem.
    How should I solve this problem.
    Thanks in advance.

    This sounds like a simplistic question but are you sure you have
    access to the tables in the schema? Can you describe the tables
    in SQL*Plus?

Maybe you are looking for

  • How do I get my mac to stop accessing the wrong version of the program?

    When I got my iMac, I also got Works '06 and have been quite satisfied with it. I only use Pages, but when I upgraded iLife, there was a try out program of Works '08 and I thought I would give it a look see for Keynote. Unfortunately because it appea

  • Printing and Client Management

    I have an HP printer that needs a specific driver. I have it setup on the server and managed by WGM. When I try to print, it uses the generic driver and prints all goofy. Prints just fine from the server. All machines have the driver installed. I hav

  • Problems with ARD and SwUpd Unix Command

    Hi everybody I have a problem sending UNIX commands to my clients, I work in a school with 500 macs, with 10.4 and 10.5 systems and all the computers download the updates from my Software Update Server, but when I try to send the command from ARD (su

  • Provide the patches!

    I have been trying in vain to get Oracle 8i, 9i, and 9iAS working on a linux server I have. I do not have a support contract /w Oracle, and thus cannot access MetaLink to download all the patches required. At this point in time, all I can say is that

  • Validation using a DB function

    Hi, I am trying to add declarative validation for a field. The validation is a complex one whose logic resides in the database (let's call it is_valid_part). There are 2 pages, first page they enter a part, and on the second they get some part info.