Need Suggestion in displaying data in ALV.

Hi All Experts,
I have a scepic scenario for which I need your inputs. I am preparing a report which will display data foe entries made in time sheet. The entries in time sheet can be made for anything like a change request on an incident etc. It will have various output fields
And also dates for which entries are made. So it can have date from 1 to 31. This all is
to be displayed in ALV. Now the report can be displayed in two Summarised ways.
One summary can be for a user and another for the  object type(incident, change request).
Now if the user wants to see this report for a period more than a month  then I have to summarise it against a month too. So am not sure how to handle this. Which type of ALV function module to be used to display this?
Regards,
Saket

hello,
I would suggest to go for GRID display - for that you can use either function module or class.
Tips:
If it also need to be summarised by month then add an extra field in fieldcatalog as monthid / monthname.
also it's better to have an extra field for object tyoe (Incident/ change)...
Thanks.

Similar Messages

  • 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

  • How to display data in alv through double click

    Hello Friends,
    I am new to this community,please tell me if I make any mistake while posting.
    Friends I had written this code. ALV is displayed at first time but when I am double clicking on the row then error is coming related to mismatch of actual and formal paramaters while calling function 'USER_COMMAND'. I am unable to locate where the error is. Please help me out.
    REPORT  ZALV12.
    TYPE-POOLS SLIS.
    DATA: it_vbak type standard table of VBAK,
          it_vbap type table of VBAP.
    DATA: wa_vbak like line of it_vbak,
          wa_vbap like line of it_vbap.
    DATA syrepid like sy-repid.
    DATA:fld_vbak type SLIS_T_FIELDCAT_ALV,
          fld_vbap type SLIS_T_FIELDCAT_ALV.
    DATA:fld_wa_vbak type SLIS_FIELDCAT_ALV,
         fld_wa_vbap type SLIS_FIELDCAT_ALV.
    DATA:vevent type SLIS_T_EVENT,
         waevent type SLIS_ALV_EVENT.
    DATA:LST_HEADR type SLIS_T_LISTHEADER.
    DATA title_alv type LVC_TITLE value 'LIST FOR VBAK'.
    INITIALIZATION.
    syrepid = sy-repid.
    perform get_event.
    perform populate_event.
    perform set_list_headr using LST_HEADR.
    perform field_cat.
    START-OF-SELECTION.
    .....                       "code for displaying data from table VBAK in ALV.
    form USER_COMMAND using R_UCOMM type SY-UCOMM.           "error is in this function.
        data r_selfield type SLIS_SELFIELD.
        case R_UCOMM.
         when '&IC1'.
           read table it_vbak into wa_vbak index r_selfield-TABINDEX.
            perform data_select.
            perform list_heading using LST_HEADR.
            perform event_get.
            perform build_event.
            perform alv_display.
        endcase.
    endform.
    form data_select.
       select * from VBAP into table it_vbap up to 20 rows.
    endform.
    form list_heading using i_lst type SLIS_T_LISTHEADER.
       data HLINE type SLIS_LISTHEADER.
       HLINE-TYP = 'H'.
       HLINE-INFO = 'FOR VBAP'.
       append HLINE to i_lst.
    endform.
    form alv_display.
       CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
           I_CALLBACK_PROGRAM                = syrepid
          I_STRUCTURE_NAME                  = 'VBAP'
           I_GRID_TITLE                      = 'SCREEN2_VBAP'
         TABLES
           T_OUTTAB                          = it_vbap
       IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
       endform.
       form event_get.
         CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
             I_LIST_TYPE           = 0
         IMPORTING
             ET_EVENTS             = vevent
         EXCEPTIONS
           LIST_TYPE_WRONG       = 1
           OTHERS                = 2
         IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
      endform.
      form build_event.
        read table vevent into waevent with key name = 'TOP_OF_PAGE'.
        if sy-subrc = 0.
          waevent-form = 'F_TOP_OF_PAGE'.
          modify vevent from waevent transporting form
          where name = 'TOP_OF_PAGE'.
          endif.
      endform.
      form F_TOP_OF_PAGE.
        CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
          EXPORTING
            IT_LIST_COMMENTARY       = LST_HEADR
          I_LOGO                   =
          I_END_OF_LIST_GRID       =
          I_ALV_FORM               =
      endform.

    You missed one paramete in user_command form
    FORM user_command  USING r_ucomm LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
    Regards,
    Raymond

  • Need suggestion in getting data using JDBC

    Hi all need suggestion,
         i had a VO corresponding to database table.
         when i am try to get the records from that table,
         how can i initialize the particular column value to the
         corresponding VO setter method.
         please do the needful.

    Hello inform2csr,
    Your question is not so clear.
    Can you be more precise?
    What is VO?

  • Need FM for displaying date as output  EX:april 07

    Hi All,
    I have a problem in displaying date for example:
    If i give period as 3 and year as 2007,
    the output should be displayed as april-07.
    Can any one help me out in finding a solution.
    Thanks in advance.

    Hi,
    Use the below logic.
    data: it_months like t247 occurs 0 with header line.
    data: v_text(20).
    CALL FUNCTION 'MONTH_NAMES_GET'
    EXPORTING
       LANGUAGE                    = SY-LANGU
      TABLES
        MONTH_NAMES                 = it_months
    EXCEPTIONS
       MONTH_NAMES_NOT_FOUND       = 1
       OTHERS                      = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    read table it_months with key mnr = sy-datum+4(2).
    if sy-subrc = 0.
    concatenate it_months-ltx '-' sy-datum+2(2) into v_text.
    endif.
    write:/5 v_text.

  • Need suggestion to get data from change log table of ODS.

    Hello,
    There is a case where i am loading opportunity header data from header ODS and opportunity item data from item ODS in the opportunity cube.
    Status (1= OPEN, 2= WON ETC) of the opportunity are available only in header ODS and not in item ODS.
    While loading data from header ODS to cube, I am loading it directly but while loading data from item ODS to cube i am using active data table of header ODS as a lookup in the update rule from item ODS to cube. I am selecting status from the active data table of header ODS while loading data from item ODS to cube.
    Since active data table will have only after image records, there is some data mismatch in the report as i am selecting data from active data table of header ODS while loading data from item ODS to cube.
    I need to select data from Change log in order to get before image also instead of active data table in order to overcome this issue. Is there any way by which i can do selection from Change log instead of active data table as change logs are generated at run time.
    Please let me know if you have any suggestions.
    Regards,
    Sanjay Chaurasia.

    Hi,
    You can use the changelog table of the DSO.
    Right click manage the Header DSO, go to the contents tab and click Change Log table. There you can see the technical name of the Change Log table.
    In the update rule Routine, give the tech name of Change log table instead of Active table name.
    Hope it helps.
    Krishna

  • Need Help in displaying data labels at the top of the bars in CFCHART

    Hi,
    I have a cfchart with two line series and one bar. I want to display the data values at the top of the bar and the line series. Below is the XML I am using:
    <cfsavecontent variable="chartStyle">
    <?xml version="1.0" encoding="UTF-8"?>
    <frameChart is3D="false" isMultiline="true">
              <frame xDepth="12" yDepth="11" outline="black" stripColor="light_gray">
                   <background maxColor="black"/>
              </frame>
    <yAxis scaleMin="0" scaleMax="30">
                   <labelFormat pattern="###"/>
    <parseFormat pattern="###"/>
    <labelStyle orientation="Horizontal"/>
    <titleStyle font="Arial-11-bold" isMultiline="false"><![CDATA[
    #Vehicles       ]]>
    </titleStyle>
    </yAxis>
    <yAxis2 scaleMin="0" scaleMax="30">
                   <labelFormat pattern="###"/>
    <parseFormat pattern="###"/>
    <labelStyle orientation="Horizontal"/>
    <titleStyle font="Arial-11-bold" isMultiline="false"><![CDATA[
    Profitability       ]]>
    </titleStyle>
    </yAxis2>
    <dataLabels foreground="black" font="Arial-12-bold"/>
    <legend allowSpan="true" equalCols="false" halign="Center" isMultiline="true" placement="Bottom"><decoration style="None"/></legend>
    <elements place="Stacked" drawOutline="false">
    <series index="1" place="Stacked">
    <dataLabel style="value"/>               
    </series>     
              <series index="2" place="Stacked">
    <!--- <![CDATA[#summaryQuery.quotes[i]#+#summaryQuery.orders[i]#]]> --->
    </series>     
    <series index="3" place="Stacked">
    <!--- <![CDATA[#summaryQuery.quotes[i]#+#summaryQuery.orders[i]#]]> --->
    </series>
    <series index="0" place="Stacked" shape="Line" isSecondAxis="true">
    <dataLabel style="value"/>
              </series>
    <series index="1" place="Stacked" shape="Line" isSecondAxis="true">
    <dataLabel style="value"/>
              </series>
    </elements>
              <table>
                   <heatmap isEnabled="false" minLevel="0.0" maxLevel="0.0"/>
              </table>
              <popup background="white" foreground="black"/>
              <paint isVertical="true" min="26" max="76"/>
              <insets right="5"/>
    </frameChart>
    </cfsavecontent>
    Can anyone please tell me what is the mistake i am doing.
    Thanks in advance,
    Jeevan Pulugu.

    Hi,
    Probably you need to find a way to enhance the standard code.
    But make one thing sure that the code (included bu you) gets fired only when that specific report is being executed. Else it may harm the standard functionality.
    Hope this helps you.
    Regards,
    Tarun

  • Need suggestion on Active data guard or Logical Stand by

    Hi All,
    Need a suggestion of on below scenario.
    We have a production database ( oracle version 11g R2 ) and planning to have a Logical standby or physical standy (Active data guard). Our usage of the standby database is below.
    1) Planning to run online reports (100+) 24x7. So might create additional indexes,materialized views etc.
    2) daily data feed ( around 300+ data files ) to data warehouse. daily night, jobs will be scheduled to extract data and send to warehouse. Might need additional tables for jobs usage.
    Please suggest which one is good.
    Regards,
    vara.

    Hello,
    In active dataguad Whig is feature from 11gRx ,
    If you choose active dataguard, you have couple of good options, one is you can make a high availability of your production database, which can act as image copy of production, as you are asking in 11g you have more advantage where you can open in read only mode and at the sometime MRP will be active, so you can redirect users to connect standby to perform select operations for reporting purpose. So that you can control much load on production ,
    Even uou can perform switchover in case of role change, perform failover if your primary is completely lost. Also you can convert to physical to logical standby databases & you can configure FSFO
    You have plenty of options with active dataguard.
    Refer http://www.orafaq.com/node/957
    consider closing the thread if answered and keep the forum clean.
    >
    User Profile for user11261773
    user11261773     
    Handle:     user11261773  
    Status Level:     Newbie
    Registered:     Jul 14, 2011
    Total Posts:     12
    Total Questions:     6 (5 unresolved)
    >
    Edited by: CKPT on Mar 18, 2012 8:14 PM

  • 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

  • Need suggestions for imporving data load performance via SQL Loader

    Hi,
    Our requirement is to load 512 (1 GB each) files in Oracle database.
    We are using SQL loaders to load files into the DB (A partitioned table) and have tried almost all the possible options that come with sql loaders (Direct load path, parallel=true, multithreading=true, unrecoverable)
    As the tables is growing bigger in size, each file load time is increasing (It started with 5 minutes per file and has reached 2 hours per 3 files now and is increasing with every batch- Note we are loading 3 files concurrently on the target table using the parallel = true oprion of sql loader)
    Questions 1:
    My problem is that somehow multithreading is not working for us (we have multi CPU server and have enabled multithreading=true). Could it be something to do with DB setting which might be hindering the data load to be done in multiple threads?
    Question 2:
    Would gathering stats on the target table and it's partitions help improve load performance ? I'm not sure if stats improve DML's, they would definitely improve sql queries. Any thoughts?
    Question 3:
    What would be the best strategy to gather stats on this table (which would end up having 512 GB data) ?
    Question 4:
    Do you think insertions in a partitioned table (with growing sizes) would have poor performance as compared to a non-partitioned table ?
    Any other suggestions to improve performace are most welcome !!
    Thanks,
    Sachin
    Edited by: Sachin Tiwari on Mar 13, 2013 6:29 AM

    2 hours to load just 3 GB of data seems unreasonable regardless of the SQL Loader settings. It seems likely to me that the problem is not with SQL Loader but somewhere else.
    Have you generated a Statspack/ AWR/ ASH report to see where all that time is being spent? Are there triggers on the table? Are there bitmap indexes?
    Is your table partitioned in a way that is designed to improve the efficiency of loads so that all the data from one file goes into one partition? Or is data from each file getting inserted into many different partitions.
    Justin

  • 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

  • Need suggestion to display smooth animation

    Hi.
    Recently i am doing a project for a simple game and in the game
    a imageicon must move from one Point to another Point smoothly by itself.
    To make such movement, i used swing.Timer class with repaint method and
    it works ok, but one thing keeps bothering me. The movement is not smooth.
    it's just like watching low frame rate animation(well, i guess it is low frame rate
    animation). I even set to perform a movement per 1 millisecond, which is the
    fastest delay that can be set for the swing.timer class.
    this is the only idea that i can figure out.
    If you have any good idea to make the soomth movement, please
    share with me.

    Look into Double Buffering. You basically render an image to an off-screen buffer and then draw the image to the screen while redrawing to another off-screen. As you redraw you move the image slightly.
    This is a common animation technique. If you search these forums on animation you'll get lots of information.
    Cheers
    DB

  • Need to Display Data for Cummulated to Current Day of Current Fiscal Year

    We use fiscal variant V3 (April-March).  My need is to display data automatically from first of fiscal period (April 1 2006) to today.
    I tried using 0CYTCD on Calendar Day but this works only for the current calendar year that the system is in  i.e 2007.
    Is there a standard variable I can use on 0CALDAY so I always get data from day one of current fiscal year/period to today? e.g. April 1, 2006 to January 3, 2007
    If not, can someone please help with the exact customer exit code that I would need to write in CMOD in BW?
    Thanks a ton!

    I thought of using 0FYTCD variable, but I cannot find it in the business content.
    Has anyone used 0FYTCD (Fiscal year to current day) in BW 3.1 SP25?
    Again, I am looking for a variable that would get me the beginning of fiscal year to today.
    Thanks.

  • Data lost when download data after ALV display in background

    Hi, everyone, first i display the data in ALV Grid, then I upload the data into sap application sever, it is ok in foreground. But when i run the program at background and the data is more then one page in spool list, the file on application server will lost and only has data in last page of spool list. Is this SAP standard behavior? please advice, thanks.

    There is a simple logic.
    First i get all data and keep the data in interal table T_LIST.
    Then call function REUSE_ALV_GRID_DISPLAY to display data in T_LIST.
    Third, Using statement OPEN DATASTET and TRANSFER to upload data in T_LIST into application server.
    In fact, it will be ok if run the program foreground. it will also be ok if upload data into appllication server before display data with ALV grid. But i just want to know the root cause why data lost in my current design. thanks.

  • TEXT to be retrieved from a DOMAIN and to be displayed in an ALV report.

    Hi,
    I am required to develop a report where, the retrieved data needs to be displayed in an ALV. In the Report Specification, the requirement is that a text needs to be retrieved from a DOMAIN.
    e.g. Text to be retrieved from Domain EICST where Fix Val = PA0210-EICST (where subtype = FED).
    Regards,
    Ameet

    HI ,
    There are lot of FM to retrive the domian text from the fixed value.
    For ex. C_DIC_DOMAIN_VALUE_TEXT_READ
    You can find some more using the F4 help.
    Thanks,
    Poonam.

Maybe you are looking for

  • Display driver unselectable

    I have installed Windows 2012 Standard on a Dell Laptop XP15 L502X with an NVidia graphics card. Intel 3000 HD Graphics + NVidia GT540M The drivers for the card have been validated and work properly when running the Dell diagnostics but work in conju

  • IPod Classic won't start or connect

    My iPod Classic 80gig is acting weird. The screen was black like it was dead, then I connected it to the computer and the Apple becomes somewhat visible. Then it goes dark and the Apple becomes visible again for about 2 seconds. I can hear a very fai

  • Port channel WLC 5508 and 3750

    Hi All, I want to configure Port channel for WLC 5508 and cisco 3750 Stack Switch. What changes I need to make on WLC and where? Thanks Jagdev

  • LabView Software Programmer Job Opening - Seattle

    LabView Software Programmer Job Opening - Seattle Seattle Safety is looking for a qualified individual to fill an opening for Software Programmer.  Seattle Safety designs, manufactures, and installs advanced crash test sled systems that are used in a

  • Unable to set max log file size to unlimited

    Hi all, Hoping someone can give me an explanation of an oddity I've had. I have a series of fairly large databases. I wanted the make the database log files 8GB in size with 8GB growth increments with unlimited maximum file size. So, I wrote the scri