Creating MyBO query for an OWL

This is actually a common usecase:
How do I create a query for an OWL that only contains my BO's?
I see two difficulties to this question:
1. Store "ownership" of a BO
To store the ownership of a BO I can use
this.Identity = Identity.Retrieve(Context.GetCurrentIdentityUUID());
or an
Employee-OVS and store the EmloyeeID in the BO.
2. How do I create a query in the UI-Designer that filters based upon the User?

Hi,
I thinkat first  you have to define what ownership is. Is it the Creator, or would you select one by creating, changing etc.
If it should be the creater, you can use the standard (automatical created) "created by" element, in other cases you have to add an own element to your business object.
To create a query for your business in UI, you can follow the instructions in the documentation...page 617-618.
Best regards,
Andreas

Similar Messages

  • Error while creating a query for my custom infotype

    Hi,
    I have created a custom infotype with fields currency amount and currency field .
    While I am creating a query for it its giving an error
    Message no. AQ_AD_HOC221 Error when generating the report(see long text )
    I tried to execute the standard program RPUMS40CCI but still I am facing same error .
    I have also maintained table T777i for my infotype but still problem exists.
    Please help.
    P

    Hi
    Check in PM01

  • How to create ABAP Query for vendor open items

    HI,
    My client has requested me to create ABAP Query for vendor open items . So that it will be usefull for the users . Could anyone help me with this. I will assign you points.Thanks in advance.

    Hello,
    Use Table BSIK <Open Items of AP > & BSAK <AP Cleared items>......
    For Query you can use SQ01.
    USE BSID & BSAD for AR open/clear items...
    LFA1, LFB1 are vendor master data tables
    This is FYI
    Hope this helps.
    Rgds
    Rajendra

  • Can anyone create a Query for this?

    Can anyone help me to create a query for the followinf table info?
    I have tried to use joins but no success.
    Table Name: Org
    ID     Severity     Status
    1     Red     New
    2     Yellow     New
    3     Green     Closed
    4     Green     Open
    5     Yellow     Closed
    6     Red     Closed
    7     Red     Closed
    8     Red     Open
    9     Yellow     New
    10     Yellow     Closed
    The result of the query should look like this. The most important thing is that I want this result set in a single query and in this format.
    Severity     Total_Status     Total_Closed
    Red     4     2
    Green     2     1
    Yellow     4     2

    select severity,count(*) tot,sum(decode(status,'closed',1,0)) tot_closed
    from org
    group by severity;
    Not tested..                                                                                                                                                                                                                                                           

  • How to create sql query for item master with operator LIKE with variables?

    hi all,
    How to create sql query for item master with
    operator LIKE(Contains,Start With,End With) with variables using query generator in SAP B1 ?
    Jeyakanthan

    Hi Jeyakanthan,
    here is an example (put the like statement into the where field)
    SELECT T0.CardCode, T0.CardName FROM OITM T0 WHERE T0.CardName Like '%%test%%'
    The %% sign is a wildcard. If you need start with write 'test%%' and otherwise ends with '%%test'. For contains you need '%%test%%'. You also could combinate this statements like 'test%%abc%%'. This means starts with test and contains abc.
    Regards Steffen

  • Unable to create Spotlight query for expression

    I don't want to assume that the following Console Log entry is a Spotlight indexing issue since the PID is from MAIL however the following entry appears repeatedly every minute to five minutes:
    "12/1/10 6:33:01 PM Mail[2698] Unable to create Spotlight query for expression ([email protected]) && (kMDItemContentType == 'com.apple.mail.emlx' || kMDItemWhereFroms == 'message:*'w)"
    Why would Mail try to create a Spotlight query like this, why so often, and where should I look to correct or remove the offending source?
    BTW, the noted email address has been changed for privacy. Otherwise the syntax is exact.
    Thanks

    I, too, have been seeing this same error ever since I started syncing my mail via .mac or whatever they call it these days. The whole experience has been so problematic that I've discontinued using it, but it's taken me weeks to clean up the disaster it's made of my multiple computers.
    This issue seems to be one of the last remnants of the whole debacle, and I'd love to hear any suggestions on how to clean it up without having to do complete wipe/reinstall of everything, which is pretty much all that's left to try.

  • Create POWL query for specific user (not self)

    Hello All,
    was wondering if anyone had an idea on how to create a POWL query for a specific user. Even the low level method in class CL_POWL_QUERY_ACCESSOR seem to assume that you either are creating an administrator query for any/everyone or just for yourself.
    One option is to create multiple queries (for each selection criteria that I want) and assign these directly to user (rather than the role) in the config - but that's config that I'd need to transport up - for what is essentially user level personalisation.
    My strong favourite at the moment is to throw a breakpoint in CL_POWL_QUERY_ACCESSOR and manually change the user name as I save new queries in directly in production - but that's not exactly the cleanest solution.
    Surely someone has had a need to actually create queries for users, not just delete them as per program POWL_D01?
    Many thanks for any hints and tips
    Cheers,
    Chris

    Well - I should point out that you don't have to transport those user assignment of queries - tables are production maintainable. However, you do have to transport up the query itself - so not ideal.
    Oh well - don't think this one has an answer => closing it to open another question.
    Cheers,
    Chris

  • Creating a query for a custom report layout

    hello guys,
    i am really stuck with this task - i need to populate a report with rows with "0" values based on a particular criteria, here is the example: lets say we have a table BROKERS with company names, their transaction types and cumulative amounts for a current month and all months ever.
    COMPANY TRAN_TYPE CURR_MNTH ALL_MNTH
    Broker1 CURRENCY_SELL $1000.00 $1500000.00
    Broker1 GOLD_SELL $50000.00 $2500000.00
    Broker1 GOLD_BUY $80000.00 $8500000.00
    Broker1 STOCKS_SELL $35000.00 $3500000.00
    table BROKERS does not have a field TRAN_TYPE, but has a field TRAN_TYPE_CD which reffers to another table called TRAN_TYPE_CD_EXPL, where all the codes are explained:
    TRAN_TYPE_CD TRAN_TYPE_CD_EXPLD
    1 STOCKS_SELL
    2 STOCKS_BUY
    3 GOLD_SELL
    4 GOLD_BUY
    5 SILVER_SELL
    6 SILVER_BUY
    7 COPPER_SELL
    8 COPPER_BUY
    9 CURRENCY_SELL
    10 CURRENCY_BUY
    so the results shown above is just a simple join of those two tables:
    select b.COMPANY, tt.TRAN_TYPE, b.CURR_MONTH, b.ALL_MNTH
    from BROKERS b, TRAN_TYPE_CD_EXPL tt
    where b.TRAN_TYPE_CD = tt.TRAN_TYPE_CD;
    everything is pretty simple, but here is where the problem starts : the report i am working on should look like this:
    COMPANY MARKET TRAN_TYPE CURR_MNTH ALL_MNTH
    Broker1 FOREX CURRENCY_SELL $1000.00 $1500000.00
    Broker1 FOREX CURRENCY_BUY $0.00 $5500000.00
    Broker1 CONTRACTS GOLD_SELL $50000.00 $2500000.00
    Broker1 CONTRACTS GOLD_BUY $80000.00 $8500000.00
    Broker1 STOCKMARKET STOCKS_SELL $35000.00 $3500000.00
    Broker1 STOCKMARKET STOCKS_BUY $0.00 $9500000.00
    so let me explain :
    firstable, report should contains a column MARKET, which should be populated based on the values in the column TRAN_TYPE, but the thing is there is no table MARKET in database, so each time when you need to populate it in a report or somewhere else, you need to use decode like this (assumed everybody knows where all kind of tran_types belong to):
    SELECT DECODE (TRAN_TYPE_CD_EXPL.TRAN_TYPE_CD_EXPLD,
    'CURRENCY_SELL', 'FOREX',
    'CURRENCY_BUY', 'FOREX',
    'STOCKS_SELL', 'STOCKMARKET',
    'STOCKS_BUY', 'STOCKMARKET') AS MARKET,
    or based on TRAN_TYPE_CD value:
    SELECT DECODE (BROKERS.TRAN_TYPE_CD,
    9, 'FOREX',
    10, 'FOREX',
    1, 'STOCKMARKET',
    2, 'STOCKMARKET') AS MARKET,
    2) problem number 2 is more complicated : the report logic says - is a company has at least one transaction in a particular group (lets say CURRENCY_SELL for market type 'FOREX'), the report should be populated with other tran_types from the market type group with $0 even thou this company did not have any of those transactions during current month. so in this case it should be populated with the rows
    Broker1 FOREX CURRENCY_BUY $0.00 $5500000.00
    and
    Broker1 STOCKMARKET STOCKS_BUY $0.00 $9500000.00
    The thing is that it will be executed thru plsql batch on unix, so it must be a single query.
    Any ideas and/or suggestions are very appreciated!
    Thanks
    P.S.
    Its oracle 11gr2, with read-only role.

    Hi,
    This sounds like a jo for a partitioned outer join.
    Here's one way:
    WITH     broker_summary     AS
         SELECT     b.company
         ,      tt.tran_type
         ,      b.curr_mnth
         ,      b.all_mnth
         FROM     broker               b
         JOIN      tran_type_cd_expl     tt  ON     WHERE     b.tran_type_cd     = tt.tran_type_cd
    ,     market          AS
         SELECT     'CURRENCY_SELL' AS tran_type,       'FOREX' AS market     from DUAL  UNION ALL
         SELECT     'CURRENCY_BUY',               'FOREX'           from DUAL  UNION ALL
         SELECT     'STOCKS_SELL',               'STOCKMARKET'          from DUAL  UNION ALL
    ,     got_market_cnt     AS
         SELECT     bs.company
         ,     m.market
         ,     m.tran_type
         ,     b.curr_mnth
         ,     b.all_mnth
         ,     COUNT (*) OVER ( PARTITION BY       bs.company
                         ,          m.market
                          )     AS market_cnt
         FROM           market          m
         LEFT OUTER JOIN     broker_summary     bs   PARTITION BY (bs.company)
                             ON   bs.tran_type     = m.tran_type
    SELECT       company
    ,       market
    ,       tran_type
    ,       NVL (curr_mnth, 0)     AS curr_mnth
    ,       NVL (all_mnth,  0)     AS all_mnth
    FROM       got_market_cnt
    WHERE       market_cnt     > 0
    ORDER BY  company
    ,       market
    ,       tran_type
    ;If you'd care to post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data, then I could test it.
    You should create a market table. Do it once, then you won't have to do it over and over again in every query that needs it.

  • Problem Creating a query for a hierarchical tree. [using connect by prior]

    Hi all,
    I have 2 tables.
    box (box_id, box_name)
    item(item_id, item_name, box_id)
    In a box there are several items.
    I want to create a hierachical tree to display items that are present in each box.
    LIKE:
    |---BOX1
    | |----ITEM 1
    | |----ITEM 2
    |
    |---BOX2
    | |----ITEM 1
    | |----ITEM 2
    Currently i am trying this query:
    SELECT -1 state, box_name, 'icon' icon, box_id val
    from box b, item i;
    I don't know what value to put for level, i don't know how to code the 'connect by prior' part.
    Could you please advise me?
    Michaël.
    PS. Then i will eventually use this query in forms builder.

    Note the name of this forum is "SQL Developer *(Not for general SQL/PLSQL questions)*" - so only for issues with the SQL Developer tool. Please post these questions under the dedicated SQL And PL/SQL forum.
    Regards,
    K.

  • Creating a Query for Purchase Order Approval

    I need to develop a query to check if any of the line totals in a new purchase order exceeds $500. I have to attach this query to the approval procedure (under 'Terms' in 'Define Approval templates'). When the 'Add' button on the purchase order is clicked, the values on the form are still not available in the database. This means, my query has to pick the data from the new purchase order form. Is there any way to build such a query? Thanks.

    Satish, Alerts just notify the appropriate parties. They do not stop a document from being posted. This means, it is not capable to recognize the situation unless it's already stored in the DB.
    Alexey. what about creating a Development Request about this topic?
    Regards,
    Felipe

  • Creating a query for task list operations

    hello all
    I checked the forum for similar questions but could not find any.
    I am trying to create a task list for the following:
    1) specific plant
    2) generic task list
    3) specific group counter
    4) specific operations type (filtered by control keys)
    in the display I also include the dependencies of the operations.
    I also need to link the task list to a specific class and extract the characteristics value from the class, based on the task list (I think this is better with infoset: if so, in a second stage).
    I am using tables
    1)PLKO and PLPO joined by PLNTY and PLNNR
    2) CUOB, joined to PLPO by KNOBJ and CUKB joined to CUOB by KNNUMfor the dependencies
    the results tho, gave me operations that did not exist in the task list so I discovered that there were change masters to the task lists and I added table AENR, outer joined to PLKO by AENNR where I excluded inactive changes.
    I still do not get correct results.
    I do not get all the active change masters related to a task list, I do not manage to get the task list without changes and also the related operations and dependencies are not correct.
    can someone help?

    Hi alisa,
    Onethng was not yet touched upon in the discussion sofar. If you are not getting all the records those should come, then you need to try LEFT OUTER JOIN  between tables by trial. (Trial means LOJ is not accepted on adjacent tables.) I hope you know that the default connection between fields of 2 tables in through INNER JOIN.  You need to right click on this line and select LOJ for making it LOJ. This brings you all the records which are being filtered due to IJ (if any).
    Try this, if you haven't done already.
    KJogeswaraRao

  • Create a query in SCCM 2012 R2 for NIC Driver Version

    Hello,
        Is there a way to create a query for the specific NIC driver versions with SCCM 2012 R2? For example I can do this and other descriptors for video i.e.,
    select SMS_R_System.Name, SMS_R_System.LastLogonUserName, SMS_R_System.HardwareID, SMS_G_System_COMPUTER_SYSTEM.Manufacturer, SMS_G_System_COMPUTER_SYSTEM.Model, SMS_G_System_VIDEO_CONTROLLER.DriverVersion, SMS_G_System_VIDEO_CONTROLLER.Description, SMS_G_System_VIDEO_CONTROLLER.VideoProcessor
    from  SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_VIDEO_CONTROLLER on SMS_G_System_VIDEO_CONTROLLER.ResourceID = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Model
    like "HP EliteBook Revolve 810 G2" and SMS_G_System_VIDEO_CONTROLLER.Description like "%intel%"
    Is there a script that will give the version for NICs?
    Thanks Bill

    This article provides one way to do it:
    http://blogs.technet.com/b/configmgr_geek_speak/archive/2013/11/10/inventorying-and-reporting-network-adapter-driver-details-and-how-to-report-only-the-wireless-type-in-configuration-manager-2012.aspx
    Jeff

  • Creating Query for deatils of theVendor Sub Range

    Dear All
    I am in IS RETAIL( ECC 6.0) project and are using Vendor Sub Range Scenario.A requirement has come to create a Query for the Below Fields for a specific Vendor 'S say iMPORTVENDORS..  May i know from which tables we can extract and if possible thesteps in creating this query.
    Primary Vendor  Description   Ordering vendor     Description     Payment Vendor     Description     PaymentTerms
    With Kindest regards

    Hi,
    Pls check if you could get this information from WYT3 and LFM2 tables.

  • In a query, for the selection field 'KNB1-ZWELS' a match-code isn't availab

    Hi All,
    Creating a query, for the selection field 'KNB1-ZWELS' a match-code isn't available.
    Could anyone tell me the reason?
    Thanks
    Gandalf

    Hi,
    Match Code Object is not available for the field ZWELS. If required, You need to contact a Developer for creating one .

  • I need some help on creating a query

    This is my first crack at writing query's.  
    I am trying to create a query for a list on clients with a file name on the system. I found a lot of samples on the web, however i keep getting errors on all of them. 
    Here is on sample:
    select SMS_G_System_COMPUTER_SYSTEM.Name, 
    SMS_G_System_SoftwareFile.FilePath, SMS_G_System_SoftwareFile.CreationDate, 
    SMS_G_System_SoftwareFile.FileDescription, V_R_System.ResourceType, 
    V_R_System.ResourceId from V_R_System inner join SMS_G_System_COMPUTER_SYSTEM on 
    SMS_G_System_COMPUTER_SYSTEM.ResourceID = V_R_System.ResourceId inner join SMS_G_System_SoftwareFile on 
    SMS_G_System_SoftwareFile.ResourceID = V_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName = "test1234.exe" 
    First i was getting an error:
    Invalid object name 'SMS_R_System' and i had to change to V_R_System instead of SMS_R_System. "Is it because
    SQL and WQL difference?????"
    Now i am getting Invalid object name 'SMS_G_System_COMPUTER_SYSTEM' "Here is where i am stuck"
    If possible i would like to explanation as well "maybe some good links", please keep in mind just getting started with query's.
    Thanks for the help.
    I am writing/testing query in sql management studio.
    If there is a better way or a tool please let me know.

    The application i am looking for does not show up in ADD/REM.
    I was asking what is the difference between V_R_System instead of SMS_R_System?
    And what should i use instead of SMS_G_System_COMPUTER_SYSTEM?
    Maybe you can share some links so i can read a little more?
    Thank you.

Maybe you are looking for

  • After installed SP1 for SQL Server 2012, can no longer export to csv

    After installing SP1 today via Windows Update, I am no longer able to export data to csv using the SQL Server Import and Export wizard. I get the following error message: "Column information for the source and the destination data could not be retrie

  • IPad won't go into Sleep mode

    After using an App made specifically for the iPad and then try to turn off/put my iPad to sleep, it does not react at all. If I then start an App which was designed for the iPhone, then pressing the button on the top of the iPad leads directly to the

  • Incremental Backup in Oracle 9i(9.2.0.1)

    I have used Oracle 9i (9.2.0.1) version. How could I take incremental backup of the particular database user? Please help me.

  • Help with Subquery

    Hi All, I need help on a subquery to return multiple rows. I included this subquery in the select statement. Can someone help on the query select a.total  from TableA a where a.ID = b.ID and a.type = 'R' or a.total = 0 Thanks Vani

  • Safari is not searching it goes to Yahoo

    When I click on my Safari app and type in a search my search engine changes to Yahoo.  How do I get Safari to search?