Total is not getting displayed in the ALV output.

Hi,
Total is not getting displayed in the ALV output.
I m using :REUSE_ALV_BLOCK_LIST_APPEND & REUSE_ALV_BLOCK_LIST_DISPLAY
Are  there any issues with it as the same settings are working fine with REUSE_ALV_LIST_DISPLAY
source code:
DATA: layout TYPE slis_layout_alv,
      IT_eventS  TYPE slis_t_event,
      fcat   TYPE slis_t_fieldcat_alv WITH HEADER LINE,
      rec_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
TYPES: BEGIN OF ty_tab,
      belnr TYPE dberchz-belnr,
      belzart TYPE dberchz-belzart,
      net TYPE dberchz-nettobtr,
      END OF ty_tab.
DATA: lt_tab TYPE STANDARD TABLE OF ty_tab.
SELECT belnr belzart nettobtr
  FROM dberchz
  INTO TABLE lt_tab[]
WHERE belnr eq '000000000001'.
  if sy-subrc ne 0.
  ENDIF.
*  defining layout
layout-colwidth_optimize = 'X'.
layout-def_status = 'X'.
*defning event
*event
*defining field catalog
fcat-col_pos = 1.
fcat-fieldname = 'BELNR'.
fcat-tabname  = 'LT_TAB'.
APPEND fcat.
fcat-col_pos = 2.
fcat-fieldname = 'BELZART'.
fcat-tabname  = 'LT_TAB'.
APPEND fcat.
fcat-col_pos = 3.
fcat-fieldname = 'NET'.
fcat-tabname  = 'LT_TAB'.
fcat-do_sum = 'X'.
APPEND fcat.
*calling alv
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
  EXPORTING
    i_callback_program             = 'YZ_PLR'
*   I_CALLBACK_PF_STATUS_SET       = ' '
*   I_CALLBACK_USER_COMMAND        = ' '
*   IT_EXCLUDING                   =
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
  EXPORTING
    is_layout                        = layout
    it_fieldcat                      = fcat[]
    i_tabname                        = 'LT_TAB'
    it_events                        = IT_EVENTS[]
*   IT_SORT                          =
*   I_TEXT                           = ' '
  tables
    t_outtab                         = lt_tab[]
* EXCEPTIONS
*   PROGRAM_ERROR                    = 1
*   MAXIMUM_OF_APPENDS_REACHED       = 2
*   OTHERS                           = 3
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
Thanks,
Gaurav

Hi
No I don't think, this is my code (based on your code) and it works fine:
TYPE-POOLS SLIS.
DATA: BEGIN OF LT_TAB OCCURS 0,
       BELNR LIKE BSEG-BELNR,
       GJAHR LIKE BSEG-GJAHR,
       WRBTR LIKE BSEG-WRBTR,
       WAERS LIKE BKPF-WAERS,
      END OF LT_TAB.
DATA: LAYOUT     TYPE SLIS_LAYOUT_ALV,
      IT_EVENTS  TYPE SLIS_T_EVENT,
      FCAT       TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
      REC_FCAT   TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
START-OF-SELECTION.
  FCAT-COL_POS       = 1.
  FCAT-FIELDNAME     = 'BELNR'.
  FCAT-TABNAME       = 'LT_TAB'.
  FCAT-REF_FIELDNAME = 'BELNR'.
  FCAT-REF_TABNAME   = 'BSEG'.
  APPEND FCAT.
  FCAT-COL_POS       = 2.
  FCAT-FIELDNAME     = 'GJAHR'.
  FCAT-TABNAME       = 'LT_TAB'.
  FCAT-REF_FIELDNAME = 'GJAHR'.
  FCAT-REF_TABNAME   = 'BSEG'.
  APPEND FCAT.
  FCAT-COL_POS       = 3.
  FCAT-FIELDNAME     = 'WRBTR'.
  FCAT-TABNAME       = 'LT_TAB'.
  FCAT-CFIELDNAME    = 'WAERS'.
  FCAT-REF_FIELDNAME = 'WRBTR'.
  FCAT-REF_TABNAME   = 'BSEG'.
  FCAT-DO_SUM        = 'X'.
  APPEND FCAT.
  FCAT-COL_POS       = 4.
  FCAT-FIELDNAME     = 'WAERS'.
  FCAT-TABNAME       = 'LT_TAB'.
  FCAT-REF_FIELDNAME = 'WAERS'.
  FCAT-REF_TABNAME   = 'BKPF'.
  FCAT-DO_SUM        = SPACE.
  APPEND FCAT.
  SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE LT_TAB
    WHERE BUKRS = 'MAAB'
      AND BELNR = '0000000001'.
  LT_TAB-WAERS = 'EUR'.
  MODIFY LT_TAB FROM LT_TAB TRANSPORTING WAERS WHERE WAERS = SPACE.
