Field should not display in the subtotal row in ALV report after sorting .

we have a requirement, after sorting and subtotaling, the output in ALV is -
vbeln        amount1  amount2  amount3
123           11              12            13
123           12             13             14
123           23             25             27 
133           11              12            13
133           12             13             14
133           23             25             27
Now the customer wants the ALV outpput in this fashion -
123           11              12            13
123           12             13             14
                 23             25             27    --->123 (vbeln) should not come in subtotaling row
133           11              12            13
133           12             13             14
                  23             25             27--->133(vbeln) should not come in subtotaling row

Hi,
if it helps you could create a hierachy. In this way you can define the field catalog for the lines and for the subtotal columns. The only thing is that you would always show the subtotal rows.
You have references of hierachy alvs in
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c060fcb4-2c62-2b10-d2b2-f32407a5cc6f
ALV Hierarchy
alv hierarchy
In this case it also sorts
Sorting for ALV hierarchy
I hope it helps.
Edited by: Oscar Pecharroman on Aug 2, 2010 1:13 PM

Similar Messages

  • SOME FIELDS SHOULD NOT SHOWN IN THE REPORT

    Hi,
    this is to inform you that,  there is a requriment in reporting perspective (ALV),
    Requriment:
    i have to generate a ALV report which is viewed by our CFO with one t.code, in that report suppose there are 10 fields. 
    That is a specific report if some body apart from my CFO uses the same tcode to generate the same report than it has to display only 5 fields.
    if my CFO uses the same t.code all the 10 fields must be visible.
    please help me how to do it.
    regards,
    balajia.

    There are couple of ways to achieve this,
    1) - Create 2 variants, 1 variant for CFO with all the fields  & 2nd variant with only relevant fields. Then use the authorization concept, where basis can restrict the access / execution of the report with specific variants.
    From the basis view, they create role & assign this variants in one of the object ( not sure). Basis assistance required
    2) - When developing report, write the validation for the respective fields such as maintain Customize table in which maintain userID's & fields which they can access. Display only those fields to the userID who executes this report. It should check this customize table for this UserID & only those fields listed should get displayed. ( for all the fields, instead maintaining each field, you can enter "ALL",
    Eg: UserID -
    Fields
           CFO -
    ALL ( report should display all the fields)
         NONCFO-------Field1 | Field2 | Field3 | Field4 | Field5 ( only these fields should get displayed)
    Note: In Customize table either you can maintain with User ID or Role. It will be more convinient in future as well.
    Regards,
    Reazuddin MD

  • Field should not display when it is null

    Hi,
    I am creating a xml report,I dont want to display row when its value is 0.
    eg column1 column2 column3 column4 column4
    1 ABC BCA 0 0 0
    2 XYZ YXZ 0 1 0
    So if 1 is not having any value then that row should not display,it should dispaly only row with values as in 2.
    Thanks in Advance....

    Instead of <?for-each:G_CF_SUB_SEG_VALUE?>
    use
    <?for-each:G_CF_SUB_SEG_VALUE[TOTAL_CUST_AMT!=0 or TOTAL_CUST_B0!=0 or TOTAL_CUST_B2!=0 or TOTAL_CUST_B3!=0 or TOTAL_CUST_B4!=0 or TOTAL_CUST_B5!=0 or TOTAL_CUST_B6!=0]?>

  • SQL expression field is not displayed on the page header if no records

    Hello
    I'm creating a quite simple report. In this report I've got a SQL expression field which returns a DateTime
    I display this field on the page header section.
    Everything is working fine except when my principal query doesn't return any records my SQL expression field is not displayed. It doesn't seem to be evaluated.
    So, I would display this field even if my Details Section doesn't contains any record.
    I hope you understand what I mean.
    Can someone help me?
    thanks

    Hello,
    I thought about creating a formula but the value I need is stored in a database.
    So i created a simple SQL expression field.
    SELECT CONVERT(DATE,j_1) FROM VW_STD_DATEFIXING
    And this expression doesn't have any dependencies.

  • All fields are not displaying in the infotype screen control

    Hello Everybody,
    All the fields from infotype 2001 and 2002 are not getting displayed in the screen control for these infotypes and
    when I checked the screens for these infotypes, the mod. groups/functions has not been set for field 'Group3' for those
    infotype fields.
    Is there a way I could set this field ' Group3' for these infotype fields also ? Can it be done thru screen exit and if yes could
    anyone tell me what's the screen exit for these infotypes ?
    Thanks
    Alok

    solved it myself.

  • Set select one of the cell in subtotal row in ALV report

    Dear all,
    I have a ALV report that has subtotal amount by Vendor ID.
    I want to set the selection at vendor ID column (same row with subtotal).
    I tried both set_selected_cell() and set_current_cell() methods, the cell selected is incorrect. It doesnt seem to be able to select any cell at the same row of SUBTOTAL.
    lr_selections = ref_table->get_selections( ).
          lt_current_cell = lr_selections->get_current_cell( ).
          lt_current_cell-row = lt_current_cell-row.
          lt_current_cell-columnname = 'LIFNR'.
          lr_selections->set_current_cell( lt_current_cell ).
    Please help. Thanks.

    HP should provide tested recovery DVD every note book user. along with note book.
    That is solution
    fws1 wrote:
    I neglected to add that the system is configured exactly as from the factory, save a few added programs and user files. No hardware changes or OS up or downgrade. The hard drive was corrupted by some type of root virus and had to be fully reformatted. I did the format manually as well as let the HP Recovery disks. Same result either way. The recovery program, after the failure,  prompts user to insert a flash drive and creates some file, but HP has no info on the file creation or what to do with said file!  
    fws1 wrote:
    I neglected to add that the system is configured exactly as from the factory, save a few added programs and user files. No hardware changes or OS up or downgrade. The hard drive was corrupted by some type of root virus and had to be fully reformatted. I did the format manually as well as let the HP Recovery disks. Same result either way. The recovery program, after the failure,  prompts user to insert a flash drive and creates some file, but HP has no info on the file creation or what to do with said file!  

  • Vendor field should not display when GI is done in MB1A?

    Hi  guys ,
    i have  a  report programe here i am pulling  all the material data  and purhasing order info  in the background using the BADIO MB_DOCUMENT BADI.  here i am writing my logic. this BADI is triggering  once material Documnet is created  in MIGO MB1A,MB1B,MB1C . when i am trying to excute the MIGO tranasaction all the data shoulb be displayed . when I am trying to excute MB1A  Here i dont need one field like Vendor Number ? can  any one please help me on these ?
    Thanks In Advance.

    Instead of <?for-each:G_CF_SUB_SEG_VALUE?>
    use
    <?for-each:G_CF_SUB_SEG_VALUE[TOTAL_CUST_AMT!=0 or TOTAL_CUST_B0!=0 or TOTAL_CUST_B2!=0 or TOTAL_CUST_B3!=0 or TOTAL_CUST_B4!=0 or TOTAL_CUST_B5!=0 or TOTAL_CUST_B6!=0]?>

  • F-90. asset value date field is not displayed

    Dear all
    In asset acquisition posting through F-90. asset value date field is not displayed at the time of entering acquisition. It is in supress mode. so system is capturing the capitalisation date. But we can see this capitalisation date as asset value date in fb03 display. Now i want to display this field as optional field while creating the entry and also i want to change the field in display mode to change mode. kindly tell me the menu path to access the settings.
    Thanks With  Regards
    RSS.

    Hi,
    You can enter a diff asset value date for your acq posting, only thru transaction ABSO using TType 100.
    This will resolve your issue.
    Thanks,
    Srinu

  • Problem with subtotal, and the total icon is not displayed at the toolbar

    Hi all,
    I'm currentlyhaving difficulties working with the subtotal and the grandtotal. I have the code in the right place like the sort table
      CLEAR k_sort.
      ADD 1 TO k_sort-spos.
      k_sort-fieldname = pv_fieldname.
      k_sort-up        = c_x.
      k_sort-subtot    = pv_subtot.
      APPEND k_sort TO i_sort.
    and the fieldcatalog
      CLEAR k_fieldcat.
      add 1 to k_fieldcat-col_pos.
      k_fieldcat-fieldname  = pv_fieldname.
      k_fieldcat-tabname    = c_tabname.
      k_fieldcat-seltext_l  = pv_seltext.
      k_fieldcat-outputlen  = pv_outputlen.
      k_fieldcat-datatype   = pv_datatype.
      k_fieldcat-do_sum     = pv_dosum.
      APPEND k_fieldcat TO i_fieldcat.
    but it didn't seems to show both the total and subtotal. Even the icon is not displayed at the ALV toolbar. The field which I need the total is a currency field. I even try other fields (interger fields) but with no luck. I'm using REUSE_ALV. Any help is greatly appreciated.

    hi,
    In field catalog for the particular column which you want to sum make that as 'X'.
    say
    WHEN'MATNR'.
    it_fcat-do_sum = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program     = report_id
                i_grid_title           = ws_title
    *            i_callback_top_of_page = 'TOP-OF-PAGE'
                is_layout              = wa_layout
                it_fieldcat            = i_fieldcat[]
                it_sort                = i_sortcat
                i_save                 = 'A'
                it_events              = i_events
           TABLES
                t_outtab               = i_reportdata1
           EXCEPTIONS
                program_error          = 1
                OTHERS                 = 2.
      IF sy-subrc <> 0.
    This will enable.

  • Records not displayed in the WGBEZ field in H_T023_MEPO search help.

    Hello Friends,
    I have created the search help exit , in that based on the LREF3 , we have to fetch the materail groups.
    1.I have written the code in the exit , in the search help exit tables parameter record_tab , the data is coming correctly
    but when we run  search help, the description field is not getting displayed.
    I have shift 2-3 places left side as well but the description is not displayed correctly.
    So how can we get the description field filled.
    2. We want that the LREF3 field should come in the selection screen of the dialog box, so that user can enter the values in it.(dialog with value restriction) so i have added LREF3 field in the search help parameters but i want that
    this field should not be displayed in the results of search help . Only materail group and its description gets displayed.
    So can we achieve the same.
    Thanks to provide answers for my above two questions.

    Hi
    Please go through the related pointers ->
    The OSS note 672960 has already indicated you need to use BADI to address it.
    For Search criteria
    You can also use user-defined fields as search criteria. To do this, you have to set fields XINPUT and XDISPLAY to 'X' in table ET_FIELDS for the fields you want to use in BADI BBP_CUF_BADI_2 in method MODIFY_SCREEN. The fields defined this way are displayed if you choose the 'Extended search' link.
    Re: Custom field in Create Bid Invitation..
    Re: Search Help for Purchasing Group..
    Re: urgent help request - How to add custom fields to  header BID.
    Re: New Screen with table control information in Process Bid Invitation
    Do let me know.
    Regards
    - Atul

  • AFTER LOADING THE DATA INTO THE INFOCUBE IT SHOULD NOT DISPLAY IN REPORTING

    Hi experts,
                     I have the data in infocube. When i selected the cube in reporting it should not display i.e; the data should not display in reporting.
    thanks nd regards,
    venkat

    Bit strange requirement. But if you have data in Cube and automatically its will be available for Reporting. unlike ODS, we do not have option of "Automatic request activation".
    However on repoeting side, you can restrict the values to #  and exclude everything from slection. But not good solution as such.
    Regards
    Pankaj

  • RE: my input fields does not display when running the page

    my input fields does not display when running the page
    why is that so?

    Hi,
    Can you send the HTML code for us?
    Afonso

  • Error: . fields not displayed because the HTML form was not yet opened.

    I had created a data base application using Import from one workspace(schema1) to another workspace(schema2).
    Created all the tables and data in schema2.
    Now when I'm trying to run the page getting the following error
    " Error: Item "P16_PRODUCT" was not displayed because the HTML form was not yet opened. "
    I'm not able to figure out what is that I'm missing during import due to which form is not opening.
    Removed the authorization from the pages in order to test the page. So, I don't think this is related to Authorization.
    Please help me in identifying the issue.
    Thanks,
    Suresh.

    Hello Suresh,
    >> I had created a data base application using Import from one workspace(schema1) to another workspace(schema2).
    Is the APEX version on both workspaces are the same? What is the APEX version?
    Please make sure that the page template you are using includes #FORM_OPEN# in the last line of the Header section.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Images in wwv_flow_file_objects$  do not display in the shared components

    Recently I needed to re-create an APEX workspace. The schema was intact, so I just created a new APEX workspace mapped to that schema and re-imported my apps.
    All was well EXCEPT that the images and files (e.g. style sheets) previously uploaded to the database under the original workspace were missing. Looking at the wwv_flow_file_objects$ table I saw the images and files were present but their security ID did not match that of the new APEX workspace.
    I updated the security ID and the files and images now work BUT THEY DO NOT DISPLAY IN THE SHARED COMPONENT LISTINGS. My fear is that I'll try to upload an image or file by the same name and they'll stop working because there will then be two rows in wwv_flow_file_objects$ with the same file name and security ID.
    Does anyone know how to get these items to display properly in the shared component reports?

    If they were application-specific, you would need to ensure that the new flow_id value in the table matched that of the application to which the file should be associated. If not, that value should be zero.
    Scott

  • TS1347 icloud contacts "home field" dose not display on ios7?

    When looking at contacts that are stored using icloud on my ios devices, the home field is not displayed even when edited. 
    This has only happened recently but when I log into icloud using a browser all of the details are there.
    Please can this be fixed?
    Thanks
    Problem using iphone 4s / 5 / ipad mini. ios 7.04.

    Thank you for your response.  I guess I should have indicated the things that I have already tried .  I have already attempted this step couple of times on the iPhone.  I also deleted the iCloud account on the iPhone and added it back on.  None of those things had any effect.  I guess the next thing I could try is backup>full reset.

Maybe you are looking for