on 11-28-2011 6:49 AM
Hi,
I have a requiremnt where we have a Forecast and Budget planning in the same application but the cost calculation is different and i am planning to create two different BADI to calculate the cost (one for Budget and one for Forecast).
The Idea is in the Default.LGF, just read the first record and if the Category is "BUDGET" the call the Budget calculation BADI and if the Category is "FORECAST" then call forecast BADI.
My question here is how to read the first record without reducing the scope in Script Logic??
Regards,
Meiyalagan
As far as i know we can not incorporate such conditions in script logic. You can implement same logic in BADI . At the start up of each BADIi read ct_data and check for category . For example category is forecast include the code & if category is not forecast do not include any code or write back any data .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the answers. We have already thought of bringing entire logic to BADI. However i just wanted to check if any options we have in Script logic.
Regards,
Meiyalagan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I agree you can do something in the BADI itself. If the paramater is BUDGET then call a BADI method or the forecast.
As you already have separate BADIs for Budget and Forecast, is it not a feasible solution not to have anything about this in default logic. Let first users submit data (input schedule or data upload or fro BW) and schedule a package which calls the specific BADI by way of script logic. The package can have the required category selection.
Thanks,
Sreeni
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.