*CALLING ALV
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
      I_CALLBACK_PROGRAM = 'ZPROVAMAX5'.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
      IS_LAYOUT   = LAYOUT
      IT_FIELDCAT = FCAT[]
      I_TABNAME   = 'LT_TAB'
      IT_EVENTS   = IT_EVENTS[]
    TABLES
      T_OUTTAB    = LT_TAB[].
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
I've also inserted a currency field
Max

Similar Messages

  • '@' not getting displayed in the ALV report

    Hello,
    I am facing  a strange issue in the ALV report display. A string starting with '@' is not getting displayed and says "default icon " on the report. and this is varying from system to system for the same user.
    can anyone please help me in resolving the issue.
    Thanks in advance.
    Thanks and Regards,
    Santhosh Guptha N.

    @ is a default value as per ALV internal process. This is used in icons .
    I think this is causing the confusion.
    Check in the fieldcat if there is any adjsutment to be made to handle this.
    Br,
    Vijay

  • Excelicon is not being displayed in the alv output

    Hi,
         iam using the standard tool bar, yet the excel icon is not being displayed in alv ouput.and also in the menubar list export the spreadsheet option is gr

    OSS# 1140542?
    or  you may search other.
    Edited by: Amit Gujargoud on Nov 3, 2008 3:10 AM

  • Header not getting  displayed in the next page in the second table

    Dear Experts ,
    I have a query regarding Header not getting  displayed in the next page in the second table of the main window. .Let me elobrate the issue.
    I have a smartform in which there are  2 tables TABLE 1 and TABLE 2 in the smartform MAIN window. TABLE 1 is for pending PO and TABLE 2 is  for future delivery date P O separated by text in between.
    Now the header for both the tables and the data are getting displayed properly if the total output is in only one page. But If there are more entries in the TABLE 1 the Header for the TABLE 2 is not getting displayed. Header for TABLE 1 yet gets displayed properly in the next page in case of more entries.
    Only issue is that Header for TABLE 2 is not getting displayed in second page but it gets displayed if the entries are less in TABLE 1 and the total output is in one page .
    Please provide a elobrate solution on this problem as the requirement is urgent.
    Thanks,
    Regards,
    Sachin Hada

    Hi Sachin,
    you need to cteate two pages FIRST and NEXT.
    in first page --> FIRST
        next       --> NEXT
    in next page
      page---> NEXT
      next ---> NEXT.
    you copy the first page main window is the same in next page
    aslo
    I think help ful for you
    thanks & Regards
    BHUPAL.

  • Data is not getting displayed in the report from an Infoset.

    Hi All,
    I am having a report  based on an infoset. This report is displaying the data in the Dev. envmt. When it is transported to the QA, it is not displaying the data in the BEx as well as RSRT, in the QA envmt. The patch levels of both the Dev. and QA are the same. The Queries are same in the Dev and QA also.
    While trying to display the data from the infoset (rt.click- display data), i am able to view the data, in the QA.
    Could anyone please suggest why the data is not getting displayed in the query designer.
    Thanks & Regards,
    A.V.N.Rao

    Hi Ashish,
    I ran the "ZPS/!ZPS" in RSRT where ZPS is the infoset name. In Dev, it displayed the values. In QA, it displayed the below messages:
    ECharacteristic 0TCAKYFNM does not exist. Check authorizations
    WThere are calculated elements. These results are bracketed [  ]
    and below that, it displayed the values for Number of records. But, it has not displayed the values for the other figures.
    Does this has any impact in QA.
    Thanks & Regards,
    AVN Rao.

  • Work item not getting displayed in the portal

    Hi  experts,
    We are creating a protoype for one of the standard HCM form for change in working time. When we initiate the process, the workflow is supposed to identify the agent(which is the manager in this case) and push the work item in the inbox of the manager.
    In our issue, we are able to see the workitem in SAP inbox, but the same work item is not getting displayed in the portal.
    If we try to approve from the SAP inbox, the hard coded message u201CWork item can only be executed using the Portal and the UWLu201D comes. [this comes through the method of  one of the tasks 17900101 which we are using for approving the form]
    We commented the message by using a Z class. Now we donu2019t get the hardcoded message, but still the workflow does not complete from here.
    Can this be aan integration issue of the workflow tasks with the portal??Can someone elaborate on this??

    <ItemType name="uwl.task.webflow.TS17900101.SAP_ECC" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="SAP_ECC" externalType="TS17900101" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="WebDynproApplication" value="ApproveFormApp"/>
                <Property name="WebDynproDeployableObject" value="sap.com/pa~asr~formstep"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>
    You have to say to your portal team to modify their XML file as above. In simple you hvae to configure the task in the portal and in the SWFVISU txn as follows with the following vizualization parameters
    Task TS17900101 and visualization type is JavaWebDynpro
    APPLICATION     ApproveFormApp
    PACKAGE     sap.com/pa~asr~formstep

  • Links not getting displayed in the contextual panel

    Hi,
    I have created a contextual panel inside a transparent container. And created a method in the same view supply_values of type supply function to supply the values to the panel.Inside the method I have coded like:
    DATA TAB  TYPE WD_THIS->ELEMENTS_N_VIEW_SWITCH.
      DATA LINE TYPE WD_THIS->ELEMENT_N_VIEW_SWITCH.
      LINE-TEXT    = 'User Manual'. "#EC NOTEXT
      LINE-ENABLED = ABAP_TRUE.
      APPEND LINE TO TAB.
      LINE-TEXT    = 'Logout'. "#EC NOTEXT
      LINE-ENABLED = ABAP_TRUE.
      APPEND LINE TO TAB.
      NODE->BIND_TABLE( TAB ).
    Also in the context of the view I have created a node and supplied the method  'supply_values' in the supply function.Under the node I have 2 attributes named text and enabled. Text is of string type and enabled is of boolean type. In the properties of the contextual panel I have bound the visible property with the enabled attribute.
    Now when I am running this application , links are not getting displayed in the contextual panel. Though when I debug TAB contains the values.  Please suggest if I have missed out something or I need to look into the properties of the contextual panel. Any pointers will be really helpful.
    Regards,
    Ashutosh

    Hi,
    Can you elaborate ' ItemEnable property of ViewSwitch'.
    I have already bound the enable property of the panel with a context attribute of type wdy_boolean  but it is still not working. 
    Regards,
    Ashutosh

  • Whenever a record is Edited the rows are not getting displayed in the repor

    Hi all,
    When a new record is added or edited, It is physically getting added or edited according to the process, but those records are not getting displayed in the report..
    Please Any body faced this situation...
    Help me to identify what error i am doing........
    thanks in advance
    kavitha L

    Hi KChamarti,
    I am also trying to display images insid the datagrid but i get a weird broken image(all silver gray).
    My item renderer is:
              <mx:DataGridColumn headerText="Type">
                   <mx:itemRenderer>
                     <mx:Component>
                      <mx:HBox verticalGap="2">
                          <mx:Image id="dgImage" source="\assets\images\{toLowerCase(data.type)}.jpg" />
                          <mx:Label text="{data.type}"/>
                        </mx:HBox>
                     </mx:Component>
                   </mx:itemRenderer>
                </mx:DataGridColumn>
    Am i mentioning the source of the image in the right way?

  • SAP Fields not getting displayed on the BDT screen

    Hello Gurus,
    I am trying to add 2 custom fields on to the claims management screen. The following steps were followed to add 2 fields on to the claims Management subclaim screen.
    1. Create a field group Zxxxxx1 with the two fields attached to it as input enabled.
    2. Create a View Zxxxxx2 attach the created field group Zxxxxx1, then create a subscreen screen add two fields to the screen and make them as input enabled. Then attached the subscreen to the View.
    3. Create a PBO and PAI function modules for the screen and attach it to the View Zxxxxx2.
    4. Create a section Zxxxxx3 and attach the view Zxxxxx2 to the section.
    5. Attach the section to the Subclaim Overview Screen.
    6. Inspite of doing all the above steps the screen is not getting displayed or the Function module PAI / PBO / FMOD is not being called.
    Since I am attaching the section to a standard screen sequence I am not doing any modification to the screen sequence and screen sequence catagory.
    Kindly let me know the steps I am missing in the configration of 2 new fields via BDT.
    Reagrds,
    Shiva

    Hi Shiva,
    did you create your own Z BDT application? Is it set to be active?
    I have no access to any claims management system: Does the claim object support divisibility? If so, have you assigned the correct data set in your view?
    Also, if you have your own Z BDT application and the claim object does support divisibility, did you assign the Z application to the divisibility view?
    Regards,
    Frank
    Message was edited by: Frank Vieregge

  • I am facing issue in Receiving incoming calls, Name not getting displayed though the same has been saved in my phone book!! I have done sync from Windows contacts.. please help if some1 knows how to rectify the issue...

    I am facing issue in Receiving incoming calls, Name not getting displayed though the same has been saved in my phone book!! I have done sync from Windows contacts.. please help if some1 knows how to rectify the issue...

    Has your carrier been having issues with Call Display? Do the telephone numbers come up when people call, or does it just show 'Unknown Number' or 'Blocked' ?

  • Quantity fields not getting displayed in the second total row

    Hi,
    As per the requirement I have to display 2 total rows for an ALV report using CL_GUI_ALV_GRID. I am able to get the first total row properly using method get_subtotal(). However for the next total row only the character fields are getting displayed and the quantity fields are coming blank.
    The second total row will have different values based on a formula.
    Please help me out in resolving the issue.
    Thanks,
    Abhishek

    You can provide first row as the SUBTOTAL and next row as the TOTAL.
    Get one extra column on which you can do the SUBTOTAL.
    Regards,
    Naimesh Patel

  • Footer Not Getting Displayed IN OO ALV

    HI Experts,
    I am using OO ALV and wish to display a footer for it.
    but the footer is not getting displayed.

    Footer for each page means you should use the EVENT END_OF_PAGE this will trigger , but not in display, but when you print the report it will work.
    Footer at the end_of report then you have to use END_OF_LIST event.
    BCALV_TEST_LIST_EVENTS
    check the above program to test the events.

  • Portal Forms are not getting displayed in the new oracle environment.

    Hi All,
    The Forms in our Portal applications are not getting displayed after we have done the upgradation of Database in Unix from 8i to 9i. The reports are working fine.The forms that were added as portlets are not getting displayed and other forms that are called thorough links returns error when it is run. The Newly created forms are also not running but returns error. The Portal Version is 3.0.9.8.3. Pls help.
    Regards,
    Tom

    Hi ,
    Based on the requirement , check whether the customer contact has been done carried out for the invoice  , then possibility it must have gone out of the worklist , chekc whether the Invoice posted in the AR has been transferred to FSCM collection .

  • Material type not getting displayed in the cube........

    Hi,
    In my infocube material type for one of the material is not getting displayed.
    When I check in the content of the cube for this material all the fileds are getting displayed except material type.
    However it is present in the material master data from which it is put into the update rules to populate in the cube.
    Its getting displayed for some other materials , so we cant say that mapping is wrong or problem with update rules.
    Can some body let me know what could be the reason.
    Thanks,
    Jeetu

    Hi Jeetu,
    can you check in your cube if you have for one material, entries with AND entries without the MATL_TYPE? If this is the case then you were loading transactional data before having the corresponding material master data.
    You should adapt your scenario:
    - first do not use the standard attribute derivation during your URules: performance is very bad.
    - implement a start routine filling an internal table with your material and MATL_TYPE for all entries of material in your datapackage.
    - implement an update routine on the MATL_TYPE with a READ on this internal table an raise an ABORT = 4 if the MATL_TYPE is initial or the material in not found.
    Now to fix your situation you'll have to reload your cube or alternatively just reload your missing MATL_TYPE MATERIAL from your cube itself and selective delete those which are empty.
    hope this helps...
    Olivier.

  • Master data is not getting displayed in the Query Designer

    Hi,
    I have a DSO in which I have an InfoObject called Emp No. in the Data Field.
    The Emp.No is being maintained as master with (Emp Name, Address, Telephone No, DOB) as attributes.
    I have loaded the data in the Emp. No. master. Then tried loading the transaction data in DSO.
    The Emp.No is there in the DSO active data, but in the query designer its not getting displayed.
    Hope its clear.
    Please help.
    Thanks

    Hi,
    I have brought the Emp. No. in the Key Field and also have activate the master data again.
    Yet my Query Designer doesn't have the Emp. No.
    I have done a full load for both Master and Transaction.
    Please advice me what the other alternative.
    Thanks

Maybe you are looking for

  • QuickTime Plug-in 7.6.4 upade in tiger

    There is no update to this in the mac software update built into the os or on the apple website. According to firefox and several articles there is a vulnerability in this version and it must be updated. Does apple have have 7.6.5 or .6 for this mac

  • Availability of SAP Automotive and DBM

    Hello, We are looking for information regarding the availability of SAP Automotive and SAP DBM in the following countries (Romania, Poland, Slovenia, Slovakia, Hungary, and Russia). Could someone help us understand what the release plan for these pro

  • [CS4] ReferenceError: Error #1065: Variable {ClassName}  is not defined

    A few days ago I decided to give Matrix3D a try, so I changed my publish setting to target flash player 10, and just to be safe, I hit the test movie magic combo (ctrl-enter) and got the dreaded Error #1065 all over the screen, so, ok, I thought I'll

  • Alert message(Query) for a Production order?

    Hi Experts, I want to get an alert message for the production order doucument based on the due date of it. The user must get the alert a  one day before the duedate of the document. How to write the Query for it? Urgent ,waiting for earliest reply. R

  • HT1386 how do i download music from my pc to my i pod

    how do i download music from my pc