Wrong GET_CURRENT_CELL  result

Hi there. I've got a problem with CL_GUI_ALV_GRID object.
In PBO when creating grid:
*&      Module  STATUS_1024  OUTPUT
*       text
MODULE STATUS_1024 OUTPUT.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.
  DATA: line   LIKE LINE OF G_ukoly .
* EDITOR
  DATA: L_utext TYPE ls_lch8192 OCCURS 0 .
  DATA: L_utmp LIKE zlhist03 .
  DATA: L_utmp2 LIKE zlhist04 .
  DATA: L_txt01(100) TYPE c .
  IF c_ukol02 IS INITIAL .
    create object c_ukol02
      exporting
        container_name = 'C_UKOL02' .
    create object e_ukol02
      exporting
         parent            = c_ukol02
         wordwrap_mode     = cl_gui_textedit=>wordwrap_at_fixed_position
         wordwrap_position = 80
      exceptions
         others            = 1.
    call method e_ukol02->set_statusbar_mode
      exporting statusbar_mode = 1.
    call method e_ukol02->set_toolbar_mode
      exporting toolbar_mode = 1.
  ENDIF .
* REFRESH L_utext .
* CLEAR   L_utmp2 .
* 01
  IF ( C_UKOL01 IS INITIAL ) .
    CREATE OBJECT c_ukol01
      EXPORTING container_name = 'C_UKOL01'.
  ENDIF .
  IF ( g_report01 IS INITIAL ) .
    CREATE OBJECT g_ukol01
      EXPORTING i_parent = c_ukol01 .
    PERFORM fieldcat_ukol01 .
    CALL METHOD g_ukol01->set_table_for_first_display
      EXPORTING is_layout       = is_lay_ukol01
                i_save          = 'A'
*               i_default       = ''
      CHANGING
                it_outtab       = G_ukoly[]
                it_fieldcatalog = ws_fcat_ukol01 .
    CALL METHOD g_ukol01->register_edit_event
      EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified.
  ELSE .
    CALL METHOD g_ukol01->refresh_table_display .
  ENDIF .
And in PAI :
CASE ok_code .
    WHEN 'F_UEDITTASK' .
      CLEAR G_trow . CLEAR G_tid . CLEAR G_troid .
      CALL METHOD g_ukol01->GET_CURRENT_CELL
        IMPORTING
          ES_ROW_ID = G_tid                <===
          E_ROW = G_trow .
      CALL METHOD g_ukol01->GET_SELECTED_ROWS
        IMPORTING
          ET_ROW_NO = G_troid .
      REFRESH L_text .
      READ TABLE G_ukoly INTO L_tline INDEX G_trow .
      IF ( sy-subrc EQ 0 ) .
        APPEND L_tline-text TO L_text .
        CALL METHOD e_ukol02->set_text_as_stream
          EXPORTING text = L_text .
      ENDIF .
ENDCASE.
The first time I set focus on some grid line (for example 2-nd line)  G_tid and G_trow takes proper values (In that case 2). But after that no matter which line was selected G_tid and G_trow takes the row number 1, even if You match 5th row
Strange situation because when I match for example 2nd row, then press a button, after PAI/PBO focus stays on the 2nd line, so It seems to be ok

You can use
* Get the Current Cell
  CALL METHOD CL_GUI_ALV_GRID=>GET_CURRENT_CELL
    IMPORTING
      E_ROW     = LE_ROW
      E_VALUE   = LE_VALUE
      E_COL     = LE_COL
      ES_ROW_ID = LES_ROW_ID
      ES_COL_ID = LES_COL_ID
      ES_ROW_NO = LES_ROW_NO.

