Skip to Content

         Introduction

         This document explain the step by step procedure to create dropdown using feeder class .

          Here i will explain the simple scenario to show dropdown using feeder class and read the

         selected value of dropdown.

        Step by Step Process

         Step 1 : Go to transaction se24 and Create feeder class .

            Go to se24 create class and add the interface IF_FPM_GUIBB_FORM .

  

     01.PNG

           Go to method tab and activate all the methods one by one.

    

      2.PNG

   

          Go to Public section and Define there internal table and work area for dropdown .

         /wp-content/uploads/2013/08/3_255315.jpg

     4.PNG

          Now, go to method “GET_DEFINITION” write the below code.

  method IF_FPM_GUIBB_FORM~GET_DEFINITION.

  data wa_field type FPMGB_S_FORMFIELD_DESCR.
 
data wa_action type fpmgb_s_actiondef.
 
data it_action type fpmgb_t_actiondef.
 
data lt_fixed_value type WDR_CONTEXT_ATTR_VALUE_LIST.
 
data ls_fixed_value type WDR_CONTEXT_ATTR_VALUE.

  eo_field_catalog ?= cl_abap_tabledescr=>describe_by_data( w_pa0001 ).
  select pernr ename from pa0001 into table t_pa0001 up to 20 rows .
 
loop at t_pa0001 into w_pa0001.
  ls_fixed_value-value = w_pa0001-pernr.
  ls_fixed_value-text = w_pa0001-ename.
 
append ls_fixed_value to lt_fixed_value.
  endloop.

  wa_field-name = ‘PERNR’.
  wa_field-FIXED_VALUES = lt_fixed_value.
  wa_field-LABEL_TEXT =
‘Employee’.
  wa_field-DEFAULT_DISPLAY_TYPE =
‘DD’.
 
insert wa_field into table et_field_description.


  wa_action-id =
‘ON_DROP’.
  wa_action-enabled =
‘X’.
  wa_action-action_type =
0.
 
append wa_action to it_action.
  et_action_definition = it_action.

  endmethod.

           go to flush method and write the code to  read the selected value of dropdown.

     9.PNG

       Go to method PROCESS_EVENT and write the code to show message on the selected value of dropdown .

    method IF_FPM_GUIBB_FORM~PROCESS_EVENT.
   
DATA : L_MESSAGE TYPE FPMGB_S_T100_MESSAGE,
    S1
TYPE STRING ,
    S2
TYPE STRING,
    S3
TYPE STRING.

    s1 = ‘Selected Employee Number is  ‘.
    s2 = drop_data-pernr.
   
concatenate s1 s2 into s3.

    if io_event->mv_event_id = ‘ON_DROP’.
    l_message-MSGNO =
’01’.
    l_message-SEVERITY =
‘S’.
    l_message-PLAINTEXT = s3.
   
append l_message to et_messages.
    endif.

    endmethod. 

        STEP 2 :  Create FPM OIF application.

  

         Go to se80 and create application using component  FPM_OIF_COMPONENT  and save it in your package.


       24.PNG

         STEP 3 : Create configuration for the application.

     

          Go to your package select your application and create the configuration .

       /wp-content/uploads/2013/08/25_255337.png

         Give the configuration Id and press create button.

 
        

            Popup will come give description and package name and press ok button then it will ask for the

            transport request no Give your transport request no. and press ok.

  
         

            In the next screen we have to give configuration name .

           Give some name and press Go_to_component_configuration button.

         

            In the next screen it will show error  ‘The Specified configuration does not exist’ .

            Don’t worry Press Create Button .

      
        

           STEP 4 : Add FORM_UIBB .

    

            Add the component FPM_FORM_UIBB and view FORM_WINDOW  , Give configuration name .

      29.PNG
 

           Save It and press configure_uibb button.


    

               STEP 5 :  Create configuration for FORM UIBB .

  

               After Pressing Configure_UIBB button system will ask to create configuration give the package name

               and description  and create configuration ,Then give the feeder class name and press button

               EDIT_PARAMETERS and then press ok button.

          

             STEP 6  : Add & Configuration Group .

              press button ADD_GROUP and then  press CONFIGURE_GROUP button  .


            

            Add Pernr field to display fields and assign FPM Event ID : ON_DROP( ).   and save the configuration.    

          

              STEP 7 : Test Your Application .

           Go to your package and test the application configuration.

          

          

       Conclusion 


           Here i  demonstrated a simple application to show dropdown using feeder class and read the selected value of dropdown.


To report this post you need to login first.

5 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply