Multi_no_lead and cardinality conflict

Hi,
I have a problem with "multi_no_lead" and "cardinality". The node which i bind with my ALV has 0..n cardinality and 0..n selection.
I must choose more than one rows, then i have added these codes : 
CALL METHOD l_value->if_salv_wd_table_settings~set_selection_mode
    EXPORTING
      value = cl_wd_table=>e_selection_mode-multi_no_lead.
With Event1 i read the selected more than one rows and change the data. It works.
But now i want to see the details of only one selected row with a different event(Event2).This event reads just the context but it doesn't work. I take that error :
"Adapter error in &VIEW_ELEMENT_TYPE& "PER_IN" of view "/XXX/XX_WEB.EXPENSE_DETAIL": Context binding of property VALUE cannot be resolved: Lead selection not set for context node EXPENSE_DETAIL.1.GT_MAIN"
How can i solve it?
Thanks...

Hi Adi,
Regarding your problem that you have add the alv table a column and give it "link". When you click that link,you want to show the details of selected line. But it doesn't work and gives that error.
For this you will do one thing .
Take the ALV event ON_CLICK and within you will get the index of row for which you click the link.
After this you can read the context node and based on the index you can read the data from the context node.
Suppose I hv created a employee details node EMP_DETAIL in the component controller.
and I hv mapped to the view controller.
Navigate to the methods tab of view  and create event handler method onClick for the On_CLICK event of the ALV component in the view.
This ON_CLICK  is type ref of IF_SALV_WD_TABLE_CLICK interface .
The  check this code.
METHOD on_click .
  DATA lo_nd_emp_detail TYPE REF TO if_wd_context_node.
  DATA lo_el_emp_detail TYPE REF TO if_wd_context_element.
  DATA lt_emp_detail TYPE wd_this->elements_emp_detail.
  DATA ls_emp_detail LIKE LINE OF lt_emp_detail.
  DATA lv_index TYPE i.
  navigate from <CONTEXT> to <EMP_DETAIL> via lead selection
  lo_nd_emp_detail = wd_context->get_child_node( name = wd_this->wdctx_emp_detail ).
  @TODO handle not set lead selection
  IF lo_nd_emp_detail IS INITIAL.
  ENDIF.
  get all declared attributes
  lo_nd_emp_detail->get_static_attributes_table(
    IMPORTING
      table = lt_emp_detail ).
  lv_index = r_param->index.
  READ TABLE lt_emp_detail INTO ls_emp_detail INDEX lv_index .
ENDMETHOD.
You can also check this link [Using ON_CLICK Event in the ALV Table|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8]
Regard
Manoj Kumar

