Sunday, April 8, 2012
- Create Web dynpro component and application as in the my previous post - Web Dynpro ABAP - ALV Total and Subtotal
- Setting the ALV design
- Define the usage of ALV component ALV_COMPONENT in the properties for your view. Since we need the object model for our changes, choose the With Controller Access variant (component interface).
- Go to view ALV_V -> Methods tab ->Create GET_COLOR-Write the code to get the layout with different designs->Call that method in WDDOINIT.
- Steps in GET_COLOR method.
- Getting the instance of ALV Component and Interface Controller.
- Change the layout design.
- Code in GET_COLOR method.
- Report outputs with colors
METHOD get_color . "Create instance for ALV Component usage. DATA lo_cmp_usage TYPE REF TO if_wd_component_usage. lo_cmp_usage = wd_this->wd_cpuse_alv_component( ). IF lo_cmp_usage->has_active_component( ) IS INITIAL. lo_cmp_usage->create_component( ). ENDIF. "Get config model DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table . lo_interfacecontroller = wd_this->wd_cpifc_alv_component( ). DATA lr_config_table TYPE REF TO cl_salv_wd_config_table. lr_config_table = lo_interfacecontroller->get_model( ). "Layout design lr_config_table->if_salv_wd_table_settings~set_design( value = cl_wd_table=>e_design-transparent ). ENDMETHOD.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.