FPM Save

Hi Friends,
This is regarding the place to write code for some creating and table entry, after a SAVE is performed in standard Appraisal Application which is internally using FPM framework.
Location: Application for appraisal in MSS, where Manager creates an Objective. While saving Objective, I need to create a custom infotype entry. So, I need to write the logic in SAVE button for Objective creation screen. This SAVE is handled in FPM.
Can you please help me to find the BADI or Class-Enhancement, where I can write my own logic. This should work just after Saving the new Objective made
Thanks in advance,
anu

Hi,
Some of the FPM applications implement the interface IF_FPM_TRANSACTION in webdynpro component. it has the save method.
Look if your webdynpro component has it. You can enhance the WD comp to insert custom infotype update logic.
Or Try to find a method used by comp to save data. Most likely to be present in assistance class, enhance it ( implicit enhancement) at the end and add ur logic. You need to be sure it does not create any conflict with SAP standard execution.
Regards
Vishal Kapoor

Similar Messages

  • Question related to IF_FPM_TRANSACTION

    Hello Experts
    We implemented the interface IF_FPM_TRANSACTION in a WD component. Our FPM application consists only of generic UIBBs, in this case the IF_FPM_TRANSACTION methods are not executed. What do I have to do that the transaction methods are executed?
    Regards,
      Mathias

    Hi,
    As of now these transction methods are executed only when fpm save event or fpm save as or  fpm delete event gets triggered.
    If in your application if there are any of these 3 events then the methods in if_fpm_transaction
    gets executed.

  • FPM Application how to get SAVE buttons action

    Hello all,
    I have creted an application with the FPM, and in the portal after generating the application, i get a big table with Picture and data of the employee (name. PERNR, ORGUnit, MANAGER....) and some subtables that i have created also are there,
    my question is, there is a save button over those subtables, and i need to know which action or methode generate this (SAVE) button?
    i will be very happy about any kind of help
    Thank you all

    Hello Agadir,
    Do you want to how handle the SAVE event? if this is your requirement then in the Process_Event method of the component controller, you can check for the event id BTN_SAVE and write your logic
    case io_event->mv_event_id.
          when 'BTN_SAVE'.
               "Your logic
    endcase.
    BR, Saravanan

  • Save  functionality for FPM component

    Hi,
    my requirement is provide  input field on the header portion , when i hit ' save and print preview' it should save and preoview the the  whole data.
    i have  provided input field on the header.. but not sure  how to get the print functionality in fPM component.
    and also how to  find  what smart form/pdf using  by any webdynpro component? where to check?
    by  input field shou;d be displayed on the existing form, when I use save and print button.
    please help!

    Hi,
    First thing is to get the smart form name put a external break point in F.M SSF_FUNCTION_MODULE_NAME
    and debug on save button this way you will get the smartform name.
    If it's a standard FPM component enhance the component and in post exit on 'save and print'
    You can get the OTF data from the smartform now and then can convert it to PDF CONVERT_OTF
    Hope it helps.
    Bhanu

  • Hide SAVE + SAVE Draft in FPM

    Hi,
    under certain circumstances I need to hide the Save, Save Draft, Reset and other buttons in FPM OIF.
    How can I achieve this?
    Thanks

    Hi,
    Create a attribute in context type boolean, and bind that attribute based on ur button visible property .
    inside init method
    follow my coding logics.
    access attribte (e.g: le_attribute)
    le_attribte->set_attribte( exporting name = 'ATTRIBUTE_NAME' value = abap_true ).
    above mentioned logic is for visible.
    in which action you want to invisible as same you can write
    le_attribte->set_attribte( exporting name = 'ATTRIBUTE_NAME' value = abap_false ).
    above mentioned code is invisible.
    Thanks & Regards,
    Srinivasan.R

  • FPM: Error while creating component Configuration

    Hi,
    I have installed ABAP trial version (NSP), but without loopback adapter. So, now for every WebDynpro application, I have my manually change link from "http://<mymachineName>:8000" to  "http://localhost:8000".
    I create an application on FPM component: FPM_OIF_COMPONENT, then an application configuration for this application.
    I open this Appl. config. in se80 and press "Start configuration".  Now I try to create new component configuration.
    After maintaining description and transport information, I save it.
    At this point, I get a dump:
    "RFC Error while sending logon data"
    CALL_FUNCTION_CONNECT_ERROR in CL_WDR_CFG_COMP_SHBROKER======CP.
    The class: CL_WDR_CFG_COMP_SHBROKER method: INVALIDATE
    has a call:  call function 'WDR_INVALIDATE_CFG_PATTERN' starting new task l_cfg_task
            exporting client = client pattern = l_instance_name .
    where it dumps.
    could you please to resolve what could be wrong? is there some system setting which I missed.
    Regards,
    Daman

    Hi ,
    This exception is raised when a connection or communications failure occurs.
    This exception reports all failures and system problems on the remote machine . so look like there  is some porblem with your system connection .
    Could you please check in your host file , is that entry for system is maintain  or not ?
    Hope this help .
    Regards,
    Dinesh

  • Capture screen positions on click of a button in FPM toolbar

    Hi Uve,
    Currently in visual business if i right click on any map stack i will get the option for personalization and to set the screen position per user.
    But my requirement is I have to set screen positions for multiple rail yards per user.So on click of a save button in fpm i require tje current screen positions so that i could save it and pass it during initialization of VB for that yard next time.
    But what i notice is only when we right click on a map stack the exact screen position details are fired to backend,But when we right click on spot or links screen positions details like zoom factor, change of perception values etc are not passed.
    Could you suggest a solution to get screen position from VB on an external FPM event.
    Thanks
    Siju

    Hello Siju,
    I am afraid this is a limitation of the current backend of Visual Business. Technically the camera value can be retrieved with every event fired by the control. But in your case there are two issues right now:
    1. There is no event raised by the VB control when you press an FPM button
    2. Even if there would be an event, the camera data needs to be requested with the event registration. This registration is fix for the backend API, and the data comes only with the right click on the map/scene.
    However, there is a chance to get this done! If you check impl of method IF_VBI_CONTROL_ADAPTER~CHECK_DATA_CHANGED of class CL_VBI_CONTROL_ADAPTER you see how to trigger an arbitrary event of the control from the backend. You can derive your own control adapter from our base class and add an own method triggering event "7" instead of "GenDummy". This should lead to a context menu request including the current camera values.
    Good luck,
    Uwe

  • FPM / Method cl_wd_runtime_services= attach_file_to_response is not working

    Hi all,
    i am trying to open some files like XLS or PPT in Portal by calling the method cl_wd_runtime_services=>attach_file_to_response .
    but i am getting an error, i know where is the problem, in the Portal after clicking on Bottun , a new window appears and it has the URL and no standard function (like BACK or NEXT .. its a popup with URL) this window contains my files, and after clicking on a file, another popup (for XLS or PPT or Word) will appear (OPEN   SAVE   CANCEL). and in this case,  a MS-Office Products Popup appears only in some cases like on the server or MS Outlook.. but nor on a Popup that has been programmed with FPM.
    so i am looking now for another method or a solution that can resolve my problem
    Best Regards

    FPM does absolutely support Internet Explorer, but you are hitting a specific security "feature" of Internet Explorer
    >there is alawys a small popup that appears on the top of the page saying that the links is blocked, and after ( allow it) clicking >on it , then the popup of the MS-Office schould appear.
    >the first popup who is blocking the Links, after clicking on it, am getting an error
    The Popup is coming from Internet Explorer, not Web Dynpro.  It is a security feature to add another user confirmation before allowing file downloads.  Unfortuntely after confirming, IE doesn't just continue with the download. Instead it reloads the page and resends the last request object to the server.  This confuses Web Dynpro and causes you to have to refresh the application before it functions properly. 
    You should add your WDA website host to your trusted sites configuration in IE and make sure that IE doesn't prompt for trusted sites.  This is all configuration done on the client side in IE.

  • Adding TabPage to (FPM) Standard ABAP Webdynpro Application

    Hi
    i'm beginning with ABAP webdynpro so i have been investigating tutorials and documentation about this and i created some sample programs for show Z tables or things like that.
    But my requirement is modificate the Standard Application 'Course Registration' of Student Lifecycle Management module ; this application has 3 Standard TapPages , one of these TabPages shows the courses to be booked and i need to add another new TabPage in order to show the courses to be booked divided for some criteria in the original TabPage and the new TabPage , the new TabPage must have the same functionality of original Tabpage.  Something like enhance Standard program with Screen Exit and Badis in ABAP. 
    I was investigated and now i know we can enhance Standard WD Component like deleting UI elements, enhance methods or add view/windows ;  but the 'Course Registration' is a FPM application so i found a tutorial cookbook configuration for this application and it explains we can add  TabPages (MainViews) or SubTabPages (Subviews) like i need ; but the tutorial only mentions the 3 original standard TabPages because all is related with already existing configurations for each component ;   In FPM framework configuration for the component if i press the 'Add View' button it adds a TabPage like i want, but i really do not know if it works for add a new 'Z' TabPage.  
    Can somebody please help me about how can i add a TabPage to Standard Webdynpro Application for application wich uses FPM framework ?  Where can i investigate about this ? 
    Excuse me for long thread , any help will be appreciated.
    Best Regards
    Frank

    Thanks Madhu
    Please let me give detail ; I just go to desired Application  PIQ_MBSS_OIF , Configuration PIQAC_MBSS_OIF ;  the configuration shows its two component configurations for Header IDR  (FPM_IDR_COMPONENT)  and floor plan specific (FPM_OIF_COMPONENT).
    In WD Component FMP_OIF_COMPONENT  with standard configuration  PIQCC_MBSS_OIF i see the tree Satndard TabPages created , one of these Tabpage is wich i need to divide in two Tabpages ;  in this Standard TabPage i see its required UIBBs with each standard UIBB configuration (ie.  FPM_LIST_UIBB with configuration PIQCC_MBSS_BCART_LIST  for the table list).
    Here is where i really do not know if my requirement can be made by just using FPM framework configurations :  can i copy Standard Configuration for  FMP_OIF_COMPONENT  , add the new Tabpage , save it with new 'Z' configuration , and it will work ok in the Standard Application ?       For add the Tabpage i should then add configurations for the UIBBs wich compose the TabPage (FPM_LIST_UIBB , FPM_TABBED_UIBB and  PIQUIBB_POPUP_AGENT ) ,  is this right ?
    I hope the explanation is clear ; any orientation will be helpfull.
    Best  Regards
    Frank

  • How to Hide a Tab in FPM

    Hi Colleagues,
    We have a requirement in which we have to dynamicaaly hide a tab on a screen that uses FPM. We were able to disable the tab but we did not find any option to hide/remove tab provided by FPM.
    regards
    ashish

    Steps to Hide/Remove BUDGET sub-view from PO Display-
    1. Go to Object Navigator (t-code SE80) and enter Web Dynpro component FPM_OIF_COMPONENT. Right-click and then click on u201CCreate/Change Configurationu201D.
    2. Enter configuration ID /SAPSRM/WDCC_FPM_OIF_PO_PURCH and then click on u201CChangeu201D.
    3. Select Sub-view Budget.
    4. To remove the sub-view, click on DELETE.
    5. The sub-view will be removed.
    Steps to Hide/Remove Sub-view contents and NOT the sub-view itself-
    1. Enter the Configuration ID of the sub-view component.
    2. Click on Web Dynpro Built-in tab.
    3. Select all elements and set visibility as u201CInvisibleu201D.
    4. Click SAVE.
    5. Contents of BUDGET sub-view will be removed.
    Steps to bring removed/deleted sub-view back on Portal-
    1. Select Mainview HEADER and click on u201CAdd UIBBu201D. Enter the following in Attributes Subview: Budget.
    Subbiew ID: Budget
    Subview Name: Budget
    Sequence Index: 4
    2. Click on Attributes for the added UIBB and then enter the following values.
    Component Name: /SAPSRM/WDC_UI_DO_BUDGET
    View: IV_L_FPC_CA_DETAILS
    Configuration Name: /SAPSRM/WDCC_UI_DO_BUDGET3
    Regards,
    Bijaya

  • Portal Workprotect in Talent Profile - WebDynpro ABAP FPM application

    We are trying to implement Workprotect in ESS - Talent Profile application (HRTMC_EMPLOYEE_PROFILE). The requirement is that when user had entered data in either Internal work experience, External Work experience or other tabs; before he has saved the data, if the user clicks on some other link in portal or try to close the window, Portal work protect that is enabled should prompt the user to save the data or risk losing data.
    What has been done so far:
    1. Enabled Workprotect on Portal:
    Step 1: In the portal, go to System Administration -> System
    Configuration -> Service Configuration.
    Step 2: In the portal catalog, Select
    application "com.sap.portal.epcf.loader" and open the properties for
    service "epcfloader" for editing
    Step 3: Set property workprotect.mode.default = 3
    Step 4: Save -> Restart service
    Now, Portal Work protect is enabled.
    2. On the Talent application end, I have seen many posts in forum & FPM related workprotect documentation. But, it is not clear as to how this actually works when it comes to FPM application.
    The documents says FPM allows application to make use of work protect
    mode offered by Portal. To achieve this, the application must u2018tellu2019 the
    FPM whether it contains unsaved
    (u201Cdirtyu201D) data. For this, the FPM provides the Web Dynpro Interface
    IF_FPM_WORK_PROTECTION. In the is dirty method, you have to put
    METHOD is_dirty.
    if * component contains unsaved data
    ev_dirty = abap_true.
    else.
    ev_dirty = abap_false.
    endif.
    ENDMETHOD.
    Questions:
    1. If you see the shared application component HRTMC_TP_SHARED_DATA, it implements interface IF_FPM_WORK_PROTECTION. But, the isdirty method in the component controller has already existing code
    METHOD is_dirty.
    ev_dirty = wd_this->mv_is_dirty.
    ENDMETHOD.
    Where should we put the code given below as described in FPM documentation. In shared component or in individual components like HRTMC_TP_WORKEXP_INTERNAL, HRTMC_WORKEXP_INTERNAL, HRTMC_TP_EDUCATION
    etc.
    METHOD is_dirty.
    if * component contains unsaved data
    ev_dirty = abap_true.
    else.
    ev_dirty = abap_false.
    endif.
    ENDMETHOD.
    And, the line "* component contains unsaved data" as described in document- how do we code this for talent profile considering that there are multiple components, shared component etc? My requirement is that if user has entered some data in any of the tabs like internal work experience, external work experience, then work protect should work if
    user tries to navigate away or close browser.
    2. If you see general documentation for Work protect and webdynpro (not for FPM), it says that the application must define a special status (dirty flag), which tells the portal when there is unsaved data. You can set and cancel this status (TRUE, FALSE) using method
    SET_APPLICATION_DIRTY_FLAG in interface IF_WD_PORTAL_INTEGRATION.
    And it goes on to say that one must set application flag dirty
    SET_APPLICATION_DIRTY_FLAG
    exporting
    DIRTY_FLAG = TRUE | FALSE
    and also set work protect mode
    call method L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE
    exporting
    MODE = NONE | APPLICATION_ONLY | BOTH
    3. Which is the correct way to enable Work protect in case of Talent profile applications? Which method of which component should should we add code to? Which of the above ways should we follow ( Interface IF_FPM_WORK_PROTECTION or IF_WD_PORTAL_INTEGRATION) ? Which component and which method should we Set Work protect and  Set isdirty
    Please advise.

    Hi Experts,
    Can you please provide some useful info in implementing work protect in Standard FPM WebDynpro ABAP applications? In this case, as mentioned above, the application is  ESS Talent Profile application (HRTMC_EMPLOYEE_PROFILE).
    Thanks,
    Sandeep

  • Restarting or Reloading Webdynpro ABAP(FPM) application in Portal

    Hi All,
    I have created a ABAP webdynpro application in FPM framework which is run in the portal. The application has got a roadmap that contains 7 steps. In the last step there is a button 'save and exit'. When the user reaches the last step and presses the 'save and exit' button, one popup will appear with a 'close' button. When the user pressed that 'close' button, the application should restart i.e., the user should be taken to the first step. I tried using the method 'NAVIAGATE_ABSOLUTE' where I hardcoded the PCD path which takes the user to the first step but it is not helpful ( All Relative navigation links and Detailed navigation links were missing in portal ) in my case as it is not actually restarting the application. Could anyone help me out in getting the application restarted in the portal on click of a button.
    Note: We tried with Exit-Plug as well, which is not applicable ( helpful) for portal integration.
    Please suggest.
    Thanks
    Deepak

    Hi Deepak,
    Well we have few webdynpro applications with multiple views, by design, on the last step after save, we disable all other button and display a new button called 'RESTART' with only available choice. On click of this button
    1. We initialize all the data of component.
    2. Clear stored variable parameters & internal table used by assistance class
    3. if everything was fine fire navigation to the FirstDefaultView of the webdynpro application.
    Thus its almost restart of the application.
    So design wise have a method  INIT_COMP  in the component controller of webdynpro component. and then at the last step when call to RESTART is made reinitialize all the data of your webdynpro component.
    method onactionrestart.
    wd_assist->reinit_my_obj_tables( ).
    wd_this->fire_to_v_Start_plg(  ).
    endmethod
    Greetings
    Prashant

  • Custom button in FPM component

    Hello experts,
    In a requirement i want to add custom button in FPM_OIF_COMPONENT. For this i followed following steps -
    1. In SE80 transaction open FPM_OIF_COMPONENT
    2. Select the requisite component configuration.
    3. Start Configurator.
    4. In configuration, enter component name & configuration ID then select option 'Continue in Display mode'.
    5. In display mode, in 'Additional Functions', select 'Create customization' or if configuration already exists, then select 'Edit Configuration'.
    6. In toolbar schema, I added one toolbar element as 'Other Function' and set the properties as enabled checked and visibility as 'Is Visible'.
    7. Save.
    8. After this to control the action of the new button, i added the action 'ZACT' in 'CNR_VIEW' by enhancing the view.
    9. In SPRO->SRM->Cross application basic settings->Extensions & fieldcontrol->Assign actions, i assigned the action to set type and business object.
    10. Then in SPRO->SRM->Cross application basic settings->Extensions & fieldcontrol->Control Actions->Configure control on header level, I added PDO action type, BO type, PDO action enabled, dynamic class & method to control the button visibility.
    After doing all the steps above, when i open the required window in SRM portal, I am unable to view the custom button added.
    Please let me know where i am going wrong.

    Hi Yayayi,
    You need to refer FPM event id of the corresponding button but not action id. As you said you have given FPM_EVENT_ID as ZACT, write the code in process event of component controller of  your WDP component in which IF_FPM_UI_BUILDING_BLOCK interface has been re-implemented.
    But dont forget to follow the below steps shown in snapshot.
    Hope this helps you.
    Thanks
    KH

  • New Tab in FPM application not visible

    Hi All,
    I am new to WD ABAP and working on an enhancement in EHSM 3.0 application using WDA and FPM. I am facing a problem while adding a new tab to an existing application.
    My requirement is to add a new tab in the Edit Incident screen (EHHSS_INC_REC_OIF_V3 configuration) and I have followed the below steps:
    Created an Z Enhancement for the component EHHSS_INC_REC_OIF_V3.
    Created a new config entry (ZEHHSS_CLASSIFICATION_PARAMETERS) for the component FPM_FORM_UIBB component
    Created a new Feeder class for the configuration and used it in the config entry
    Added a Main View, Subview and UIBB element in the EHHSS_INC_REC_OIF_V3 component similar to other existing tabs.
    For the UIBB --> I have selected FPM_FORM_UIBB as component, Window as FORM_WINDOW and the config ID mentioned above.
    I am able to see the new tab in the design time. There are also no errors when I perform a check.
    But once I login to the portal and go to the Edit Incident screen, the new tab is not shown. Please let me know if there are any additional steps needed to be performed?
    Also could someone let me know how do we link a Feeder class with a BOPF node and use it in the WDA FPM screen?
    I have given screenshots showing the behaviour at design time and runtime.
    Poojith MV

    Hi Chetan,
    I am now able to add a new tab after adding a new entry with the Main View name in "Assign Access levels to Incident Tabs" in transaction SPRO.
    However, I am now facing a new issue when I add a main view in OIF component. There are 12 main views in the Object Instance Schema with ID's MainView<sequencenumber> as shown below.
    But when I add a new main view I am getting the ID with the format MainVIew<sequencenumber_hexadecimalvalues> and also I am able to edit the ID value which is not enabled for other main views as shown below.
    The problem with this hexadecimal value is that every time a change is done and I save the configuration, the number changes and this is causing problem as the configuration in SPRO does not match and the new tab becomes invisible.
    Please could you let me know what could be the reason and how to rectify this?
    Regards,
    Poojith M V

  • How to open the FPM (pcuigp_xssfpm ) used in CATS application ?

    Hi All,
    Can anyone help me out in accessing the above mentioned FPM ( pcuigp_xssfpm ) as I am new to Java webdynpro and dont have working experience in FPM.
    My actual requirement is to tweak a litle with the standard SAP ESS application CATS ( record working time ). But I could see the layout for the record entry page comign through the FPM. Hence need to access the FPM and check out if chnaging things here is possible.
    Suggestions invited and would be rewarded.
    BR,
    Shrividya S

    Hi Siddarth,
    I am checking the component VcCatRecordEntry under the CATS DC. Please find below the screenshot of the view in this component where the buttons come from Java webdynpro but the table for time record entry seems to be coming through the FPM.
    My doubt is that the code for the actions are also going through FPM.Hence for any enhancements, I would like to check the existing code on click on the " SAve as Template " action.Please clarify on this.

Maybe you are looking for

  • How do I make one video plays after the other

    Let's say I have an idvd project with 5 different movies, how do I make one plays after the other? When I click next, it goes back to the menu. Thanks Alex

  • Experiment with 2 monitor and a laptop

    I got 2 older monitors from a friend (Dell 1905fp)  the other day. They are working as they should and so on. But is it possible to run these 2 on a laptop with only 1 VGA and 1 HDMI? The monitors do have 1 VGA and 1 DVI. I guess it's possible to get

  • Reversed documents are not cleared

    Hello there I am dealing with support to customer who has following issue (among others..): - the settings are made so that standard SAP reversing procedure is messed up! Namely, when the user reverse FI document the SAP creates new one (reversal doc

  • DataGrid with complex headers

    Hello! How can I have a DataGrid with header and sub-headers so to speak. Something like this: [     Main Header     ] [ sub1] [sub2] [sub3] Thanks!

  • Is Firefox version 6 compatible with realplayer plus and Norton Security?

    I had real problem with Firefox version 5 using realplayer plus (I couldn't download video). I actually got the realplayer people to get it to work on my computer.