Can macros be executed everytime a planning book is opened?
Hi experts,
I am new to APO,can anyone let me know if it is possible to execute the macros by default evrytime the Planning book is opened. In my case i get junk data when i open the planning book for the first time and the values get computed only when i change some cell and hit Enter .
Kindly help me with this problem
regards
Ashwin
Edited by: Wilian Segatto on Jan 19, 2010 3:52 PM
Thanks a lot for the reply.
As i told i am new to APO,can you kindly elaborate on how can i add a default macro to start macro also. How will i find which macro gets triggered when i hit enter in the planning book ?
Kindly help
regards
Ashwin
Similar Messages
-
Step by step to create planning book & Macro's behind it I am a ABAPer
Recently I have been shifted from R/3 to Apo ; Want to know the creation of planing book & the creation of Macro workbench playing behind planning book .
To create planning book.
To create Macro & how to relate a planning book with the macro.
Step by step process from simple to complex .
Different process to programe a macro .
I can understant ( rather I know ) how to relate a badi (Enhancement spot ) to a macro & but please guide me how to define a row of a planing book : such as how to define the row 'Avg Weekly Forcast' of planing book in a single varriable as 'ZAVGWKFST' to capture it at badi in the parameter I_T_LINES[]
(component - FELDH).
To create a custom Button in a planning book & how to program.
I have many broken links while I try to know it by myself.Hi amitabha,
Please find below the detailed steps to define a planning book:
A planning book defines the content and the layout of the interactive planning screen. Planning books are used in Demand Planning and Supply Network Planning. They allow you to design the screen to suit individual planning tasks. A planning book is based on a planning area. You can create several user-specific data views in a planning book. In this step, you create a planning book for Demand Planning.
Procedure
1. Access the activity using one of the following navigation options:
SAP SCM menu Advanced Planning and Optimization Demand Planning Environment Current settings Define Planning Book
Transaction code /SAPAPO/SDP8B
2. Enter the planning book DP_001 and choose Create.
The Planning Book Wizard dialog box is displayed.
3. Make the following entries:
Field name User action and values
Planning Book Enter the planning book DP_001
Planning book text Demand Planning
Planning area Select the planning area DP_001 and choose Enter
Manual Proportion Maintenance X
Promotion X
Univariate forecast X
4. Choose Continue.
5. Assign the following key figures from planning area to the planning book by using drag and drop or choose Add all new Key Figures to add all key figures:
Description Value Comment
History 9AVHISTORY Relevant for Scenario MTS
Forecast 9ADFCST Relevant for Scenario MTS and VMI
Promotion 1 9APROM1 Relevant for Scenario MTS
Forecast (addition.) 9AAFCST Relevant for Scenario MTS
Planned Price 9APRICEFC Relevant for Scenario MTS
Sales Forecast 9AREVFC Relevant for Scenario MTS
Production (Planned) 9APPROD Relevant for Scenario MTS
Manual Correction 9AMANUP Relevant for Scenario MTS
Additional Field 1 9AADDKF1 Relevant for Scenario VMI
Additional Field 2 9AADDKF2 Relevant for Scenario VMI
Additional Field 3 9AADDKF3 Relevant for Scenario MTS
Additional Field 4 9AADDKF4 Relevant for Scenario MTS
Additional Field 5 9AADDKF5 Relevant for Scenario MTS
The Proportional factor APODPDANT key figure is automatically added to your planning area when you create the planning area. You do not have to add this key figure yourself and assign it to the planning book in this step. When you create the respective view, this key figure will be automatically there for your selection.
6. Choose Continue.
7. Assign the following characteristics from the planning area to the planning book by using drag and drop:
Description Value
APO Location 9ALOCNO
APO Product 9AMATNR
Brand 9ABRAND
Sales Organization 9AVKORG
APO Destination Loc. 9ALOCTO
The characteristic 9AVERSION (APO Planning Version) will be added to the planning book automatically after you complete this step.
9. Choose Continue to go to the Data View tab (the Key Fig. Attrib tab is available in the change mode only after you have completed the planning book).
10. On the Data view tab; enter the following values:
Field name User action (Scenario MTS) User action (Scenario VMI)
Data view DP_Standard VMI_Standard
Data view description Demand Planning Demand Planning
TB profile ID (future) DP_4Weeks_5Month DP_4Weeks_5Month
TB profile ID (history) DP_12Month DP_12Month
Status 3 (Changeable) 3 (Changeable)
11. Choose Enter.
12. Select Visible and select the date as of which you wish the past planning horizon to be visible when this data view is opened.
13. Choose Continue, and assign the following key figures from the planning book to the data view for either the MTS or the VMI scenario, keeping the same order as in the table:
Make-to-Stock
Key Figures Description
9AVHISTORY History
9ADFCST Forecast
9APROM1 Promotion 1
9AAFCST Forecast (additional)
9APRICEFC Planned Price
9AREVFC Sales Forecast
9APPROD Production (Planned)
9AMANUP Manual Correction
9AADDKF4 Additional Field 4
Vendor-Managed Inventory
Key Figures Description
9AADDKF1 Additional Field 1
9AADDKF2 Additional Field 2
9ADFCST Forecast
14. Choose Complete.
15. When the Planning Wizard prompt appears, choose Yes to complete the planning book and data view.
16. On the initial screen, change the planning book you have just created by choosing Edit.
17. If you are installing the VMI scenario, continue with step 21 (entering a free text for the key figures).
If you are installing the Make-to-Stock scenario, repeat steps 9 to 12 to create the following views:
Views View Description Key Figures
DP_CLP COLLABORATIVE DEMAND PLANNING
History
Forecast
Forecast (additional)
DP_RELEASE DEMAND PLANNING - RELEASE VIEW
Manual Correction
18. On the Data View tab page, specify the following TB profile IDs for the DP_RELEASE view,
Field name User action and values
TB profile ID (future) DP_12Month
TB profile ID (history) blank
19. Create the remaining views for the Make-to-Stock scenario according to the steps 9-12:
Views View Description Key Figures
DP_LOGISTICS DEMAND PLANNING - LOGISTICS VIEW
Forecast
Production (Planned)
DP_SALES DEMAND PLANNING - SALES VIEW
History
Forecast
Forecast (addition.)
Planned Price
Sales Forecast
Manual Correction
DP_PROP DEMAND PLANNING - PROPORTIONAL FACTOR VIEW Proportional Factor
To modify the proportional factors manually, you need to create a separate data view containing only the APODPDANT key figure to control the authorization to change these factors. This key figure is a default value in the view and is thus invisible, so you do not need to assign any key figure from the right list in this view.
20. Choose Complete.
21. Go to the Key fig. attributes tab, select the FreeText radio button and make the following entries for each key figure. Choose Save Setting after entering the data for each key figure (depending on your scenario).
Key Figures Free Text Relevant for scenario
9AVHISTORY Historical Data MTS
9ADFCST Statistical Forecast MTS and VMI
9APROM1 Promotion MTS
9AAFCST Sales Forecast MTS
9APRICEFC Planning Price MTS
9AREVFC Sales Revenue Forecast MTS
9APPROD Logistics Forecast MTS
9AMANUP Final Forecast MTS
9AADDKF1 VMI Historical Data VMI
9AADDKF2 VMI Customer Forecast VMI
9AADDKF3 u2013 MTS
9AADDKF4 Forecast Deviation MTS
9AADDKF5 Customer Forecast MTS
22. Choose Complete and exit the planning book maintenance.
Steps to create macros in macro wrokbench:
3.7 Creating Macros (SAP APO)
Use
You can use advanced macros to perform complex calculations quickly and easily. Macros are executed either directly by the user or automatically at a predefined point in time. When defining advanced macros, you work in a special desktop environment known as the MacroBuilder.
In total, four macros are created in the Demand Planning building block. They are all defined for the planning book DP_001. You create three macros for forecast calculation according to the following instruction. The chapter Creating the Macro for Consensus-Based Planning describes how to create the alert macro for consensus-based planning.
In the DP_STANDARD view of the planning book DP_001, you create two macros:
The first macro is used for the standard and consensus-based planning. The system calculates the arithmetic average of Statistical Forecast, Sales Forecast and Logistics Forecast, the result of average forecast data plus Promotion Data is inserted in the Final Forecast cell. It enables the user to consider the forecast input and the promotion plan from different departments within the company. The planner can make manual adjustments and enter the final agreed forecast into the Final Forecast cell. All of this information can be shown in the planning book screen.
The second macro multiplies the Final forecast data with the Planned price to calculate the sales volume. The third macro is an alert macro used for highlighting exceptional situations in consensus-based planning.
In the DP_SALES view of the planning book DP_001, you create the fourth macro. This macro multiplies the Final forecast data with the Planned price to calculate the sales volume, which is the same as the one in the standard view.
3.7.1 Creating Macros for the Standard View
1. Access the activity using one of the following navigation options:
SAP SCM menu Advanced Planning and Optimization Demand Planning à Environment à Current settings à Define Planning Book
Transaction code /SAPAPO/SDP8B
2. Enter the name of the planning book: DP_001
3. Select Data view DP_standard.
4. Choose Edit.
5. Choose MacroBuilder MacroBuilder Data view.
3.7.1.1 Creating the Macro for Consensus-Based Planning
1. Right-click the macro node below the planning table and choose Create New Macro Add macro. In the APO Macro Builder dialog box, enter a descriptive text for the macro, for example, Forecast + Promotion Final Forecast. Choose Continue.
2. Right-click the macro and choose Add macro Element Step.
In the APO Macro Builder dialog box, in the descriptive text section, enter a name for the macro step, for example, First Step and choose Continue.
3. Right-click the macro step and choose Add Element (Result Level) à Add results row.
In the APO Macro Builder dialog box, choose Final Forecast in the Row field. Choose Adopt.
4. Right-click the result row you have just created and choose
Add Element (Argument Level) à Add Operator/Function.
In the APO Macro Builder dialog box, choose u201C(u201C.
5. Right-click the operator/function you have just created and choose
Add Element (Argument Level) à Planning Table Element à Append argument row. In the APO Macro Builder dialog box, choose Statistical Forecast in the Row field.
6. Right-click the argument row you have just created and choose
Add Element (Argument Level) à Append Operator/Function.
In the APO Macro Builder dialog box, choose u201C+u201D.
7. Right-click the operator/function you have just created and choose
Add Element (Argument Level ) Planning Table Element Append argument row. In the APO Macro Builder dialog box, choose Sales Forecast in the Row field.
8. Right-click the argument row you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, choose u201C+u201D.
9. Right-click the operator/function you have just created and choose
Add Element (Argument Level ) Planning Table Element Append argument row. In the APO Macro Builder dialog box choose Logistics Forecast in the Row field.
10. Right-click the argument row you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, choose u201C)u201D.
11. Right-click the operator/function you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, choose u201C/u201D.
12. Right-click the operator/function you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, enter u201C(u201D.
13. Right-click the operator/function you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, choose u201CSIGN()u201D and change it to u201CSIGN(u201C.
14. Right-click the operator/function you have just created and choose
Add Element (Argument Level ) Planning Table Element Append argument row. In the APO Macro Builder dialog box, choose Statistical Forecast in the Row field.
15. Right-click the argument row you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, choose u201C)u201D.
16. Right-click the operator/function you have just created and choose
Append Operator/Function.
In the APO Macro Builder dialog box, choose u201C+u201D.
17. Right-click the operator/function you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, choose u201CSIGN()u201D and change it to u201CSIGN(u201C.
18. Right-click the operator/function you have just created and choose Add Element (Argument Level ) Planning Table Element Append argument row.
In the APO Macro Builder dialog box, choose Sales Forecast in the Row field.
19. Right-click the argument row you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, choose u201C)u201D.
20. Right-click the operator/function you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, choose u201C+u201D.
21. Right-click the operator/function you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box choose the character u201CSIGN()u201D and change to u201CSIGN(u201C.
22. Right-click the operator/function you have just created and choose Append argument row. In the APO Macro Builder dialog box, choose Logistics Forecast in the Row field.
23. Right-click the operator/function you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, choose u201C)u201D.
24. Right-click the operator/function you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, choose u201C)u201D.
25. Right-click the operator/function you have just created and choose
Add Element (Argument Element) Append Operator/Function.
In the APO Macro Builder dialog box, enter u201C+u201D.
26. Right-click the operator/function you have just created and choose
Append argument row.
In the APO Macro Builder dialog box, choose Promotion in the Row field.
27. Select the macro and choose Check to check it. Generate the macro by choosing Generate.
28. Move the macro by using drag and drop to the Events section and to the Default folder in the upper right screen area.
29. If you want to continue with the configuration, proceed with the next activity to create the Sales Volume Macro (see below).
If you want to discontinue the configuration at this point, we recommend that you save your settings. To do this, go back to the Planning book Design screen and choose Save. Choose All Functional Areas when the confirmation prompt appears.
Hope this should help you.
Regards,
Umesh -
[ZT] Important points of creating planning book
From one SAP site:
Some hints on the design and usage of macros for background processing:
u2022 Create a separate planning book for each macro background job. The planning book should
contain only key figures used by the macro itself, and only macros executed as activities by
the mass-processing job. Use a different planning book whenever different key figures are
needed by two macros, and a different data view whenever the time periods are different.
u2022 Remove all unused macros from planning books associated with mass processing jobs, as
they are loaded in an unorganized manner which can be performance-intensive. Unused
macros are not helpful to your business process.
u2022 Only those macros that are called by an activity are executed in background. These activities
are: Start, End, Level change. Default macros are not executed automatically, as they are in
dialog. When defining a job, you must therefore first establish which start and default macros
have to be executed and in which sequence, so that your own self-defined macro can work
correctly. Macros for background should not involve actions like setting colors, hiding fields,
display icons, or sending popup windows that are frequently included in default macros for
online use.
u2022 The planning book used for background macros should have only the functionality it uses, i.e.
application demand planning and no other functionality.
u2022 For performance reasons, run macros for a delta period rather than the entire horizon
wherever possible. Under most circumstances, historical data is not changed, other than
adding new periods, one time bucket profile at a time. Rather than performing the full
calculation over a long historical period, run a macro to do this once, and then design a new
macro that only performs the calculation for the u201Cdeltau201D period, or the period that has just
entered the historical horizon.
u2022 If you want to speed up the processing in the APO releases 3.0A, 3.10 and SCM 4.0, you can
create several background jobs with roughly equal numbers of characteristic combinations
and run them in parallel. Make sure that no individual characteristic combination belongs to
more than one selection variant, as this can cause lock issues. For optimum performance the
selections for parallel processing should be roughly of the same size.
u2022 From release mySAP SCM 4.1 you can use parallel processing profiles for running macros,
e.g. for the adjustment of historical data. You can navigate from transaction /SAPAPO/MC8E
directly to the maintenance of parallel processing profiles or start transaction
/SAPAPO/SDP_PAR for direct access. After defining block size and number of maximum
parallel processes you have to assign the parallel processing profile to the selection variant.
The next time you run this selection as background job it will automatically run with parallel
processing.
u2022 If you need to run two macros on the same key figures with the same level of aggregation, put
both into one planning book and execute them as two actions within the same background
activity (defined with transaction /SAPAPO/MC8T, see below). You thus save the time needed
for loading the data for a second time.This explanation sounds very good. I think this is a very first things that we face while implementing.
Thanks for posting this.
My -
Diffrence in data between the datasource and planning book
Hi All,
I have loaded the historical data from an infocube into my planning area then i generated the forecast. In our planning book we have provided some keyfigs like market intelligence etc.,. i have written a macro to add the baseline forecast and market intelligence and saved into a seperate keyfigure, i have defined the macro as a default macro and the macro execution is at "details only". everything is working fine in my planning book.
After extracting the data from my planning area into a datasource, the data is not matching between planning book and the datasource <b>only for the keyfigures which i have written macros.</b>
Please let me know where i have gone wrong and what are other settings to be made to replicate the same data into my datasource.Hi,
Please note that system never execute the macro while extracting data from planning area to infocube.If you want that data to be saved it is
necessary to copy the values to a "non-calculated" liveCache keyfigure.
Each time, you will reenter in the planning book, the new value
calculated will be displayed, it won't be the real current value
from the livecache, it is not inside until you saved.
If you don't save this result, this is only visible on the grid but not
in the planning area and livecache.
Everytime planning book is opened the values for keyfigures which is calculated from macro are re-calculated. If you save these values and
immediately afterwards extract the data, those numbers will be the
same. However, maintaining new values in the planning book without
saving would result in "differences" ...
A DEFAULT macro is also launched while starting the Planning book.
Please read carefully the note #674238.
Regards,
Sunitha. -
Planning book changes transport request failed in quality.
Hi all,
I have to make some changes in Macros for one of our planning book. As per practice I made these changes in Development and tested everything looks fine and created transport request to Quality. Request failed in quality with error code 8. which says individual objects could n to transport succesfully. I further tried to analyze the issue and looked at objects and they look like Slections ids were failed. Can anyone advie how do I locate and correct these - .
I created transport request from function sapapo/tsobj and selected the planning book. I think this has selected all selctions ids also. Later I created another transport request from Planning book and this went through succesfully.
But how I can corect the old transport request which is showing in red light as error.
Thanks
KVHi KV,
Regarding your wrong request, you can't dop much about it.
Don't worry, I will be suprise if you were the first to have a wrong request in your system.
I suggest you check your internal practice to know how to handle this kind of request.
But basically the idea is: do not transport further. If possible "reject" it to ensure nobody will ever transport it.
Another point: in your case it looks like you don;t really want to transport selection. It is however quite useful to do so, especially for the selection used in background job. I often suggest to:
1. Have different naming convention for batch jobs selection and selection for interactive use (you can even control selection creation / usage with autorisation to avoid misuse)
2. transport all selections related to batch job. If you decide to do so, you need to ensure all these selections are correctly defined in your development AND you need to delete this selection in all your target system (to avoid the locking issue you got)
Sorry if all this is a bit outside topic...
I hope it helps
Julien -
Error while accessing DP Planning Book through Portal. ( internet)
Dear SDN,
We are using a collaborative planning book from SCM 4.0 system, which is published as a service on the ITS (6.20 version). This ITS has been published so that we can access the system from the Broadband, simply like any other website.
The ITS URL is :
http://mmscmoptprd.mahindradms.com/scripts/wgate/webgui/!
The planning book service is
http://mmscmoptprd.mahindradms.com/scripts/wgate/clpsdp/!
When we try through our LAN, we can access it.
When entering through broadband, we can see the first page of planning book , i.e. where selection of planning book and planning view is to be made.
Once a selection is made from the dropdown, and when <u><b>"CHOOSE"</b></u> button is clicked (for that matter the rectangular box containing the selection criteria and also the <u><b>Exit</b></u> button ) we get a message as :
<i>Problems with this Web page might prevent it from being displayed properly or functioning properly.
Line : 714
Char : 1
Error : Object Expected
Code : 0
URL : http://mmscmoptprd.mahindradms.com/scripts/wgate/clpsdp/!?client=100&language=en&accessibility=0&DesignBaseUrl=%3A%2f%2fmdwds01.mahindradms.com%3A80%2firj%2fportalapps%2Fcom.sap.portal.design.portaldesigndata%2Fthemes%2Fits&~design=mm_dms_defaultTheme</i>
and it remains on the same page.
The IView used is of the type :
1. URL IView ... CLPSDP service url is given as parameter URL.
2. IAC IView : web-service is "clpsdp" and "ITS url" is given.
We intend to give either one which should work fine.
I am not able to figure out as due to what reason should this problem arise, either the UI attributes or the publishing or something else.
Request you to please help.
Regards,
chandani
ep consultant
www.bcone.comHello,
SInce this is an Portal Error, for quick and efficient replies past it in SAP EP forum.
Thank and regards,
Abhishek -
Security issue after publishing planning book on internet.
Hello experts,
I have published Planning Book of SCM4.1 on internet via integrated ITS.
Now the users can access /SAPAPO/SDP94 i:e planning book via internet.
All the services related to it have been activated in SICF and obejects related to it are published via SE80 like CLPSDP, CLPGLOBAL etc.
Now when a user who does not have authorization for that transaction logins via internet the explorer screen shows the authorization failure below but at the same time also gives SAP EASY ACESS button on the page. On clicking on the icon the users login into the SAP as per the roles assigned to him.
And he can access the system in the same way via internet as we do via SAPGUI.
I dont want to give this access.
Moreover this happens only when authorization for transaction SDP94 fails. If user has authorization he directly sees the planning book and does not gets this button.
Is there any extra service started in SICF which is giving the access even after user is not authorized???
I have checked almost all the services in SICF and tried deactiavting them But no positive results.
Is there any user parameter for the same.??
Kinldy help ???
System information:- SAP release 640 SCM4.1 server.
Best Regards,
YatindraThis URL should answer your question
http://www.cisco.com/en/US/tech/tk86/tk89/technologies_tech_note09186a00800b123c.shtml -
What r the neccessary steps should be taken,when the planning book is lock
What r the neccessary steps should be taken,when the planning book is locked
Hello,
If your planning book is locked .. in the lock entries you can see who is locked the planning book.
It depends on who's (Planners) work is more important and accordingly you should ask the person to come out from the planning book and ask another person to work...
If you want to know Planning book locking Logics then:
As of SAP SCM 5.0, the new locking logic liveCache Lock is available in Demand Planning (DP). The system can use this logic to more precisely lock data you are accessing than it can with the aggregated and detailed locks. The liveCache lock takes intervals into account during selection and evaluates for single values the first wildcard character (*) or the first placeholder for each value. You can activate the liveCache lock in planning area maintenance on the Locking Logic tab page. You can activate the liveCache lock together with the key figure-specific lock. -
Planning Book Macro which can read different key figures from data views
Hi Experts,
I am looking for help to create a Planning book level macro which is having capabilities to read different Key Figure across the different Data Views. For example DataView 1 has Sales Orders and Data view 2 has Forecast and I want put in Data view 3 the netted numbers from SO and Forecast.
Please provide me some quick pointers.
Regards,
Rahul MohnotHi,
Not only is it the easiest way, it is the only way to do it as Laurence has put it. As you can see, macro workbooks are created for a Planning Book/Dataview combination.
Thanks
Mani -
Macro icon to be displayed in the planning book tool bars
Hi Frnds,
Iam trying to display a Directly executable macro icon in my planning book tool bar so that i can execute it directly by selecting the icon from the tool bar, instead of going to left bottom side and executing it.
Please let know how do i do this.
Regards
KrishnaHi Krishna.
In the macro workbench, double click the macro you want to use.
Select the 'Choose' button next to Assigned Pushbutton and select the icon you want on the button.
The Button will now appear on the toolbar.
If the 'No Direct Execution' flag is set, it will not be possible to do this.
Hope this helps.
Mark. -
How can I see the MAD results in my planning book
Hello Gurus:
I'm setting up some statistical models in APO DP and running some test data through them. How can I see the results of the MAD to verify if the models are calculating correctly? I was hoping I can see the monthly MAD values in a key figure in my planning book?
Does anyone know?
AndreaHello Andrea,
As far as I know, I don't think there's a standard key figure or macro could acheive this.
MAD or other errors in forecast are not saved as time series, so I don't know why you want to see them as time series.
You can see the forecast errors in forecast result screen, and if you push comparision button, you can see forecast errors for several last runs.
But I don't know how to put these value into planning book, unless you want to apply your own logic ...
Best Regards,
Ada -
Possible to call a transaction from a planning book using a macro button?
Hi All,
Is it somehow possible to call a transaction using a macro button in the planning book? Also, the current selection should be passed as input parameters to the transaction.
In my example, I am trying to run the transaction /SAPAPO/MC90 - Release to Supply Network Planning from the Demand Planning Planning Book/Data View. This way if planners need to change forecasts mid month for specific selections, they can easily transfer to SNP without having to go out of interactive planning.
Thank you,
MariaHello Maria,
It's possible to call a transaction from a planning book using a macro button.
What you can do is ..... Create a function module and inside it use the command "Call Transaction Tcode" (ABAPer can do this) to call ur specific transaction. And this module can in turn be called from your macro. Please find the below link which explanis how to call a function module from a macro. Do let me know if you need more information on this.
Calling a function module from APO Macro
Regards,
Siva. -
Macro to restrict the users to adjust keyfigure in planning book
HI,
My Planning book is using by all the managers, where i need to restrict a keyfigure to enter manually for few users.
Only for 3 users the keyfigure has to open, when they are in planning book, and all other users should not have any access to enter manually any voulmes in the planning book.
i tried framing a macro, but not successfull.
Is it really Macro required to make this? or any other way that we can make this?
if it is a macro can u brief,me how to proceed for the macro.
Thanks in Advance
Arun R YI know this is not the forum for this question.
There are APO alerts that use APO transaction /SAPAPO/AMON1 - Alert Monitor.
Can this alert monitor be configured to show up in the universal worklist (UWL) in the portal?
if so would these alerts show up in the alert inbox of the uwl just as other sap ECC alerts do?
(the other alerts i speak of are those referenced here (http://help.sap.com/saphelp_nw04s/helpdata/en/3f/81023cfa699508e10000000a11402f/frameset.htm).
Or are these alerts two totally different types of SAP functionality with the same name (ALERT) ?
Thanks
Ted Smith -
How to show an ALV grid in planning book (using macro-exit)
Hi Expertss,
I am using a macro-exit. Now in the execution flow of this macro-exit I am required to shaow an ALV grid. I tried calling a Zreport in which i am calling alv screen(screen type dialog box). It is giving a short-dump saying Exception condition "CNTL_ERROR" raised.
If i comments the fieldcatlog and structure name while calling the ALV in my Zreport then the alv is coming but then planning book is not vivible.
Kindly tell what thing I am missing and what probable thing I can do to make it work.
Thanks a lot in advance.I got the solution.
-
APO DP Planning book cell entry or exit - macro way to validate business rules
Dear All,
We have requirement from business that Demand planner will key in forecast in respective KF, when comes out of one cell and go to another cell to enter forecast, we have to validate the cell value with 3 months average and if it is deviated certain percent we need to highlight with different color.
Note: Planner do not want to enter/save in between moving between planning book cells.
For example: 3 months average is 100. Planner wants to enter forecast in cells continuously for next 12 months without hitting Enter key or save. I want to compare the cell value with average and if its deviated beyond certain level we need to highlight the cell with different color.
I know that we have macro events will work when we hit enter key or save or exit or level change.
I am not sure this is possible, wanted to know any other way possible.
Thanks in advance.
Please share your thoughts.
SreeniThis will be quite difficult to achieve because the planning books are designed so that macros execute after you press enter. There are 3 possibilities that I see
1 - If you allowed the planner to make all their inputs into the required key figure and then press enter, you could easily design a macro to read each cell in the input key figure and compare it to the 3 months average of another key figure then highlight the input cell accordingly using the CELL_BG() functionality as described above.
2 - Alternately you could create a dynamic alert on the input key figure using much the same logic but again these will not generate until enter is pressed.
3 - Another option is to create a macro that asks the user to enter data into a pop-up box which is read into a layout variable. This macro could be triggered from a push button. You could then do the comparison between the value in the layout variable and the 3 months moving average for that particular time bucket and present an error message if it is outside the tolerances that you set. Such a macro could run for all time buckets or for a range of time buckets that the user highlights. Your user will still have to press enter however. The use of some of the macro operators is below:
Overall I think you have to go with option 1 or 2 and generate the alerts at the end of user input
Hope this helps
Laurence
Maybe you are looking for
-
Database 11g installation problem on windows 8 pro
Dear all I had a machine with windows 8 PRO 64bit OS. i need to install oracle 11g database on it please help. Thanks and Regards vikas Edited by: vikas singhal on Apr 18, 2013 10:22 AM
-
Upgrade to 7.1 and Quicktime will not open
I upgraded to QT 7.1 when I got an ipod this week and now I cannot open quicktime at all. I cannot put movies on my ipod due to this. the message I get when I open QT is: "Buffer overrn dectected! Program: C:\programfiles\quicktime\quicktimeplayer.ex
-
Converted GIF Images Does Not Display In Report
I have a wmf file that contains an image. I converted the wmf file into a gif using software A. This image displays correctly in Oracle Forms and Reports (9.0.4). I take the same wmf file and use software B to convert the file into a gif. Using the s
-
Error When Processing Picking List Script.
Hi Experts, I have created Script for Picking List, I am getting the below error when processing ... Error Info... VN 073: Errors occurred while processing output Its working fine when Standard Script SD_PICK_SINGLE is used .. Pls Help. Regards
-
Most compatible with windows?
Hello, After much trawling of the web, this discussion forum & compressor manual, still haven't found what I'm looking for so hopefully this will also be of help to others... I edit material in Final Cut Pro and export material via compressor. This l