How to get row number of selected entry from OVS search result

Hi,
Anyone having any idea on how to get row number of the  selected entry/ how to differentiate rows in OVS search result in ON_OVS method?
Regards,
Jatin

Hi,
You can get the selected record to <ls_selection> structure in co phase 3.
From that structure you can get what ever field you want.,
check the below code for reference,
<< Moderator message - Cut and paste response from F4 help for ALV table field removed. Plagiarism is not allowed in SCN >>
hope this helps u.,
Thanks & Regards,
Kiran
Edited by: Rob Burbank on Jan 5, 2012 5:24 PM

Similar Messages

  • How to get paragraph number of selected text in ID CS4

    Hi,
    Can anybody help me how to get paragraph number of selected text in Indesign cs4.
    Thanks,
    Gopal

    Ah, I see -- thanks. Turns out that there's no difference in speed between texts.itemByRange(), characters.itemByRange(),and insertionPoints.itemByRange(). In a document with 170 pages of text, and with the cursor in the last paragraph, the second and third lines, below (and your function), give exactly the same result:
    t = app.selection[0];
    t.parentStory.texts.itemByRange (t.parentStory.insertionPoints[0], t).paragraphs.length;
    t.parentStory.characters.itemByRange (t.parentStory.characters[0], t).paragraphs.length;
    Peter

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

  • How to get physical number of selected row on the screen.

    Hi,
    We have block defined with Numbers of Records Displayed = 3. In the same time the data set contains 10 records. We would like to know how to get a number of row selected on the screen. i.e. in our case that the number will be always between 1 and 3 independent of the current row position in the data set.
    Best regards,
    Constantin.

    You can calculate that number by subtracting :SYSTEM.CURSOR_RECORD and GET_BLOCK_PROPERTY('BLOCK', TOPMOST_RECORD)

  • How to get row number in the fetch row itself in Sql Query ?

    Hi,
    i am fetching some rows from a sql query . Is there any way to get row number as well in each row while all rows are fetched ?
    like this :
    RowNum data1 data2
    1 abc ere
    2 bnh ioi

    Hello
    Ofcourse you can get the rownum inside a query, just keep in mind that the rownum is the number of order in which the records were fetched from the table, so if you do an order by, the rownum will not be sequential, unless you query the information in a subquery first.
    SELECT rown, col1, col1
    FROM table
    Or
    SELECT rownum, col1, col2
    FROM (SELECT col_1, col_2 FROM table ORDER BY col1)
    Regards
    Johan

  • How to get row number

    Hi,
    I want to get row number in an table using some condition.
    Any solutions?
    Thanks
    shri

    shri,
    That's nice - you answered one question out of my three.
    Version number of JDev/ADF?
    What technologies are you using, particularly on the model layer?
    and some new ones:
    are you using ADF binding?
    are you trying to display a row number on the table, or determine which row is selected (for example)?
    and do you mean the row number relative to the first row displayed currently, or to the "top" of the table?
    As I said - a proper use case (which would have answered all these questions) would enable you to get some answers. See [url http://www.catb.org/~esr/faqs/smart-questions.html]this if you still don't understand.
    John

  • How to get the number of community members from outside the community

    Hi everyone.
    I need to know if there is any way to get the number of community members from outside the community, I mean, not using the "What's happening" webpart. I want to build up a page with a Webpart that summarize my three most visited communities indicating
    number of members, three last messages in the newsfeed, and number of posts in blog, wikis, document libraries, etc.
    Do I need statistics to get this kind of information? Should I use Sharepoint Object model instead?
    Here is an example of what I need:
    - Community name
    - Number of members
    - Community activity (messages, docs uploaded to library, etc)
    - Number of posts in calendar, blog, wiki that belongs to community
    Thank you all!

    Hi Thuan.
    Thanks for your answer but it does not help me because these communities are Sharepoint Communities not external sites so I need to get that information using SP object model and BCS in this case is useless.
    EDIT
    I found the solution using the search objects but I was only able to get members, discussions and replies
    using (ClientContext clientContext = new ClientContext("URL_OF_ENTERPRISE_SEARCH_CENTER"))
    KeywordQuery keywordQuery = new KeywordQuery(clientContext);
    keywordQuery.QueryText = "The_Name_of_the_Community WebTemplate:COMMUNITY";
    SearchExecutor searchExecutor = new SearchExecutor(clientContext);
    ClientResult<ResultTableCollection> results = searchExecutor.ExecuteQuery(keywordQuery);
    clientContext.ExecuteQuery();
    System.Collections.Generic.IDictionary<string, object> ret = null;
    foreach (System.Collections.Generic.Dictionary<string, object> resultRow in results.Value[0].ResultRows)
    Console.WriteLine("{0}: {1} ({2})", resultRow["CommunityMembersCount"], resultRow["CommunityTopicsCount"], resultRow["CommunitiyRepliesCount"]);
    This is a Console Application.
    I hope someone helps

  • How to get row of the selected cell  in ALV  while implementing OVS

    Dear Folks,
                    I am implementing OVS search help in ALV.When i click on cell, i can see the search help in  cell and now i can identify the colomn of the cell but i can't identify the row of the cell.Can any one tell me how to identify row of the cell in this case.
    Nirad.

    Thnx for the answer nithya.I have solved problem my self.
    DATA: elem_ovs TYPE REF TO if_wd_context_element,
            ls_data TYPE REF TO data,
            ls_index type string.
      FIELD-SYMBOLS : <ovs_data> TYPE data.
      elem_ovs = ovs_callback_object->context_element.
      ls_data = elem_ovs->get_static_attributes_ref( ).
      ls_index = elem_ovs->GET_INDEX( ).
    and this is the solution.

  • How to get Adobe 8 to read entries from Adobe 6

    Some forms that my company uses was created in Adobe version 8. Some employees using adobe pro 6 ignored the message that states "The forms being used were created in a later version of adobe and you need to upgrade to a later version of adobe" and still went ahead and edited the forms with the adobe pro 6.
    Now that everyone is on adobe pro 8 the forms are all showing up blank.
    the information entered using adobe 6 to edit adobe 8 forms are all blank.
    Does anyone have any idea how can recover the information or how to get adobe version 8 to read the entries from version 6.
    Thanks
    Al

    Chances are they did not actually save the entries in AA6. When you open an AA8 document in AA6, you can not edit the document. That may be the issue, not that the made changes (not realizing they were not changed). This could have been avoided if the AA8 folks had saved the form in an AA6 compatible way (Reduce File Size or PDF Optimizer). However, some of the functionality might have been lost with the backward save.
    Assuming you still have AA6 on some machine, try to read them and see if the stuff is there that you are talking about. I doubt that the changes are there.

  • How to get Mobile number and other information from SIM card

    Hi,
    I like to get mobile number,mobile user name and other information from SIM card using j2me program.Is there is any API for this one.
    Any one give guidelines to me how to get this.
    with regards,
    latchiya

    Please use the search! this topic has come up lots of times already.

  • How to get total number of Database connections from Java code

    Hi,
    I am using Myql4.1.12.
    I am conncting to mysql through Java.
    I want to know how many active database connections were running at a specific time. Is it possible?
    Can you please help me.
    Thanks in advance.

    Seems like this would be a question for MySql, not for Java. And if it's possible you'd run some MySql utility to do that, not code it in a Java app.

  • How to get Row = 2 Details in report from JDT1 Table

    Dear Experts,
    SELECT T0.TransId, T0.Account, T1.[AcctName]Row1, T0.Debit, T0.Credit, T0.RefDate, T0.BaseRef,  T0.Closed, T0.Ref1, T0.Ref2, T0.Ref3Line, T0.RelType
    FROM JDT1 T0  INNER JOIN OACT T1 ON T0.Account = T1.AcctCode
    WHERE T1.[AcctName] = [%0]
    in above query i  want ROW2 Detail from JDT1Table.
    Any Help?
    Regards,
    Rahul
    Edited by: RAVI_JHA_SAP on Mar 3, 2011 8:27 AM

    Hi Ravi.......
    Try this.....
    SELECT T0.TransId, T0.Account, T1.AcctName, T0.Debit, T0.Credit, T0.RefDate, T0.BaseRef, T0.Closed, T0.Ref1, T0.Ref2, T0.Ref3Line, T0.RelType
    FROM JDT1 T0 INNER JOIN OACT T1 ON T0.Account = T1.AcctCode
    WHERE (T1.AcctName = '[%0]' or '[%0]'='') and T0.[Line_ID]=2
    Regards,
    Rahul

  • How To Get Row numbers in matrix report

    Hi All
    i created an matrix dril down report
    in which i have to get row numbers 
    my requirement is something like
    state          City                           RowNumber                 
    Apr                          May                  
    Jun                Jul        Aug
    AP +            Vij                                 
     1                               300000                
    5666
                      Guntur                            
     2                                70000                    
    8888
                      Hyd                                  
    3                                 0000                    
    555
    MP+               RJA                              
    4                               7770                           
    0
    KL+             Kollam                            
    5                              80000                           
    555
                       Trv                                   6                             
    50000                       666
    SP+              Trj                                  
    7                               666                         
    666
    JP+               mka                                
    8                             6667                           
    66668
    RP+              Rja                                  
    9                               899
    like that above i have to get
    i used                  RowNumber(Nothing)                And Also RowNumber("Group")
    iam not getting like above   iam getting either randomly   or sum of all months
    means for each month it is taking 1
    so total iam getting 12,24,36,48..................like that
    but i want the above requirement
    so any one suggest how get that in matrix report..........

    Hi Mr.SMK,
    Per my understanding you want to get the row number based on the row group of "City", right?
    I have tested on my local environment and you can using the expression below to do this:
    Right click the city column and select the "Insert Column" and select the "Inside group-right"
    Add below expression to get the row number:
    =RunningValue(CountDistinct("DataSetName"),Count,"DataSetName")
    Preview result like below:
    If you still have any problem, please try to provide some sample data and more details information.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to find the number of fetched lines from select statement

    Hi Experts,
    Can you tell me how to find the number of fetched lines from select statements..
    and one more thing is can you tell me how to check the written select statement or written statement is correct or not????
    Thanks in advance
    santosh

    Hi,
    Look for the system field SY_TABIX. That will contain the number of records which have been put into an internal table through a select statement.
    For ex:
    data: itab type mara occurs 0 with header line.
    Select * from mara into table itab.
    Write: Sy-tabix.
    This will give you the number of entries that has been selected.
    I am not sure what you mean by the second question. If you can let me know what you need then we might have a solution.
    Hope this helps,
    Sudhi
    Message was edited by:
            Sudhindra Chandrashekar

  • How To get the number of request's for a single Composite Application

    Hi can any body tell how to get the number requst's for a single composite application.
    Thanks
    Mani

    Hi,
    There are lots of STATE is available for composite instances, like mentioned in the below query. I hope you will get answer from the below query.
    SELECT (CASE WHEN STATE=1 THEN 'OPEN AND RUNNING'
    WHEN STATE=2 THEN 'OPEN AND SUSPENDED'
    WHEN STATE=3 THEN 'OPEN AND FAULTED'
    WHEN STATE=4 THEN 'CLOSED AND PENDING'
    WHEN STATE=5 THEN 'CLOSED AND COMPLETED'
    WHEN STATE=6 THEN 'CLOSED AND FAULTED'
    WHEN STATE=7 THEN 'CLOSED AND CANCELLED'
    WHEN STATE=8 THEN 'CLOSED AND ABORTED'
    WHEN STATE=9 THEN 'CLOSED AND STALE'
    WHEN STATE=10 THEN 'NON-RECOVERABLE'
    ELSE STATE || ''
    END) AS STATE, component_name, COUNT(*) AS NUM_OF_CUBE_INST FROM CUBE_INSTANCE where composite_name='PASS THE COMPOSITE NAME HERE..........'
    group by (CASE WHEN STATE=1 THEN 'OPEN AND RUNNING'
    WHEN STATE=2 THEN 'OPEN AND SUSPENDED'
    WHEN STATE=3 THEN 'OPEN AND FAULTED'
    WHEN STATE=4 THEN 'CLOSED AND PENDING'
    WHEN STATE=5 THEN 'CLOSED AND COMPLETED'
    WHEN STATE=6 THEN 'CLOSED AND FAULTED'
    WHEN STATE=7 THEN 'CLOSED AND CANCELLED'
    WHEN STATE=8 THEN 'CLOSED AND ABORTED'
    WHEN STATE=9 THEN 'CLOSED AND STALE'
    WHEN STATE=10 THEN 'NON-RECOVERABLE'
    ELSE STATE || ''
    END), component_name;
    Thanks,
    Vijay

Maybe you are looking for

  • ODM on Win7, login screen problem

    Hi, I downloaded ODM from OTN, when I try to run odminerw.exe on my Win7 laptop the screen pops up but without any input objects, just a blank screen. Has anybody experienced something like this, is this a bug? Thanks. C:\Users\antu>java -version jav

  • Help! Why has software update stopped my applications?

    Hello, i recently installed the software updater for iPod, security etc. When i restarted my iBook, i tried opening Safari and Mail. They just bounce in the dock once or twice then stop (i.e. they don't start!) Does anyone have a solution to this or

  • How to retrieve deleted entries of a database table

    Hi, I accedentally deleted database table from se14. how to retreive the table of entries. regards , Rajesh

  • No release strategy for service PO

    Purchasing document xxxxxxx cannot be released Message no. MEPO823 I created release strategy for service entry sheet through following process. 1. Created three characterstics(service_val, serv_plant & ZSER_DOC TYPE) and assigned it to class 032 (ga

  • ITunes not starting in Win2000

    I know many others have had this problem, so let me try to specify mine. Recently, iTunes stopped working. I think it has to do with various free trial software I put on, anti-virus software. After the software got rid of the viruses, I uninstalled a