Value of the previous cell when I double click a cell in ALV Grid.

Hi !
Suppose I have an internal table GT_ITAB and I use ALV Grid to print it on the screen. The colums are as below:
Invoice No       Invoice Data        Customer No     Amount
  90001231        15.01.2009            100024             5
Customer No Fields is Hot Spot and when I click it uses Call Transaction 'FD10N' and Skip First Screen.
But the Problem is that :
Callback subroutine that is defined for  "i_callback_user_command" receives the input and
p_selfield type slis_selfield structure has the value by means of  p_selfield-value.
Problem : How can I get also the value of Invoice Data Cell. I need "15.01.2009" to set the Year field of FD10n.
I know that it is possible because SAP has examples of it.
Please advice.
Erkan VAROL.

Hi ,
  In teh structure slis_selfield  there is a field tabindex , you can get the index of the record selected from this field and use this to read the internal table being displayed in the alv to get the entrired row.
Regards
Arun

Similar Messages

  • I have photos on a cd which I'm trying to open .  If I click on them I can see the picture in the preview, but when I double click it doesn't recognise the picture.  They are all in .jpg format.  Tried copying them but it said some data cannot be read.

    I have photos on a cd which I'm trying to open .  If I click on them I can see the picture in the preview, but when I double click it doesn't recognise the picture.  They are all in .jpg format.  Tried copying them but it said some data cannot be read.  The files exist but I just can't seem to view them

    Select one and hit the Space bar to view it in QuickLook. Use the forward arrow keys to move from file to file.   If the file can't be viewed in the QuickLook mode then the file is damaged and probably can't be copied or moved.
    You could try a photo file recovery application like  MediaRECOVER which can scan the memory card and tell you what files, if any, can be recovered before you have to purchase it.
    OT

  • When using iphoto I can view the photos but when I double click on a photo it becomes a black box with a white circle on the screen

    When using iphoto, I can view the photos but when I double click on 1 specific photo it enlarges to a black box with a large white circle in it...doesn't matter which photo I click on the end result is the same...black box with a white circle.

    Hello michelefox17
    It's sounds like you may need to rebuild your iPhoto Library. The article below has the steps on how do that.
    iPhoto 6 and later: Rebuilding the iPhoto library
    http://support.apple.com/kb/ht2638
    If your issues persist then you may want to contact Apple Support
    Contact Apple Support
    http://www.apple.com/support/contact/
    Hope that help,
    -Griff W.

  • UDF: how to get a value in the previous record when lopping over records?

    Hello
    I have this challenge:
    Source message:
    <row>
      <ID>111</ID>
      <Score>200</Score>
      <Date>2010-01-01</Date>
    </row>
    <row>
      <ID>111</ID>
      <Score>230</Score>
      <Date>2010-01-02</Date>
    </row>
    <row>
      <ID>112</ID>
      <Score>230</Score>
      <Date>2010-01-03</Date>
    </row>
    etc...
    Now the case is, that IF the value of ID of the current record (row) is equal to the value of the ID of the previous record AND the Score value of the current record is bigger than the Score value of the previous record THEN a record in the target message must be created with these values:
    Target Message:
    <row>
      <ID_target> value of source ID </ID_target>
      <Score_yesterday> Score value of previous record (day) </Score_yesterday>
      <Score_current_date> Score value of current record </Score_current_date>
      <Date_current> Date of current record  </Date_current>
    </row>
    I am thinking of using GlobalContainer to store the previous values but am note sure how to maintain these previous values. In addition, I am thinking about using a UDF on the target row record, which will just create the row, if conditions are met (result.addValue("");) and then just make a simple mapping of the ID_target, Score_current_date and Date_current fields and make an other UDF for the Score_yesterday field where I get the Score for the previous record using the GlobalContainer value, that I stored in the other UDF.
    BUT:
    Should I use "All values of context" or "All values of Queues" in the UDF used on the row record and how do I make sure, that the Score_yesterday global container value is maintained correctly? I am planning of setting it in the UDF used on the Target row record but will it then be in sync with the consuming UDF of the Score_yesterday field?
    Java code to go into the UDF would be very much appreciated
    Mikael

    int tmp1;
    int tmp2;
    int len = ID.length;
    for(int i =0;i< len;i++)
         if( i!= len-1)
             tmp1 = Integer.parseInt(Score<i>);
             tmp2 = Integer.parseInt(Score[i+1]);
                   if(tmp2 >tmp1)
                     if (TARGET[0].equals("ROW"))
                              result.addValue("");
                          else if (TARGET[0].equals("ID_TARGET"))
                              result.addValue(ID[0]);
                         else if (TARGET[0].equals("SCORE_YDAY"))
                              result.addValue(Score<i>);
                         else if (TARGET[0].equals("SCORE_CDAY"))
                             result.addValue(Score[i+1]);
                         else
                             result.addValue(DT[i+1]);
    I got the following results for the set of data that you provided.
    Target-XML
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_TestingTGT xmlns:ns0="http://monsanto.com/CIC">
       <Row>
          <ID_TARGET>571515198310502207</ID_TARGET>
          <SCORE_YDAY>1000</SCORE_YDAY>
          <SCORE_CDAY>1010</SCORE_CDAY>
          <CURRENT_DATE>2010-03-02 00:00</CURRENT_DATE>
       </Row>
       <Row>
          <ID_TARGET>571515198310502207</ID_TARGET>
          <SCORE_YDAY>1000</SCORE_YDAY>
          <SCORE_CDAY>1050</SCORE_CDAY>
          <CURRENT_DATE>2010-03-04 00:00</CURRENT_DATE>
       </Row>
       <Row>
          <ID_TARGET>571515198310502207</ID_TARGET>
          <SCORE_YDAY>1050</SCORE_YDAY>
          <SCORE_CDAY>1080</SCORE_CDAY>
          <CURRENT_DATE>2010-03-05 00:00</CURRENT_DATE>
       </Row>
       <Row>
          <ID_TARGET>571515198310502108</ID_TARGET>
          <SCORE_YDAY>2000</SCORE_YDAY>
          <SCORE_CDAY>2040</SCORE_CDAY>
          <CURRENT_DATE>2010-03-03 05:00</CURRENT_DATE>
       </Row>
       <Row>
          <ID_TARGET>571515198310502108</ID_TARGET>
          <SCORE_YDAY>2000</SCORE_YDAY>
          <SCORE_CDAY>2040</SCORE_CDAY>
          <CURRENT_DATE>2010-03-05 05:00</CURRENT_DATE>
       </Row>
       <Row>
          <ID_TARGET>571515198310302203</ID_TARGET>
          <SCORE_YDAY>3000</SCORE_YDAY>
          <SCORE_CDAY>3020</SCORE_CDAY>
          <CURRENT_DATE>2010-03-05 00:00</CURRENT_DATE>
       </Row>
    </ns0:MT_TestingTGT>

  • How can I play the whole album, when I double click on the album it only plays the first track?

    How can I play all tracks on an album, when I double click on the album it only plays the first track?

    Make sure all the tracks are check-marked.

  • I am using iphone4s with iOS 7 and now I cannot delete applications from the home screen, when I double click the item it didn't shows the'x' button

    Hi,
    I am using iphone4s  &amp; now I updated with ios7 after that I cannot delete apps from home screen.  Earlier when we double click the apps  then it will wiggling &amp; 'x' button will appear now it isn't  so I need  solution for this
    Thanks,
    Binoy

    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf

  • HOW TO GET VALUE OF A PARTICULAR CELL IN ALV GRID

    I HAVE 2 ALV GRID. IWANT WHEN I DOUBLE CLICK ON ANY PARTICULAR CELL OF FIRST GRID I WILL GET THE VALUE DISPLAYED ON THAT PARTICULAR CELL.
    THANKS IN ADVANCE

    Hi,
    If you are using a class alv, you only need to create a local class to control event and, before setting the screen to present the alv, you need to assign the class as a handler, like this:
        CREATE OBJECT event_handler.
        SET HANDLER event_handler->double_click FOR alv_grid.
    This event handler was defined before like below and a object was created for it:
    CLASS cl_event_handler DEFINITION.
      PUBLIC SECTION.
        METHODS double_click FOR EVENT double_click OF cl_gui_alv_grid
          IMPORTING e_row e_column.
    ENDCLASS.                    "cl_event_handler DEFINITION
    Then you need to implement this class, creating the method double click and do a READ TABLE to the itab you presented in the alv to recover the data, like this:
        READ TABLE itab INTO wk_itab
          INDEX e_row-index.
    The e_row structure was sent to the method by the handler, setting it with the line index that you double clicked in the alv. After that, you can manipulate the data that you selected in your internal table to generate the data to the other ALV.
    Best Regards,
    -h

  • HT1430 How do I clear out the old windows when I double click?  We used to hold an icon at the bottom of the screen and touch the x's to delete.

    How do I delete old open windows.  Before the upgrade, I held an icon til it wiggles, then touched the x to delete.

    Double click the home button, then the material above the icon, swipe that up and away.

  • My ipad home button wont bring up the multitask bar when i double click it help please!!!!!!!!!

    please help

    If a double-click (which you need to do fairly quickly) isn't working, then have you tried a reset to see if it then works after the iPad has restarted ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • My iPad won't show the open apps when I double click

    Double clicking to show the open apps does not work.  I re-powered but it did not help.  Any suggestions?

    For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
     Cheers, Tom

  • Error when double clicking any field in Alv grid

    Hi All,
    I have created a custom container. To that custom container I am displaying an alv grid with all editable fields using oops concept.
    Hence when I am double clicking on any on the field of the table I am getting a dump " an exception condition ERROR raised in CL_GUI_ALV_GRID_BASE  in method SET_DRAG_DROP_ROWS".
    Kindly help

    Hi,
    Check the PF-STATUS. It seems that you have assigned F6 shortcut key for some event.
    Remove the F6 assignment & activate the pf-status.
    Best regards,
    Prashant

  • I have installed firefox and now have the icon but when i double click on ,nothing happens, please help

    I am trying to change web browser from internet explorer to firefox, I have downloaded firefox but I am not able to use the icon . Nothing happens when I click on to use it. please help.

    In case you haven't solved this by now...
    Sometimes your security software will block new programs from accessing the internet. Are you getting any alerts along those lines?
    Sometimes Firefox will stall during startup and never display its window. In that case, you may need to manually "kill" the firefox.exe process using the Windows Task Manager before trying to start Firefox again.
    You can display the Task Manager by pressing Ctrl+Alt+Esc. Windows 8.1 has a different display than Windows 7, so I have to go by memory. If you see a tab named Applications, check that one first. Then check Processes, and finally check Details. If you find Firefox or firefox.exe on any of those tabs, select it and End Process (or other action to shut it down).
    After you are done with the Task Manager, try starting Firefox up again.
    See also: [[Firefox won't start - find solutions]]

  • I have a 4s with ios7, the Flixter app appears when I double click the home button but has disappeared from the main screen page. How do I get it back?

    The app appears when I double click the homw button but has disappeared from the main screen. How do I get it back on the screen so that I don't have to double click every time?

    The app appears when I double click the homw button but has disappeared from the main screen. How do I get it back on the screen so that I don't have to double click every time?

  • TS3276 Mail is not responding. When I double click the icon spinning colour ball come out and my Mac Book Air hang. Can you solve this Problem?

    Dear Sir/Madame,
    Yesterday my mail worked very well. This morning I could not open the mail. When I double click at mail icon, spinning colour ball appear and my computer hang. I have to force quit the mail. I would appreciate very much if anybody can help me to solve the problem.
    Thanks
    Bambang Sutrisna

    Please follow these directions to delete the Mail "sandbox" folder.
    Back up all data.
    Triple-click the line below on this page to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder — not just its contents — to the Desktop. Leave the Finder window open for now.
    Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Post your results.
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • Get value of field object when I double click on any column of report

    Hi,
    We are converting our projects from .NET 2003 to .Net 2008 and upgrading reports10 to crystal reports 2008 and changing our Active x report viewer control  to crystal report viewer.
    We donu2019t use reports just to see and print the data. Our use is a bit more.
    As we were using Active X Control (CRAXDDRT) to perform different operations
    Following are some functions which are included in our requirements:
    1-     We need the columns width to be flexible which we can changed in the code dynamically according to the users wish
    2-     Setting text of some fields dynamically from .Net code
    3-     Hide and show the columns dynamically from .Net code
           Upto here we are done using crystal report 2008 and .net 2008
           Now we are stuck with problem
    4-     When we double click on fieldobject at runtime we are able to fetch the value of field object by using e.objectinfo.text.tostring, so far it is perfect
    But we have different situation here and need a solution for this
    I have two fields like Account ID and Account Description
    I need the solution so that when user clicks either on Account ID or Account Description I should be able to fetch the Field object value of Account ID Column only so that i will be able to open different forms and reports based on that ID
    As we were doing it before using Active X Control the code snippet is giving below
    case "Field: Account. AccountID ", "Field: Account.Description"
    GlobalCode = GiveCode(mYFields.Item(1).value) '------ Where 1 refer to Account ID, so in both cases either we click Account ID or Description Field at run time we are able to return the account ID field value.
    so we need solution some thing like that please do let us know how we can do that
    For Your reference we were using CrystalActivexReportViewerLib10.CRVFields obejct to fectch the report values
    Thanx in Advance
    Regards,
    Arshad Hussain Bhatt

    Hello,
    I am getting value of that cell where I am clicking. But I need the value of other columns also in that particular row where I double clicked. For this I gave one example also that suppose I have a report where there are two columns. One is AccountID and other is AccountDescription. Now if I click on Account ID I get the value of AccountID and when I click on AccountDescription I get the value of AccountDescripiton This is oK n good but I want that If i double click on AccountDescription I should be able to get the value of AccountID also.Please tell me is there anyway to do so?
    We did so when we were using CRAXDRT.Report Bellow is the code snippet for how I did it in that.
    Dim MyField As CrystalActiveXReportViewerLIb10.CRVFields
    Private Function GiveFieldIndex(ByVal As CrystalActiveXReportViewerLib10.CRVFields, ByVal FldName As String) As Integer
    For i as integer = 1 To FldArry.Count
        If FldArry.Item(i).name = FldName Then
                    GiveFieldIndex = i
          End If
    End Function
    Private Sub CRViewer1_DoubleClick(ByVal eventSender As System.Object, ByVal eventArgs As AxCrystalActiveXReportViewerLib10._ICRViewerEvents_DblClickedEvent) Handles CRViewer1.DblClicked
    If MyField.Name = "Field: AdoJV.AccountID" Or MyField.Name = "Field: AdoJV.AccountDesc" Then
    /Following line will give us AccountID in anycase either we click on AccountID or Account Desc or even you can add more column by adding Or Operator. We need something like this in Crystal Report 2008/
      Dim GlobeAddEditCode  as String = myFields.Item(GiveFieldIndex(myFields, "Field: AdoJV.AccountID")).Value
    End If
    End Sub
    Regards,
    Arshad Hussain Bhatt
    Edited by: arshhb on Oct 31, 2009 6:44 AM
    Edited by: arshhb on Oct 31, 2009 7:09 AM
    Edited by: arshhb on Oct 31, 2009 7:13 AM

Maybe you are looking for

  • Question regarding MSCS post upgrade.

    We currently have ECC 5.0 ABAP only system (NO JAVA) running in MSCS environment. ( Windows-SQL server) Currently we have Two nodes such as  Node 1 and Node 2. At a given time we have all resources running either on Node 1 or Node 2. Now, we have com

  • Logic Studio quitting unexpectedly

    Logic Studio quits unexpectedly after I installed steinberg cubase LE 5. Even after deleting Cubase, Logic still quits unexpectedly. As Logic Studio is my main app I need to make sure I can get access to it. Can anyone please help me. - Jim.

  • Error when uploading a crystal report with dynamic parameter into Infoview

    Hi All, I was trying to upload a crystal report which has a dynamic parameter into a Infoview. It shows an error message that say:- "Failed to read data from report file C:\WINDOWS\TEMP\tmp27A.rpt. Reason: Failed to read parameter object ". Can anybo

  • IPod has an error that iTunes is not fixing.

    Hey so I have my 5G 30GB iPod and when I turn it on I read the following: "Connect to your computer, use iTunes to restore." when I do this my computer goes through the process of restoring it but then the computer tells me to restore the iPod again.

  • IPhone not recognized by most computers

    Hi, My problem: iPhone 4 32GB is not recognized at all by the computer. A popup shows up: Unknown Device. Tried: - replacing the dock connector - completely restoring the device - putting it in DFU mode - PC ánd Mac - different cables - latest update