Parameter Exit Function in Planning Folder

Hi all,
I created the planning function in SEM BPS using exit function. And then I added the parameter exit function 0VERSION to this function. After that, I tried to put this function in the planning folder.
Does anybody know how to put the parameter exit function to the planning folder?
Because I need the user to fill the value of the 0VERSION before they run the function.
I assume this should work as the selection screen.
Currently, Every time I run this function, there is no selection screen or the place that I could fill the value for this field. So, the system always receives no value for this field.
Or Maybe you have another approach to get the user's value without restrict the data before run the exit function.
Thanks a lot for your help,
-Martin Darmawi-

This behaviour is quite normal. You should use different approach.
Parameters in exit functions can be filled in parameter group only and only with fixed values.
You should create a planning variable, put it to the folder and then read value of this variable in your exit function with 'API_SEMBPS_VARIABLE_GETDETAIL' for example.

Similar Messages

  • Exit function in Planning Folder

    We are using BPS and I have a request to do some modifications in a specific planning folder.
    When executing the folder, when the user introduces a new line, if a specific field is left empty they what me to change it to a constant, when user saves the folder.
    I’m an ABAP developer in R/3 and my help was requested to solve this issue using a planning function of exit type. The problems is that when I’m passing in the exit function I’m receiving only the values that were there before the user introduce some new information. I’m not getting the new lines.
    Like I said I’m an ABAP developer in R/3 and BW and BPS is all new to me, so I don’t know if this is the normal behaviour of the system or if I’m doing anything wrong.
    My question is then: it’s possible to get only the new information to get through the exit function or this isn’t possible and if it’s not is there another way to do this (when saving change the value of an empty field).
    Thanks in advance.
    Best regards
    Sónia Reis

    Hi Sónia,
    You should check with your colleagues what selection criteria they have in the Planning Level. There is a good chance that your new records do not satisfy this criteria and hence they aren't in your Exit function.
    There are two possible solutions to this issue:
    1. Adjust existing Planning level criteria so new records will satisfy it.
    2. Create a new Planning level with selection criteria that satisfies records you are looking for and put your Exit FM there.
    Which way to go depends of your particular case and perhaps your BPS colleagues could decide which option to select.
    If they can't make this decision please send me additional information of what selections you have in existing Planning level and what information is entered in new rows.
    Regards,
    Gersh

  • Create ne Planning function in planning folder

    Hi Experts,
    I have one planning function A  in X folder and my requirement is i need to create same planning function like A in planning floder Y.   Please give me steps for creating planning function in planning folder.
    I know how to create a planning function in planning level but i don't know how to create to a planning function in planning folder.
    Please help me on this.
    Thanks
    SAP

    Hi Mynak,
    Thanks for your reply. Yes ur r correct, we cdon't create planning function in the planning folder insted o this we can drag the created planning function into planning folder.
    How to drag this from left side to right side and place into global planning function area.
    I am missing some thing. I couldn't slect the planning package and parameter group.
    Can u let me know how to do this one.
    It would be great help for me.
    Thanks
    SAP

  • Planning Function giving error 'not initialise' in BPS Planning folder

    Hi
    Have created the std copy planning function and have included in the folder. Its giving the error the function is not initialised. What do I need to do to remove this error. Any suggestion most welcome.
    Kind Regards,
    Sarah

    Hi Sarah,
    Can you be please feed in some more information on the function you have created. What is the parameter group you have created. Is the error coming while checking the planning folder or before that.

  • Deriving Planning Folder Technical Name From User-Exit

    Dear Colleagues,
    For those of you who know ABAP, do you know if it is possible to determine the technical name of a planning folder from within a user-exit (i.e. planning function that has been executed from within a planning folder)?
    Customer states: They would like to use a Planning Folder, and invoke a planning function of type user-exit (i.e. via button in folder), which will execute an ABAP that has a case statement for conditional execution of steps, based upon the technical name of the planning folder that invoked the call.
    Thank you in advance for any guidance or feedback you may be able to offer.
    -M

    Hi Michael,
    Write this code in the exit function
    FIELD-SYMBOLS: <fsl_class> TYPE REF TO cl_upb_pm_applc.
      DATA:          name(50),
                     plan_folder TYPE upb_y_ps_name.
      name = '(SAPLUPB_PM)gr_applc'.
      ASSIGN (name) TO <fsl_class>.
      IF sy-subrc = 0.
        CALL METHOD <fsl_class>->get_active_pm
          RECEIVING
            r_pm = plan_folder.
      ENDIF.
    Glad I could be of help to the mastero.
    Let me know if it worked.
    thanks

  • BPS planning folder; Scroll to top after execution of planning function

    Hi All,
    After execution of a planning function, or after saving data in a planning folder, the layout jumps back to the top and displays the first row, even if the user was positioned on another row.
    I know BPS does this because it recalculates the data and tries to display it.
    However, it is not very user friendly.
    Did anyone ever solve this ?
    How do you remain positionned on the line you are working on after saving or execution a BPS planning function?
    Thanks in advance for your answer,
    Points will be rewarded to solutions.
    Filip Ledoux

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi<br>
    There are some APIs which BPS uses internally to save data. You can make a Planning Function of Type EXIT using function moule of your own calling API_SEMBPS_POST (to save data). <br><br>
    You can call this EXIT Function as a step next to your copy function in your Global Planning Sequence.<br>
    Please refer to Note 422998 - SEM-BPS processing large data volumes if you need further details for implementing this solution.
    <br><br>
    Hope it helps.<br>
    Cheers Abhijit</FONT><FONT FACE = "Verdana", Font Color = "Red">
    It's a good habit to reward someone with points in SDN if you think his/her
    response was helpful to you
    </FONT>

  • Reading Data From a Different Planning Package in a Exit Function

    Hi,
    Is it possible to read data from a planning level / package other than the package that the exit function was executed with?  I want to read data into an internal table from another package and use that data in combination with the data in the current package to create new records.  If this is possible sample code for how to read data from a different package would be appreciated.
    Thanks!
    Mel Waldner

    Hi,
    As an example lets say you have restricted 0calmonth in your package to 6.2007. In the planning layout to fetch values for 5.2007 (read only), you can take 0calmonth in data columns, and for this column restrict it as 5.2007.
    Similarly in Planning functions, you can mark 0calmonth as field to be changed and fetch data for 5.2007.
    Hope this helps.

  • Reading manual planning function header data in exit function

    Hello all,
    I would like to know if is there a chance to read header data of a planning function. The planning function is determined by user selection (user choose which value will be in ) and in exit function I then modify the buffer by data which I get by calling RFC on another system.
    My problem is that buffer contain all the planning data for whole planning area (it seems) so there is many unnecessary call. How can I get in exit function value specified by user at start of a planning session?
    Thank you for your help

    Hi,
    There's some issue the planning funciton will only read the data specified by the users (variable values).
    Check the configuraiton once again.
    thanks

  • Problem with Authorization for Planning folder

    Hi an having a problem with providing authorization for a planning folder
    i am getting the following error when i test it with test user
    Error while calling up RFC
    Message no. UPC202
    Diagnosis
    You have selected a function, to execute this the system must set up an RFC connection to another SAP System. However, setting up this connection was not successful. The following internal error message was generated:
    "You do not have authorization for InfoCube ZT_MR_T "
    Procedure
    Inform the system administrator.
    we are not pulling the data from any other server, all the data is on the sif any one has faced the same issue let me know.
    Regards,
    Abraham

    Calling Thru Trans code: BPS0 in ECC 6
    getting this error:
    Error while calling up RFC
    Message No. UPC202
    Diagnosis
    You have selected a function, to execute this the system must set up an RFC connection to another SAP System. However, setting up this connection was not successful. The following internal error message was generated:
    "An error occurred during the receipt of a complex parameter."
    after i check in bw trans code:st22
    Following this error message:
    Category                   Internal Kernel Error
    Runtime Errors         PARAMETER_CONVERSION_ERROR
    Application Component  BC-MID-RFC
    Short text
        An error occurred during the receipt of a complex parameter.
    What happened?
        During a remote function call, an error occurred while converting
        a complex parameter.
    What can you do?
        Note which actions and input led to the error.
        For further help in handling the problem, contact your SAP administrator
        You can use the ABAP dump analysis transaction ST22 to view and manage
        termination messages, in particular for long term reference.
    Error analysis
        An error occurred during the conversion of a complex parameter.

  • Attribute value to exit function module

    Hello group,
    I'm working in a sem-bps project and I have a problem with an exit function, because
    I need the function module to read the value of a characteristic's attribute.
    I read the standard function module UPF_VARIABLE_USER_EXIT_ATTR: it retrieves the attribute value through the import parameters ITO_ATTR TYPE  UPC_YTO_ATTR.
    I put this attribute on my exit function but when I check the content of the attribute it’s always empty. Do you know how I can transmit the parameter from the exit planning function to the function module?
    Any input is appreciated, thanks Andrea

    Andrea, if you want to fill a variable with the characteristic's attribute of another variable look at the document "HowTo_BPS_VarOfTypeExit.pdf" (i send at your e-mail if you want). It Follows an extract in which it's filled the second variable with the characteristic's attribute of another variable: 
    Source code: Attribute values
    SELECT * FROM /bi0/mbps_produ INTO TABLE lt_chavl
    WHERE bps_prodl = ls_varsel-low.
    if sy-subrc <> 0.
    MESSAGE e026(upc) WITH ls_varsel-low '0BPS_PRODL'.
    attribute value not found
    exit.
    endif.
    ls_varsel-seqno = '0000'.
    ls_varsel-chanm = '0BPS_PRODU'.
    LOOP AT lt_chavl INTO ls_chavl.
    ls_varsel-seqno = ls_varsel-seqno + 1.
    ls_varsel-low = ls_chavl-bps_produ.
    APPEND ls_varsel TO eto_charsel.
    ENDLOOP.
    In the example above ls_varsel contains the attribute value to provide to eto_charsel (the output table in which you have the result).
    I suggest you to debug your application to see how ito_attr is passed to the FM.
    Hope it helps.
    Fabio

  • Change Data in BPS Layout: Exit Function

    Hello everyone,
    We are using BW-BPS and we need to make a sort of a certain characteristic in a Planning Folder. In the specific Planning Folder it was defined an exit function and it was assigned a function module.
    We implement the following code:
    FUNCTION Z_ORDENAR_CLASSIFICACAO_PLANO.
    ""Interface local:
    *"  IMPORTING
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(I_PLEVEL) TYPE  UPC_Y_PLEVEL
    *"     REFERENCE(I_METHOD) TYPE  UPC_Y_METHOD
    *"     REFERENCE(I_PARAM) TYPE  UPC_Y_PARAM
    *"     REFERENCE(I_PACKAGE) TYPE  UPC_Y_PACKAGE
    *"     REFERENCE(IT_EXITP) TYPE  UPF_YT_EXITP
    *"     REFERENCE(ITO_CHASEL) TYPE  UPC_YTO_CHASEL
    *"     REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"     REFERENCE(ITO_KYF) TYPE  UPC_YTO_KYF
    *"  EXPORTING
    *"     REFERENCE(ET_MESG) TYPE  UPC_YT_MESG
    *"  CHANGING
    *"     REFERENCE(XTH_DATA) TYPE  HASHED TABLE
      DATA:
        lr_area TYPE REF TO cl_sem_planarea_attributes,
        wa_hash_table type ref to data,
        l_sortfield type STRING,
        lr_t_data TYPE REF TO data.
      FIELD-SYMBOLS:
        <lt_data> TYPE STANDARD TABLE,
        <ht_head> TYPE ANY TABLE,
        <xth_data> TYPE HASHED TABLE,
        <ls_data> TYPE ANY,
        <wa_data> TYPE ANY,
        <fundo> TYPE ANY,
        <eco> TYPE ANY.
      CALL METHOD cl_sem_planarea_attributes=>get_instance
        EXPORTING
          i_area = i_area
        RECEIVING
          er_instance = lr_area.
      CREATE DATA wa_hash_table LIKE LINE OF xth_data.
      ASSIGN wa_hash_table->* TO <ht_head>.
      <ht_head> = xth_data.
      LOOP AT <ht_head> ASSIGNING <ls_data>.
    This is the characteristic that we pretend to sort
        l_sortfield = 'S_CHAS-0CMMT_ITEM'.
        SORT <ht_head>
          BY (l_sortfield) DESCENDING.
      ENDLOOP.
      <xth_data> = <ht_head>.
      UNASSIGN: <ls_data>, <ht_head>.
    ENDFUNCTION.
    When execute this function, we get a DUMP (ASSIGN_TYPE_CONFLICT). Does anybody have any suggestion how to change a hash table or somehow make a sort in this hash table?
    Thanks in advance.
    Ilda

    Hi,
    After some changes in the code, it seems that xth_data table is assuming the “new content”. In debugging, we could see that the assignment was made and xth_data records are now in a different order. But when executing the BPS Layout assigned to this planning function, all the lines (records) still in the same place. The Layout doesn’t change.
    This is the code:
    FUNCTION Z_ORDENAR_CLASSIFICACAO_PLANO.
    ""Interface local:
    *"  IMPORTING
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(I_PLEVEL) TYPE  UPC_Y_PLEVEL
    *"     REFERENCE(I_METHOD) TYPE  UPC_Y_METHOD
    *"     REFERENCE(I_PARAM) TYPE  UPC_Y_PARAM
    *"     REFERENCE(I_PACKAGE) TYPE  UPC_Y_PACKAGE
    *"     REFERENCE(IT_EXITP) TYPE  UPF_YT_EXITP
    *"     REFERENCE(ITO_CHASEL) TYPE  UPC_YTO_CHASEL
    *"     REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"     REFERENCE(ITO_KYF) TYPE  UPC_YTO_KYF
    *"  EXPORTING
    *"     REFERENCE(ET_MESG) TYPE  UPC_YT_MESG
    *"  CHANGING
    *"     REFERENCE(XTH_DATA) TYPE  HASHED TABLE
      DATA:
      lr_area TYPE REF TO cl_sem_planarea_attributes,
      l_sortfield type STRING,
      data_ref TYPE REF TO data,
      lr_t_data TYPE REF TO data.
      FIELD-SYMBOLS:
      <lt_data> TYPE ANY TABLE,
      <ls_data> TYPE ANY,
      <ls_data_copy> TYPE ANY.
      CALL METHOD cl_sem_planarea_attributes=>get_instance
        EXPORTING
          i_area      = i_area
        RECEIVING
          er_instance = lr_area.
      CREATE DATA lr_t_data TYPE (lr_area->typename_t_data).
      ASSIGN lr_t_data->* TO <lt_data>.
      <lt_data> = xth_data.
      CLEAR xth_data.
      l_sortfield = 'S_CHAS-0CMMT_ITEM'.
      SORT <lt_data> BY (l_sortfield) DESCENDING.
      MOVE <lt_data> TO xth_data.
    ENDFUNCTION.
    Does anybody understand this behavior, why the changes in the user-exit are not assumed in the BPS Layout?
    Thanks,
    Ilda

  • Exit Function not writing data to InfoCube

    Hi All,
    I created a planning function where i have defined a exit function. This is just adding 5 KFs and storing that in another KF of the Infocube.
    When I execute that it gives me mesg that 11 records read, 0 of them changed and 0 generated. When i check the contents of the infocube I find nothing being changed.
    Can you please let me know why it is not writing it into infocube. I debugged and find the code in the function module getting executed and it is stopping at the break point but not writing to the infocube.
    An early response is appreciated.
    Tapan
    00 44 7951998123

    The code is given below. let me know if there is something wrong in this.
    FUNCTION Z_BPS_FGE01.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(I_PLEVEL) TYPE  UPC_Y_PLEVEL
    *"     REFERENCE(I_METHOD) TYPE  UPC_Y_METHOD
    *"     REFERENCE(I_PARAM) TYPE  UPC_Y_PARAM
    *"     REFERENCE(I_PACKAGE) TYPE  UPC_Y_PACKAGE
    *"     REFERENCE(IT_EXITP) TYPE  UPF_YT_EXITP
    *"     REFERENCE(ITO_CHASEL) TYPE  UPC_YTO_CHASEL
    *"     REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"     REFERENCE(ITO_KYF) TYPE  UPC_YTO_KYF
    *"  EXPORTING
    *"     REFERENCE(ET_MESG) TYPE  UPC_YT_MESG
    *"  CHANGING
    *"     REFERENCE(XTH_DATA) TYPE  HASHED TABLE
    This example describes how to add a value to a keyfigure
      DATA:    ls_exitp TYPE upf_ys_exitp.
      DATA:    ls_mesg  TYPE upc_ys_mesg.
      FIELD-SYMBOLS:  <ls_data>  TYPE ANY.
    read first parameter
    if there is no parameter raise error message
      READ TABLE it_exitp INTO ls_exitp INDEX 1.
      IF sy-subrc NE 0.
      problem occured
        ls_mesg-msgty  = 'E'.
        ls_mesg-msgid  = 'upf'.
        ls_mesg-msgno  = '001'.
        ls_mesg-msgv1  = 'Exit-Parameter is missing.'.          "#EC NOTEXT
        APPEND ls_mesg TO et_mesg.
        exit.
      ENDIF.
      LOOP AT xth_data ASSIGNING <ls_data>.
    now <ls_data> points to a line of xth_data and can
    be used to reference each characteristic and/or
    keyfigure contained within.
      in the form 'modify_param_value' you can see how a keyfigure
      can be manipulated.
        PERFORM modify_param_value USING ls_exitp
                                   CHANGING <ls_data>
                                              et_mesg.
      ENDLOOP.
    ENDFUNCTION.
          FORM modify_param_value                                       *
    FORM modify_param_value USING ls_para TYPE upf_ys_exitp
                         CHANGING xs_data TYPE any
                                  lt_mesg TYPE upc_yt_mesg.
      DATA: ls_mesg  TYPE upc_ys_mesg.
      DATA:    lw_target type f.
      FIELD-SYMBOLS: <ZTACSPND> TYPE ANY,
                     <ZPOSFEE>  TYPE ANY,
                     <ZLISTFEE> TYPE ANY,
                     <ZFEAFEE>  TYPE ANY,
                     <ZDISFEE>  TYPE ANY,
                     <ZTOTFIX>  TYPE ANY,
                     <struct>   TYPE ANY.
    <ls_data> and therefore xs_data contains two structures
    1.  S_CHAS : Characteristics
    2.  S_KYFS : key figures
    choose second structure which contains the keyfigures
      ASSIGN COMPONENT 'S_KYFS' OF STRUCTURE xs_data TO <struct>.
    choose the keyfigure
      ASSIGN COMPONENT 'ZTACSPND' OF STRUCTURE <struct>  TO <ZTACSPND>.
      ASSIGN COMPONENT 'ZPOSFEE'  OF STRUCTURE <struct>  TO <ZPOSFEE>.
      ASSIGN COMPONENT 'ZLISTFEE' OF STRUCTURE <struct>  TO <ZLISTFEE>.
      ASSIGN COMPONENT 'ZFEAFEE'  OF STRUCTURE <struct>  TO <ZFEAFEE>.
      ASSIGN COMPONENT 'ZDISFEE'  OF STRUCTURE <struct>  TO <ZDISFEE>.
      ASSIGN COMPONENT 'ZTOTFIX'  OF STRUCTURE <struct>  TO <ZTOTFIX>.
    was the assignment succesful?
      IF sy-subrc = 0.
    now <ratio> points at the first key figure, which can be
    manipulated if you manipulate the field-symbol <ratio>
    ls_para-chavl contains the parametervalue
       <ratio> = <ratio> + ls_para-chavl.
    Sum up all five fixed spend InfoObjects and copy the value into another InfoObject ZTOTFIX,
    If the five InfoObjects are empty (zero) then do not copy any thing into the total fixed spend field.
        clear : lw_target.
        lw_target = <ZTACSPND> + <ZPOSFEE> + <ZLISTFEE> + <ZFEAFEE> + <ZDISFEE>.
        IF lw_target  > 0.
    *break-point.
          <ZTOTFIX> =  <ZTACSPND> + <ZPOSFEE> + <ZLISTFEE> + <ZFEAFEE> + <ZDISFEE>.
        ENDIF.
      ELSE.
      problem occured
        ls_mesg-msgty  = 'E'.
        ls_mesg-msgid  = 'upf'.
        ls_mesg-msgno  = '001'.
        ls_mesg-msgv1  = 'Can not assign component.'.           "#EC NOTEXT
        APPEND ls_mesg TO lt_mesg.
      ENDIF.
    ENDFORM.                    "modify_param_value

  • Parameters in exit functions

    Hello
    We have the need to build an exit function in BPS. I have defined the function module and I have also defined a parameter (which I access throuh IT_EXITP within the function module).
    The way we have implemented BPS here requires us to invoke BPS functionality through the API calls. So, for eaxample to call a planning function we use API_SEMBPS_FUNCTION_EXECUTE.  My problem is that there appears no where on this API top provide paramter information. Does anyone know if it is possible to call an exit planning function witht he API and give it a parameter ?
    Thanks
    Cameron

    Hi Cameron,
    unfortunately it's not possible to pass parameters to a planning function using the API. Try using BPS variables instead.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Figure not updated with exit function

    Hi,
    I have created a function module & have attached to an exit planning function, have create a planning folder that contains input layout from manual planning & this new exit function. but when test the planning folder, figure that have already calculated in the function not refreshed to the input layout, i do debug & the assignment value already correct.
    what should i do to make the assignment in function module get updated in the input layout? the figure used in the fm is in editable mode in the layout.
    Please kindly help.
    Thanks in advance.

    Hi,
    Can you tell how you have added this FM in Planning folder?
    For each function, you can define when the function is executed:
    1. Pushbutton: The user executes the function by clicking on a button.
    2. Execute before layout display: The function is executed before the planning layout is displayed. If the function changes data which is displayed in the layout, the changes are immediately visible in the layout.
    3. Execute before layout change: The function is executed when you exit the planning layout. If the function changes data which is displayed in the layout, the changes are not immediately visible after opening the layout.
    I guess you can use "Execute before Layout Display" mode for your planning function in the planning folder.
    Regards,
    Depti

  • Problem with Authorization for BW BPS planning Folder

    Hi an having a problem with providing authorization for a planning folder
    i am getting the following error when i test it with test user
    Error while calling up RFC
    Message no. UPC202
    Diagnosis
    You have selected a function, to execute this the system must set up an RFC connection to another SAP System. However, setting up this connection was not successful. The following internal error message was generated:
    "You do not have authorization for InfoCube ZT_MR_T "
    Procedure
    Inform the system administrator.
    if any one has faced the same issue let me know.
    Regards,
    Abraham

    HI ,
    I Checked it out we dont have that cube in our system.
    Regards,
    Abraham

