Thursday, 3 March 2016

All Profile Parameters

Tx-RZ11 provides a fine way to set/maintain the profile parameters.
 1
2
3
well here is the Tx- SPFPAR which displays all profiles parameters.
4
Execute.
5
The all profile parameters displayed in an ALV!
6

Wednesday, 2 March 2016

Can’t Enhance any object in SAP system?

Sometimes we want to enhance some standard function module but we get the below error message- Software Component    XXXXXXXXX can not be enhanced.
What it exactly means that the system set up does not allow any enhancement of the objects belongs to a particular software component.
1
Get the package of the object.
2
Get the Software Component of the package.
3
Run the program – RSWBO004 in Tx- SE38.
4
Check the settings for the particular Software Component. Here for SAP_APPL it is Not Enhanceable.
5
Below settings are available.
6
Once it is enhanceable( may be you need to check with BASIS admin to get this done).
7
You can enhance any object belongs to that software component.
8

Tuesday, 1 March 2016

Building List UIBB Layout dynamically

 For the LIST uibb, create a feeder class and implement these below three interfaces. Interface IF_FPM_GUIBB_DYNAMIC_CONFIG provides methods to decide if we want to build the uibb layout dynamically or not.1
2
Put the below code in the HAS_DYNAMIC_CONFIGURATION method.
3
4
Put the below code in GET_DEFAULT_CONFIG method. We are trying to display SPFLI data in list UIBB.
5
  METHOD if_fpm_guibb_list~get_default_config.
    DATAlr_structdescr TYPE REF TO  cl_abap_structdescr,
          lt_field_list  TYPE         ddfields,
          ls_field_list  TYPE LINE OF ddfields,
          lv_index       TYPE         i.
    lr_structdescr ?= cl_abap_typedescr=>describe_by_name‘SPFLI’ ).
    lt_field_list lr_structdescr->get_ddic_field_list).
    TRY.
        io_layout_config->set_settings(
             EXPORTING iv_visible_row_counts 10
                       iv_allow_personalization abap_true
                       iv_scroll_mode ‘P’
                       iv_fit_to_table_width abap_true
                       ).
        lv_index 1.
        LOOP AT lt_field_list INTO ls_field_list.
          io_layout_config->add_columnEXPORTING iv_name         ls_field_listfieldname
                                                  iv_display_type ‘TV’
                                                  iv_index        lv_index ).
          lv_index lv_index + 1.
        ENDLOOP.
      CATCH cx_fpm_configuration.
    ENDTRY.
  ENDMETHOD.
6
Put the below code in GET_DEFINITION method.7
  METHOD if_fpm_guibb_list~get_definition.
    DATAlr_fpm             TYPE REF TO if_fpm,
          lt_abap_component  TYPE        abap_component_tab,
          lr_structdescr     TYPE REF TO cl_abap_structdescr,
          lr_fnl_structdescr TYPE REF TO cl_abap_structdescr.
    FIELD-SYMBOLS:<fs_abap_component> TYPE abap_componentdescr.
    lr_fpm cl_fpm_factory=>get_instance).
    lr_structdescr ?= cl_abap_typedescr=>describe_by_name‘SPFLI’ ).
    APPEND INITIAL LINE TO lt_abap_component ASSIGNING <fs_abap_component>.
    <fs_abap_component>type       lr_structdescr.
    <fs_abap_component>as_include abap_true.
    lr_fnl_structdescr cl_abap_structdescr=>createlt_abap_component ).
    eo_field_catalog   cl_abap_tabledescr=>createp_line_type lr_fnl_structdescr ).
  ENDMETHOD.
8
Put the below code in GET_DATA method.
9
  METHOD if_fpm_guibb_list~get_data.
    DATA lt_spfli TYPE TABLE OF spfli.
    IF iv_eventid->mv_event_id ‘FPM_START’.
      SELECT FROM spfli INTO TABLE lt_spfli.
      ct_data lt_spfli.
      ev_data_changed abap_true.
    ENDIF.
  ENDMETHOD.


 Create list UIBB configuration.10
Provide configuration name and click on NEW button.
12
Save in the desired package and then provide the feeder class name.
13
We can’t do any configuration here as this is dynamic set in the feeder class.
14
Create an OVP application, application configuration and ovp component configuration.
15
16
Application configuration and OVP component configuration.
18
Put the title and add  the list uibb component configuration.
19
Then test the application configuration.
20
So here we have the list display whose layout is completely dynamically desgined.
21
-------------------------------------------------------------------------------------------------------------------------

Comments system

Disqus Shortname