How to create a custom Button in a SNP planning book

Hi Experts,
I created my own Planning Book and Dataview in SNP with 3 Key Figures: KF1, KF2, KF3. Now I want to create one my own button with Macro so that when I press that button, the Macro will run to calculate: KF3 = KF1 + KF2.
I know that I can drag this Macro to one of default events like: Default, Level Change, Start. But actually, I want to create my own button so that I can handle the event as I want.
My question are:
1. How to create a custom button on the toolbar of SNP Planning book and writing macro for the button?
2. Please give me any document, material teaching about writing macro and relating to my above scenario.
Thanks very much!
Duyennx
Edited by: xuanduyen on Sep 6, 2011 9:20 AM

Hi,
Access the transaction "/n/sapapo/advm". In the list select your planning book/ data view and click 'Start Macro Builder' button.
In the Macro builder screen, drag and drop your macro from Macro depot to the work area.
Right click on your macro name and select 'properties'. In the pop up, next to the Assigned Push button field, there is a button 'Choose'. Click that. It will display all the available icons. In standard system, it displays more than 1000 icon. Choose any one icon which is suitable for your macro function. Close the pop up and save the macro. This will assign a push button to your macro.
In the Planning book tool bar, you can see the selected icon in the header tool bar. Just by clicking that icon, you can execute the macro interactively.
And I don't know whether we can include/design our own icon. But there are already 1000+ standard icons to choose.
Regards,
Manimaran M.

