cancel
Showing results for 
Search instead for 
Did you mean: 

BPS - Function

Former Member
0 Kudos

All,

I have created a BPS application which will allow users to manually enter plan data. In my enhanced layout I want to add a user exit function which will check the value of one of the CKF and depending on its value will not allow the user to save. So basically, I want to add a user exit on 'SAVE'. If the CKF is not equal to 0, then they should not be able to save.

Can anyone tell me how I can go about this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hope you are in BPS....

Develop a planing function and write the logic with a Fox or ABAP code.

Ravi Thotahdri

Former Member
0 Kudos

OK....but how do I specify in my logic that I want the piece of code to be executed after the layout is rendered?

When creating user exit variables in the query designer, you have the option of using i_step which identifies where you are in the query execution process. I need similar functionalilty here since I want my code to be executed after the table is rendered when the user clicks on save.

Any code samples?

Former Member
0 Kudos

Hi,

You must be using planning folders I suppose to give access to users to planning application? In planning folders, you can specify planning functions to be run on various events like when opening planning folder, while pressing save etc.

Let me know if it helps.

Former Member
0 Kudos

thanks, Mayank.

I am assuming that I will need to create the planning fuctions in upxpm since you mention that I need to create them in the Planning folder, correct? However, I don't see on option to create planning functions in upxpm. Can you please be a bit more specific as to where I need to create these?

Answers (2)

Answers (2)

Former Member
0 Kudos

You must have created planing areas, levels and packages, right?

If you double click the package and momentatiry you will see a bottom screen portion on the lower left opening for you. Go that lower left screen and on the package, right click and you will see a option to planing function.

More at:

http://help.sap.com/saphelp_sem350bw/helpdata/en/0a/242537cedf2056e10000009b38f936/frameset.htm

Ravi Thothadri

Former Member
0 Kudos

thank, Ravi. You are a great help.

I have created the planning function and added my FM. I have set a breakpoint expecting to stop at my code when I click on "SAVE" in the layout but it did not launch the debugger. Is there anything I need to add in the Planning function to make it stop when I click on 'SAVE'?

I went back to UPXPM and right clicked on my layout to select Function attributes but the function attribute option is grayed out. Any ideas?

Former Member
0 Kudos

You cant create [laning function in UPSPM;

You need to do it BPS0 and the a FM if you wish to derive the function in a FM.

In UPSPM, you will see a function attributes button, right click that; select the function to work when the user exits the folder.

Ravi Thothadri

Former Member
0 Kudos

Where in BPS0 do I need to create the Planning function. I see the option in the Planning menu bar but it tells me that I need to "select a node in the related tree". Please forgive my ignorance as I am new to BPS.