BPS - Executing planning function with SAVE

We are trying to use BPS for a slightly different purpose. We need a front-end to enter sonme data into a transaction cube. The issiue we are facing is we wish to execute a plnning function just before SAVING without having the user press any other button. Could anybody tell me if that is possible & how it can be achieved.
Would appreciate any help.
Thanks.

I have to apply this functionality to save my Web Planning Folder after the execution of a function which is a fox formula.
I call the function UPC_FUNCEXEC_SAVE at the end of my Fox Formula as explain above but the save is not complete... Or I have wrong ?
Save Planning Data *******************
FLAG = ' '.
CALL FUNCTION UPC_FUNCEXEC_SAVE
  EXPORTING
    I_NO_TRANSACTION_DATA = FLAG
IMPORTING
   ET_MESG =
   ET_MESG =
Could you help me?
Thanks in advance,
Ramak

Similar Messages

  • Error while executing planning function with reference data

    Hi,
    I have a two planning functions one is used to upload the file (with out reference data checkbox in planning function RSPLF1) and other planning function ('Referece data'check box is selected in custom planning function RSPLF1) to execute the logic of creating new record along with the flat file data.
    Following data is uplooaded
    Company code | Profit_ctr | calmonth | Amount
    1000                 | 50000      | 01.2011  | 150
    Cube data
    Field1    |  Company code | Profit_ctr | calmonth | Amount
             |  1000                 | 50000      | 01.2011  | 150
    Z1         |  1000                 | 50000      | 01.2011  | 150
    Now I want to change the value from 150 to 200 and when I try to execute with the following data, it is giving dump 'a row with the same key already exists'.
    Company code | Profit_ctr | calmonth | Amount
    1000             | 50000          | 01.2011  | 200
    Ideally in the second execution it should append the new row with Amount value 50 to cube which is the delta value.
    I debugged the issue and found that I_TH_REF_DATA has following data and C_TH_DATA also contains the same records.
    Field1     Company code | Profit_ctr | calmonth | Amount
    #     1000                 | 50000      | 01.2011  | 150
    Z1     1000                 | 50000      | 01.2011  | -150
    Z1     1000                 | 50000      | 01.2011  | 150
    Due to this, record which already exists in C_TH_DATA and trying to append new record with the same combination is failing.
    C_TH_DATA should only contain the source data of Amount 200, but not sure why reference data is coming in C_TH_DATA.
    Could anyone please guide me on how the reference data is getting populated in C_TH_DATA ?
    Thanks in advance
    Edited by: peppy on Aug 3, 2011 5:00 PM
    Edited by: peppy on Aug 3, 2011 8:37 PM

    Hi Peppy,
    C_TH_DATA is hashed table!  According to your post you are trying to append to C_TH_DATA and this results in a dump. Please take a look at the standard planning function to see how SAP is programming the planning functions. E.g. in CL_RSPLFC_REPOST method IF_RSPLFA_SRVTYPE_IMP_EXEC~EXECUTE you can find the following code:
      CREATE DATA l_r_data_wa LIKE LINE OF c_th_data.
      ASSIGN l_r_data_wa->* TO <s_data_wa>.
      CREATE DATA l_r_new_wa LIKE LINE OF c_th_data.
      ASSIGN l_r_new_wa->* TO <s_new_wa>.
    LOOP AT c_th_data INTO <s_data_wa>.
    <s_new_wa> = <s_data_wa>.
    now the SAP code changes the  values, you can do it your way here
    and than write the changes back
            MODIFY TABLE c_th_data FROM <s_data_wa>.
    ENDLOOP:
    Another option is to use the READ statement to check if the record is already in the table. If not, you can use MODIFY otherwise you use INSERT. So you get something like this:
    READ C_TH_DATA from <s_data_wa> transporting no fields.
    if not sy-subrc EQ 0.
      INSERT <s_data_wa> into table C_TH_DATA.
    else.
      MODIFY TABLE c_th_data FROM <s_data_wa>.
    endif.
    Depending on your requirements you can also use the collect  statement.
    If c_th_data shows the reference data as well, you may need to adjust the filter to restrict it to the correct values.
    Hope this helps.
    Best regards
    Matthias Nutt
    SAP Consulting Switzerland

  • Need Information of how to Consume/Execute Planning Function & Planning Sequence in Design Studio

    Dear Colleague,
    We are trying to have a PoC demonstrating BW planning function and Planning sequence in SAP Business Objects Design Studio.
    1. In the process, we have built our own Planning function and Planning sequences in our BW system and they are working as per expectation in the BW system.
    2. We added the Planning function and Planning Sequence on to the Design Studio App.
    But now how to we add these Planning function and Planning sequence on to the Dashboard.
    Is there any container to add these planning objects on to the dashboard.
    Or how to execute or Consume these Planning functions and sequences in Design Studio dashboard.
    And any Document or Information in detail would definitely help a lot.
    Please answer the question underlined.
    Thanks,
    Vijay

    Hi Mustafa,
    Thanks for replying!
    But Since this is an Internal project. We are already using Version 1.3.
    Solving double purpose of evaluating the tool and coming up with the application as well.
    As I said in my previous description, we were able to add Planning Functions and Planning Sequences on to Design Studio using menu options available.
    But not sure of how to consume or execute them in the app. To get the rows of records, change values, Save and Transfer values as we do it with the Planning function with BW backend.
    Thanks,
    Vijay

  • Macro Error while executing planning functions or saving data

    Dear All,
    I am getting following error in BEx Analyzer while executing planning function or pressing a save button.
    Note: Excel is 2007 version.
    Cannot run the macro "XXXXXX.xlsx". The macro may not be available in this workbook or all macros may be disabled.
    I changed the settings in Macro Settings (Office Button -> Excel Options -> Trust Center -> Trust Center Settings-> Macro Settings) eventhough it is showing that above message.
    selected ->
    Enalble all macros
    Trust access to VBA project object model.
    If anybody faced this issue kindly reply to this.
    Best Regards,
    SG

    Hello everybody,
    i am facing exactlythe same issue! I am currently running GUI Patch Level 14 and BI Add on Patch Level 10.
    I have also adjusted all necessary settings in Excel Options like Activate all Macros and Trust VBA Coding.
    Does anybody have another Solution.
    As mentioned before Gui Patch 13 and BI Add On Patch 10 obviously arent the solutiuon.
    Best regards
    Janos

  • Execution of a planning function with the used dimension values in a crosstab

    Hello,
    would like to execute planning functions within Design Studio but I don't really know how I combine this execution with the used dimension values in a crosstab for the .
    Here the requirement:
    3 Planning functions which should use the same filter (all values of all dimensions in the crosstab) and which should run one after another:
    // open data slice
    PF_1.execute();
    // generate combinitions
    PF_2.execute();
    // close data slice
    PF_3.execute();
    Many thanks in advance.
    Kind regards,
    Tobias

    Hi Arun,
    in general it is not possible to nest planning functions. The inner function would update the data in the plan buffer without the outer function knowing about it. Also the inner function might be on a different aggregation level which would make things very tricky.
    Alternatively you can include ABAP logic into a FOX formula:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/94eb78b6394befe10000000a42189d/frameset.htm
    Or just create the complete logic in one ABAP planning function type.
    Regards,
    Marc
    SAP NetWeaver RIG

  • How To... Execute Planning Functions and Sequences from MS Office Ribbon

    Dear all,
    I am working with a SAP how to paper, which is called:
    How To... Execute Planning Functions and Sequences from MS Office Ribbon.
    It is working absolutely fine and I am pretty satisfied, but as you probably know "Control the visibility of a button based on the visibility of a related crosstab: the  button just disappears once the related crosstab is not located on the active sheet."
    This means, when I insert different queries in different crosstabs, only one crosstab will have my own created ribbon. Is it also possible to set another specific ribbon with other buttons for another crosstab? Can I change the macro, included in the appendix of the how to paper, regarding this issue?
    Thanks in advance!
    Kind regards
    Dominik Drebinger

    Hey Martin,
    thanks for your reply, but I solved the problem on my own. Unfortunately my colleague did not see that the crosstabs had to be defined differently.
    Like this:
    Label
    Screentip
    Msolmage name
    Crosstab name
    Copy Initial Aligned
    Copy Initial Aligned
    CacheListData
    SAPCrosstab1
    Copy Initial Aligned 
    Copy Initial Aligned
    CacheListData
    SAPCrosstab3
    Copy Initial Aligned
    Copy Initial Aligned
    CacheListData
    SAPCrosstab5
    The macro, provided by the HowTo, is therefore working perfectly fine.
    Thanks though
    Dominik

  • Error while executing planning Function

    Hi All,
    I'm getting some error while executing planning function. Below are errors. Please check and provide solution.
    Errors occurred when executing planning function RTFMPF01/RTFMPG01
    Value 08 of chara Region does not correspond to the attrib.val MI of chara Store
    Value 10 of chara Region does not correspond to the attrib.val RM of chara Store
    Value 11 of chara Region does not correspond to the attrib.val NA of chara Store
    Thanks,
    Vamsi

    Hi,
    Value 08 of chara Region does not correspond to the attrib.val MI of chara Store
    Looks like there is a characteristics relationship which derives the attribute store from Region.
    Check the master data for Region for attribute Store and the corresponding values.
    The values that are maintained in the master data will only be allowed to enter in the cube.
    Thanks
    pratyush

  • 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

  • Execute K_BATCH_REQUEST function with another user

    Hello,
    I would like to execute the function K_BATCH_REQUEST with another user-name (a batch name) but I do not found any option to execute this function with another user.
    Someone can help me ??
    <removed by moderator>
    thanks a lot in advance for your help.
    Daniel
    Edited by: Thomas Zloch on Nov 14, 2011 3:02 PM

    Suppose the FM signature looks like
    FUNCTION ztest.
    *"*"Interface locale :
    *"  IMPORTING
    *"     REFERENCE(PAR1) TYPE  C
    *"  TABLES
    *"      TAB1 STRUCTURE MARA
    A wrapper program could look like
    REPORT  ztestwrapper.
    TYPES tmara TYPE mara OCCURS 10.
    * no-display allows much more flexibility here
    PARAMETERS: par1 TYPE c NO-DISPLAY,
                tab1 TYPE tmara NO-DISPLAY.
    CALL FUNCTION 'ZTEST'
      EXPORTING
        par1 = par1
      TABLES
        tab1 = tab1.
    For the scheduling of the job read [Task Overview: Full-Control Job Scheduling|http://help.sap.com/saphelp_470/helpdata/en/fa/096cf2543b11d1898e0000e8322d00/frameset.htm]
    Regards,
    Raymond

  • How to Clear Buffer after Executed Planning Function in BPS

    Hi BW-BPS Experts,
    I am BPS novice.We are executing Work Packages through planning folders. In Planning Folder we have 3 planning functions.Among those 3 , 2 Planning fns executed successfully, while executing 3rd one , it given error msg. So how can I clear the values in Buffer which r executed by first 2 planning fns. I haven' t saved any values to Cube. But I need to process these planning fns again.
    I will appreciate if any body can let me know how can I process these planning functions again without disturbing.
    I did From Menu Edit -> Undo Planning function. It give the msg: Last planning function was undone.How can I undo all Planning functions?
    Its Production systyem.So pls advise me.
    Points will be awarded.
    Thanks,
    Abhi.

    Hi Abhi,
    There are 2 transactions which might help you.
    1. /$obj - resets object buffers
    2. /$sync - resets all buffers
    I would sugest that you study the impact on the data in buffer as many users might be in the system using BPS. If there is no risk to your business process you can use the above transactions.
    Sunil

  • Execute planning function in Web template for selected row in analysis item

    Hello all.
    I have been trying several different solution for this issue I have, but could not ,make it work. Hopefully, any of you can give me some ideas.
    Initially the scenario seems to be easy.
    I have a Web template were I show a query analysis item with costcenter, plan/act type, user and entry date. I allow single record selection in this item.
    I have a button that should execute a planning function from the plannig modeler.
    The planning function should be executed only for the costcenter and plan/act type which are selected in the analysis item.
    How do I have to link the two objects :analysis item and planning function, so that the planning function is executed with the correct filter? What should be the filter definition (if any expecific things to consider)?.
    Thanks in advance for your help.
    Best regards,
    Alfonso.

    Dear Deepti.
    Thanks a lot for your answer, but it did not solve my issue.
    The problem is that my query is not created over the same agregation level as the planning function is, and as per the link you have sent me it seems to be a prerequisite.
    Is there any other way to do it?
    More in detail, I am implementing a Lock/Unlock mechanissim for planning costcenters. I have a n ODS where I store my costcenetr status(lock or unlock) and I also have a cube where the planning values are stored.
    My query(to select the costcenter to unlock) is done from the ODS, and my planning function is done in an aggreagation level of my cube (this is to lock the costcenter in cube, to avoid incorredct updates while it is unlocked/locked).
    The issue that I have is that I can not find a way to send the selected information from the query to the planning function.
    I hope you have more ideas.
    Thanks a lot.

  • Execute planning function in Web template for selected item in anylisys ite

    Hello all.
    I have been trying several different solution for this issue I have, but could not ,make it work. Hopefully, any of you can give me some ideas.
    Initially the scenario seems to be easy.
    I have a Web template were I show a query analysis item with costcenter, plan/act type, user and entry date. I allow single record selection in this item.
    I have a button that should execute a planning function from the plannig modeler.
    The planning function should be executed only for the costcenter and plan/act type which are selected in the analysis item.
    How do I have to link the two objects :analysis item and planning function, so that the planning function is executed with the correct filter? What should be the filter definition (if any expecific things to consider)?.
    Thanks in advance for your help.
    Best regards,
    Alfonso.

    Dear Deepti.
    Thanks a lot for your answer, but it did not solve my issue.
    The problem is that my query is not created over the same agregation level as the planning function is, and as per the link you have sent me it seems to be a prerequisite.
    Is there any other way to do it?
    More in detail, I am implementing a Lock/Unlock mechanissim for planning costcenters. I have a n ODS where I store my costcenetr status(lock or unlock) and I also have a cube where the planning values are stored.
    My query(to select the costcenter to unlock) is done from the ODS, and my planning function is done in an aggreagation level of my cube (this is to lock the costcenter in cube, to avoid incorredct updates while it is unlocked/locked).
    The issue that I have is that I can not find a way to send the selected information from the query to the planning function.
    I hope you have more ideas.
    Thanks a lot.

  • Authorization issue in WAD when executing planning function

    Hi All,
    I am facing the bellow authorization issue-
    Termination message sent
    WARNING BRAIN (800): You do not have the authorization for component !!AZF2PO_AGR
    MSGV1: ZF2PO_AGR
    MSGV2: REP
    MSGV3: !!AZF2PO_AGR
    MSGV4: 16
    ABEND RSBOLAP (002): No Authorization
    I am getting this issue When Calling Planning function from WAD application using button. This authorization fail is happening in portal when the Planning function is executed.
    Error explains that there is no authorization for component u201C!!AZF2PO_AGRu201D.Where as in actual we donu2019t have any component as stated.
    Instead we have an aggregation level with technical name ZF2PO_AGR.
    We have already Assigned the below Planning objects-
    S_RS_ALVL
    S_RS_PLENQ
    S_RS_PLSE
    S_RS_PLSQ
    S_RS_PLST
    To Summarize-There is a web application with button linked to planning functuion.When clicked on this button after execution of web template we get the above error.
    Have found note 1000006,but it says Support package 12 and all but we in support package 20

    Hi Guys,
    I know this thread is answered but I have a similar problem I think.
    I have a WAD that is published to the portal. I have added the WAD to a page via a hyperlink, the page resides in KM. When a user opens the page, via a URL iView, the see the page, but when they click on the link to open the WAD, I get the following error:
    Portal runtime error.
    An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 07:19_26/02/10_0067_18934750
    Refer to the log file for details about this exception.
    When I assign the Super Admin (UME Role) to the user, they can execute the WAD no problem.
    I am not an Authorizations person, so any pointers as to where I should start looking would be greatly appreciated.
    Thanks.
    Freddie.

  • Error when executing Planning function in BEx Web

    Hi everyone,
    When executing a planning function in BEx Web, via Web Application Designer, I am getting the following error message.
    ABEND BRAIN (178): Common entries are not permitted for plan queries and input queries
      MSGV1: Aggregation level name
    Where do I go wrong?
    Thanks in advance, hope this is enough info.

    Hi  Geerts,
    If i understood well, you have some problem with your query. Please check the query that you have on WAD and wich characteristics did you have on your level (the level on wich the query is based).
    Pls, check the correct execution on that query on Query Designer too. That query is a plan query? it`s ready for input ?
    Hope this help
    Natalia.

  • Execute planning functions

    Hi Experts,
    I have few planning functions in my IP for a real time cube. 1 of my planning function is giving an error ' Planning function ended with errors'.
    i want to debug this or test this function. how to do that.
    i went to T.Code BPS0, but i m unable to find my planning function there. why in BPS0 it is bot displaying planning functions created by me?
    Regards,
    Sonali.

    Hi Bindu,
    Thnaks a lot for your reply. Is it necessary to have a planning sequence to execute this program even if i want to test a single function? and why isnt it visible in BPS0?
    Regards,
    Sonali.

Maybe you are looking for