Skip to Content
avatar image
Former Member

Exit Function for non-planning purpose

Hi All,

I need to do some non-planning activities in the BPS layout. E.g. Sending mail, updaing Ztable.

I have the ABAP code ready.

How would I make use of that ? Do I have to create a exit function ? I don't want the planning data at all.

Please provide your valuable comments.

Regards,

Shreya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    May 17, 2006 at 07:06 PM

    Hi,

    The best way to do it will be create an exit function and call the code with in the exit function.

    thanks

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 19, 2006 at 01:33 PM

    Hi Anand and Hairi,

    Thanks for the help. It worked fine. I have linked this exit function into automatic execution of manual planning.

    It doesn't seem to be working when I save data in the layout in the web interface.

    It works fine when I click on the button which is linked with the exit function.

    The manual planning layout and function are in different layouts.

    Am I missing any thing ? Please let me know.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 18, 2006 at 10:17 AM

    Hi Anand,

    Could you pls explain more on this ?

    I understand that exit function should have specific import export parameters.

    But I don't need these. In this case how would I go ab it.

    Any good docs on this ?

    Regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi All,

      here are the steps that you should do,

      1. Create a planning level below an are and select one characteristic (you can select multiple also)and one key figure, Key in the selection value for the charactertic so that no value will be fetched from the cube the most ideal one will be a fiscal year period value of 12/9999.

      2. Create an exit-type plannig function below this level, this will provide you an option for entering 2 function modules one for INIT and other for processing. Create the INIT function with the standard interface (F1 on the field will give sufficient information).

      3. In this INIT funciton you can write code for doing any non planning activity like call another FM to send mail or update a data base table.

      4. Add this planning fnuction to the planning folder as a button and also in the web interface (if you use web).

      let me know if you need any more information

      thanks

  • avatar image
    Former Member
    May 18, 2006 at 03:57 PM

    Hi Anand,

    I had created the exit function. Mistake was I have used the same package which I use for manual layout.

    I didn't use the FM initialization.

    As per selection in package , I had 7 records.

    I observed that, the exit function module was called 7 times. Thus it has updated my Z-table for 7 times !

    Why is this behavior ? I was under impression that the XTH_DATA will be filled at a stroke as per the package selection.

    Let me go ahead as per your guidance to create a level which will no return any records.

    What's the benefit of using FM initializatio in this case ?

    Thanks a lot , you are ab to win this !

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Exit function is called depending on selection of fields in "Fields to be changed".

      If you include all fields of the level in "Fields to be changed", exit funciton is called only once.

      hope that helps.

      Hari Immadi

      http://immadi.com

      SEM BW Analyst

  • avatar image
    Former Member
    May 18, 2006 at 05:30 PM

    Thanks ! I could do this by adding the exit function in the FM initialization.I have taken care that package will not return data.

    Last thing I wanted to know about messages. I don't want to show the standard messages "0 records changed ..." !

    Users wouldn't understand that.

    In my function I have filled the message table to give my own messages. My messages are displayed along with standard message !

    Generally how do we customize the messages ? I would also like to change the messages like "Cube can not be planned" or "Planning area is locked by user".

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      take a look at message class UPC for the messages you requested. These messages are stored in this class though it's not recommended to customize these standard messages.

      hope that helps.

      Hari Immadi

      http://immadi.com

      SEM BW Analyst

  • avatar image
    Former Member
    May 19, 2006 at 01:41 PM

    Hi,

    I have tried by linking the "Function After Data Change"

    property of the web interface. Still no luck

    Please suggest your inputs.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded