Include standard save functionalities in Z view

Hi,
we've created a new component (view) which is shown when displaying an IBASE (component IBMAIN). On top of the IBASE maintenance screen in the web UI you can find buttons for editing data, cancel editing or save changes.
The save button is displayed as soon as you click the editing button, however, it is inactive. As soon as you change any data, the save button becomes clickable.
Saving data seems to be triggered by event EH_ONSAVE in class CL_IBMAIN_IBMAINVIEWSET_IMPL.
The thing is that we'd like to extend our view that the standard functions are supported, means, as soon as we change anything in our view, the save button should be active (by triggering a data changed event), when clicking the save button, our data should be saved as well.
We found class CL_CRM_BOL_TX_MANAGER which seems to hold data and flags for information having been changed.
Is there any quick guide on how to use this default feature?
Many thanks & regards
Wolfgang

Hi Wolfgang,
A code similar to this, in the method where you are adding the buttons will make the Save and Edit Button in Sync.
Save:
Data: lr_entity  TYPE REF TO cl_crm_bol_entity,
* Get the current entity which is currently being edited
  lr_entity ?= me->typed_context->context node name->collection_wrapper->get_current( ).
  CHECK lr_entity IS BOUND.
* Button SAVE
  CLEAR ls_button.
  ls_button-page_id  = me->component_id.
  ls_button-on_click = 'save'.
  ls_button-type     = cl_thtmlb_util=>gc_icon_save.
  ls_button-enabled = lr_entity->is_locked( ).
  APPEND ls_button TO rt_buttons.
Edit:
data: lv_enabled    TYPE crmt_boolean,
  lv_enabled = me->view_group_context->is_view_in_display_mode( me ).   
  ls_button-type     = cl_thtmlb_util=>gc_icon_edit.
  ls_button-on_click = 'EDIT'.
  ls_button-text = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT/EDIT' )."#EC NOTEXT
  ls_button-enabled  = lv_enabled.
  APPEND ls_button TO gt_button.
  CLEAR ls_button.
Class CL_CRM_BOL_TX_MANAGER should be fine for saving, before that you can use either of methods  CHECK_SAVE_POSSIBLE,  CHECK_SAVE_NEEDED.
Please do a where used for sample code or look into event handlers of any of standard components like SEGED_TG/EFTARGETGROUP.
Regards,
Masood Imrani S.

