on 04-14-2005 4:23 PM
We are trying to use BPS for a slightly different purpose. We need a front-end to enter sonme data into a transaction cube. The issiue we are facing is we wish to execute a plnning function just before SAVING without having the user press any other button. Could anybody tell me if that is possible & how it can be achieved.
Would appreciate any help.
Thanks.
you can create a planning sequence, put your planning function before the save function.
The save function hould be user exit which is include the FM UPC_FUNCEXEC_SAVE.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could include the planning function in the folder & change it's attributes as "Execute Funciton before layout display" or "Execute function before layout change" as per your requirements.
You could use planning funciton as automated planning funciton in the LAYOUT BUILDER also.
Should the results (from automated planning function) be visible to users?
It all depends on your scenario. we could answer more if you could elaborate more on your scenario.
Actually, what we are trying to do is perform some validations before the user can Save what is entered. The validations are quite simple e.g. User is required to enter 2 dates - From & To . One of the validations is To Date must be >= From Date. The problem is if it a valid date the user can still Save his entry. We want the validations to be performed when the user hits Save & give an error message if the validation fails. We are using a fox formula function to perform the validations.
Hi Anita,
Looking at the scenario you describe, I am afraid your error message from FOX is not going to prevent saving even if validation fails, because the value is still valid by SAP criteria. Also, multiple planning steps could have been carried out before the validation. You are dealing with the entire buffer. Usually it would take a custom FM to handle this. Please share your method if it works.
William
Hi William,
The method worked but only in the SAP GUI. When we Web-enable the planning folder , it switches the function attribute to 'Execute function as a Push Button' even though we select 'No' when it pops up a message for adjusting.
To answer your question below, a hard error in the fox formula prevents the save so that part works.
I have to apply this functionality to save my Web Planning Folder after the execution of a function which is a fox formula.
I call the function UPC_FUNCEXEC_SAVE at the end of my Fox Formula as explain above but the save is not complete... Or I have wrong ?
************************************************************
Save Planning Data *******************
************************************************************
FLAG = ' '.
CALL FUNCTION UPC_FUNCEXEC_SAVE
EXPORTING
I_NO_TRANSACTION_DATA = FLAG
IMPORTING
ET_MESG =
ET_MESG =
.
Could you help me?
Thanks in advance,
Ramak
Is there a way to execute the function after save?
This option 'Execute function before saving' could be great but i need to execute function after save.
The function i made move data from a transactional cube (Tx) to another cube and if the data is not save the function dont send data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anita,
How would the system know it is time to execute the function?
William
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.