Friday 25 March 2016

Customized Data Loss POP UP- FPM OVP Application



Please check the link for details: Customized Data Loss POP UP- FPM OVP Application

-------------------------------------------------------------------------------------------------------------

Data Loss POP UP – FPM OVP Application



Please check the link for details:  Data Loss POP UP – FPM OVP Application

-----------------------------------------------------------------------------------------------------------

Friday 11 March 2016

FPM OVP Application- Row Coloring in List UIBB




 Please check the linkFPM OVP Application- Row Coloring in List UIBB

--------------------------------------------------------------------------------------------------------------------------

Wednesday 9 March 2016

FPM Wiring- Passing data from List UIBB to Form UIBB




 Please check the linkFPM Wiring- Passing data from List UIBB to Form UIBB

--------------------------------------------------------------------------------------------------------

Saturday 5 March 2016

FPM OVP Application- Form Repeater UIBB


 let's create a FORM Repeater UIBB feeder class in Tx- SE24.
Implement the interfaces : IF_FPM_GUIBB and IF_FPM_GUIBB_FORM_REPEATER.
1
Activate all the methods and implement the below two methods : GET_DEFINITION & GET_DATA.
2
Put the below code in GET_DEFINITION method.3
    DATAlr_strucdescr TYPE REF TO  cl_abap_structdescr,
                lt_fields     TYPE         ddfields,
                ls_fields     TYPE LINE OF ddfields.
    eo_field_catalog ?=  cl_abap_tabledescr=>describe_by_name'SPFLI_TAB' ).
    lr_strucdescr    ?=  eo_field_catalog->get_table_line_type).
    lt_fields lr_strucdescr->get_ddic_field_listp_including_substructres abap_true ).
    LOOP AT lt_fields INTO ls_fields.
      APPEND INITIAL LINE TO et_field_description ASSIGNING FIELD-SYMBOL(<fs_field_descr>).
      <fs_field_descr>-name ls_fields-fieldname.
      CASE <fs_field_descr>-name.
        WHEN 'CARRID'.
          <fs_field_descr>-allow_grouping abap_true.
          SELECT
            carrid AS value
            carrname AS text
            FROM scarr INTO CORRESPONDING FIELDS OF TABLE <fs_field_descr>-fixed_values.
      ENDCASE.
    ENDLOOP.


Put the below code in GET_DATA method.
4
   CASE IO_EVENT->mv_event_id.
     WHEN 'FPM_START'.
      SELECT FROM SPFLI INTO TABLE GT_SPFLI.
        CT_DATA GT_SPFLI.
        EV_DATA_CHANGED ABAP_TRUE.
     WHEN OTHERS.
   ENDCASE.


Create an attribute.
5
Create a component configuration of the - FPM_FORM_REPEATER_UIBB .
6
Provide the configuration name. Save in the desired package.
7
Provide the feeder class name.
8
In general settings choose the SEPARATOR, Group Field.
Add necessary fields of the SPFLI table as element. Save the UIBB configuration.
9
rearrange the fields in the preview section as desired.
21.jpg


Now we have to create an OVP Application, application configuration and ovp component configuration. So execute Tx- FPM_WB.
10
Choose the highlighted link.
11
Provide application name, floor plan as - overview page and application configuration name and floor plan configuration name. Click Next button.
12
Save it.
13
Choose Edit Configuration link.
14
Provide title and choose FORM REPEATER COMPONENT.
15
Provide form repeater component name.
16
Save and then test the application.
17
Test the application.
18
So here we have the application looks like as below:
19
20


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