Similar Messages

  • What is line item dimension and cardinality in BI 7.0

    Can u plz suggest me what is line item dimension and cardinality in BI 7.0..
    Thanks in advance.
    Venkat

    Hi Babu
    Line item: This means the dimension contains precisely one characteristic. This means that the system does not create a dimension table. Instead, the SID table of the characteristic takes on the role of dimension table. Removing the dimension table has the following advantages:
    ¡        When loading transaction data, no IDs are generated for the entries in the dimension table. This number range operation can compromise performance precisely in the case where a degenerated dimension is involved.
    ¡        A table- having a very large cardinality- is removed from the star schema. As a result, the SQL-based queries are simpler. In many cases, the database optimizer can choose better execution plans.
    Nevertheless, it also has a disadvantage: A dimension marked as a line item cannot subsequently include additional characteristics. This is only possible with normal dimensions.
    Note: In SAP BW 3.0, the term line item dimension from SAP BW 2.0 must a) have precisely one characteristic and b) this characteristic must have a high cardinality. Before, the term line item dimension was often only associated with a). Hence the inclusion of this property in the above. Be aware that a line item dimension has a different meaning now than in SAP BW2.0.
    SAP recommends that you use ODS objects, where possible, instead of InfoCubes for line items.
    Hope this helps.
    Plz check these links:
    SAP Help:
    http://help.sap.com/saphelp_nw04s/helpdata/en/a7/d50f395fc8cb7fe10000000a11402f/frameset.htm
    Thanks & Regards
    Reward if helped
    Edited by: Noor Ahmed khan on Aug 5, 2008 2:36 PM

  • How to deal with conflict and potential conflict classes?

    Some classes are marked as conflict and potential conflict classes in the Classloader Analysis Tool.
    How to deal with them?
    How to use suggested solutions?

    Not double load them.
    Conflicting classes can lead to weird exceptions. One obvious example would be if you package
    an older servlet.jar version into your application and use the weblogic classloading features, such
    as prefer-web-inf-classes, to tell weblogic to use this class instead of the one provided in the
    system classpath. This one example which leads to weird exceptions, such as connot process jsp tag...
    If you really need a the version of the jar for your application, you have to test it through and through
    so that you know you do not run into weird production errors.

  • Why does Scroll in IOS 8  and Swipe conflict?

    Hi guys,
    Why does Scroll in IOS 8  and Swipe conflict?
    When I use swipe right or swipe left in EA and test it on IOS8 it works fine but if I scroll down
    it triggers the swipe right or left assignment ...
    Does anyone know a code to not have these two functions in conflict? I usually dodge this feature due to this ongoing
    unfixed problem.
    Thanks,
    Henry Code

    http://www.imore.com/having-issues-wallpapers-ios-7-heres-why-and-how-fix-it
     Cheers, Tom

  • Manual IP and DHCP conflicts

    My Barricade g died (SMC2804WBRP-G). I replaced it with an Airport Extreme (802.11g).
    With the Barricade g, I had manually assigned IP address to all the computers on the LAN (range 192.168.x.1-192.168.x.99). The router distributed IP addresses to the wireless clients via DHCP range (192.162.x.100-192.168.x.200)
    I've setup the AEBS to Distribute IP addresses and selected Share a single IP address (using DHCP and NAT).
    BUT, the AEBS is assigning some of the manual addresses to wireless client IP requests. Then the computer that is supposed to have a manual IP address doesn't have one. Basically, the manual and DHCP addresses are coming from the same pool and causing conflicts.
    How do I deal with manual IP addresses AND DHCP with this router?
    Thanks

    David,
    Thanks for the input. But, I may have misread my post.
    From my original post.
    'With the Barricade g, I had manually assigned IP address to all the computers on the LAN (range 192.168.x.1-192.168.x.99). The router distributed IP addresses to the wireless clients via DHCP range (192.162.x.100-192.168.x.200).'
    In other words, on the network, LAN=static IPs, Wireless clients=DHCP.
    You can have both static and DHCP on the same network.

  • Detect / Resolve Conflicts: Automatically detect and resolve conflicts

    Hi
    From documentation:http://technet.oracle.com/products/oracle9i/daily/jun05.html
    " Detect / Resolve Conflicts: Automatically detect and resolve conflicts "
    I know that the detection of the conflicts between versions is automatic, but I didn't know that the resolution was also automatic.
    So Can you tell me, please, in which cases the resolution of conflicts is automatic?
    thank you in advance
    (sorry for the previous message)

    Just to follow up on Arun's reply: The Workspace Manager manual has the correct information (i.e., conflicts are detected automatically, but must be resolved manually). The error is just in the OTN document that you refer to.

  • Skype and facetime conflicting

    hey all, has anyone had issues with skype and facetime conflicting, specifically with the camera,
    as both apps are running simultanesouly.
    PROBLEM: when your attempting to call, the video won't connect, or the call drops out,
    even though your only using one app to call, whilst the other app is still open.
    I don't know about most people, but I run both, as not everyone I know has a mac or iphone.
    The only solution i've found, is to close one app, whilst the other is in use, to make a video call.
    This is extremely frustrating if your wanting to leave them open, in case someone calls me (like a client).
    I've always been a big mac fan, but this isn't a single dominated OS world, there are more than 1 OS, so running
    BOTH facetime and skype is a must for business in my opinion these days.

    No.
    In order to do this with Skype on an iPhone, Skype must include the option with their iPhone app.

  • ICal lost end dates and ∞ sync conflicts after iOS4 upgrade

       After upgrading my sacrificial iPod 3 (I’m waiting to upgrade my main iPhone 3GS) and synchronizing it to my home MacBook Pro 2007 17", I got huge numbers of old repeating meeting which seem to have lost their end-date, e.g., “Palm-size PC Porting Lab” on June 28th this millennium, which I assure you is an error. I restored from a desktop backup, overwrote the iOS4 Calendar data, and synced again.
       After that, I had a miserable day full of a dozen or so Resolve Sync Conflicts dialogs—sometime three or four in a row after a single, very slow, sync. Several times two sync processes used up all my real memory (using over a gigabyte, out of three) and once it even used up all my disk space (I had 29G free). I also had a few rounds of conflict on my work MacBook Pro 2009 13", synced via MobileMe.
       Some historical notes: My calendar data is quite large, going back to Newton days via PalmOS, and iPhone OS 3 never handled it properly, e.g., both search and over-the-air sync are broken on my 3.1.3 iPhone. MobileMe sync data also gets corrupted every few weeks. And “Palm-size PC” was Microsoft’s court-ordered renaming of their trade-mark infringing Palm PC.
    Macaulay‘s Law of Software Upgrades:
    “To think nothing of symmetry and much of convenience; never to remove an anomaly merely because it is an anomaly; never to innovate except when some grievance is felt; never to innovate except so far as to get rid of the grievance.”

    Deleting my caches per http://support.apple.com/kb/TS2481, and restoring and rebooting a couple of times, seems to have shut up the warnings, at least for now, but there's still some data loss, e.g., two meetings on 6/21 and 6/22 don't show up any more on my main Mac, but do show up on both my sacrificial iOS4 iPod, and my real 3.1.3 iPhone. (I’m also having trouble with a Note failing to sync from my iPad, but I haven’t tried that yet since nuking my caches.)

  • TS3366 iOS 7: Back and Forward Gesture in Safari and Mail conflicts with Panning Gesture

    Back and Forward Gesture in Safari and Mail is different than the back and forward gesture used to swipe between Home screens.  The simple swipe with the thumb straight does not work in Safari and Mail, it conflicts with the Panning gesture.  It should be relatively easy to improve the algorithm to allow for that gesture to work.

    Indeed, swiping back from pdf pages sometimes works, but most often does not.
    It seems that the swiping gesture has in all cases changed slightly. It is now necessary to swipe a little until a portion of the previous page is uncovered, and only then can one swipe back.
    The fact that there is a specific way to swipe back from html pages suggests that there might be an equally specific way to swipe back from pdf pages. I am still experimenting. Meanwhile make sure no one is sitting to your right in case your trackpad flies off during a gesture trial.

  • Wrt54g and vista CONFLICTS

    Hello,
    I bought two new Dell computers with Vista Home and Home Premium installed in February.  I have had on going problems with communicating with the remote computer which has the printer wired to it.  Using Wireless WRT54G router.  Intermittantly loses connection to internet, just comes back by itself.  Bigger problem is printing via the router is problematic.  When using Word 2003, can't print. Printer set-up get's deleated.  When I try to re-install the printer, the system hangs.  At times, something happens and I can't access the remote computer at all--says I don't have permission or some such. In a few days it will magically start working again for not apparent reason.  Another wierd problem....AFTER completing a print job, the print processes take on a life of their own and the CPU usage grows to 100% freezing the computer! 
    I have narrowed this down to Linksys, because the remote computer does not have these problems, which is connected via USB to the printer.  Only the computer using the wireless router has these problems.
    Eventhough Linksys says the router is compatible with VISTA, I think they've missed something, and there is still a conflict!  HELP!  LINKSYS, CAN YOU HEAR ME????

    By default, Windows Vista uses NTVLM2 for authentication when attempting to map network drives to a Samba network share, such as your Home or Website share on Datastore01.
    This problem can be resolved by making a change in the Windows Vista registry. The necessary change switches Windows Vista's authentication policy from "NTVLM2 responses only" to "LM and NTLM - use NTLMV2 session security if negotiated."
    Try this and let me know if it works.

  • Screen saver and IP conflict

    Hello,
    In the recent weeks, I've noticed that when my MAC's screen saver's comes on, that when I log back in that I often get a message that there is an IP address conflict.
    It is annoying because I have to re authenticate to all my open RDP and Citrix sessions!!!
    Thanks

    Something else on your network has the same IP address.
    Did you try and find out what other device has the same IP?

  • Line item dimensions and cardinality?

    hi all,
    how to identify nor use the cardinality relationship as well as the line item dimension?
    can anyone explain me about it. since i am trying to create an multi provider which enables to fetch data from 3 ods.
    regds
    Hari Chintu

    Hi,
    Below is some useful information on Line item dimension and high cardinality.
    These concepts hold good for Cube design only, coming to ODS, these dont help you. As ODS is nothin but a flat structure, we do not have the facility of Star schema. Reporting on ODS can lead to performance issues, it is better to load data from ODS into Cube and then have a multiprovider on them instead of having it on ODS.
    Hope this helps.
    Regards,
    Kalyan
    Use
    When compared to a fact table, dimensions ideally have a small cardinality.  However, there is an exception to this rule. For example, there are InfoCubes in which a characteristic document is used, in which case almost every entry in the fact table is assigned to a different document. This means that the dimension (or the associated dimension table) has almost as many entries as the fact table itself. We refer here to a degenerated dimension. In BW 2.0, this was also known as a line item dimension, in which case the characteristic responsible for the high cardinality was seen as a line item. Generally, relational and multi-dimensional database systems have problems to efficiently process such dimensions. You can use the indicators line item and high cardinality to execute the following optimizations:
           1.      Line item: This means the dimension contains precisely one characteristic. This means that the system does not create a dimension table. Instead, the SID table of the characteristic takes on the role of dimension table. Removing the dimension table has the following advantages:
    &#61601;        When loading transaction data, no IDs are generated for the entries in the dimension table.  This number range operation can compromise performance precisely in the case where a degenerated dimension is involved. 
    &#61601;        A table- having a very large cardinality- is removed from the star schema.  As a result, the SQL-based queries are simpler. In many cases, the database optimizer can choose better execution plans.
    Nevertheless, it also has a disadvantage: A dimension marked as a line item cannot subsequently include additional characteristics. This is only possible with normal dimensions.
           2.      High cardinality: This means that the dimension is to have a large number of instances (that is, a high cardinality). This information is used to carry out optimizations on a physical level in depending on the database platform. Different index types are used than is normally the case. A general rule is that a dimension has a high cardinality when the number of dimension entries is at least 20% of the fact table entries. If you are unsure, do not select a dimension having high cardinality.
    Note: In SAP BW 3.0, the term line item dimension from SAP BW 2.0 must a) have precisely one characteristic and b) this characteristic must have a high cardinality. Before, the term line item dimension was often only associated with a). Hence the inclusion of this property in the above.  Be aware that a line item dimension has a different meaning now than in SAP BW2.0.
    However, we recommend that you use ODS objects, where possible, instead of InfoCubes for line items. See Creating ODS Objects.
    Activities
    When creating dimensions in the InfoCube maintenance, flag the relevant dimension as a Line Item/ having High Cardinality.

  • Line item and Cardinality (DB2)

    I have 2 issues with a cube.
    Issue 1:
    I read everywhere in this forum that if Line Item is marked for a dimension that there will be no index/sid table for this dimension. In stead the sid table of the InfoObject would be used.
    I have however an example of a cube with a line-item-dimension that HAS an index table. The table has two columns and both columns have exactly the same data. The number of records is the same as for the SID table of the single InfoObject contained in the dimension. The system runs with a DB2 database.
    Can someone explain this?
    Issue 2:
    In my case, the InfoObject has 27.000.000 distinct values (document number). In the cube I have 12.000.000 records, each with its own unique document number (so about 50% of the document numbers occur in my cube). The line-item is ON, but the high cardinality is OFF.
    Is there a guesstimate on how much performance I would gain if I would set High Cardinality on?
    Does this setting influence to load-performance?

    The table that appears for the line-item dimension is normally a view, it is named as a dimension table for whatever reason. Do check (maybe in SE11) whether it is indeed a table, or a view on the master data table.
    I do not understand it fully, however if the line-item dimension is 'on', I don't think it should make any difference whether the 'high cardinality' is checked or not.

  • Missing sync, pocket PC, and sync conflicts--just doesn't work

    Anyone with experience using missing sync with pocket PC would be greatly appreciated. I simply can't get this to work right. I constantly get the same "sync conflicts" I resolve them only to have them pop right back up--even before I try to sync again. This also immediately crashes iCal. So now I'm pretty much unable to use iCal. It's getting to be a crisis. Sometimes I can do a hard reset on my handheld and things will run smoothly for about 2 or 3 syncs then it gets all screwy again. Any ideas?
    Thanks.
    a.
    macbook   Mac OS X (10.4.6)  

    Did you ever get an answer or help with this problem. I'm suffering the same deal, and would appreciate hearing anything from you if you have found a solution.
    Thanks,
    Bryce

  • User Generated Data and Cardinality Estimates

    Platform Information:
    Windows Server 2003 R2
    Oracle Enterprise Edition 10.2.0.4
    Optimizer Parameters:
    NAME                                 TYPE        VALUE
    object_cache_optimal_size            integer     102400
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.2.0.4
    optimizer_index_caching              integer     90
    optimizer_index_cost_adj             integer     30
    optimizer_mode                       string      CHOOSE
    optimizer_secure_view_merging        boolean     TRUE
    Test Case:
    var csv VARCHAR2(250);
    exec :csv := '1,2,3,4,5,6,7,8,9,10';
    EXPLAIN PLAN FOR WITH csv_to_rows AS
            SELECT UPPER(
                            TRIM(
                                    SUBSTR
                                            txt
                                    ,       INSTR (txt, ',', 1, level  ) + 1
                                    ,       INSTR (txt, ',', 1, level+1) - INSTR (txt, ',', 1, level) -1
                    )       AS token
            FROM    (
                            SELECT ','||:csv||',' txt
                            FROM dual
                    )       t
            CONNECT BY LEVEL <= LENGTH(:csv)-LENGTH(REPLACE(:csv,',',''))+1
    SELECT * FROM csv_to_rows;
    SELECT  * FROM TABLE(DBMS_XPLAN.DISPLAY);
    Results:
    Execution Plan
    Plan hash value: 2403765415
    | Id  | Operation                     | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |      |     1 |    19 |     2   (0)| 00:00:01 |
    |   1 |  VIEW                         |      |     1 |    19 |     2   (0)| 00:00:01 |
    |*  2 |   CONNECT BY WITHOUT FILTERING|      |       |       |            |          |
    |   3 |    FAST DUAL                  |      |     1 |       |     2   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - filter(LEVEL<=LENGTH(:CSV)-LENGTH(REPLACE(:CSV,',',''))+1)
    Statistics
              1  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            502  bytes sent via SQL*Net to client
            396  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
             10  rows processed
    Question:
    Every once in a while I need to use [Tom Kyte's Varying in Lists|http://tkyte.blogspot.com/2006/06/varying-in-lists.html] method (for 9i as indicated in his blog entry) to convert a comma separated list to a "bindable" in list.
    As one can see above the cardinality estimates are not correct. The execution plans I have seen from this method usually result in a nested loop join using an index. While this makes sense for small result sets it may not be the most efficient method with larger number of entries in the comma separated list.
    Has anyone found a way to expose the correct or near correct cardinality to the optimizer at runtime? I can use the cardinality hint but the problem with that is that it must be defined as a scalar value and that may not work for all cases. The dynamic sampling won't work in this scenario because cardinality statistics already exist against DUAL.
    I haven't noticed any detrimental effects in my environment so this may be purely an academic discussion but I thought I'd throw it out there :)

    I have definitely considered using this as a possibility but I have tried to shy away from writing data (even temporarily) when all I'm looking to do is query data.I agree with you about hard-coding the cardinality values.
    A silight variation on David's suggestion is to use the dynamic sampling hint to get the statistics at run-time. There will be a slight performance cost to do this.
    Remember that all of the explain plan statistics are estimates, which may or may not be accurate. Usually they are good, but every once in a while they are incorrect.

Maybe you are looking for

  • Install OS X 10.3 on iMac G3 500 mhz

    Hello, When installing OS X 10.3 on an iMac G3 I received the error message, "Cannot install the bundled software" and the lighted pill button at the bottom read "close." After clicking on Close, the screen went blue as the "caterpillar" went in a ci

  • I can't receive email in Mac Mail but I can send them

    I use two email programmes on my Mac Mini - Thunderbird and Mac Mail. I can receive and send emails on Thudnerbird and I can send emails on Mac Mail but I can't receive the. Next to the mailbox is a squiggly line like a wave which I presume is the pr

  • Background Rendering - Any way to curb the percentage of processor that Final Cut uses when rendering?

    When Final Cut X tires to render something on my machine it literally maxes out all 8 cores, sometimes it takes 15-20 mins to process edits I make to the frames, making my wholemachine freez up. Is there a way to cap the amount of processor the FCX i

  • HELP - V3.4.5 Importing issues from iPhoto

    Hi all, A newbie here so apologies if this basic subject has already been covered! I have just updated my software version of aperture to version 3.4.5 and I cant seem to locate any of my pictures stored in iPhoto via Aperture. I was able to do this

  • IPhoto won't open after camera import

    Hi, I was loading photos from my camera to iPhoto and there were so many that the camera battery died before the transfer finished. Now when I try to open iPhoto, I get this alert message: "Your photo library is either in use by another application o