Error in Debugging a Custom Planning Function

Hi All,
I have a custom Planning function which is an ABAP code. I wanted to test the planning function and hence i set a breakpoint at the first line of the code. But when i execute the program RSPLS_PLSEQ_EXECUTE to debug my planning function, once i give the planning sequence and press F8, it gives an error instead of pointing to the breakpoint i set. Please help me out. Any pointers over this are greatly appreciated.
Thanks
Swaroop

Hi Swaroop,
take a look at RSPLS_PLSEQ_EXECUTE in transaction SE38. You will see the following line of code
PERFORM execute_plseq  TABLES g_t_return USING seqnm variant.
. Set a break-point here and execute the report. The debugger will stop at the above mentioned line. Press F6 to execute the statement and than double click on g_t_return. This table contains the messages. Please take a look at them. You can see the technical name of the message. To see them in a more readable format you can use transaction SE91.
Regards Matthias Nutt
SAP Consulting Switzerland

Similar Messages

  • How to  pass a variable value into a custom planning function via a web

    Can some one tell me
    How to  pass a variable value into a custom planning function via a web template?
    What are the different types of Planning function parameters available and what is the difference between them?
    Thanks
    babu

    Hi Sutrtha,
    Yeah I got the pop up asking to select the variables used, I have selected ENTITY_ID that was used by the interfaces, but on execution of the package the Scenario did not work as the passeed variable #ENTITY_ID is set to 0 instead of the value I am passing.
    Am I missing something?
    Regards
    B

  • Complex Custom Planning function

    Hello,
    I need to implement a complex custom planning function, in which certain calcualtions are to be done. Data is available in the actual cubes and calculation logic is in a table and also it requires several validations to generate plan data. For example, planning fuction is to validate whether the planning cube is already having the requested data or not for the current period, if it has the data then that slice of the data is to be deleted before the calculated data is to be written to planning cube, that means custom planning function should be able to call Delete function as part of the validation. The calculated data is written back to planning cube which is part of Plan/Actual Multiprovider on which planning modelling is defined.
    Could anybody provide step by step approach to implement this kind of custom planning function would be appreciated.
    Looking forward to have nice discussions on this thread.
    Regards,
    Ravi.

    Hi Amie,
    You can create a custom planning function using transaction RSPLF1. A step in creating a custom planning function is to create an ABAP class that implements the interface IF_RSPLFA_SRVTYPE_IMP_EXEC (if your function doesn't need reference data) or IF_RSPLFA_SRVTYPE_IMP_EXEC_REF if your function needs reference data.  You code selections for your reference data in method GET_REF_DATA_SEL and the actual logic of your function in the EXECUTE method.
    Inside the EXECUTE method, the parameter C_T_DATA contains the data currently in your real-time cube that satisfies the Filter selections that you placed in the planning sequence (or web-analysis item data bindings). You can check C_T_DATA for the existence of previously saved data. You can delete/modify/ad entries in C_T_DATA. Any rows in C_T_DATA that you deleted in the EXECUTE method will be zeroed out/deleted from the cube. Any rows in C_T_DATA that you added/changed will be saved as well.
    If you look at transaction RSPLF1, you can see the definitions of the SAP standard planning functions. You can use those definitions as your reference.
    Hope this helps you get started.
    Cheers.

  • Error while opening the custom forms-''function not available to this respo

    Error: Function not available to this responsibility , change responsibility or contact ur system administrator
    Hiiiii,
    While accessing the custom forms in release 12i we are facing the popup error and the form is not getting opened up: "Function Not available to this responsibility. Change Responsibilities or Contact your System Administrator"...
    I check the custom top path in $APPL_TOP/admin/adovars.env... its fine there..
    but the $Apache_top is not there...
    can u plz tell me the solution....
    Thanks
    Meenakshi Verma

    user609981 ,
    If ur referring to forms, u need to search in appropriate forum, as this forum is only for OAF queries, and if its realted to OAF page, check the the function of oa page is attached to the specific responsibilty .
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error when creating a planning function

    hi,
    I am creating a Planning function type using RSPLF1. Also i have created a custom class for the same. But when i try to create a planning function through RSPLAN, and using this custom planning function type, I get the following error:
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
        at java.util.Vector.get(Vector.java:733)
        at com.sap.ip.bi.plan.sb.plandialogcomps02.hlp.FromToStore2.getToList(FromToStore2.java:74)
        at com.sap.ip.bi.plan.sb.plandialogcomps02.fromto.FromToHelperComp._fillTableFromStore(FromToHelperComp.java:1422)
        at com.sap.ip.bi.plan.sb.plandialogcomps02.fromto.FromToHelperComp._loadAll(FromToHelperComp.java:1825)
        at com.sap.ip.bi.plan.sb.plandialogcomps02.fromto.FromToHelperComp.setAll(FromToHelperComp.java:388)
        ... 53 more
    Can anyone let me know what this means and what I am missing ?

    Hi,
    Generally these error come when we manually enter the value in the Visible and Input column. Instead we should try select value from the Drill down options which gets generated based on the Time Bucket Profile you have selected as input for Planning Horizon.

  • 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

  • Custom Copy Planning Function in IP

    Hi all,
    I have a requirement wherein I need to copy the content of one cube to another cube based on certain conditions that are to be handled explicitly.
    I cannot use the standard copy function.
    So i need to model my own planning function to meet the requirement. Can anyone provide a template based on which I can proceed and create a custom planning function for copying the data from one cube to another cube.
    Rgds
    Syam

    Hi Shashi,
    I dont think that FOX can suit our requirement. The reason being as follows:
    I need to loop thru the contents of Cube1 so as to find out the Ratio of keyfigures for a particular Characterisitc value. This ratio needs to be used in some other cube (Cube2) for distribution.
    Eg: Cube1 :
    Characteristic : WBS Element
    Keyfigure : Amount
    I need to loop thru the cube content and finally arrive at the ratio of Amount assigned to each WBS.
    Eg:  WBS1:WBS2:WBS3 = 3:1:2
    The above ratio needs to be used in Cube2 to distribute the Amount (present at Business area level) to each of the WBS element in cube2.
    Rgds
    Shyam

  • How to indicate a message by a planning function type in an ABAP-OO-Class

    Hello,
    I integrated a message with following statement " MESSAGE i003(upf1) WITH v1 v2." in an ABAP-OO-Class, which is used by a Planning Function Type. The function type works but it´s not indecated after executing the Planning Sequence, neither from web template nor in the planning modeller.
    Does anybody know this problem/behavior?
    Thank for response
    Andreas

    Hi Joerg,
    how about this:
    data: l_dummy type char100.
    MESSAGE i003(upf1) WITH v1 v2  into l_dummy.
    i_r_msg->add_msg( ).
    You do not need to take special care about the variables. Just raise the message as you want it to be raised. The only thing you need to do is to raise the message into a string (..into l_dummy). The interface IF_RSPLFA_MSG and the implemetation of add_msg is going to read the standard message variables (SY-MSGNO, SY-MSGID, SY-MSGTY, MSGV1 ...). You just need to throw the message
    and call  i_r_msg->add_msg( ) e.g. in the execute method of your customer planning function.
    Please give it a try and take a look at it in the debugger.
    Hope this helps.
    Matthias Nutt
    SAP Consulting Switzerland

  • Execute process chain in BI out of an planning function

    Hello all,
    is there a way to execute a process chain in BI out of a planning function, e.g. FOX?
    We are using BI 7.0. Any help would be fantastic.
    Best regards,
    Stefan from Munich/Germany

    Hi Stefanos,
    you could use a planning function to call a function which starts the process chain. The planning function could be a customer planning function type. Make shure that you tick the without blocks tickbox. Otherwise it may be possible that the execution of the process chain is done several times.
    Regards Matthias Nutt
    SAP Consulting Switzerland

  • Customer for function SP may not have account group in sap

    Dear All,
    Not open the sales order and error show in SAP
    Customer for function SP may not have account group.

    In IMG > SD > Basic Function > Set up Partner Determination
    Check the assignment of Partner Function with the Account Group in Account Groups - Function Assignment.
    Best Regards,
    Ankur

  • Planning Function to update Fiscal Period Characteristics

    Hi,
    Is it possible to write a Planning Function that would update empty Fiscal Period Characteristics from the already populated 0CALMONTH Characteristic?  I know the ABAP required if I can use it, but I'm just wondering about IP having the ability to do this in the Planning Function Environment..  I'm guessing it's a repost effort, but I can't think how to accomplish this?  Or do I need to create a custom planning function?
    Thanks!

    Thanks for the info,  My planning data is being uploaded via the SDN Planning File Upload Solution.  What I did was end up modifiying the upload class ZCL_RSPLF_FILE_UPLOAD Method EXECUTE.   
    I added the following code if anyone is interested.
    *{   INSERT         BWDK902323                                        1
    THIS SECTION OF CODE POPULATES THE FISCAL PERIOD CHARACTERISTICS
    USING THE FISCAL YEAR VARIANT 'NK' AND THE CALENDAR MONTH/YEAR
    FIELD-SYMBOLS <0FISCVARNT> TYPE /BI0/OIFISCVARNT.  " Fiscal Year Variant
    FIELD-SYMBOLS <0FISCYEAR>  TYPE /BI0/OIFISCYEAR.   " Fiscal Year
    FIELD-SYMBOLS <0FISCPER>   TYPE /BI0/OIFISCPER.    " Fiscal Year/Period
    FIELD-SYMBOLS <0FISCPER3>  TYPE /BI0/OIFISCPER3.   " Posting Period
    FIELD-SYMBOLS <0CALMONTH>  TYPE /BI0/OICALMONTH.   " Calendar Month/Year
    ASSIGN COMPONENT '0CALMONTH'  OF STRUCTURE <L_S_DATA> TO <0CALMONTH>.
    ASSIGN COMPONENT '0FISCPER'   OF STRUCTURE <L_S_DATA> TO <0FISCPER>.
    ASSIGN COMPONENT '0FISCVARNT' OF STRUCTURE <L_S_DATA> TO <0FISCVARNT>.
    ASSIGN COMPONENT '0FISCPER3'  OF STRUCTURE <L_S_DATA> TO <0FISCPER3>.
    ASSIGN COMPONENT '0FISCYEAR'  OF STRUCTURE <L_S_DATA> TO <0FISCYEAR>.
    <0FISCVARNT> = 'NK'.
    CALL FUNCTION 'FISCPER_FROM_CALMONTH_CALC'
      EXPORTING
        IV_CALMONTH       = <0CALMONTH>
        IV_PERIV          = <0FISCVARNT>
    IMPORTING
       EV_FISCPER3       = <0FISCPER3>
       EV_FISCPER        = <0FISCPER>
       EV_FISCYEAR       = <0FISCYEAR>.
    *}   INSERT

  • Use Formula variable in planning function

    Hello,
    I would like to use a formula variable in a planning function.
    The problem is that when I execute this function all keyfigures values are set to 0 so the FOX is not executed.
    The idea is to have something like
    = VARV(FORMULAVARIABLE).
    How could this be achieved using FOX ?
    Or how using an exit function could I call this FORMULAVARIABLE which is not used in the query ?
    Thanks,
    Matthieu

    Hello Matthieu,
    Please search the forum before posting:
    http://forums.sdn.sap.com/click.jspa?searchID=70350665&messageID=9814615
    Regards,
    Marc
    SAP Techology RIG
    PS: You closed the thread so I have to add some details here. The FOX runtime is hardcoded to 0RSPLS_FORMULA. Therefore, 0RSPLS_FORMULA cannot be copied to a custom planning function type as you suggest.
    Edited by: Marc Bernard on Feb 23, 2011 3:36 PM

  • Error when execute a planning function on selected line

    Hello together, 
    we are using SAP BusinessObjects Analysis 1.4 SP9 (1.4.9.3241, Office 2013) and SAP BW 7.3 SP 11 (SAPKW73011).
    When executing a planning function on an selected line in the crosstab, the following error appears:
    The VBA Coding used is from HowTo Execute a Planning Function on Selected Lines in an Analysis for Office Workbook.
    The Code worked fine with an older version of SAP BO Analysis and Excel 2007.
    Going to debugging:
    As you can see in the screenshot, the selected line (Dimension "0PRODUCT") is selected correctly.
    The settings for the planning function are the following:
    Thank you in advance for any advice.
    Best regards
    Alex

    Hello together, 
    we are using SAP BusinessObjects Analysis 1.4 SP9 (1.4.9.3241, Office 2013) and SAP BW 7.3 SP 11 (SAPKW73011).
    When executing a planning function on an selected line in the crosstab, the following error appears:
    The VBA Coding used is from HowTo Execute a Planning Function on Selected Lines in an Analysis for Office Workbook.
    The Code worked fine with an older version of SAP BO Analysis and Excel 2007.
    Going to debugging:
    As you can see in the screenshot, the selected line (Dimension "0PRODUCT") is selected correctly.
    The settings for the planning function are the following:
    Thank you in advance for any advice.
    Best regards
    Alex

  • BI IP - Planning Function Type Formula Error "Characteristic not Supported"

    Hi all,
    I have created a planning function type formula with very simple code. The code was copied from SAP Library and FISCPER was replaced with 0CALDAY. I continue to get an error 'Characteristic 0CALDAY is not supported".
    The characteristic 0CALDAY is in the Infoprovider and the aggregation level. I have tried 'To Characteristic Usage' with both changed and in condition.
    DATA D1 TYPE D.
    DATA D2 TYPE D.
    DATA I1 TYPE I.
    DATA I2 TYPE I.
    DATA CALDAY TYPE 0CALDAY.
    FOREACH CALDAY.
    CALCULATE 1ST DAY OF ZCALEND
    D1 = C2DATE( CALDAY, S ).
    CALCULATE LAST DAY OF CALDAY
    D2 = C2DATE( CALDAY, E ).
    CALCULATE THE DIFFERENCE BETWEEN LAST AND 1ST DAY MINUS TWO DAYS
    I2 = 2.
    I1 = D2 - D1 - I2.
        MESSAGE I001(UPF) WITH 'DIFFERENCE' I1.
    ENDFOR.
    Thank you in advance for any help.
    Teri

    Thank you very much for your reply. What would you suggest? I must use 0CALDAY.  As you can tell I am very new to IP, I have tried other options for example:
    DATA ZDAYS TYPE I.
    DATA ZDT TYPE ZCALSTART.
    DATA ZDF TYPE ZCALEND.
    ZDT = ZCALSTART.
    ZDF = ZCALEND.
    ZDAYS = ZDT-ZDF.
    {KF,ZDT,ZDF} = ZDAYS.
    I received an error "ZCALSTART could not be recognized"
    I also tried to call a function. 'FIMA_DAYS_AND_MONTHS_AND_YEARS'.
    DATA D1 TYPE D.
    DATA D2 TYPE D.
    DATA DD TYPE I.
    DATA CALS TYPE ZCALSTART.
    DATA CALE TYPE ZCALEND.
    D1 = CALS.
    D2 = CALE.
    CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
      EXPORTING
        I_DATE_FROM          = D1
      I_KEY_DAY_FROM       =
        I_DATE_TO            = D2
      I_KEY_DAY_TO         =
      I_FLG_SEPARATE       = ' '
    IMPORTING
       E_DAYS               = DD.
      E_MONTHS             =
      E_YEARS              =
    I received an error "Types of parameter I_DATE_FROM () and variable D1(D) are inconsistent".  From what I could find they should be consistant.  Please provide any suggestions. Thank you!
    Teri
    Edited by: teri chandler on Mar 30, 2010 3:26 PM

  • Error message in planning function

    Hi,
    I have implemented a plausibility check for values in a planning function:
    IF { Z6SLSPRIC } = 0 AND NOT {Z6SLSQTY}  IS INITIAL.
         MESSAGE E000(ZOP1) .
         MESSAGE E001(ZOP1).
         MESSAGE I003(ZOP1).
    ENDIF.
    With raising an error message the data will not be saved. Unfortunately the function sends the message '...ended with errors'. I think this is the cas because of raising an error message. How is it possible to raise an error message without getting the function standard message?
    Regards
    Andreas

    Hi,
    I think the syntax is correct. The function works and give the implemented messages without saving the data.
    After that I get the following message: "Planning function Z6OPF4 ( Z6OPF4 ) ended with errors".
    How is it possible to suppress such system messages?
    I think the function is working fine. The message mentioned above is the result of raising an error message in my code...
    Regards
    Andreas

Maybe you are looking for

  • Make non-editable sections of webpage?

    I'm designing a site using contribute. I'm wondering if I can take a webpage that is already completed and make certain sections of it uneditable.... such as the main links, or certain divs... Is there a way to do this? Or can this only be accomplish

  • Access iphoto 08 file on shared storage device from multiple machines

    I recently installed ilife 08 on both an imac and macbook. Previously (iphoto 06), both devices accessed the iphoto library on a shared storage device without any problems. After the upgrade, my imac is able to view thelibrary but my macbook (the sec

  • [NEW] Mozilla Firefox 0.10/1.0PR

    I've made a package for Firefox 0.10, as the maintainer for Firefox seems to be having a bit 'o trouble... # Contributed by: Patrick Burroughs <[email protected]> pkgname=mozilla-firefox pkgver=0.10 pkgrel=1 pkgdesc="Standalone web browser from

  • Indesign CS5 and Export to PDF

    Hi Group! Got a weird one here... I've searched high and low for this but, I have a user who i just recently upgraded to CS5 (company still on CS4 for internal reasons), and noticed a strange anomaly when exporting to PDF. For whatever reason, somewh

  • Opening DOC files shows corrupted, EDIT works.

    I have super weird problem. Freshly installed office 2013 home n student x86, windows 8,1 x86, all latest update's offered are installed. What happens that only on few doc documents on opening word says they are corrupted or that i may not have permi