Similar Messages

  • SAPSCRIPT with Include Standard Text not converted in PDF Bitmap Image

    Hi Guru,
    When I use the function module CONVERT_OTFSPOOLJOB_2_PDF for import a spool, the image wasn't impoted. The Sapscript spooled have a include standard text that contain a image in BMON.
    If I view the OTF SPOOL the image was stored, but when I execute the Function Module CONVERT_OTFSPOOLJOB_2_PDF, the File PDF that I Download is missed of the image.
    Please Help me!
    Best regards

    Hi Murugesh,
    I have found the solution:
    the image was imported in PCL format and for this when I view OTF Spool the command is
    RDE ............
    otherwise
    RDH ............
    RDG ............
    RDJ ............
    RDI ............
    Regards Rino Patalano

  • Retrieve Include Standard Text

    Hi,
    The long text currently I send to idoc are view exactly what we wrote in SAP transaction as below. Could I know how to retrieve the data from Include standard text and send along to idoc with others text to the segment? Thanks.
    Before:
    *    test pop-up'                                    
    *    Text 1                                           
    / :  INCLUDE GENERAL_TEXT OBJECT TEXT ID ST
    *    Text 2
    Expected:
    *   test pop-up'                                    
    *   Text 1                                           
    *   Standard Text display here   
    *   Text 2

    Hi,
    I managed to find out how to expand the standard text by using this Function Module : TEXT_INCLUDE_REPLACE.
    Now, I would like to make changes to my output. I need to move all include standard text to last line and display it out. Could I know I can achieve that?
    Long Text Entered in SAP:
    *    test pop-up'                                    
    *    Text 1                                           
    / :  INCLUDE GENERAL_TEXT1 OBJECT TEXT ID ST 
    *    Text 2
    / :  INCLUDE GENERAL_TEXT2 OBJECT TEXT ID ST
    Output:
    *   test pop-up'                                    
    *   Text 1                                           
    *   Text 2
    / : INCLUDE GENERAL_TEXT1 OBJECT TEXT ID ST
    *   expanded text1
    / : INCLUDE GENERAL_TEXT2 OBJECT TEXT ID ST
    *   expanded text2
    Edited by: Blue Sky on Jun 27, 2008 4:55 AM

  • How to hide the standard save button

    Hi gurus,
    I am using the javascript below in my BPS Web Ap to perform a check function on save.  The Javascript runs the check function and then simulates the pressing of the standard save button.  It works fine.
    My problem is that I now need to hide the standard Save button as I don't want users to press it, just my code.  But there is no option in the application builder to hide those standard buttons.
    Is there some other way I can hide it?  Or is there some way I can perform the save from JavaScript without having to have a Save button?
    Cheers,
    Tristan
    <script type="text/javascript">
        function CheckAndSave()
                if (bspSubmit('FunctionButtonPerformCheck'))
                        bspSubmit('SaveButton1')
    </script>
    <span>
        <a href="#1" class=urBtnStd onClick="javascript:CheckAndSave();"
            <nobr>
                New Save
            </nobr>
        </a>
    </span>

    Hi,
    If you have created your layout using transaction BPS_WB then you can hide the SAVE button.
    Cheers,
    Gimmo

  • How to include /Exclude products in customer catalog view.

    We are using CRM 4.0 with internet sales applications (ISA).We have product catalog setup in webshop where customer/customer service team given access to view products based on the different product hierarchy.
    This is enabled though creation of multiple customer views
    Now we have a requirement that customer need to view only few product out of the product category level assignment but asper the current system if a particular product category is marked then it show all the product under the product category in hierarchy assignment
    Which means assume there are 100 products assigned to a product category ID under customer view, but customer has show all the 100 products but he need to view only 50 products out of 100 products assigned
    We need to find out if it is possible to include / exclude products from a customer view not based on the product hierarchy / category ID.
    Is that possible? we tried Partner product range but not sure ...can anyone throw some light in it... please let me know if I'm not clear on this.
    Thanks
    Jegatheesan.

    The app builder prior to 8.x was only designed to install the application you created. The actual instrument driver VIs should be included in the app but the IVI driver itself (the low level dll) is not. You should really include the installer for the IVI driver and not just the dlls. This is the .msi file that is on the instrument driver download page. If you are getting an error about VISA32, then it sounds like VISA was not installed either. I usually install VISA and NI-GPIB from the CD that comes with the GPIB board and I do this when I install the board into the computer. However, you can also include these installers with your app as well. On the Installer Settings tab, click the Advanced button. You have the option there of 'Run executable after installation'. The simplest thing to do is to create a .bat file that will call the other installers you include with the distribution. Don't forget that you also need the IVI Compliance Package so include that installer as well.

  • 4.2 "Include Standard JavaScript and CSS" option removed ?

    Hi,
    APEX 4.2, Oracle 11g r2.
    I was using the option *"Include Standard JavaScript and CSS"* from the page attributes. It was set to *"No"* in all pages as I manage my own JQuery versions.
    We upgraded to 4.2 yesterday, and I see the option is still here on 4.2.
    I simply tried to set it to "Yes" for a test, but now the option has disappeared !! I can't set it back to "No"...
    In each page, if I set it to "Yes" and apply changes, the option is not here when I go back to the page attributes.
    Bug ?
    Or maybe this option has been removed from 4.2 ?

    Hi,
    yes this has intentionally been removed for applications / pages which do not use the feature. As you mentioned yourself and what we have seen from other customers is that someone doesn't just want to exclude that on a single page and instead want to control it for the application. Which made it a little bit cumbersome, because a developer had to set it for each new page.
    That's why we have created a page template placeholder for *#APEX_JAVASCRIPT#* and *#APEX_CSS#* to give you full control where to load the APEX libraries and if you don't want to load them, just remove them from the page template as Vikram already pointed out.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Adobe javascript include "this.saveas" into the pdf document level

    Hello,
    in some posts i read that if i certify a pdf, i would be able to include doc.saveas into the pdf document level. 
    Can anybody tell me what kind of cerify i'd need and how to have it done to make the saveas work from client side?
    thanks alot

    When you use the saveAs method with code inside the PDF, do not place it in a trusted function or use app.beginPriv/app.EndPriv. You have to confirm that the certificate is in your list of trusted certificates and that it is trusted to allow execution of high privilege JavaScript. Be sure to test the document with Reader and validate the signature before attempting to execute the code. There is a preference that controls whether signatures are validated when a document is opened. I would recommend setting this preference.
    I would suggest testing it with Reader.

  • Safari 7.02 does not save my preference or view changes

    Safari 7.02 does not save my preference or view changes

    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Preferences/com.apple.Safari.plist
    Right-click or control-click the highlighted line and select
    Services ▹ Show Info in Finder (or just Show Info)
    from the contextual menu.* An Info dialog should open.
    Does the dialog show "You can read and write" in the Sharing & Permissions section?
    In the General section, is the box labeled Locked checked?
    What is the Modified date?
    If you don't have read and write access to the item, change the settings as directed here. Note, however, that if one file has wrong access settings, most likely others do as well. If the item is locked, unlock it.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • Standard Excel-Functionalities not usable when using BexAnaylzer

    Hi Experts,
    I am using BexAnalyzer as a reporting tool. Query Designer is on 3.5.
    I have safed a few queries within a workbook.
    Next step is to combine results of different queries by using standard excel functionalities (SUM, etc.) to create a new report. This works more or less fine.
    Here is my problem: When I refresh the queries, the excel based report is not automatically updated.
    The happens because standard excel functionalities dont take new numbers in updated queries into consideration.
    Any idea?
    BR,
    Thorsten

    Regarding to my SAPGui 720 installation, this issue is resolved by SAPGui 720 patch3 installation.

  • Save SharePoint list item view form as a word document

    I have a view form in SharePoint 2013, and I am trying to create a button that will export the form into a MS word document.
    So really I am trying save a SharePoint form to a word file. Is that possible?

    yes below are links for reference:
    http://www.c-sharpcorner.com/uploadfile/Roji.Joy/export-sharepoint-list-items-to-word-document/
    https://www.youtube.com/watch?v=tPFKuA8yW4E
    https://social.technet.microsoft.com/Forums/office/en-US/9e38ed97-5156-448d-af71-cf5e949535d6/how-can-i-export-sharepoint-list-item-form-view-to-word-or-pdf?forum=sharepointcustomizationprevious
    http://www.ehow.com/how_5923152_export-sharepoint-list-word-document.html
    http://sharepoint.stackexchange.com/questions/129277/save-sharepoint-list-item-view-form-as-a-word-document
    Please mark as answer if you find it useful else vote for it if it is close to answer..happy sharepointing

  • Have 3.6.15. unable to save pictures that i view on the internet

    I have version 3.6.15 and am unable to save pics that I view on the internet. Mainly facebook.

    * Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    * Trash the current Firefox application to do a clean (re)install.
    * Install the new version that you have downloaded.
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • Standard Save button

    Hi all experts,
    I have created a ZTCode for saving input data. The problem is that i want to use the standard save button not the execute button.
    How can i do that?

    Hi,
    Sample Code, it will trigger the GUI status.
    TABLES: MARA.
    SELECT-OPTIONS: SO_MAT FOR MARA-MATNR.
    at SELECTION-SCREEN.
    case sy-ucomm.
    WHEN '&SAV'.
    message 'Save Icon Selected'  TYPE 'S'.
    stop.
    ENDCASE.
    at SELECTION-SCREEN OUTPUT.
       SET PF-STATUS 'ZSTAT'.
    can you Paste Your Code.
    Regards,
    Venkat.

  • SRM7.0 RFX screen enhancement with extra tab and save on standard save

    Hi All,
    I have to do one enhancement in SRM 7.0 where need add one Tab in the Rfx Screen and need to save its data in custom table when user click on standard save button.
    any suggesion....
    Reg,
    Rajesh

    Dear Rajesh,
    Were you able to solve this issue?
    I also have a similar requirement. I need to add three new tabs to contract item screen in SRM 7.0.
    I could find some details about enhancement procedures in SRM 7.0.
    Mainly important tool, floorplan manager ( FPM ) is used for enhancing the user interface in SRM 7.0. asnd there are some feeder classes i think is required to save the data to the database.
    Also, i could find some BADI's which can be used to save and change the data and save it to database.
    But, i could not get the step by step procedures how to achieve this task. But, it isure that we should use FPM and feeder class etc.
    If you have completed the task, please let me know.
    Regards,
    Srinath

  • Including standard text in sapsripts

    Hi all,
    I want to include standard text by using 'INCLUDE Z_STANDARDTEXT_TEST OBJECT TEXT ID ST' not in a single line.Means I want that Include command not to be included in single line only.Is there any option for this.

    you already created the similar post earlier. you can find answers in your old post.
    check this,Including standard text in Sapscripts
    close both the posts once your problem is solved
    Regards
    srikanth
    Message was edited by: Srikanth Kidambi

  • Including standard text in Sapscripts

    Hi all,
    I want to include standard text by using 'INCLUDE Z_STANDARDTEXT_TEST OBJECT TEXT ID ST' not in a single line.Means I want that Include command not to be included in single line only.Is there any option for this.
    Rgds,
    Balaji

    then you can use '=' in the command line of next line and proceed as you want.
    for example
    <b>/:</b>     INCLUDE Z_STANDARDTEXT_TEST OBJECT TEXT
    <b>=</b>        ID ST
    hope you got it. '=' indicates that its a continuation of previous statement.
    what ever it is.It can be a static text or a command etc...
    regards
    srikanth
    Message was edited by: Srikanth Kidambi

Maybe you are looking for

  • How can I reset an Iphone or Ipad associated to an Icloud account?

    I have several company Iphones and Ipads that have been returned to me with Icloud accounts associated to them.  The users did not use the corporate email address but rather a personal email address, so I do not have the passwords on these accounts. 

  • How to get txt output in a column?

    Don't know and can't find anywhere, how to get output in a column in a dynamic textfield instead of getting the output i.e. output1, output2, output3, etc I would like to have it as output1 output2 output3 but I don't know how to make returns in flas

  • When receiving a purchase order in Northwind, receiving all records when press on a button

    Good morning, This is a challenging request, I did not figure out how to receive all items at once in the receiving tab. I have created a button named "Post test" on which I have a test code that doesn't do exactly the right thing. I am posting the c

  • Binary Search

    Hi SDN Experts Is it must to use a sort statement before we use a binary search in a read statement. because in some cases its failing as SY-SUBRC = 4 if my internal table is not sorted. Please confirm me Regards Pratyusha

  • Will the video iAds work on iOS 4-5?

    I know that the video iAds as seen in itunes radio will work on iOS 7, but will they work on iOS 4-5 platforms?