Maybe you are looking for

  • A flash player that works on EVERY browser/platform ?

    I havea  five minute video that I want to put on my site. I have got Adobe Flash CS3 and have been using actionscript3.0. Its worked pretty much ok on about every PC I've tested it on,  but when I tried to browse it on a MAC, it wanted me to install

  • Major Update Problem - Please Help

    Forgive me if this topic has been covered before, but its late here and I don't have time to trawl through the forums. So, here's the deal. I purchased the iPod Touch software update (the one that lets you use apps) for $12.99 and I was told, after p

  • How far does FLV Support in JavaFX go?

    Currently, I am trying to play various FLV Videos in a JavaFX Application. However I noticed, that most videos cannot be played (YouTube Videos for example). So I'm wondering if there are any specifications that tell which video formats JavaFX actual

  • Tried to open yahoo mail in safari, Safari said I had to turn off private browsing how do I do that?

    Can anyone help me figure out how to get yahoo mail to open in safari? I tried but safari couldn't open it and said I had to go to settings-safari-private browsing- turn off, I tried to find the private browsing section but could not locate it please

  • [svn:bz-trunk] 22848: Add back the fix for Watson 2780086.

    Revision: 22848 Revision: 22848 Author:   [email protected] Date:     2011-10-02 11:00:09 -0700 (Sun, 02 Oct 2011) Log Message: Add back the fix for Watson 2780086. This was originally added in changelist 21123 and then backed out in changelist 21160