Execute BPS planning function on opening of web planning layout

Hi all,
Does anyone know how to execute a planning function automatically at the moment of opening a web planning layout in a BPS web planning folder(tx code BPS_WB/BPS_WIF0)?
This was possible in the old BPS planning folder, but does not seem possible in the web planning folders?
Thanks,
Rael

Hello Rael,
Basically you have 2 options:
- Use the same trick as in the how to paper "How to call a BPS Web Interface with predefined variable values" (see service market place, alias BW, then BI Planning). In the BSP page you do not set a variable value but use the BPS API to execute a planning function (just call the function module API_SEMBPS_FUNCTION_EXECUTE). When using the url parameters in a similar way as in the how to paper you can call different function modules for different web applications.
- You can use the application class in the web interface builder and call the function in the "on load" method. There is a how to paper describing how such a application class can be used (Validate key figure values in manual planning - web). Note that there another event is used and thus a check AFTER input is done.
Well - the second option might be a little more elegant but I think the first one is definitely less complicated and less work...
Best regards,
Gerd Schoeffl
SAP NetWeaver RIG BI

Similar Messages

  • Executing the planning function while opening the web interface

    hello all,
    I have created a planning area based on multiprovider.This multiprovider is based on two transactional cube ie,COPA cube and Cost Center cube.
    This planning area is meant for enabling integrated planning.One plans in COPA cube and other plans in Cost Center cube the income statement gets planned based on this two.
    I selected planning items in multiprovider layout to display the income statement.The layout is as follows:
    <b>PlanningItem</b>  <b>Amount</b>
    Net Sales<b>:</b>    9.000,00 INR   (This comes from COPA)
    Sales Overheads<b>:</b> 200,00 INR  (This comes from Cost Center)
    Depreciation<b>:</b> 200,00 INR (This comes from Cost Center)
    Other Expenses<b>:</b> 300,00 INR  (This comes from Cost Center)
    EBIT<b>:</b> 0,00 INR
    Interest Income<b>:</b> 0,00 INR
    Interest Expense<b>:</b> 0,00 INR
    Operating Income<b>:</b> 0,00 INR
    Taxes<b>:</b> 0,00 INR
    Now EBIT planning item is to be calculated from the planning items as follows:
    EBIT = Net Sales-Sales Overheads-Depriciation-Other Expenses
    For this i have created a planning function which calculates EBIT.This function works properly,there are no issues in it.
    My problem is that i want this function to be executed as soon as i open the web interface for my planning application and the result should be as follows:
    <b>PlanningItem</b>  <b>Amount</b>
    Net Sales<b>:</b>    9.000,00 INR   (This comes from COPA)
    Sales Overheads<b>:</b> 200,00 INR  (This comes from Cost Center)
    Depreciation<b>:</b> 200,00 INR (This comes from Cost Center)
    Other Expenses<b>:</b> 300,00 INR  (This comes from Cost Center)
    EBIT<b>:</b> 8.300,00 INR
    Interest Income<b>:</b> 0,00 INR
    Interest Expense<b>:</b> 0,00 INR
    Operating Income<b>:</b> 0,00 INR
    Taxes<b>:</b> 0,00 INR
    Can anybody suggest how to go about this problem?
    Thanks in advance.
    regards,
    Yogesh

    Hi Yogesh,
    as far as i know, there is no standard functionality for that purpose, but there are workaround for it.
    1. Modify the BSP Application.
       Go to SE80 --> Repository Browser --> BSP Application --> your WI name --> page with flow logic --> double click on page1.htm --> Event handler tabstrip --> on the drop down selection press F1 --> add a function module that call you BPS function in specific event (e.g: OnInitialization).
    2. Use WI-Exit Class / WI-Extention (ABAP OO).
    Here you need to create sub class from Class: CL_UPWB_BSP_APPL, and assign the class to your WI. You can then add a function module that call you BPS function in method:
    2.1. Load --> performed only once on intial execution of WI.
    2.2. Initialisation --> called once for each server response.
    2.3. Dispatch --> called at each action and also for each WI component.
    You can see further information in SAP how to paper:
    How to Validate manual input in WEB planning application, New BPS-Features delivered with SAP BW 3.5, etc.
    You can call your BPS function with BPS API FM (See F.Group: UPC_API)
    But there is also more easier way to realize your ebit calculation. If you define your EBIT calc. manually in layout (define with manually defined Lead column). With this way, You will always get your EBIT analog with inputed values.
    Then you add your EBIT calc.function to Layout Component in WI in property: 'Function After Data Change'.
    Best Regards,
    Suan Liono

  • Problem adding a new field to existing BPS planning layout

    Hi
    I am new to BPS and planning
    I have a requirement to add a new field which has values maintained as 0 and 1 to an existing planning cube.The user wants this new field in the existing planning layout where in he can enter the values for this field as 0 or 1.I have created a new field and maintained values for this field as 0 and 1.I have added this field to the existing planning area and have created variable with fixed value with range 0 to1.I have added the same in selections in existing planning level and package as well along with other existing selection conditions.
    In additional functions of adhoc package they have made setting as set to all possible char combination.
    In this planning area all the selections are locked in planning level and package.
    Now when i execute the planning layout to enter data,my new field is grayed out,it does not allow me to enter the values.need help  with this as to how can i make this field input enabled.This is an independent characteristic.
    Thanks
    Panchan

    Hi,
    Yu need to delete the data to fill the new field again.
    Assign points if it helps
    Regards,
    Srinivas

  • ERROR in BPS Planning layout

    Anyone got a clue??
    We have characterstic txt. values exceeding 20 characters - resulting in an error in the BPS planning layout: <i>Characteristic value not valid</i>.
    The planning layout only takes 20 characters - need it to take more - we have characteristic values with 30 char length. What can we do?
    John

    Hi Mike,
    Thank U for your response - The masterdata is maintained and the planning layout in question has been working before. We just recently upgraded to BW 3.5 and then masterdata characteristics with value exeeding 20 characters the planning layout does not recognize. This results in an invalid error statement.
    Is there a SAP Note that can handle this or do I have to make an OSS?

  • Attachment in BPS Planning Layout

    Hi,
    The attachment option in the BPS planning template allows us to upload a file in System.
    Can anyone help me how and where the file is stored? Is it in the cube or somewhere in KM

    Hello Shailesh,
    the documents are stored on the BW Server in KPRO (orange part):
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/42/594e3c6bf4233fe10000000a114084/frameset.htm
    You can view them in the Admin Workbench for example.
    If you want to see some ABAP to read documents, check function module UPC_BW_DOCUMENT_GET.
    Regards,
    Marc
    SAP Techology RIG

  • Freeze Header in BPS Planning Layout

    Hi Experts,
    Is there any option to freeze column headings in BPS Planning Sheet.
    In one of our planning sheet there is more than 200 rows in excel sheet. Our business users required to freeze the column heading while scrolling through the layout. I know this possible in excel.
    How we can implement this feature in BPS layouts.
    Regards
    Baby

    Hi Bindhu,
    Thank you for your answer. I just tried you suggestion and is working fine in SAP GUI.
    But we are using these planning sheets in Web (EP 7.0). We cannot see any changes in web.
    Is it possible on Web, if so what is the next step.
    Regards
    Baby
    Edited by: Baby on Mar 23, 2009 10:41 AM

  • Upload the master Excel for BPS plan Layout

    Hi,
    I have made some changes to the Excel as given in below link
    http://help.sap.com/saphelp_nw04/helpdata/en/24/9ffa0b783d11d4b2fd0050dadfb23f/content.htm
    when i am trying to upload the excel where i did some changes but they are not efective in Planning layout.
    Please suggest
    Thanks,
    Joseph M.

    hi,
    i have some sample code(taken from some source)
    DECLARE
    application ole2.obj_type;
    workbooks ole2.obj_type;
    workbook ole2.obj_type;
    args ole2.list_type;
    worksheets OLE2.OBJ_TYPE;
    worksheet OLE2.OBJ_TYPE;
    BEGIN
    application:=ole2.create_obj('Excel.Application');
    ole2.set_property(application, 'Visible', 'True');
    workbooks := OLE2.GET_OBJ_PROPERTY(application, 'workbooks');
    args:=ole2.create_arglist;
    ole2.add_arg(args, 'FILE_NAME');
    workbook:= ole2.invoke_obj(workbooks, 'Open',args);
    ole2.destroy_arglist(args);
    args:=ole2.create_arglist;
    ole2.add_arg(args, 'c:\Pasta1!teste'); --how to pass the arguments
    ole2.invoke(application, 'Run', args);
    ole2.destroy_arglist(args);
    ole2.release_obj(workbook);
    ole2.release_obj(workbooks);
    ole2.release_obj(application);
    END; but i don't know how to pass the arguments(i have to pass the excell cell values(data)as an arguments)
    Suggest me to proceed further..
    Thanks..
    Edited by: user13329002 on Nov 13, 2010 1:16 AM

  • Reporitng in Bex using the documents attached in the BPS Planning Layout

    Hello Experts,
    I am in the process of implemting document integration between BPS and BEX.
    BPS document creation
    http://help.sap.com/saphelp_nw70/helpdata/EN/94/417184a46311d5b40a0050dadfb23f/frameset.htm
    Bex document access
    http://help.sap.com/saphelp_nw70/helpdata/en/43/1e2fffd48f4138e10000000a1553f6/frameset.htm
    But we are not able to see any documents created in BPS layout in Bex report.
    The document link in the Bex opens a browser but could not see those documents attached in the BPS. Other documents created using the Bex are available.
    I can see BPS documents in the Document workbench.
    Thanks for your help in advance.
    Regards
    Kawshik

    Hi Jeroen,
    my guess is that it has to do with the local Excel version. Please open a customer message so SAP support can analyze the issue.
    Regards,
    Marc
    SAP NetWeaver RIG

  • BPS Planning Layout - Data Column issues

    My basic question is:  is it possible to configure a characteristic in the data column such that it contains a range of values, instead of just a single value.  We have requirements to produce a series of comparison columns for things such as "Year-to-Date" (sum of a range of fiscal periods), "Prior 12 Months" (again, sum of a range of periods), and so forth.  Unfortunately, the BPS layout configuration of data columns only allows you to specify a single characteristic value.  If you configure it with a variable that contains the range, the system only uses the LOW value of the range, not the full range.  The ability to provide such comparison columns is critical to our users' ability to see prior information and make a determination of new plan values for the plan year.
    Any thoughts or suggestions on how I should approach this, or alternative approaches to take?

    John,
    This has been an issue with BPS since you can only display data columns of the granularity you specify rather than a range such as YTD similar to what you can do in BW restricted key figures. 
    The work around is to create and store the numbers in 
    1) YTD key figure in say fiscal year current year fiscal period current period and/or
    2) Prior 12 months Key figure and store the number against fiscal year current year fiscal period # or first period period of the year...
    Hope this helps and assign points if you found it useful.
    Mary

  • How to maintain comments (or Text fields) in BPS planning layout.

    Hello
    I found following document on SDN written by Tarun Malik:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60938938-de6f-2910-2080-fc80d38ebfec?quicklink=index&overridelayout=true
    Are there bugs in the coding:
    Functionmodule Z_BPS_WRITE_LAYOUT_READ_ODS:
    *it_ll_data = it_ll. "it_ll has not been defined upfront?!
    APPEND range TO et_dimension. " et_dimension has not been defined upfront?!
    Maybe Tarun Malik can answer?
    Regards
    Arjan

    Hi,
    Yeh i  know they need to click on that to see the comments ;
    Just checking if your are ok with the approach as it will avoid your coding part as well as  performance of the layout.
    going by Tarun's approach,
    how have you declared your import and export  parameters of  your function module ?
    I think you are missing that part which is giving you the error ..
    Pratyush

  • Suppress repeated KeyValues in BPS planning Layout

    Hi,
    In Bex Query Designer we have the setting to 'Suppress repeated key values'.
    Is there any similar setting to suppress repeated key values in lead columns of BPS plannning layout ?
    Thanks

    Hi murali,
    for me you must customizing layout with excel macro. (Before data get)
    There isn't any method.
    I hope help you.
    Davide

  • BPS: More functions executed on datachange

    Hi all,
    In a BPS planning layout, I need to be able to execute several functions when data in the layout is changed. However, the standard functionality only allows one reference to a function button. I've browsed the BSP-code in SE80, have had a closer look at the module OnInputProcessing, but still I'm not sure how to add a sequence of functions when data is changed in the layout. Should this be done by modifications to the BSP or should I use an exit instead?
    How have you solved similar problems?
    Thanks in advance for any help/suggestions.
    Regards,
    Morten

    Hello Morten,
    you are right, you can attach a function button to the layout. However, what you missed is that you can assign a global planning sequence to this button. This way you can easily execute several planning functions.
    Regards,
    Marc
    SAP NetWeaver RIG, US BI

  • Issue with order or sequence of wbs elements appearance in planning layout

    Hi Experts
    we have an issue with order or sequence of wbs elements appearance in BPS planning layout.
    In BW - 0wbs element -  hierarchy order is as below
    1
    2
    3
    4
    5
    6
    7
    8
    but when we check the same wbs element in BPS planning layout, it appears as below
    1
    2
    3
    4
    6
    7
    5
    8
    Request you to advice how to correct the order.
    Best Regards
    krishna

    Hi,
    I came across a similar situation once. I dont remember exactly.
    We have two different DataSources on wbs hierarchy. The hiearchy was loaded using the two datasources.
    By mistake we were trying to use the hierarchy created by Datasource2, instead of hier created by datasource1.
    Can you check that.

  • Execute Planning Function while opening layout

    Hi all,
    I would like execute planning function while opening excel layout. Can anyone help me?

    Hi guys,
    Check out the following thread.......Business Planning
    Yes, you can do it depending on which version of SEM/BW Planning you are on...
    Good luck,
    Rael

  • BW SEM-BPS API functions from a Web Dynpro project in Netweaver

    Hi,
    Rather than using the standard Web Interface Builder in BW SEM-BPS (3.1B), we have to use SAP Netweaver to create a Web Dynpro project which accesses all the API_SEMBPS functions, such as GETDATA, SETDATA, FUNCTION_EXECUTE etc. Has anyone done this before? If so, do you have any examples, hints?
    Regards,
    Linda Lee

    Hello Linda,
    let me add some more remarks on this topic from the BW-BPS development perspective:
    I completely agree with Marc's statement.
    Thechnically it is possible to build a planning application UI on top of the BW-BPS API functions and we have some customers that are live with such a solution. However, I would recommend this only in 2 cases
    1. You need to create a tightly integrated application with BPS being only one part of several other components (including transactional UI, e.g. running against a CRM system).
    2. You prefer a UI technology that is not provided by SAP (e.g. Java Swing based).
    In all other cases, I would say that one should stick to the Web Interface created with Web interface Builder, mainly for cost reasons. If this tool does not fulfill all your needs there are several possibilities to enhance and extend the generated web interfaces by custom specific coding (see also several How-To guides in this area; e.g. "How to integrate a BEx Web Template into a BPS Web interface").
    Another possibility is to loosly couple several web UIs with the help of the portal.
    To my knowledge, it is not true that BSP web technology will be obsolete shortly. 
    In general, I would always prefer a tool supported, model driven approach compared to a heavy custom coding. This is also in sync with SAPs general strategy to a more pattern based approach to create UIs.
    Regards,
    Tobias Hagen
    Dev. Manager BW-BPS
    SAP NetWeaver BI

