cancel
Showing results for 
Search instead for 
Did you mean: 

Exit Function for non-planning purpose

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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

thanks

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

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

property of the web interface. Still no luck

Please suggest your inputs.

Regards,

Former Member
0 Kudos

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,

Former Member
0 Kudos

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,

Former Member
0 Kudos

take a look at this thread & I had same requirement in the past.

SEM - Hide Warning & Information messages ?

Solution for this is a big "NO" atleast in GUI as per Marc.

He also mentioned that this can be achieved in WEB Interface.

hope that helps.

Hari Immadi

http://immadi.com

SEM BW Analyst

Former Member
0 Kudos

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

Former Member
0 Kudos

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,

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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