Skip to Content
avatar image
Former Member

how to set two acions at a time when click on single button with same event id's?is it possible?

Hi guys,

this is Siva i am created  fpm component with oif  in this i have a button in main view in this when i am clicking the button(create) that  perform two action one is create  the new dynamic sub view using add sub view method in override_event_oif method . and second one is at the same time that dynamic view is active that is the my requirement any one please give the solution it is possible? if possible how ?if not any other way ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 23, 2016 at 09:49 AM

    hi guys please give me a reply any body its very urgent  plzzz

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      DATA LO_ND_GLOBAL_ATTRIBUTES TYPE REF TO IF_WD_CONTEXT_NODE.

         DATA LO_EL_GLOBAL_ATTRIBUTES TYPE REF TO IF_WD_CONTEXT_ELEMENT.

         DATA:LO_FEVENT TYPE REF TO CL_FPM_EVENT,                      

              LV_STATE  TYPE IF_FPM_OIF=>TY_S_STATE.

      TYPES: BEGIN OF TY_S_UIBB,

                  COMPONENT        TYPE STRING,

                  INTERFACE_VIEW   TYPE STRING,

                  CONFIG_ID        TYPE WDY_CONFIG_ID,

                  CONFIG_TYPE      TYPE WDY_CONFIG_TYPE,

                  CONFIG_VAR       TYPE WDY_CONFIG_VAR,

                  NEEDS_STRETCHING TYPE FPM_NEEDS_STRETCHING,

                  LOCATION         TYPE FPM_LOCATION,

                  INDEX            TYPE FPM_INDEX,

                  INSTANCE_ID      TYPE FPM_INSTANCE_ID,

                END OF TY_S_UIBB .

         DATA: LS_UIBB TYPE TY_S_UIBB,

               LT_UIBB TYPE STANDARD TABLE OF TY_S_UIBB.

         DATA:LO_FEVENT TYPE REF TO CL_FPM_EVENT,

              LV_STATE  TYPE IF_FPM_OIF=>TY_S_STATE.

         DATA:LO_EX  TYPE REF TO CX_FPM_FLOORPLAN,

              LO_FPM TYPE REF TO IF_FPM,

              LO_API TYPE REF TO IF_WD_COMPONENT,

              LV_MSG TYPE STRING.

         LS_UIBB-COMPONENT = 'ZWD_FPM_SALES_ACT'.

         LS_UIBB-INTERFACE_VIEW = 'CRT_SALES_ACT_W'.

         APPEND LS_UIBB TO LT_UIBB.

      TRY.

         CASE IO_OIF->MO_EVENT->MV_EVENT_ID.

      WHEN 'CRT_SALES_ACT'.


             CALL METHOD IO_OIF->ADD_SUBVIEW

               EXPORTING

                 IV_VARIANT_ID   = 'VARIANT_1'

                 IV_MAINVIEW_ID  = 'MAINVIEW_4'

                 IV_SUBVIEW_ID   = 'SUBVIEW_4_2'

                 IV_SUBVIEW_NAME = 'Create Sales Activity'

                 IT_UIBB         = LT_UIBB.

           CATCH CX_FPM_FLOORPLAN INTO LO_EX.

             LO_FPM = CL_FPM_FACTORY=>GET_INSTANCE( ).

             LV_MSG = LO_EX->IF_MESSAGE~GET_TEXT( ).

             LO_FPM->MO_MESSAGE_MANAGER->REPORT_MESSAGE( EXPORTING IV_MESSAGE_TEXT = LV_MSG

                                                                   IO_COMPONENT = LO_API ).

         ENDTRY.


      CALL METHOD CL_FPM_EVENT=>CREATE_BY_ID

           EXPORTING

             IV_EVENT_ID = CL_FPM_EVENT=>GC_EVENT_VIEW_SWITCH

      *     IO_EVENT_DATA  =

      *     IV_ACTION_TYPE = IF_FPM_CONSTANTS=>GC_ACTION_TYPE-STANDARD

           RECEIVING

             RO_EVENT    = LO_FEVENT.

         IO_OIF->MO_EVENT = LO_FEVENT.

         LO_FEVENT->MO_EVENT_DATA->SET_VALUE( IV_KEY = CL_FPM_EVENT=>GC_EVENT_PARAM_VIEW_ID

      IV_VALUE = 'MAINVIEW_4' ).

         IO_OIF->SET_SELECTED_SUBVIEW( IV_SUBVIEW_ID = 'SUBVIEW_4_2' ).




      this is my code it is in over ride method i am using apcc  the above code


      DATA: LO_FPM TYPE REF TO IF_FPM.

               LO_FPM = CL_FPM_FACTORY=>GET_INSTANCE( ).

               LO_FPM->RAISE_EVENT_BY_ID( 'CRT_SALES_ACT' ).



      this is in action above code  how to do  the active sub view if you know tel me bro onley one evnt id but two action how can i do it ? please give me proess how ?