Similar Messages

  • Wrong password resulted in disabling of the ipad. it says connect to itunes, i did but i am not able to activate the ipad

    wrong password resulted in disabling of the ipad. it says connect to itunes, i did but i am not able to activate the ipad.
    Ipad has been disabled

    You may need to put the iPad into recovery mode  : http://support.apple.com/kb/ht1808 - you should then be able to reset it via your computer's iTunes and restore/resync your content to it

  • Calculated key-figures are wrong in result rows

    Hi,
    I developed a BEx query which shows profi-centers and materials in the rows, and the price, the amount and the amount-value in the columns.
    Price and amount are basic key-figures on the cube, the value is calculated via a calculated key-figure in the query (price*amount).
    Now I have added result rows an profit-center level in the workbook. Everything works fine, BUT when I hide the materials, the result-row on profit-center level is calculated wrong.
    Is there any possibility to hide the material-lines without having the resul-rowts calculated wrong? Is there any feature like "caculate material in background but hide in the workbook"?
    I don´t like to create other basic key-figures on cube level, as this is only an example for lots of calculated key-figures which I use.
    Thanks for your help,
    Patrick

    Hi Patrick,
    Since the prices and amounts are on the material level, therefore the calculation for amount value will be correctly done only when you have materials in the rows.
    Now when you hide the materials, then the system would not know on what basis to do the calculation: I'll explain with an example.
    Let's take four materials which have the same profit center assignment. But the prices for each of them are different and so are the amounts. Now if you remove the materials from the rows, then say the system calculates amount-value by taking the average price and multiply that with the total amount of the four materials. That would also give an incorrect result - isn't it?
    So there is no way to define what the system should do when material is removed from the rows.
    So material would be the minimum required granularity for such a report to show correct results.
    Regards,
    Shweta

  • Wrong overall result population in the query output

    Hi All,
    I have few issues with my query..
    we have a query which gives  report about the brand name, brand element, brand group, netsales, cumulative sales and royality percentage.
    1. the over all result for the Royality percentage is not getting calulated properly... i have compared the result setting of the other fields which get proper overall result.  i dint find any difference even then i face this issue
    2. The royality percentage is a% of netsales.. but here is issue is when i drill down thro Brand element i am getting proper amount i.e. a% of current sales but when i remove drill down am getting wrong value... and this happens only for one brand not for others...i dont understand why is this happening..
    3. let us consider we have 4 brands.  for 2 brands my royality percentage is getting calculted properly but for 2 brands it is showing wrong value.
    can anyone help me out in this issue...
    i dint get even a single clue regarding this... need your expert help

    Hi ,
    in our report we have calculated roayality fee based up on current net sales.
    current sales comes directly from the infoprovider..
    the royality fee is 6% of current net sales for each brand element.
    Now the issues are
    1. we have four brands... for two brands we are getting correct Royality fee.. i.e. exact 6% of its respective current net sales.
    but for two brands we are not getting the 6% value..
    2. There is one more field named Brand Element.  when i drill down the Brand element, for one brand (out of two which gets wrong royalty fee) alone my royalty fee is getting differed.
    ex. with drill down royalty fee is 82.5 (which is 6% of its current net sales)
          after removing the drill down royalty fee is 63.5 (Which is not related)
    it is not happening for other brands.. why is it behaving so.
    3.  What ever the royalty fee is the overall result of the royalty fee is not getting calculated properly..
    I.e.  for four brands if i calculate the total of royalty fee it comes around 380
    but now it is displayed as 272 (no idea what total it is)
    thanks for the help in advance

  • Wrong Search result for Employee Resp.lD when searching Sales Order

    Hi All,
    Happy new year first of all,
    I encounter a problem when using search sales order in WebUI. I am using SAP CRM 2007 SP4.
    I notice that the search result by using Employee Responsible ID as criteria, is returning Person Responsible
    instead !
    I entered both partner function in sales order document (Employee Responsible => BP 1234 and
    Person Responsible => BP 4567).
    Although in Search criteria selection I choose Employee Responsible ID, but when I put
    the BP 1234, the search result is blank. And when I change the value to BP 4567, I can see the result
    shows that document. But BP 4567 is Person Responsible, how come it gives the result for Employee
    Responsible??
    This is totally wrong! I couldn't find SAP NOTE or same issue mentioned here in SDN.
    Did I miss it? Please kindly share your find out if you have same case or solution for this.
    Thank you and will be rewarded.
    Cheers,
    Gun

    Hi Robert,
    Which config are you refer to in SPRO ?
    Partner Function Determination ?
    By attention to the Relat. Category change, we can not simply change it (although it can fix this
    problem). I read the field info :
    In many cases this is predefined in the system, based on the partner function category chosen. You can assign the corresponding relationship type freely if:
    - you select the partner function category undefined partneror
    - you have yourself defined the relationship category to
    So did you try it? fixed the problem? or have you encounter further problem?
    Rgds,
    Gun.

  • Wrong query results: due to date format?

    hello,
    I have oracle 11 and when I execute this query:
    select MYDATE from mytable order by MYDATE DESC;
    it get me a bad order:
    MYDATE
    25-MAR-09
    13-MAR-09
    10-MAR-10
    10-MAR-10
    31-JAN-10
    29-JAN-10
    28-JAN-10
    08-DEC-09
    07-DEC-09
    06-DEC-09
    05-DEC-09
    is it may due to a wrong date format?
    where have I to look out? init.ora?

    But, there is no problem at my end (Using Oracle 10.2.0.1 on win xp):
    SQL> create table t(mydate date);
    Table created.
    SQL> insert into t values(to_date('25-MAR-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('13-MAR-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('31-JAN-10','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('07-DEC-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('05-DEC-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('06-DEC-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('08-DEC-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('10-MAR-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('29-JAN-10','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('10-MAR-10','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('28-JAN-10','DD-MON-YY'));
    1 row created.
    SQL> select * from t;
    MYDATE
    25-MAR-09
    13-MAR-09
    31-JAN-10
    07-DEC-09
    05-DEC-09
    06-DEC-09
    08-DEC-09
    10-MAR-09
    29-JAN-10
    10-MAR-10
    28-JAN-10
    11 rows selected.
    SQL> SELECT MYDATE FROM T ORDER BY MYDATE DESC;
    MYDATE
    10-MAR-10
    31-JAN-10
    29-JAN-10
    28-JAN-10
    08-DEC-09
    07-DEC-09
    06-DEC-09
    05-DEC-09
    25-MAR-09
    13-MAR-09
    10-MAR-09
    11 rows selected.
    SQL> SHOW PARAMETER NLS_DATE;
    NAME                                 TYPE        VALUE
    nls_date_format                      string
    nls_date_language                    stringCan you show us the output of
    show parameter nls_date;
    Regards
    Girish Sharma

  • Expected (wrong?) results from Express VI - a bug?

    Using a Lab-Vierw supplied example made with express VIs fro signal egneration and ifltering.
    MOdified the express VI so that instead of using a Butterworth lowpass it would use a Bessel with
    variable order (variable # of poles).
    Unexpecte result: when choose corbner freq = 1 KHz and drive with 1 KHz signal, I should get
    output = 0.71 times input since at the corne freq, the output shuld be 3 dB down.
    And I do get that result with a BUtterworth (all orders tried) or with a Bessel, if the Bessel is 1st order.
    But for Bessel of order 2 or more, the attentiation is greater than expected, greater than it should be.
    Bessel with Fc = 1000 Hz:
    8 pole: Out/In = 0.18 when f=1000; Out/in=0.71 when f=500 Hz.
    4 pole: Out/In = 0.39 when f=1000; Out/In = 0.71 when f=645 Hz.
    2 pole: Out/In = 0.57 when f=1000; Out/In = 0.71 when f=790 Hz.
    1 pole: Out/In = 0.71 when f=1000 as expected.
    Is this a bug or is there another explanation?

    The KB that I posted does show the transfer functions for the LabVIEW implementation of the Bessel functions.  As WCR points out this does change what the cutoff frequency is actually referring to when using higher order Bessel filters.  The LabVIEW help should reflect what the actual definition of the cutoff frequency for each filter, but it does not.  I also checked the Chebyshev filter VIs and it does not refer to the ripple dB when specifying what the cutoff frequency is for that type of filter. 
    So, does the LabVIEW implementation of the higher order Bessel functions give results that might not be expected?  Yes.  Should the help files be updated to reflect this?  Probably. 
    One thing that I did want to point out is that you can view the transfer functions used for the different types of filters using the Filter Express VI.  If you open the configuration page and select the Transfer function as the View Mode, it will show how the transfer function looks for each filter.  If you select Butterworth, you can increase the order and see it lock on the -3 dB point.  If you select Bessel, you can increase the order and watch the curve shift to the left, decreasing the dB values at the cutoff frequency. 
    Andy F.
    National Instruments

  • Wrong query result

    Hi,
    I have an issue with the key figures (Net value total) defined in my query when there are multiple rows for a sales document/item. Here is the scenario which explains the problem.
    Salesdoc Itemno net value sold to contact ID
    3200 10 3000 ST0001 CT0001
    3200 10 3000 ST0001 CT0002
    3200 10 3000 ST0001 CT0003
    Base on the above scenario, if I run the query and see the result for the Net value total of a sales document, it is showing up as $9000 (as there are 3 contact ID’s). The contacts are actually stored in a different ODS object. And this ODS object has been linked to the sales ODS object using an Infoset. And the query built on this infoset is causing this issue.
    Please let me know if there is any workaround for this issue (The above scenario I mentioned is the result of the info set after combining data from Contact ODS and Sales ODS. And I don’t want to store the data in a separate ODS keeping the net value as $3000 for the first row and 0’s for the rest of the two rows, to resolve this issue).
    Appreciate your help on this!
    Thanks
    MM.
    Message was edited by: tony

    i have a very simple example.
    public class Simple {
    private Integer id;
    private String text;
    public Integer getId() {
    return id;
    public void setId(Integer id) {
    this.id = id;
    public String getText() {
    return text;
    public void setText(String text) {
    this.text = text;
    and the query is
    ReadObjectQuery query = new ReadObjectQuery();
    query.setReferenceClass(Simple.class);
    query.conformResultsInUnitOfWork();
    Simple simple = new Simple();
    simple.setText("c");
    query.setExampleObject(simple);
    the database tabel has 5 rows
    1,a
    2,b
    3,c
    4,a
    5,a
    before i execute the query i change the text
    from the simple object ( from "c" to "x")
    after execute
    i get the object with id 5 and text "a"

  • WRONG QUERY RESULT WITH REPORTQUERIES AS SUBQUERIES

    hi,
    i create a ReadAllObject - Query with
    a ReportQuery as SubQuery.
    when execute the query the result at the SubQuery
    contains the data from the database.
    the result does not contain the change of these
    data in memory of the aplication.
    method public void conformResultsInUnitOfWork()
    has no effect
    i have a simple example
    public class A{
    private int id;
    private String name;
    private Collection B = new ArrayList();
    public class B{
    private int id;
    private String name;
    private C c ;
    public class C{
    private int id;
    private String name;
    and the query is
    ReadAllQuery query = new ReadAllQuery();
    query.setReferenceClass(A.class);
    ReportQuery subQuery = new ReportQuery(A.class, subQueryEb);
    subQuery.addAttribute("id");
    subQuery.setSelectionCriteria(eb.anyOf("B").get("C").get("name").equal("Test")));
    query.querysetSelectionCriteria (eb.get("id").notExists(subQuery));

    Conforming subqueries and report queries are not supported in memory. You should be getting an exception thrown stating this.
    Your code does not show the call to conform, make sure it is on the root query, not the subquery.

  • Wrong search results - Oracle 10.1.0.5

    I have a text index based on a file datastore which has around 25,000 documents (pdf, doc and xls). In some cases the search returns documents that do not have the search string.
    I have tried dropping and recreating the index, but the problem doesn't seem to go away.
    Here is the table definition and create index command.
    create table SK_FILES (
    ID NUMBER not null,
    ISSUE_ID NUMBER,
    DESCRIPTION VARCHAR2(512),
    PATH VARCHAR2(512)
    CREATE INDEX SK_FILE_INDEX ON SK_FILES(PATH) INDEXTYPE IS ctxsys.context
    PARAMETERS ('datastore COMMON_DIR')
    I would appreciate your help.
    Thanks,
    Vijay

    Following query fetches 116 rows
    SELECT SCORE(4), SF.PATH, SF.ID FROM SK_FILES SF
    WHERE CONTAINS(PATH,'gorla', 4) > 0
    ORDER BY SCORE(4) DESC
    The document corresponding to one of the rows in the resultset (SF.ID=2162) does not have the word 'gorla' at all. But the document (2148) that contains the word is not in the resultset.
    And, if I query the snippet for 2162, i get the bits from 2148.
    Looks like oracle's internal document pointers are all jumbled up

  • Why do I get a different (wrong) calculatio​n result in an installed program version by using StdDev-fun​ction

    Dear Users of LabWindows,
    I am using "StdDev" from "analysis.h" in a program.
    I am using LabWindows 2012 and Win 7 64 Bit.
    The program gives me a (right) calculation result on my development PC by using "StdDev".
    On a PC with only the runtime I receive a different (wrong) calculation result.
    What could be the problem?
    I watched in the forum about half an hour to find some similar error but I only found hints for the two solutions below:
    Do I need to include to the project the "analysis.lib"-file?
    In my distribution in the "Edit Installer"-window in the TAB "Drivers & Components" I have "only" selected the sub-option "Standard Run-Time" in the main option "NI LabWindows/CVI Shared Run-Time Engine". Do I need to add the sub-option "Analysis Support" too?
    Actually I haven't tested these two possible solutions. I asking myself and this forum: Could this be the solution?
    I am asking myself because in my actual project I get no error:
    Neither on clicking "Check Module Dependencies" in TAB "Drivers & Components", Nor in any usage of the program on my deleoper PC or the user PC with only the "Standard Run-Time".
    I witness no compile error or warning (my setting is "Aggressive" an everythin is checked) no non-fatal no fatal run-time error no error at all.
    Could the above described error also be caused by different "Country Settings" of the Windows-System itself? This means "," instead of ".".
    Best greetings to all who may help me.

    Calling an advanced analysis function without providing its library should throw an error;
    do you check for the return value, i.e., status = StdDev ()? In your case status should be something like -5093 (The analysis library was not found).
    You do not need to include the analysis.lib file in your project but in your distribution, i.e., you need to check 'Analysis Support'. If you click on Analysis Support (the text, not the checkmark) on the right side of the panel there is a little explanation saying 'Include this component when your application calls Analysis Library functions'. 

  • TS3682 I have tried to restore me iPod that is disabled due to typing in the wrong password too many times. iTunes keeps giving me a box saying that it can't connect because I need to type in the passcode on the iPod (which I can't) what do I do now?

    I have followed the steps provided by apple to restore an iPod touch. It is disabled due to having the wrong password entered too many times. When I get part way through the restore process on my computer it pops up a box saying that it can't restore until I enter the passcode into the iPod. I have tried this same process over 5 times now and keep gutting the same results. It is my kids iPod and he has only had it since September. Someone please help me before I throw the thing through the window and my kid strangles me!!! Thanks!

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen        
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • How do I reset my Ipod if the passcode that was put on it was entered wrong too many times and it disables the ipod?

    My son put a passcode on his IPOD TOUCH and couldnt remember it and entered it too many times. Now it has disabled the Ipod and says please connect to ITunes and ITunes will not connect to it because it has been disabled, I have already spoke to an Apple representative and did exactly what they told me to do to help reset the Ipod but that didnt work. So I am trying to figure out how we can get back into his IPod even if we have to factory reset it because nothing is working, not their instructions or the internet instructions for reseting it.

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device
    1. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. iOS- Understanding passcodes
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. How to Recover Forgotten iPhone Restrictions Passcode | The iPhone and iPad
    6. Restoring iPod touch after forgotten passcode
    7. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    Restrictions Passcode Help
    1. How to Recover Forgotten iPhone, iPad Restrictions Passcode

  • I put my ipod on voicecontrol by accident so i typed in my password it said it was wrong i typed it in over and over and it said connect to itunes so I did then i updated it and it told me to restore it still says to connect to itunes please help.

    I put my ipod on voice control by accident so i typed in my password because I wanted to listern to my music it said it was wrong. So i typed it in over and over again until it said connect to itunes so I did. Then while I was at it I updated it I waited 30 mins and then I couldn't turn it on. When it finally did turn on it still said please connect to itunes. So i restored it and rebooted it everything. And it still says connect to itunes. I go on itunes and it says ipod touch is in restore mode unlock password. Well I can't do that if my ipod is disabled. Please help.

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • I have locked myself out of my ipod by entering the wrong password to many times now it tells me to plug it in to the computer and go to itunes when i do that itunes says it cant connect because the ipod is locked im lost at what to do about this anybody

    i have locked my self out of my ipod by entering the wrong password to many times now it tells me to plug it in to the computer and log into itunes when i do itunes tells me it cant open my ipod because its locked does anyone know how to fix this?

    IPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    Please Get the iPod Touch User Manual for iOS 5

Maybe you are looking for

  • Version 1.0.2 freezing today- 10/5/7  for me and friends!

    This morning I got a text from my father asking me to not call his iphone today because it kept freezing on him. 2 hours later, my phone began doing the same! freezing everywhere- it does not what apps we use. I called ANOTHER person who has also not

  • LUMIX TZ7 movies import unsuccessful: is this normal in FCE4.0.1?

    I tried to make a search of my problem but not fully successfully. As said in the title , I have a lumix TZ7 that can record AVCHD movies: in spite of this, if I try to import them in FCE4.0.1, with the log and transfer function, they are readable bu

  • Do photostream photos get saved forever on your mac?

    After a photostream photo has been upload to my mac, will it be deleted from my mac after a certain amount of time or is it now saved on my mac forever? I notice that photos are saved to a new event titled, for example, Sept 1 - Oct 1, 2012 photostre

  • TMS Configuration Database installation

    Dear Gurus, I have few requirements from client which is (1). TMS configuration  between two systems which are DEV(Bangalore) PRD(Hyderbad) is it possible or not if is possible howit is? (2). is it possible to install database is in one server and SA

  • Why Won't IPod Organize For Me?

    Okay. I had to install Itunes on a new HDD I just put in. When I did, my library was lost. I reinstalled it and put all my songs back onto it. In itunes, the songs come up in the proper order, but, on the Ipod, they aren't. A lot of the albums are di