Similar Messages

  • How to create a custom button/ double button

    First of all I am relative new to
    Java 2D programming; therefore,
    I am seeking some help and advice of
    how to create a complex double button
    a big one which is responsible for
    the use case and a small one which
    will show some help text if pressed.
    | |
    | Use Case _____________|
    | / |
    | | Help Case |
    | | |
    \ | /
    A 3D effect should distinct and signify whether the Use Case
    button area or Help Case button area is pressed.
    I am looking for some example or best practice that
    explains to me how to create a double button
    so that it can carry or depict at least a:
    1) Title
    2) Subtitle
    3) Pictogram (Graphic Icon)
    4) Round or organic borders
    5) 3D effect
    Thanks in advance.

    What you are asking here is something complex enough that nobody is going to explain it to you in one forum post. We are talking about creating your own custom button component. I would suggest you check out the book [Filthy Rich Clients|http://www.amazon.com/Filthy-Rich-Clients-Developing-Applications/dp/0132413930/].

  • How to create a custom button in Excel while log on to BI through BEx

    Hi all,
        I have an requirement to add a button in excel application, while we log on to BI
    through BEx.
       I know only that it has to be done with macros. I dont have any idea in this.
        When i click on that button an RFC should get executed.
        Pls help in this, I am not able to move anymore.
    Thanks.

    hello,
    You can try report to report interface, to allow you to jump from one report into a SAP transcation.
    http://help.sap.com/saphelp_nw04/helpdata/en/99/08629bd3e41d418530c6849df303c9/frameset.htm
    for macro's reference and procedure:
    BW Bex 3.x Macros to create Formatted Workbooks - Part 1
    Macros in Bex
    Reg,
    Dhanya

  • How to create a custom control of a button where the look will be applied to all others but not the Boolean text?

    Hi all
    I would like to create a customized button as a master so that if I change the look of the master all other buttons will change too.
    I have done this with a custom control as a "strict type def" otherwise the look will not change BUT If I do this as a strict type def I cannot change the Boolean text anymore which should be different on every button.
    How can I create a master control of a button where the look will be applied to all others but not the Boolean text?
    Stay Hungry, Stay Foolish
    Solved!
    Go to Solution.

    Steve Chandler wrote:
    I don't think you can do that. I just looked and as I suspected the Boolean text property is read only for strict typedefs so you cannot use property nodes to change the text.
    As a workaround just make it a typedef. When you want to change the look open the typedef and make it strict, make your changes, then make it non strict again. You will have to update the Boolean text again for all instances. Kind of a pain. Maybe this is something for the idea exchange.
    Kudos for being sneaky.
    I like these creative work-arounds!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to create the custom infotypes in Campus Management

    Hi,
    Please help me how to create the custom infotypes in campus management.
    Thanks,
    Lakshmi.

    Hi,
    Steps to create a HR Infotype:
    1) Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
    3) Select the 'Employee Infotype' radio button.
    4) Select the 'PS Structure Infotype'.
    5) Click on Create... A separate table maintenance window appears...
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on 'All' push button. It takes a few moments.
    10) Click on 'Technical Characteristics'. Infotype list screen appears
    11) Click on 'Change'(pencil) button
    12) Select your Infotype and click on 'Detail' (magnifying glass) button
    13) Give 'T591A' as subtype table
    14) Give 'T591S' as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on 'Infotype Characteristics' ... Infotype list screen appears
    18) Click on 'Change' (pencil) button
    19) Click on 'New Entries'
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirement...
    25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select 'Layout Editor' and click 'Change'.
    27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Don't forget to 'Activate at every level)
    Subtype Creation :
    Transaction PM01 Goto Subtype Characteristics. Click on Append and then subtype. Enter the name and description of subtype on screen.
    Then goto technical Characteristics and maintain the details of subtype there. I.e name of subtype i.e. component name defined in PSnnnn. Subtype table is T591A.
    Subty.text tab is T591S and time const tab is T591A.
    See:
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
    HR related site:
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    Enhancement of Infotype
    Check the following
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
    Infotype Enhancement overview screen
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
    Cheers,
    vasavi.
    kindly reward if helpful.

  • How to add a custom button in WD screen to call a workflow in siebel?

    Hi All,
    We have a requirement to have a custom button at the summary screen(after the rule execution) "Create Opportunity", on clicking on it a new opportunity record should be created in Siebel. As we know the "Save" link calls "PolicyAutomationSaveSession" inbound web service method and saves the information in session table and we can modify the PreSession and PostSession workflows. But we are not sure how it calls the service method and where is the mapping defined.
    Can you please help me on how to add a custom button and how to invoke a workflow in siebel side to implement this requirement?
    Also is there any document which can help me to add a custom button in screen and to add the code behind the button?
    Thanks in advance!!
    Regards,
    Subhradeep

    Subhradeep,
    Closing a Web Determinations window is essentially the same as closing any HTML window. It involves javascript, which you would have to add to the Web Determinations templates.
    Essentially the javascript command to close a window is {{window.close}} or {{top.close}}
    For timing, you might be able to use the setTimeout function of Javascript (see: http://www.w3schools.com/jsref/met_win_settimeout.asp)
    At the risk of exposing exactly how bad my javascript skills are, I have attached a super-simple html fragment, a page that closes itself after 3 seconds. It may help you get started in the right direction. In general closing a window is a fairly dubious activity and is often not permitted by certain browsers. This html page at least works in Internet Explorer.
    <html>
         <head>
         <script language="JavaScript">
              setTimeout(closeMe, 3000);
              function closeMe() {
                   alert("This window will close");
                   top.close();
         </script>
         </head>
         <body><B>This window will close in three seconds</B></body>
    </html>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to disable the custom button on alv?

    Hi All,
                       i created a ALV Report .I created a Custom Button on ALV.Based on the input value i need to enable/disable  that Button.
    How can i achieve?And what are the methods i need to code?
    Regards
    Ravi

    Hi Ravi,
       You create the button like this:
    Data: mr_functions type ref to IF_SALV_WD_FUNCTION_SETTINGS,
             mr_button_func type ref to CL_SALV_WD_FUNCTION
      mr_functions ?=  mr_alv_model.
      CALL METHOD mr_functions->create_function
        EXPORTING
          id    = '<<Button Id>>'
        RECEIVING
          value = mr_button_func.
      CREATE OBJECT mr_button.
      mr_button->set_text( 'some text' ).
      mr_button_func->set_editor( mr_button ).
    to sent enable/disable
    mr_button->set_enabled(abap_false).
    hope this will serve your purpose.
    Regards,
    Ritwik.

  • [CLOSED]How to create a custom messages

    Hi All,
    I have a page and one save button .on press of save button, i want to show a custom message like "Applied changes are saved."
    Can anybody please elaborate how to create a custom message and how to show it through Controller.
    may i use
    OAException message = new OAException("AK",
    "FWK_TBX_T_EMP_DELETE_CONFIRM", tokens, INFORMATION, null);
    -Thanks,
    Avinash
    Message was edited by:
    user624747

    When i used the code
    OAException confirmMessage = new OAException("JTM","JTM_SAVE_SUCCESSFULL",null, OAException.CONFIRMATION,null);
    throw confirmMessage ;
    i am getting following error :
    Error :
    Application: JTM, Message Name: JTM_SAVE_SUCCESSFULL.
    I have created the message "JTM_SAVE_SUCCESSFULL" through
    Application Developer --> Application --> messages responsibility and given its type as error , application as "mobile application foundation" and then "ran the generate message" program.
    After that i checked the fnd_new_message table . the message is there.

  • How to create a custom glossary ?

    Hello, In my elearning module, I have put a glossary button at the top right corner, which when clicked shows a popup with a custom glossary. Please help me how to create a custom glossary.

    It depends on what out put you are using, SWf or HTML5 or both.
    For swf I think a widget that reads an xml file is the best option.
    For html5, create an html glossary and insert as a web object.

  • How to Create the Custom print Quote Report ?

    Hi All,
    I want to create the custom Print Quote report . I know the below details and referred the below metalinks .
    Note: 780722.1 - How to Create a Custom Print Quote Template in Oracle Quoting ?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=780722.1
    Note: 392728.1 - How to Modify the data source for the XML version of the Print Quote report
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=392728.1
    Note: 468982.1 - How To Customize The Asoprint.Xsl
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468982.1.
    Oracle Metalink:
    Note: To add a column to the print quote report, following files need to be updated:
    LinesVO.xml --- xml files containing the sql query and attribute definition
    LinesVORowImpl.class - public class extending the framework class OAViewRowImpl.
    This class contains the set and get for the attributes defined in xml file.
    ASOPRINT.xsl - this is the xsl stylesheet file used to describe the report layout.
    This file needs to be modified to include the new column being added to the report
    QUESTION :
    My question is,
    1. wether my approach (below iare the details)of trying to extend the PromptVO is the right way or is there any other way to add the new columns.
    I want to add new fields on to the report . When i looked into the it says the below
    Here we find that to add a new column, oracle says to update the LINESVO.xml, do they really mean to update the base files.
    This report uses following VO's
    PROMPTVO
    HEADERVO,
    LINESVO.
    To create new Headers & Prompts, i tried extending the PROMPTVO. Once the extended VO is substitued , i dont even get the data for standard oracle Prompts. is this the right way to add columns?
    Thanks

    Hi All,
    I want to create the custom Print Quote report . I know the below details and referred the below metalinks .
    Note: 780722.1 - How to Create a Custom Print Quote Template in Oracle Quoting ?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=780722.1
    Note: 392728.1 - How to Modify the data source for the XML version of the Print Quote report
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=392728.1
    Note: 468982.1 - How To Customize The Asoprint.Xsl
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468982.1.
    Oracle Metalink:
    Note: To add a column to the print quote report, following files need to be updated:
    LinesVO.xml --- xml files containing the sql query and attribute definition
    LinesVORowImpl.class - public class extending the framework class OAViewRowImpl.
    This class contains the set and get for the attributes defined in xml file.
    ASOPRINT.xsl - this is the xsl stylesheet file used to describe the report layout.
    This file needs to be modified to include the new column being added to the report
    QUESTION :
    My question is,
    1. wether my approach (below iare the details)of trying to extend the PromptVO is the right way or is there any other way to add the new columns.
    I want to add new fields on to the report . When i looked into the it says the below
    Here we find that to add a new column, oracle says to update the LINESVO.xml, do they really mean to update the base files.
    This report uses following VO's
    PROMPTVO
    HEADERVO,
    LINESVO.
    To create new Headers & Prompts, i tried extending the PROMPTVO. Once the extended VO is substitued , i dont even get the data for standard oracle Prompts. is this the right way to add columns?
    Thanks

  • How to create a custom function module with the records in SAP R/3?

    Hi All,
    How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
    Regards
    Sara

    Hi
    goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Look at the below SAP HELP links, These links will show you the way to create a Function Module
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm

  • How to create a custom layout set to display the KM folders...

    Could someone please tell me how to create a custom layout set to display the KM folders?
    Thanks,
    Sudha.

    Hi Sudha,
    Please check the following blogs whick will guide you step by step.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4123
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3071
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/c91b5610b65b4aa8204d09384d156b/frameset.htm
    If helps reward points
    cheers
    dev

  • How to create a custom task in SRM for the standard task

    Hi Gurus,
    How to create a custom task in SRM for the standard task  eg: TS10407929
    regards,
    George.

    from PFTC itself. Same.

  • How to create the custom charts?

    how to create a custom charts? for example the donut shapes, but for the data can be automatically adjust (like a available charts on keynote)

    Keynote and Numbers do not have a tool for making Donut Graphs. There are ways to make them using HTML, but I prefer to cheat:
    1 Create your first graph as a pie chart and add a circle of solid color to the center
    2. If you need more, take a screenshot of the pie chart with the center fill  and drag the screenshot into Preview - in Preview > Select Tool (pulldown from Toolbar) > Instant Alpha and remove the inner filled circle and outer fill then Save As > PNG with Alpha
    3. Drag your new hollow shape into Keynote. This chart can be placed over another pie chart with a filled center (the fill should match the background)
    Not as graceful as a special tool but can get the job done quickly - changing the data requires starting it over since at least one of your donuts my be an image rather than a pie chart with variable data.
    Try it. If you need more specific tools, Google Donut Shaped Charts for starts.
    Good luck

  • How to create the custom table?

    Hi, how to create the custom table and how to integrate the table with defferent R/3?
    my requiremnt is i have to create the two tables and those i have to integrate with the existed R/3 and using those R/3 i have to update my custom tables .....can give me some idea?
    Tks
    DPk

    how to create the custom table
    There are two approach in creating a table.
    1. Bottom-up approach
    2. Top-down approach.
    Both are valid and you can choose which approach is suitable for you. I always use the bottom-up approach. Here are the steps to create the tables with this approach.
    1. SE11 will take you to the DDIC and enter the name of the new table to be created. Let us say Zname. Click create.
    2. Enter the short discription of the table and enter the field of the table. If it is primary key and you have to check the box.
    3. Enter the data element and double click it, you will be asked to save and will take you to data element discription page. Enter the short discription of the data element and enter the information of domain like the length of field and type of field.
    4. If you wanted to use the existing domain then its fine, or else, you have to create one. Enter the domain name in the data element page and double click it. Page will ask to save and jump to domain creation page.
    5. In the domain page, you have to save the information which you have already given in the data elements page and check it. Before going to data element page, you have to activate the domain.
    6. Go to data element page and save, check and activate.
    7. Go to main table page and save, check, and activate.
    8. Also, you have to save the technical settings of the table.
    The table is now ready for operation. You can use it in your program or you can use it to enter information.
    Check table: It is the table which will have all the information about the Foreign keys which are the primary keys in the check table.
    It can be created by creating the foreign key from the main table. Click foreign key in the main table and it will take you to a page which will ask for table name and field to which foreign key relation has to be associated. Enter the information and you can create the check table automatically.
    SM30 is used for maintenance of the table, that is to realease the errors occured during the creation of the table.
    how to integrate the table with defferent R/3
    Transport the Table to the another server/client/qas/prd
    Kanagaraja L

Maybe you are looking for