RFBILA00 -breakdown according to business area (ALV grid view)

Hi colleagues,
the new functionalty has been implemented for RFBILA00 in last support packs on our systems.
This functionality (breakdown according to business area), restricts to view total sums per account, ignoring the previous output control ''Business area summarization, 3''.
The process of unimplementation of this note is quite complicated.
Could you please give me a piece of advice?
Thanks a lot,
Michal

Michal,
How did you go with this. I think we have the same issue here where Business area summarization 3 is not working for ALV layout. We want to display each account total balance regardless of business area which works for the Classical List, but not the ALV layout.
Any tips?
Melissa

Similar Messages

  • Business area as a req..field for vat input tax g/l

    in fs00 . we  set the additional account assignment for field like suppress req. entry,opt. entry..i want to know for which general ledger it will be required...?
    actually in our system for (vat input tax ) gl  business area it is not mandatory field ...or when i check the line items for this general ledger business area wise ...it displaying for all  business area...
    so tell me if i set it as req. field,then will it be right or not?
    Thanks & Regards
    Rekha Sharma

    Hi,
    To my understanding taxes are always posted without a business area. System makes transfer postings from tax account to business areas for the income and expense account. A balance sheet adjustment is carried out according to business area if 'Business Area Balance sheets' has been activated in company code global parameters(OBY6).
    When you post a document the system determines this document and notes for the adjustment. Documents noted during posting are calculated for the adjustment. The system calculates the adjustment according to the account assignments. Execute F.5D(programSAPF180A) reads the marked documents, calculates the necessary adjustment postings, and updates these in its own database tables. After that execute F.5E(program SAP F180) reads the adjustment posting tables and on this basis posts the accounting documents required.
    For example you posted on customer invoice:
    Customer A/c  Dr 1150(Accts Receivables)
    Revenue A/c1 Cr         600 (BA-1)
    Revenue A/c2 Cr         400 (BA-2)
    Tax A/c Cr                   150
    During the Balance Sheet Adjustment the system divides this tax entry by business area wise
    Tax A/c 90(BA-1)
    Tax A/c 60(BA-2)
    You cannot run balance sheet adjustment without activating the 'Business Area Balance Sheets' at company code global parameters.
    Hope it will clear your query.
    Regards,
    Krishna Kishore

  • Splitter Problem - ALV Grid not refreshed when selected another item

    Hi Experts!!
    I have a container on screen 100 which has to be split into 3 areas. Left area ->tree, Right top area -alv grid and bottom also alv grid. I created the program without splitter and it was working fine. After I added this splitter, I see that in ALV grid, the data is not being refreshed. When double clicked on an item in tree struct, ALV grid (CL_SALV_TABLE) to be shown.. Firstly it's fine but when I double click on another item, it's not refreshing the data but is showing the same previous data.
    I have searched existing posts and implemented, but no luck.
    PFB my code:
    * In PBO of screen 100
      CREATE OBJECT go_cc_area1
        EXPORTING
          container_name              = 'CC_AREA1'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5.
      IF sy-subrc <> 0.
        MESSAGE e025 WITH sy-subrc.
      ENDIF.
      CREATE OBJECT go_splitter
        EXPORTING
          parent        = go_cc_area1
          orientation   = 1              "Vertical split
          sash_position = 40
        EXCEPTIONS
          OTHERS        = 1.
      IF sy-subrc <> 0.
      ENDIF.
      go_container_tree  = go_splitter->top_left_container.
      go_container_2 = go_splitter->bottom_right_container.
      CREATE OBJECT go_splitter_2
        EXPORTING
          parent        = go_container_2
          orientation   = 0              "Horizontal split
          sash_position = 40
        EXCEPTIONS
          OTHERS        = 1.
      IF sy-subrc <> 0.
      ENDIF.
      go_cc_area2 = go_splitter_2->top_left_container.
      go_cc_area3 = go_splitter_2->bottom_right_container.
      CREATE OBJECT go_tree
        EXPORTING
          i_parent                    = go_container_tree
          i_node_selection_mode       = cl_gui_column_tree=>node_sel_mode_single
          i_item_selection            = gc_x
          i_no_html_header            = gc_x
          i_no_toolbar                = space
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          illegal_node_selection_mode = 5
          failed                      = 6
          illegal_column_name         = 7.
        CALL METHOD go_tree->set_table_for_first_display
          EXPORTING
            i_background_id = space
            is_layout       = gs_layout
          CHANGING
            it_sort         = gt_sort
            it_outtab       = gt_tree_output
            it_fieldcatalog = gt_fieldcat_tree.
        CALL METHOD go_tree->expand_tree
          EXPORTING
            i_level = 2.
    * End - PBO 100
    *       CLASS lcl_tree_event_receiver DEFINITION
    CLASS lcl_tree_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS: handle_item_double_click
                   FOR EVENT item_double_click OF cl_gui_alv_tree_simple
                   IMPORTING fieldname
                             index_outtab
                             grouplevel.
    ENDCLASS.                    "lcl_tree_event_receiver DEFINITION
    *       CLASS lcl_tree_event_receiver IMPLEMENTATION
    CLASS lcl_tree_event_receiver IMPLEMENTATION.
      METHOD handle_item_double_click.
          IF go_alv_area2 IS BOUND.
            go_alv_area2->refresh( ).
          ENDIF.
          cl_salv_table=>factory(
            EXPORTING
              list_display   = space
              r_container    = go_cc_area2
            IMPORTING
              r_salv_table = go_alv_area2
            CHANGING
              t_table      = gt_table ).
          go_alv_area2->display( ).
      ENDMETHOD.                    "handle_item_double_click
    ENDCLASS.                    "lcl_tree_event_receiver IMPLEMENTATION
    I am facing the same problem with area 3 as well. Can somebody please help me out.
    Thanks a lot!!
    Edited by: Srinivas Kalluri on Jan 28, 2012 1:39 PM

    Hi All,
    I am still facing this problem. Can somebody please help me out?
    I created a test program wth sflight and spfli tables. Can somebody look into this and tell me where I am going wrong?
    On screen 100 i have one cust container named CC.
    When I test it, it's showing the same refresh problem. But in this test program refresh is atleast happening once.
    REPORT ztest.
    PARAMETERS: p_carrid TYPE sflight-carrid.
    CLASS lcl_tree_event_receiver DEFINITION DEFERRED.
    CONSTANTS: gc_x VALUE 'X'.
    DATA: go_cc_area1 TYPE REF TO cl_gui_custom_container,
          go_tree TYPE REF TO cl_gui_alv_tree_simple,
          go_tree_event_receiver TYPE REF TO lcl_tree_event_receiver,
          go_cc_area2 TYPE REF TO cl_gui_container,
          go_alv_area2 TYPE REF TO cl_salv_table,
          go_cc_area3 TYPE REF TO cl_gui_container,
          go_columns TYPE REF TO cl_salv_columns_table,
          go_cc_editor TYPE REF TO cl_gui_custom_container,
          go_editor TYPE REF TO cl_gui_textedit,
          go_content TYPE REF TO cl_salv_form_element,
          go_container_tree TYPE REF TO cl_gui_container,
          go_container_2 TYPE REF TO cl_gui_container,
          go_splitter TYPE REF TO cl_gui_easy_splitter_container,
          go_splitter_2 TYPE REF TO cl_gui_easy_splitter_container,
          go_cc_comp TYPE REF TO cl_gui_custom_container,
          go_alv_comp TYPE REF TO cl_salv_table.
    DATA: gt_sflight TYPE TABLE OF sflight,
          gt_data TYPE TABLE OF spfli,
          gt_fieldcat TYPE lvc_t_fcat,
          gt_sort TYPE lvc_t_sort,
          gs_sflight TYPE sflight,
          gs_layout TYPE lvc_s_layo.
    *       CLASS lcl_tree_event_receiver DEFINITION
    CLASS lcl_tree_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS: handle_item_double_click
                   FOR EVENT item_double_click OF cl_gui_alv_tree_simple
                   IMPORTING fieldname
                             index_outtab
                             grouplevel.
    ENDCLASS.                    "lcl_tree_event_receiver DEFINITION
    *       CLASS lcl_tree_event_receiver IMPLEMENTATION
    CLASS lcl_tree_event_receiver IMPLEMENTATION.
      METHOD handle_item_double_click.
        READ TABLE gt_sflight INTO gs_sflight INDEX index_outtab.
        IF sy-subrc EQ 0.
          SELECT * FROM spfli INTO TABLE gt_data WHERE connid = gs_sflight-connid.
          IF go_alv_area2 IS BOUND.
            go_alv_area2->refresh( ).
            cl_gui_cfw=>flush( ).
          ENDIF.
          cl_salv_table=>factory(
            EXPORTING
              r_container    = go_cc_area2
            IMPORTING
              r_salv_table = go_alv_area2
            CHANGING
              t_table      = gt_data ).
          go_alv_area2->display( ).
        ENDIF.
      ENDMETHOD.                    "handle_item_double_click
    ENDCLASS.                    "lcl_tree_event_receiver IMPLEMENTATION
    START-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'MAIN'.
    *  SET TITLEBAR 'xxx'.
      CREATE OBJECT go_cc_area1
        EXPORTING
          container_name              = 'CC'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5.
      IF sy-subrc <> 0.
    *    MESSAGE e025 WITH sy-subrc text-e01.
      ENDIF.
      CREATE OBJECT go_splitter
        EXPORTING
          parent            = go_cc_area1
          orientation       = 1              "Vertical split
          sash_position     = 25
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
    *    MESSAGE e025 WITH sy-subrc text-e02.
      ENDIF.
      go_container_tree  = go_splitter->top_left_container.
      go_container_2 = go_splitter->bottom_right_container.
      CREATE OBJECT go_splitter_2
        EXPORTING
          parent            = go_container_2
          orientation       = 0              "Horizontal split
          sash_position     = 40
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
    *    MESSAGE e025 WITH sy-subrc text-e02.
      ENDIF.
      go_cc_area2 = go_splitter_2->top_left_container.
      CREATE OBJECT go_tree
        EXPORTING
          i_parent                    = go_container_tree
          i_node_selection_mode       = cl_gui_column_tree=>node_sel_mode_single
          i_item_selection            = gc_x
          i_no_html_header            = gc_x
          i_no_toolbar                = space
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          illegal_node_selection_mode = 5
          failed                      = 6
          illegal_column_name         = 7.
      IF sy-subrc <> 0.
    *    MESSAGE e025 WITH sy-subrc text-e03.
      ENDIF.
      SELECT * FROM sflight INTO TABLE gt_sflight WHERE carrid EQ p_carrid.
        CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
          EXPORTING
            i_structure_name       = 'SFLIGHT'
            i_bypassing_buffer     = gc_x
          CHANGING
            ct_fieldcat            = gt_fieldcat
          EXCEPTIONS
            inconsistent_interface = 1
            program_error          = 2
            OTHERS                 = 3.
        IF sy-subrc <> 0.
    *      MESSAGE e025 WITH sy-subrc text-e05.
        ENDIF.
        DATA: ls_fieldcatalog TYPE lvc_s_fcat.
        LOOP AT gt_fieldcat INTO ls_fieldcatalog.
          ls_fieldcatalog-col_opt = gc_x.
          CASE ls_fieldcatalog-fieldname.
            WHEN 'CARRID'.
              ls_fieldcatalog-no_out = gc_x.
            WHEN 'CONNID'.
              ls_fieldcatalog-no_out = gc_x.
          ENDCASE.
          MODIFY gt_fieldcat FROM ls_fieldcatalog.
          CLEAR ls_fieldcatalog.
        ENDLOOP.
        DATA: ls_sort TYPE lvc_s_sort.
        ls_sort-spos = 1.
        ls_sort-fieldname = 'CARRID'.
        ls_sort-up = gc_x.
        APPEND ls_sort TO gt_sort.
        ls_sort-spos = 2.
        ls_sort-fieldname = 'CONNID'.
        ls_sort-up = gc_x.
        APPEND ls_sort TO gt_sort.
        DATA: lt_events TYPE cntl_simple_events,
              lo_l_event TYPE cntl_simple_event.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_node_context_menu_req.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_item_context_menu_req.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_header_context_men_req.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_expand_no_children.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_item_double_click.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_button_click.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
        APPEND lo_l_event TO lt_events.
        CALL METHOD go_tree->set_registered_events
          EXPORTING
            events                    = lt_events
          EXCEPTIONS
            cntl_error                = 1
            cntl_system_error         = 2
            illegal_event_combination = 3.
    * Set Handler
        CREATE OBJECT go_tree_event_receiver.
        SET HANDLER go_tree_event_receiver->handle_item_double_click FOR go_tree.
        CALL METHOD go_tree->set_table_for_first_display
          EXPORTING
            i_background_id = space
            is_layout       = gs_layout
          CHANGING
            it_sort         = gt_sort
            it_outtab       = gt_sflight
            it_fieldcatalog = gt_fieldcat.
        CALL METHOD go_tree->expand_tree
          EXPORTING
            i_level = 2.
        IF NOT gt_sflight[] IS INITIAL.
          CALL METHOD go_tree->set_top_node
            EXPORTING
              i_index_outtab = 0.
        ENDIF.
    * Send data to frontend.
        CALL METHOD go_tree->frontend_update.
      ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          SET SCREEN 0.
          LEAVE SCREEN.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Edited by: Srinivas Kalluri on Jan 31, 2012 4:49 PM

  • Discoverer Views not Working in Accounts Receivable Business Area

    Discoverer Instance: OracleBI Discoverer Version 10.1.2.54.25
    Database: Oracle 10G
    Apps Version: R12
    Problem: Related to our EUL for Apps
    Description: A lot of views in the AR Business Area depend on views that are created with synonyms that have VPD data restrictions.
    Example of this problem
    The “ARFG_AR_TRANSACTIONS “view depends on the “APPS.RA_CUSTOMER_TRX” synonym. This synonym and “APPS.RA_CUSTOMER_TRX_ALL” are both private synonyms owned by APPS that have the following creation script:
    CREATE OR REPLACE SYNONYM "APPS"."SYNONYM_NAME" FOR "AR"."RA_CUSTOMER_TRX_ALL";
    The first synonym returns a null set when queried and the second synonym returns an identical set to its source table.
    Source of the problem: It appears to be VPD data restrictions.
    How to check to see if there are VPD data restrictions:
    select
    a.object_owner,
    a.object_name,
    a.function,
    a.policy_group,
    a.policy_type,
    a.policy_name
    from
    DBA_POLICIES a
    where
    a.object_owner='APPS'
    AND a.object_name='RA_CUSTOMER_TRX';
    Solution: Our Discoverer administrator entered a service request on this and we were advised to apply patch # 6819715.
    Can anyone speak of any issues associated with this patch?
    Thanks,
    Patrick

    Yispro,
    This is the Home Consumer Products forum.
    You will want to post your question in the HP Enterprise Business Community.
    Here is the section for ALM.
    Quality Center Support / ALM - HP Enterprise Business Community
    Hope it helps.
    If my comment was useful, please click the thumbs up button at the bottom. Thanks

  • ALV Grid to Excel Problem

    Hi Folks,
    I have developed a report using ALV GRID for an user. However when he tries to export it to excel my field LIFNR (vendor no.) its 1 character short.
    For example:
    ALV GRID VIEW:
    103190325          2000004610          37,900.00
    EXCEL File:
    10319032          2000004610          37,900.00
    This is pretty strange for me, never had this problem before. Can anyone help me with this problem.
    Thanks in advance for your help.
    Regards,
    Gilberto Li
    Edited by: Gilberto Li on Nov 6, 2008 4:28 PM

    Hi Naimesh,
    Thanks for your reply.
    Yes I have checked the output length for the field. Right now I have it on 12 just in case, but LIFNR is a 10 character field, and I am still having this problem.
    When I hit the button for a preview on the grid it shows like this:
    10319032...   2000004610               37,900.00
    Strangely, don't know why this last digit is getting cutted.
    Thanks again.
    Regards,
    Gilberto Li

  • Business Area Required in FI VENDOR balance _0FIAP_C20

    hello BI experts,
    please help me with this
    we have got Vendor Balances Cube and a report on it .
    the report is working fine but there is no characterstic BUSINESS AREA in the datasource 0FIAP_C20
    Now the vendor wants to see how much balances stand for a particular Business area and Fi ppl want to know how much balances stands for a particular Business Area.
    please tell me what to Do and How to Do.
    If enhancement is requierd How to Do that step by step.
    Bussiness Area is appearing in ECC vendor line item report
    regards

    Hi ,
    If you are using the cube: 0FIAP_C20, then i guess you are using the standard extractor 0FI_AP_20 . One thing which i remember that there is a standard view in ECC : LFC1_AEDAT.
    This view has two tables : LFC1 and BWFI_AEDA2.
    LFC1 - Vendor master (transaction figures)
    BWFI_AEDA2 - BW FI: Log Table for Changed Transaction Figures
    This standard extractor uses table LFC1 to show vendor balances.
    And the table BWFI_AEDA2 contains the log of the changes that has taken place business area wise and account no of the vendor wise .
    Please check the view definition to confirm the same . Once you will see the joining conditions in this view you will get a clear picture of the above point .
    So for your issue, you can do datasource enhancement of 0FI_AP_20 .
    The logic will be based on LIFNR,BUKRS,GJAHR available from the datasource , fetch the business area from this view and populate it in your datasource .
    But first check in the table BWFI_AEDA2 whether for the field BWFI_AEDA2-TABNAME= lfc1 , business areas are maintained .
    Hope the above reply was helpful.
    Thanks & regards
    Edited by: DEADLOCKS on Apr 23, 2011 10:52 AM

  • Business area creation in command line

    Dear Pals,
    My discoverer version is
    Discoverer Version:Server 10.1.2.55.26 with EBS r12.0.4.
    I created EUL using eulapi and given SYSADMIN full access on the same. I've also imported Discoverer loader files. Now it is possible to create a Business area in command line. Now , I dont have Disco admin edition , so I couldn't able to create a business area using that. I have to do it in Command line. The requirement that 2 business areas has to be cretaed for Module HRMS.
    Is it possible to create a Business area in command line ?
    Please guide
    Kai

    Hi,
    Is it not possible to create business areas in discoverer viewer and discoverer plus ?. No, it is not possible.
    You could using the eulapi load command to load all HR database objects into an HR business area. However, this would not create any joins between objects so would not be very useful for creating reports using Discoverer viewer and plus.
    If you need to develop a custom EUL then you need to use Discoverer Administrator.
    Rod West

  • Report Writer report required by Business Area GSBER  for table GLPCT  ECC6

    Please help,
    I have a requirement for report writer report by Business Area (GSBER) for table GLPCT.
    I am using Libruary PCA which has GSBER already activated
    In report I am able to select GSBER in General Data Selection and generate.
    However when I execute report I get error message GR410 "Characteristic GSBER cannot be combined with key figures" .
    I have looked at SAPnotes 929889 1155524 and 358251, which describes solution to add field to CCSS table (structure CCR1S) however I cannot work out what structure to change for table GLPCT used in my report.
    Steve
    Solution was to use Libruary 8A3
    Edited by: Debra Dunford on Jun 29, 2011 10:34 AM

    Hi ,
    If you are using the cube: 0FIAP_C20, then i guess you are using the standard extractor 0FI_AP_20 . One thing which i remember that there is a standard view in ECC : LFC1_AEDAT.
    This view has two tables : LFC1 and BWFI_AEDA2.
    LFC1 - Vendor master (transaction figures)
    BWFI_AEDA2 - BW FI: Log Table for Changed Transaction Figures
    This standard extractor uses table LFC1 to show vendor balances.
    And the table BWFI_AEDA2 contains the log of the changes that has taken place business area wise and account no of the vendor wise .
    Please check the view definition to confirm the same . Once you will see the joining conditions in this view you will get a clear picture of the above point .
    So for your issue, you can do datasource enhancement of 0FI_AP_20 .
    The logic will be based on LIFNR,BUKRS,GJAHR available from the datasource , fetch the business area from this view and populate it in your datasource .
    But first check in the table BWFI_AEDA2 whether for the field BWFI_AEDA2-TABNAME= lfc1 , business areas are maintained .
    Hope the above reply was helpful.
    Thanks & regards
    Edited by: DEADLOCKS on Apr 23, 2011 10:52 AM

  • Can I display the File name at the bottom of the Grid view window?

    Dang.  I'm probably going to catch some flak for this... but I can't find where this bone is buried.  When the main viewer is in grid mode, the bottom of the window says "1 selected - 9 items displayed" or something to that effect.  Is there a way to replace that with the name of the file(s) that is currently selected?
    I have searched the manual and tried many of the Metadata display options and can get all kinds of info to show up when double clicking to bring that image full screen.  But I'd like to see its name when simply selected in the grid view.
    Obviously that info is available in the Info pane to the left.  But when doing basic organizing, I like to leave that side on the Library pane.
    Screen grab for the situation I am talking about:
    Thank you!
    Bo

    Bo,
    I have no idea, if it would be possible to change the caption in the line below the grid.
    But why not add the filename of each image to the grid view like this?
    Edit the metadata for the Gridview (expanded or basic) to include the "File name" and arrange the display order to show the Filename first. This way you will see it bleow each image.
    Another way to alway see the filename would be to set the Metadata Tooltip to include the filename, and to enable the tooltip, when you are using grid view.
    Regards
    Léonie

  • Two ALV Grids in a single screen are overlapping eachother

    Hi,
    I have created two ALV grids in a single screen. I have used seperate containers for them.
    But on executing them , both the ALV grids are overlapping eachother.
    Please give me a solution.

    Hi,
      IF w_custom_container IS INITIAL.
    Creating Object for the Custom Container.
        CREATE OBJECT w_custom_container
          EXPORTING
            container_name              = w_container
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6.
        CASE sy-subrc.
          WHEN 1.
            MESSAGE e054.  "CNTL ERROR
          WHEN 2.
            MESSAGE e055.  "CNTL SYSTEM ERROR
          WHEN 3.
            MESSAGE e056.  "CREATE ERROR
          WHEN 4.
            MESSAGE e057.  "LIFETIME ERROR
          WHEN 5.
            MESSAGE e058.  "LIFETIME DYNPRO DYNPRO LINK
        ENDCASE.
    Creating object for the Splitter Container.
        CREATE OBJECT w_split_container
          EXPORTING
            parent            = w_custom_container
            orientation       = 0
            sash_position     = 30
            with_border       = 2
          EXCEPTIONS
            cntl_error        = 1
            cntl_system_error = 2
            OTHERS            = 3.
        CASE sy-subrc.
          WHEN 1.
            MESSAGE e054. "CNTL_ERROR
          WHEN 2.
            MESSAGE e055. "CNTL_SYSTEM_ERROR
        ENDCASE.
    Creating Grid Control.
        CREATE OBJECT w_grid1
          EXPORTING
            i_parent = w_split_container->top_left_container.
        CREATE OBJECT w_grid2
          EXPORTING
            i_parent = w_split_container->bottom_right_container.
    Building field catalog for ALV.
    Fieldcat for the Detail Record.
        PERFORM build_fieldcat        USING:  c_1 c_code c_output c_check
                                              c_comcode c_olength,
                                              c_2 c_fileno c_output c_check
                                              c_filenum c_olength,
                                              c_3 c_dedcod c_output c_check
                                              c_dedcode c_olength,
                                              c_4 c_dedfac c_output c_check
                                              c_dedf c_olength.
    FieldCatlog for the Error Records.
        PERFORM build_fieldcat_error  USING:  c_1 c_pernr c_error c_check
                                              c_person c_olength,
                                              c_2 c_desc c_error c_check
                                              c_descp c_olength.
    ALV Display.
        CALL METHOD w_grid1->set_table_for_first_display
    EXPORTING
       i_buffer_active               =
       i_bypassing_buffer            =
       i_consistency_check           =
       i_structure_name              =
       is_variant                    =
       i_save                        =
       i_default                     = 'X'
       is_layout                     =
       is_print                      =
       it_special_groups             =
       it_toolbar_excluding          =
       it_hyperlink                  =
       it_alv_graphics               =
       it_except_qinfo               =
       ir_salv_adapter               =
          CHANGING
            it_outtab                     = t_error
            it_fieldcatalog               = t_fieldcat_error
       it_sort                       =
       it_filter                     =
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            OTHERS                        = 4
        CASE sy-subrc.
          WHEN 1.
            MESSAGE e076. "invalid parameter combination
          WHEN 2.
            MESSAGE e001. "program error
          WHEN 3.
            MESSAGE e078. "too many lines
        ENDCASE.
        CALL METHOD w_grid2->set_table_for_first_display
    EXPORTING
       i_buffer_active               =
       i_bypassing_buffer            =
       i_consistency_check           =
       i_structure_name              =
       is_variant                    =
       i_save                        =
       i_default                     = 'X'
       is_layout                     =
       is_print                      =
       it_special_groups             =
       it_toolbar_excluding          =
       it_hyperlink                  =
       it_alv_graphics               =
       it_except_qinfo               =
       ir_salv_adapter               =
          CHANGING
            it_outtab                     = t_output
            it_fieldcatalog               = t_fieldcat
       it_sort                       =
       it_filter                     =
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            OTHERS                        = 4
        CASE sy-subrc.
          WHEN 1.
            MESSAGE e076. "invalid parameter combination
          WHEN 2.
            MESSAGE e001. "program error
          WHEN 3.
            MESSAGE e078. "too many lines
        ENDCASE.
      ELSE.
        CALL METHOD w_grid1->refresh_table_display
          EXPORTING
            i_soft_refresh = 'X'.
        CALL METHOD w_grid2->refresh_table_display
          EXPORTING
            i_soft_refresh = 'X'.
      ENDIF.
    Hope it Helps,
    Jayant Sahu.

  • How to give a page break in alv grid display after 65 lines are displayed?

    hi all,
    I need to give a page break in alv grid display after 65 lines are displayed on each page...Please help me with this...

    hai
    give this command beging of the report name... u have to diclar the beging of the report ......
    <b>report</b> ( name of the report)  <b>standard page heading line-size 200 line-count 65.</b>
    ex1.:- report name is  rtpm_trl_show_flows 
    report <b>rtpm_trl_show_flows </b> no standard page heading line-size 200
                                                         line-count 65.
    ex:2
    report  <b>zlpur01</b> no standard page heading line-size 200
                                                         line-count 65.
    type-pools: slis.
    tables: bkpf.
    selection-screen begin of block sel with frame title text-001.
    select-options: s_comp for bkpf-bukrs, " Company
                    s_valut for bkpf-budat. " Invoice Date
                   S_MTART FOR MARA-MTART. " Material Type
    selection-screen end of block sel.
    parameters: p_vari like disvariant-variant. " ALV Variant
    constants: formname_top_of_page type slis_formname value 'TOP_OF_PAGE'.
    data:   i_bseg type bseg  occurs 0 with header line.
    data: vatval type p decimals 2 value '0.15'.
    data: xhkont type string value '154000'.
    data COM type c.
    data: begin of invt occurs 100,
            budat like bkpf-budat, " Inv Dat
            bukrs like bkpf-bukrs, " Material
            STCEG like bsak-STCEG, "name of the companycode
            belnr like bkpf-belnr,
            xblnr like bkpf-xblnr, " Inv Reference
            ebeln like rseg-ebeln, " PO number
            lifnr like bseg-lifnr, " Vendor No
            name1 like lfa1-name1, " Supplier Name
            matnr like bseg-matnr,
            maktx like makt-maktx,
            stcd1 like lfa1-stcd1, " Supplier VAT REG NO
            xamt like bseg-dmbtr, " TAX amt
            yamt like bseg-wrbtr,
            wrbtr like bseg-wrbtr, " Base amount
            mwskz like bseg-mwskz,
            dmbtr like bseg-dmbtr, " TAX amt
            gjahr like bkpf-gjahr,
            hkont like bseg-hkont,
            zamt like bseg-dmbtr, " TAX amt
            wamt like bseg-dmbtr,
            shkzg like bseg-shkzg,
            shkzg1 like bseg-shkzg,
          end of invt.
    regard
    nawa

  • All the columns of an alv grid report are not downloading in excel in 1 lin

    Hi All,
    I have some 60 columns in my alv grid report and user can download the report using list->export->localfile->spreadsheet.
    What the issue is that all the columns are not downloading in one line, instead they split in two rows.
    Please help.
    Regards,
    Neha Patel

    hi,
    just use this procedure it will solve your problem:
    Firstly export  the data to memory using the FM LIST_FROM_MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = t_listobject
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    IF sy-subrc 0.
    MESSAGE e000(su) WITH text-001.
    ENDIF.
    then i converted it into ASCII using LIST_TO_ASCI,
    CALL FUNCTION 'LIST_TO_ASCI'
    TABLES
    listasci = t_xlstab
    listobject = t_listobject
    EXCEPTIONS
    empty_list = 1
    list_index_invalid = 2
    OTHERS = 3.
    IF sy-subrc NE 0.
    MESSAGE e003(yuksdbfzs).
    ENDIF.
    This gives the data in ASCII format separated by '|' and the header has '-', dashes. If you use this internal table directly without any proccesing in SO_NEW_DOCUMENT_ATT_SEND_API1, then you will not get a good excel sheet attachment. To overcome this limitation, i used cl_abap_char_utilities=>newline and cl_abap_char_utilities=>horizontal_tab to add horizontal and vertical tabs to the internal table, replacing all occurences of '|' with
    cl_abap_char_utilities=>horizontal_tab.
    Set the doc_type as 'XLS', create the body and header using the packing_list and pass the data to be downloaded to SO_NEW_DOCUMENT_ATT_SEND_API1 as contents_bin.
    This will create an excel attachment.
    Sample code for formatting the data for the attachment in excel format.
    u2022     Format the data for excel file download
    LOOP AT t_xlstab INTO wa_xlstab .
    DESCRIBE TABLE t_xlstab LINES lw_cnt.
    CLEAR lw_sytabix.
    lw_sytabix = sy-tabix.
    u2022     If not new line then replace '|' by tabs
    IF NOT wa_xlstab EQ cl_abap_char_utilities=>newline.
    REPLACE ALL OCCURRENCES OF '|' IN wa_xlstab
    WITH cl_abap_char_utilities=>horizontal_tab.
    MODIFY t_xlstab FROM wa_xlstab .
    CLEAR wa_xlstab.
    wa_xlstab = cl_abap_char_utilities=>newline.
    IF lw_cnt NE 0 .
    lw_sytabix = lw_sytabix + 1.
    u2022     Insert new line for the excel data
    INSERT wa_xlstab INTO t_xlstab INDEX lw_sytabix.
    lw_cnt = lw_cnt - 1.
    ENDIF.
    CLEAR wa_xlstab.
    ENDIF.
    ENDLOOP.
    Sample code for creating attachment and sending mail:
    FORM send_mail .
    u2022     Define the attachment format
    lw_doc_type = 'XLS'.
    u2022     Create the document which is to be sent
    lwa_doc_chng-obj_name = 'List'.
    lwa_doc_chng-obj_descr = w_subject. "Subject
    lwa_doc_chng-obj_langu = sy-langu.
    u2022     Fill the document data and get size of message
    LOOP AT t_message.
    lt_objtxt = t_message-line.
    APPEND lt_objtxt.
    ENDLOOP.
    DESCRIBE TABLE lt_objtxt LINES lw_tab_lines.
    IF lw_tab_lines GT 0.
    READ TABLE lt_objtxt INDEX lw_tab_lines.
    lwa_doc_chng-doc_size = ( lw_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
    lwa_doc_chng-obj_langu = sy-langu.
    lwa_doc_chng-sensitivty = 'F'.
    ELSE.
    lwa_doc_chng-doc_size = 0.
    ENDIF.
    u2022     Fill Packing List For the body of e-mail
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = 'RAW'.
    APPEND lt_packing_list.
    u2022     Create the attachment (the list itself)
    DESCRIBE TABLE t_xlstab LINES lw_tab_lines.
    u2022     Fill the fields of the packing_list for creating the attachment:
    lt_packing_list-transf_bin = 'X'.
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = lw_doc_type.
    lt_packing_list-obj_name = 'Attach'.
    lt_packing_list-obj_descr = w_docdesc.
    lt_packing_list-doc_size = lw_tab_lines * 255.
    APPEND lt_packing_list.
    u2022     Fill the mail recipient list
    lt_reclist-rec_type = 'U'.
    LOOP AT t_recipient_list.
    lt_reclist-receiver = t_recipient_list-address.
    APPEND lt_reclist.
    ENDLOOP.
    u2022     Finally send E-Mail
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = lwa_doc_chng
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    sent_to_all = lw_sent_to_all
    TABLES
    packing_list = lt_packing_list
    object_header = lt_objhead
    contents_bin = t_xlstab
    contents_txt = lt_objtxt
    receivers = lt_reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    Hope it will help you
    Regards
    Rahul sharma

  • Can we control the output screen area of alv grid list

    Hi All,
    can we control the screen area of grid control in alv's , not using ooalv's. By default grid list is displaying in the whole screen, but i want  to display this grid list in specific area in output screen , not in full screen, how to set these screen area for this grid control. Please let me know.

    Hi,
    If you use the following parameters
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
    you will get the output in the size expected but it will be in the form of a pop up box and a blank screen at the back and user action like cancel etc will take you back to the selection screen.

  • ALV grid display-my columns are multiplying.

    I have been searching for the solution for my small problem..So I hope this question hasn`t been asked before.
    I have an ALV grid in a pop up display using 'REUSE_ALV_GRID_DISPLAY'.
    I have an input field on my screen that helps me display only certain keys on my alv grid.
    When I input for example key 2 it shows all the correct products for that key 2.
    When I try to enter another key....it shows the correct products but each column is duplicated. So each time I input something and hit 'Show' each column in that table is duplicated again.
    Tried REFRESH, CLEAR my internal table....but I haven`t been able to make it work.
    Did this happen to anybody ?
    Newbie Ilinca
    my input module for that screen:
    when 'SHOW'.
           select col1 col2....
               into corresponding fields of table it_display
               from ztable
              where col1 = ztable2-col1.
    CLEAR ls_fieldcatlog.
      ls_fieldcatlog-row_pos   = '1'.
      ls_fieldcatlog-col_pos   = '1'.
      ls_fieldcatlog-fieldname = 'COL1'.
      ls_fieldcatlog-tabname   = 'IT_DISPLAY'.
      ls_fieldcatlog-seltext_m = 'Infotype'.
      APPEND ls_fieldcatlog TO lt_fieldcatlog.
      CLEAR ls_fieldcatlog.
      ls_fieldcatlog-row_pos   = '1'.
      ls_fieldcatlog-col_pos   = '2'.
      ls_fieldcatlog-fieldname = 'COL2'.
      ls_fieldcatlog-tabname   = 'IT_DISPLAY'.
      ls_fieldcatlog-seltext_m = 'Infotype'.
      APPEND ls_fieldcatlog TO lt_fieldcatlog.
    noloyo-zebra = 'X'.
    noloyo-colwidth_optimize = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program    = sy-repid
          i_grid_title          = 'INFOTYPE DETAILS'
          is_layout             = noloyo
          it_fieldcat           = lt_fieldcatlog
          i_screen_start_column = 10
          i_screen_start_line   = 20
          i_screen_end_column   = 100
          i_screen_end_line     = 40
        TABLES
          t_outtab              = it_display
        EXCEPTIONS
          program_error         = 1
          OTHERS                = 2.
    AND MY DECL:
    TYPES: BEGIN OF type_com,
          col1TYPE ztable-col1,
          col2TYPE ztable-col2,
           END OF type_com.
    DATA : it_display TYPE STANDARD TABLE OF type_com.

    Hi ilinktrinel;
    Please try to below code
    first way;
    refresh lt_fieldcatlog. "add only this row
    CLEAR ls_fieldcatlog.
    ls_fieldcatlog-row_pos = '1'.
    ls_fieldcatlog-col_pos = '1'.
    ls_fieldcatlog-fieldname = 'COL1'.
    ls_fieldcatlog-tabname = 'IT_DISPLAY'.
    ls_fieldcatlog-seltext_m = 'Infotype'.
    APPEND ls_fieldcatlog TO lt_fieldcatlog.
    CLEAR ls_fieldcatlog.
    ls_fieldcatlog-row_pos = '1'.
    ls_fieldcatlog-col_pos = '2'.
    ls_fieldcatlog-fieldname = 'COL2'.
    ls_fieldcatlog-tabname = 'IT_DISPLAY'.
    ls_fieldcatlog-seltext_m = 'Infotype'.
    second way;
    if lt_fieldcatlog is initial. "add this row
    CLEAR ls_fieldcatlog.
    ls_fieldcatlog-row_pos = '1'.
    ls_fieldcatlog-col_pos = '1'.
    ls_fieldcatlog-fieldname = 'COL1'.
    ls_fieldcatlog-tabname = 'IT_DISPLAY'.
    ls_fieldcatlog-seltext_m = 'Infotype'.
    APPEND ls_fieldcatlog TO lt_fieldcatlog.
    CLEAR ls_fieldcatlog.
    ls_fieldcatlog-row_pos = '1'.
    ls_fieldcatlog-col_pos = '2'.
    ls_fieldcatlog-fieldname = 'COL2'.
    ls_fieldcatlog-tabname = 'IT_DISPLAY'.
    ls_fieldcatlog-seltext_m = 'Infotype'.
    endif. "add this row
    Best regards.

  • ALV GRID with icon fields. When exports to Excel, icon fields are emtpy.

    Hi all,
    In our SAP system (6.0 ECC) we've noticed the following behaviour:
    In ALV GRID with icons (color lights for example...) when we export the list to Excel format with the standard button bat, the icon column is always empty.
    We think that in previous SAP version (4.7), the code corresponding to the icon appeared (For example @08@ for green light).
    It's possible to have tha same functionality in this new version like in 4.7?
    Regards.
    Edited by: Ole ES on Nov 17, 2010 6:05 PM

    Hi,
    Check the format in which you export to Excel (MHTML, XML, ...) and try antoher one.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/66/79ad48157f11d2953700a0c930328a/content.htm
    I think the integrated Excel mode shows '@08@'.
    Best regards,
    Guillaume

Maybe you are looking for

  • Windows 7 on mac mini server and raid 1

    I just purchased a 2011 mac mini server with the hopes of installing windows 7 alongside lion.  Then my goal was to have the two drives mirrored.  I successfully mirrored the two drives using disk utility and then proceeded to install lion.  This all

  • FRM-41213 When calling report from a form using RUN_REPORT_OBJECT

    Hi, I get an error frm-41214:unable to connect to the report server when i am trying to call a report from a form using RUN_REPORT_OBJECT. My code is as follows: I have created a simple report using employee table such tht when i give the department

  • Finder Cover Flow initial view

    How can I set the initial view settings when using cover flow within finder- the finder file/folder list at the bottom of the window is way too short and the cover flow file preview portion of the window is massive. Appreciate?

  • App Store gives "An unknown error has occurred" when I try to log in

    I know I'm using the correct username and password -- using a different one gives a password-specific error, and the username/password works correctly elsehwere. I have applied all updates, and rebooted. I just had my SSD replaced (got the machine ba

  • How to execute a java program in business objects

    I am new to  java world, we r passing parameters  thru java program. The java program passes the parameters(like state) dynamically to crystal reports to generate the reports indivudually for evey parameter(like ca,ny,fl) . what r the things i need t