Problem in displaying data using ALV interactive using OOPS

Hi friends,
I have created one interactive report using oops..
  on my selection screen i have a select-option  TABNAME for DD02L table with no intervals option.
ie : i enter table names in that field..
for example i enter VBAP
                               MARA,
                               MARC.       etc
when i execute i get a basic list which gives some details about the tables.
now on my basic list when i double click on any row then ie : say if i click on 2nd row , in the back ground based on the index on which i have click iam reading that particular row from the table and from that using the table name iam displaying the all the fields of the table in the ist secondary list....
Till now its working fine but once when i go back to the back to the basic list and when i click another row... here even if click another row its displaying the same fields of the table which was ist click.
ie : say ist time i have clicked mara then later vbap.....But its displaying me the mara details instead it should display vbap details...
I have used refresh_table_display method also.... But its not working fine...
How can i correct it...
Regards,
Kumar.

Hello Kumar
I can only guess that you call the second screen (perhaps '0200') within the event handler method for event DOUBLE_CLICK. This is not really a good idea. Instead use a simple trick to overcome this refreshing problem:
METHOD handle_double_click.
" Save the row perhaps in a static attribute of your event handler method, e.g.
.  lcl_eventhandler=>ms_row = e_row.  " ms_row defined as static attribute of event handler class
" Trigger PAI with a defined ok-code:
  CALL METHOD cl_gui_cfw=>set_new_ok_code
    EXPORTING
     ok_code = 'DETAIL_LIST'.
ENDMETHOD.
This method call triggers PAI of your screen which otherwise does not occur after an event has been raised.
MODULE user_command_0100 PAI.
  CASE gd_okcode.
    WHEN 'DETAIL_LIST'.
       perform DISPLAY_DETAIL_LIST.  " and call screen '0200'
    WHEN OTHERS.
  ENDCASE.
ENDMODULE.
The next time you make a double click a new row/index is filled into the static attribute. By triggering PAI (followed by PBO) you ensure a flushing (= refreshing) before the secondary list is displayed.
Regards
  Uwe