Maybe you are looking for

  • How can i convert 3d movie into 2d to watch it in mac

    i have a movie with mkv file playable on vlc how can i convert the movie into 2d

  • Contract validity periods triggering

    Hi Gurus, I came to know that the contract validity periods price will trigger based on PO document creation date... In our case Market price is changed every quarter, and there is no way we have to wait until the new validity period to come to creat

  • Converting mp4 to wmv file

    Here is the whole picture. I have a newer iMac and I have a few movies in my itunes that I watch on my ipod touch. I would like to be able to save a copy of these movies to a flash drive memory stick and play them on a PC computer that only has Windo

  • Premiere Elements 3.0 16:9 Export Issue

    I can not get a 16:9 export from Premiere Elements 3.0. Please advise. In Premiere Elements 3.0 Set-Up, 16:9 (wide screen) was selected from the Project. Camcorder: Canon FS200 Native File Format: .MOD (Premiere Elements 3.0 will not read Canon .MOD

  • Flash Player 10: Bad Apple Support Info

    Over on the download page http://www.apple.com/downloads/macosx/internet_utilities/adobeflashplayer.html Apple says: Flash Player 10.0.22.87 System Requirements * Mac OS X 10.1 or later * 500MHz PowerPC G3 processor or higher * Firefox, Safari, and O