Similar Messages

  • Problem in displaying data in alv grid.

    Hi Experts,
    I am using the class CL_GUI_ALV_GRID for displaying my data in the ALV Grid.
    But I have a requirement
    If there are more than one record with the same values in some fields I have to display the values in the first record itself . for other records I have to display the record with the fields having different values of the previous record.
    And another requirement is When the user use the scroll bar regarding the same datas, the first record displayed will contain the datas used.
    How can we achieve this functionality?
    Regards
    Kasinath

    Hi,
    while preparing internal table to be passed to ALV, you have to implement the logic for these scenarios.
    Regards,
    Raghavendra

  • Not able to display data in separate columns using Unicode encoding

    Hi,
    Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
    Please let me know how to display data in different columns using Unicode encoding in Excel sheet.
    This is an urgent need. Please help me out.

    Hi,
    I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
    eg:
    select
    case
    TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2)
    = :P15_EV_LCL
    then
    span style="background-color:lightgreen"
    || TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    else
    span style="background-color:yellow"
    || TRUNC(
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    end "Effort"
    from actuals Z
    If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
    Please suggest
    Thanks
    Sudhir
    Edited by: Sudhir_N on Mar 23, 2009 10:00 PM

  • Not able to display data in different columns using Unicode encoding

    Hi,
    Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
    Please let me know how to display data in different columns using Unicode encoding in Excel sheet.

    Hi Venkat,
    After extracting data into DSO check the request whether active or not.
    Check data in DSO in contents.
    If is there any restrictions on info providers in Queries.
    Let us know status clearly.......
    Reg
    Pra

  • Display data in log file using PL/SQL procedure

    Just as srw.message is used in Oracle RDF Reports to display data in log file in Oracle Apps, similarly how it is possible to display data in log file using PL/SQL procedure?
    Please also mention the syntax too.

    Pl post details of OS, database and EBS versions.
    You will need to invoke the seeded FND_LOG procedure - see previous discussions on this topic
    Enable debug for pl/sql
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_LOG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    HTH
    Srini

  • Problem while writing data on xls file using jxl API

    Hi,
    I am getting problem while writing data on excel file using jxl api.
    When i write data on file and all handles associated to the file are closed, file size increases but when i open the file nothing is written in it and when file is closed manually from excel window, file size decreased to its original that was before writing data.
    here is code:
              FileOutputStream os = new FileOutputStream(this.dirPath + this.fileName, true);
              WritableWorkbook this.workbook = Workbook.createWorkbook(os);
    after writing data following handler are closed:
    this.os.flush();
                        this.workbook.write();
                        this.workbook.close();
                        this.os.close();
                        this.os = null;
    can any body help me.
    Thanks in advance

    Err, I did help you. I did understand your problem; and I solved it for you. What was missing was that you apparently made no effort to understand what you were being told. Or even consider it. You just argued about it, as though you were the one with the solution, instead of the one whose code didn't work.
    And the other thing that was missing was the part where you said 'thank you' to me for solving your problem. Somewhat more appropriate than biting the hand that fed you, frankly. I do this for nothing, on my own gas, and it's extremely irritating when people keep asking about problems I have already solved for them. I am entitled to discourage that. It's part of making them more efficient actually.
    But it happens often enough that it also makes me think I'm just wasting my time. Probably I am.

  • Problem in displaying decimals in ALV

    Hello Everyone,
    I am facing problem in displaying decimals in ALV
    Here i want to display 1.00000- but is displaying as 1,000.00-
    Is there any solution by not using REPLACE and changing the user settings. Please let me know. <removed by moderator>
    Thanks in advance.
    Radha.
    Edited by: Thomas Zloch on Dec 12, 2011 6:23 PM

    - If this is a currency amount or a quantity, did you correctly define the link to currency code or quantity unit of measure ?
    (Many available documents to read like [Value Display with Currency/Quantity Unit|http://help.sap.com/saphelp_erp2004/helpdata/en/ff/4649b1f17411d2b486006094192fe3/frameset.htm])
    - If this is not such a field, but a basic numeric type, did you try to fill DECIMALS_O in the field catalog ?
    Regards,
    Raymond

  • How to trigger New page while using ALV with classes/oops?

    Hi All
    I am trying to print a report which has to show the data in two pages.
    I am using ALV with classes/oops.
    Though I am able to print the report but a new page is not coming. Whole of the data is coming in one single page.
    Please tell me as to how to trigger a NEW PAGE while using ALV with classes/oops.
    Please send some code samples also if available.
    Thanks in advance.
    Jerry

    using sort option you can do it. in case of grid/oo alv class ALV you can view that only in print mode/preview mode.
    in case of list you can view that directly.
    sort-fieldname = 'FIELDNAME'.
    sort-group = '*'  "triggers new page
    sort-up = 'X'.
    append sort to it_sort.

  • To display data in alv for perticular way

    in my itab data is like below mentioned way
    1     1111               0.00     3404     EUR     53.86     D
    2     1111               0.00     1962     USD     1866.58     D
    3     1111               0.00     1231     USD     14387.51     D
    4     1111               0.00     1231     CAD     18251.13     D
    5     1111     1200     CAD     16660.25               0.00     R
    6     1111     1200     USD     43908.08               0.00     R
    7     1111     1231     CAD     895636.49               0.00     R
    8     1111     1231     USD     15470.37               0.00     R
    9     1111     1390     USD     11183.27               0.00     R
    10     1111     1552     CAD     33149.77               0.00     R
    i need to display data in ALV like
    company     1111                                   
         reciepts                         payments          
         1200     CAD     16660.25          3404     EUR     53.86     D
         1200     USD     43908.08          1962     USD     1866.58     D
         1231     CAD     895636.49          1231     USD     14387.51     D
         1231     USD     15470.37          1231     CAD     18251.13     D
         1390     USD     11183.27                         
         1552     CAD     33149.77          
    plz guid me to do this
    thanks ,
    vamsee
    Moderator message: you want the community to figure out the logic and provide the solution -> please try solving this yourself first, search for available information, provide more details about what you are trying to do when posting again.
    Edited by: Thomas Zloch on Nov 29, 2010 3:37 PM

    Hi expert,
    itab1 data.
    1 1111 0.00 3404 EUR 53.86 D
    types:begin of ty_data,
    fld1 type string,
    fld2 type string,
    fld3 type string,
    fld4 type string,
    fld5 type string,
    fld6 type string,
    end of ty_data.
    data:itab type standard table of ty_data,
    wa type ty_data.
    wa-fld1 = '1'.
    wa-fld2 = '111'.
    like so on -
    append wa to itab.
    please create the another internal table for below data.After the we can assign itab1 data to itab2 respective fields.
    types:begin of ty_data1,
    fld1 type string,
    fld2 type string,
    fld3 type string,
    fld4 type string,
    so on
    data:itab2 type standard table of ty_data1,
    wa2 type ty_data.
    loop at itab into wa.
    wa2-fld1 = wa-fld3.
    wa2-fld2 = wa-fld4.
    append wa2 to itab2.
    then we create the fieldcatlog for itab2 then only is work.In which u want to display on alv same way we can create.the internaltable(itab2).
    regards,
    muralii

  • Automatic Display of NEW Data in ALV Report using Classes and Methods

    Hi,
    I have developed a ALV Report for displaying data from a set of DB tables using ABAP OO, Classes and Methods. The requirement is to have the report output to be automatically updated with the new entries from the DB table at a regular frequency of tiem may be every two minutes.
    Could anyone please tell me how can this be acheived.
    Thanks and regards,
    Raghavendra Goutham P.

    Yes its possible.
    Take a look at this thread
    Auto refresh of ALV Grid, without user interaction
    Or Rich's blog
    /people/rich.heilman2/blog/2005/10/18/a-look-at-clguitimer-in-46c
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • Problem in displaying a field in webdynpro using Adaptive RFC model

    HI,
    I created a webdynpro application using adaptive RFC model and i have a problem in displaying one of the output fields.
    When i execute the function module it is giving the exact value for my output field in this case telephone number (of type STEXT which is char with length 40).But when i am trying to display that telephone number in webdynpro application it is taking only first 4 digits.
    i deleted the model and recreated it still it doesnot work.
    please let me know how to resolve it.
    points will be awarded for sure
    Bala

    Hi Bala,
    Whenever you reimport the model server restart is necessary otherwise the changes will not get reflected. You will get an error when you deploy the application.There is no go around except restarting the server as the meta data gets cached in the server as long as the server is runnig.So, Once you restart the server the cache will be cleared.
    Check once again whether you are fetching data from correct BAPI field. Still problem persist try debugging.
    Regards, Suresh KB

  • Displaying header in ALV By using OO ABAP

    Hi,
    I have displayed ALV Grid by using OO ABAP.
    Would you please tell me how to disply header for this ALV by Using OO ABAP.
    Moderator Message: Please search for available information.
    Edited by: kishan P on Nov 22, 2010 8:22 PM

    Hi,
    Try this way
    form built_sort_table.
      data ls_sort_wa type lvc_s_sort.
      ls_sort_wa-spos = 1.
      ls_sort_wa-fieldname = 'MATNR'.
      ls_sort_wa-up = selected.
      ls_sort_wa-subtot = ''.
      append ls_sort_wa to gt_sort.
      ls_sort_wa-spos = 2.
      ls_sort_wa-fieldname = 'STATUS'.
      ls_sort_wa-up = selected.
      ls_sort_wa-subtot = ''.
      append ls_sort_wa to gt_sort.
    endform.                              
    then
      call method grid1->set_table_for_first_display
        exporting
          it_list_commentary = gt_header[]
          is_layout          = gs_layout_tree
        changing
          it_sort            = gt_sort[]
          it_outtab          = gt_yitm[]
          it_fieldcatalog    = gt_fieldcat_lvc[].
    aRs

  • Display data on ADF table using a VO binded to a message.properties file

    Hi,
    I want to display data in a JSPX page using ADF table which is based on a ViewObject. The attributes of the ViewObject should get it's value from a abc.properties file(static file).How can i achieve this.
    thanks in advance.
    regards,
    Himanshu.

    Hi Himanshu,
    When you create a VO based on static values, all of the records from your VO are generated into the MessageBundel.properties file like this
    devguide.entity.ViewObj.SL_0_0=1
    devguide.entity.ViewObj.SL_0_1=<val1>
    devguide.entity.ViewObj.SL_0_2=<val2>
    devguide.entity.ViewObj.SL_1_0=2
    devguide.entity.ViewObj.SL_1_1=<val1>
    devguide.entity.ViewObj.SL_1_2=<val2>
    You could add more lines to the properties files maintaining the same pattern. Also noticed that you can read all the values from a CSV file as well.
    The last resource is to programmatically read the file and start creating new rows on the VO, which won't use any of the declarative tools for VOs.
    -Juan Camilo.

  • Help on jsp code to display data in same page using using ajax ?

    Is there any jsp code to display in same page using using ajax ?

    Re: need help on how to display data in same jsp page. Locking.

  • Problem in Loading data for clob column using sql ldr

    Hi,
    I am having problem in loading data for tables having clob column.
    Could anyone help me in correcting the below script for ctrl file inorder to load the data which is in mentioned format.
    Any help really appreciated.
    Table Script
    Create table samp
    no number,
    col1 clob,
    col2 clob
    Ctrl File
    options (skip =1)
    load data
    infile 'c:\1.csv'
    Replace into table samp
    fields terminated by ","
    trailing nullcols
    no,
    col1 Char(100000000) ,
    col2 Char(100000000) enclosed by '"' and '"'
    Data File(1.csv)
    1,asdf,"assasadsdsdsd""sfasdfadf""sdsdsa,ssfsf"
    2,sfjass,"dksadk,kd,ss""dfdfjkdjfdk""sasfjaslaljs"
    Error Encountered
    ORA-01461: can bind a LONG value only for insert into a LONG column
    Table sampThanks in advance

    I can't reproduce it on my 10.2.0.4.0. CTL file:
    load data
    INFILE *
    Replace into table samp
    fields terminated by ","
    trailing nullcols
    no,
    col1 Char(100000000) ,
    col2 Char(100000000) enclosed by '"' and '"'
    BEGINDATA
    1,asdf,"assasadsdsdsd""sfasdfadf""sdsdsa,ssfsf"
    2,sfjass,"dksadk,kd,ss""dfdfjkdjfdk""sasfjaslaljs"Loading:
    SQL> Create table samp
      2  (
      3  no number,
      4  col1 clob,
      5  col2 clob
      6  );
    Table created.
    SQL> host sqlldr scott/tiger control=c:\temp\samp.ctl log=c:\temp\samp.log
    SQL> select * from samp
      2  /
            NO
    COL1
    COL2
             1
    asdf
    assasadsdsdsd"sfasdfadf"sdsdsa,ssfsf
             2
    sfjass
    dksadk,kd,ss"dfdfjkdjfdk"sasfjaslaljs
            NO
    COL1
    COL2
    SQL> SY.

Maybe you are looking for

  • Kind of query on an array

    Hi, I have an array like this : DATA | YEAR | SCENARIO | JAN | FEB | MAR | .... data1 2008 1 120 101 109 data2 2008 2 120 105 104 data3 2007 1 100 108 111 data4 2008 1 124 101 116 and I want to search something like we do with a query but on an array

  • Oracle Text with Numbers

    Hello, I need to search in a number column for particular "subnumbers". For example I have a column with 3453454 in it an I like to search e.g for the number "53" in it. I know I could use select * from table where number_column like '%53%' but since

  • IProcurement Requisition Details - Results in Error Page

    Hi, Clicking on our requisition details or view my requisitions results in a error page, any ideas why this occuring? Exception details: oracle.apps.fnd.framework.OAException: java.lang.NullPointerException     at oracle.apps.fnd.framework.OAExceptio

  • How can i get Itunes to let me back up my original iPad onto my pc

    How can I get iTunes to let me back up my original iPad onto my pc

  • Cannot install printer drivers: Epson 2200, Epson XP410, Canon MX350.

    Cannot install these dirvers (perhaps others as well?). Respponse from ihstall procedure is that there are no updates on the site.