Holidays in Planning books
Hi,
In our Demand Planning scenario, our horizon is for one month with daily buckets. Sales person gives demand on daily basis.
Grateful, if somebody suggest me on how to make planning book columns display only for holidays (sales person will not be able to enter demand in planning book on holidays).
Thanks & Regards,
SP
not sure if you want this in a DP or SNP book... and i assume you have a daily bucket in your planning book/data view
you can use calendars in a location in SNP and in DP you need to set up a factory calendar in the time stream id for the storage bucket profile. this factory calendar will have the Holiday calendar in it
after this you can use one of the two macros to determine the work days in the bucket. you apply this to your daily bucket and save the value (say, WDAY) returned for work days = 0 or 1
BUCKET_WDAYS( <calendar> ; X1 ; ... ; Xn) returns the number of workdays in the periods given by the cell(s), row(s), and/or column(s) (not areas) X1 through Xn. In the attributes of the argument elements, you must specify Period data as the data source. The specification of a calendar as the first argument is optional. If you do not specify a calendar, the system reads the calendar given by the time stream in the storage buckets profile. If no time stream is defined, the system uses calendar days
CALENDAR_WDAYS( calendar ; from date ; <to date> ) returns the number of workdays between the from-date and the to-date in the calendar specified. The calendar is the timestream ID.
then if WDAY = 0
use Column_input( 0 ) to make the columns display only
else keep it open
Similar Messages
-
Key figure display in planning book with respect to Time bucket profile
Hi,
I am loading a key figure to planning area from the info cube for the current month. When I review the key figure in planning book with monthly time bucket profile it shows 85 for the current month. In the same planning book with weekly bucket profile, it shows 55 from the current week and future weeks and the remaining 30 goes into the past weeks of the current month.
How to make the total quantity 85 to show in the current and future weeks only.
thanks and regards
MurugesanHi Murugesan,
Within the Planning Area, the data is stored at the lowest level granularity that you maintain in storage bucket profile. Then during display, system will decide what data to show depending on what kind of time bucket profile you use in the planning view, and the time based disaggregation that you maintain for Key Figure.
In this below case, what time characteristic do you have in cube? Is it date, week or month?
If it's date, check how much KF data is maintained on the dates which belong to week which has days both in this month/last month e.g. if I talk about Dec 2011, how much data is stored 1,2,3 & 4 th of Dec, 2011.
This data would appear in Dec in monthly view, but in week, it would appear in the week starting 28th November.
If data is maintained in cube in weeks, then you need to calculate how time based disaggregation would show it to you in months.
If it's months, then you would need to find out how much data would go to the days in the past week of the month.
The time based disaggregation may be causing you some issues, but in that case, I would not expect 30 out of 85 to go in the past week, unless you have data in cube in days.
Data shown in weekly view for week starting 28th Nov should ideally be a small proportion of 85, unless you are using a time stream/fiscal year variant, due to which most of December is in holidays. The only other exception I can think of is that you have data in teh days mentioned above.
It would be best to help the business understand this disaggregation logic, rather than thinking of manipulating the data to shift to a later week.
If this logic doesn't explain your situation, then please provide the date/week/month at which you have data in cube, and what quantity.
Thanks - Pawan -
Error in updating ALV field catalog in selection tool for Planning Book
Hi ,
I am Implementing BADI '/SAPAPO/SDP_SELECTOR' to upload Custom Fields Data in Planning Book Selection Window under APO Location Product. These Custom Fields are maintained in Custom Table.So from Table whatever Custom Fields are availabe all the fields needs to be available in for selection. Once selection is done the same data to be uploaded into Planning Book.
This BADI is working Fine upto 4 fields but if any extra fields are added in the table 'Error in updating ALV field catalog in selection tool' error Pop Up is coming. Here i am using Folloowing Methods
1). INIT_OBJECT_LIST
2). F4
3). LOC_PROD_VALUE_LIST
Please help on the same if u have any idea or clue.
Thanks.Hi Srinivas!
Where did you get your implementation from?
It would be nice if you could debug your code!
For the F4 method, have you seen this note?
Note 544904 - Sample source code f.BAdI /SAPAPO/SDP_SELECTOR ('F4'method)
Also check this note. It contains selection modifications in the BAdI:
Note 376902 - SDP selector: Basis corrections for BADI
I do not know your release and support package in your SCM, but you can find a lot of notes related to this BAdI.
Thank you!
Will
SCM Support Consultant -
Upload data from Excel to the Planning Book
We are on APO 5.1. We have APO DP at the moment. I wanted to test upload of data from Excel to the planning book. I have tried several times. I have been unable to see any changed data in the planning. I do not get ANY errors during the upload. But I cannot see any changes that I made in the excel in the planning book. Please let me know what I am doing wrong. These are the step that I follow.
1. Go to planning book.
2. Short list only one key figure e.g Customer Forecast.
3. Go into Details All mode.
4. Download the file using the "Prepare File for Upload" option.
5. Open the saved Excel.
6. Change the values in the excel , save and close.
7. Upload the excel into the planning book using the upload file option.
I do not get any errors during all these steps. However, when I check to see if the values have been updated, the changes made in the excel are not updated in the planning book.Hello,
Instead of selecting one key figure in data view, please select all key figures of the planning book and then try all the steps which you have carried out.
please revert after you carry out this.
Regards,
Prafulla -
Key figure Explaination in SNP planning books 9ASNP94
Dear Experts ,
I am curious to know regarding SNP planning books key figures
when i am exploring sap standard Planning book
9ASNP94
Data view : SNP94(1)
I can able to see many KEY FIGURES Please refer below
I AM NOT SURE how they are used in planning , i mean what is clear definition of those key figures and i see some key figures are grey out and some or open for entry
how to find those detail information
when i go to T code SDP84 - define planning book
i can able to see those descrption and infocubes but not sure how to understand clearly , would be more thankful if some give me a clear explaination of it
Forecast TXT
Sales Order TXT
Distribution Demand (Planned) TXT
Distribution Demand (Confirmed) TXT
DistrDemand (TLB-Confirmed) TXT
Dependent Demand TXT
Total Demand TXT
Distribution Receipt (Planned) TXT
Distribution Receipt (Confirmed) TXT
Distribution Receipt (TLB-Confirmed) TXT
In Transit TXT
Production (Planned) TXT
Production (Confirmed) TXT
Manufacture of Co-Products TXT
Total Receipts TXT
Stock on Hand TXT
Supply Shortage TXT
Safety Stock TXT
Reorder Point TXT
Target Days´ Supply D
Target Stock Level TXT
Days´ Supply D
ATD Receipts TXT
ATD Issues TXT
Many thanks & Regards
RajHi
Please find below the short summary of each key figures.
Forecast TXT :- FCST which has been released from APO DP to APO SNP
Sales Order TXT :- Sales order transferred from ECC to APO via CIF.
Distribution Demand (Planned) TXT :- Dependent demand coming from other location to this location for same product. Network planning
Distribution Demand (Confirmed) TXT :- In case deployment , we confirm the Distribution Demand (Planned) will appear her.
DistrDemand (TLB-Confirmed) TXT :- Mainly used in case of TLB.
Dependent Demand TXT :- Dependent demand coming from parent product in case of BOM
Total Demand TXT :- The sum of all above demands is called as Total Demand.
Distribution Receipt (Planned) TXT :- SNP created Purchase req will appear in this key figure.
Distribution Receipt (Confirmed) TXT :- In case of deployment Distribution Receipt (Planned) will be get confirmed in the Distribution Receipt (Confirmed) key figure.
Distribution Receipt (TLB-Confirmed) TXT :- Mainly used in case of TLB.
In Transit TXT :- In will contain the in transit stock which will transfer for ECC via CIF.
Production (Planned) TXT :- Planned order will get created via SNP in case of domestic mfg.
Production (Confirmed) TXT :- In case of SNP deployment Production (Planned) will be get confirmed in the Production (Confirmed)) key figure.
Total Receipts TXT :- Total of all the receipt elements as been used.
Stock on Hand TXT :- Stock has transferred from ECC or R3 via CIF.
Supply Shortage TXT :- This will be calculated with macro based on total demand and total receipt.
Safety Stock TXT :- Based on SNP master data, safety stock will get calculated during planning run.
Reorder Point TXT :- Based on SNP master data, Reorder Point will get calculated during planning run. . There are different methods of calculating safety stock.
Target Days´ Supply D :- The safety stock defined in number of days appears based on SNP master data in APO.
Target Stock Level TXT :- Get calculated by macro based on Target Days´ Supply D and total demand in future.
ATD Receipts TXT :- Mainly used for Deployment.
ATD Issues TXT :- Mainly used for Deployment
If you require any specific information for any key figure please do let me know.
I hope this will be useful for you.
Thanks
Amol -
Excel upload data to planning book not working
Hello Gurus,
i have checked the online resources first before posting this thread here as this is most old topic relating to upload of excel data to planning book key figures.
Here is what i have done so far
1) from the planning book, i chose a view and downloaded the file to desktop and saved it as CSV. i populated the key figure values and saved the csv file as-is back to desktop
2) i had to remove the hdeader from the file as APO threw back an error that it could not interpret the period (header) as the number
3) when i took out the header i simply pasted the values and the file was ok
4) i went to planning book, loaded the file, checked the file and it said that the data was read and i clicked on upload the file
5) everything was green, then but i do not see the values in the grid of the planning book
what else i'm missing.
can someone please help me
thanks
RaviHello DB and Ada. Thank you for your valuable suggestions. I know i might be missing something silly here. If i keep the header that i downloaded from the planning book into csv file, i get an error while uploading the file back to planning book that unable to interpret 11/2014 as a number.
P11/2014 is the header, Period 11/2014 is the fiscal period. we plan in fiscal periods.
if i take out the header from the csv file and just populate the key figure values, then i do not get any error when i load the file back to planning book, but then the values do not show up in the planning book grid.
i'm keeping the planning book in the change mode while uploading the file as i got that error saying that i need to keep the planning book in change mode for the file to load data properly to planning book.
Thanks
Ravi -
Meaning of CONDET key figure in standard 9ASNP94 APO SNP planning book
I am trying to clarify the use and meaning of the CONDET (capacity consumption details) key figure in the SAP standard SNP planning book 9ASNP94.
Any advice appreciated...Hi Frank,
This indeed is practical requirement wih no simple solution ( at least we did not find).
We created a background job for deletion of the stocks ( which were updated through IDOCs like your situation) at specific periodicity. The jobs were made as per planners with specific variants and when planner would like to delete the stocks, the job will be run.
Another option could to be copy the standard program /SAPAPO/RLCDELETE to a module program and check validation at the input screen, before calling the deletion program.
Regards
Datta -
How to extract data from planning book
nu t apo. need help regarding how to extract data from planning book givn the planning book name , view name & some key figures.
Total Demand (Key Figure DMDTO):
o Forecast
o Sales Order
o Distribution Demand (Planned)
o Distribution Demand (Confirmed)
o Distribution Demand (TLB-Confirmed)
o Dependent Demand
Total Receipts (Key Figure RECTO):
o Distribution Receipt (Planned)
o Distribution Receipt (Confirmed)
o Distribution Receipt (TLB-Confirmed)
o In-Transit
o Production (Planned)
o Production (Confirmed)
o Manufacture of Co-Products
Stock on Hand (Key Figure STOCK):
o Stock on Hand (Excluding Blocked stock)
o Stock on Hand (Including Blocked stock)
In-Transit Inventory (Cross-company stock transfers)
Work-in-progress (Planned orders / Process orders with start date in one period and finish date in another period)
Production (Planned), Production (Confirmed) and Distribution Receipt elements need to be converted based on Goods Receipt date for projected inventory calculation.Hello Debadrita,
Function Module BAPI_PBSRVAPS_GETDETAIL2 or BAPI_PBSRVAPS_GETDETAIL can help you.
For BAPI BAPI_PBSRVAPS_GETDETAIL, the parameters are:
1) PLANNINGBOOK - the name of your planning book
2) DATA_VIEW - name of your data view
3) KEY_FIGURE_SELECTION - list of key figures you want to read
4) SELECTION - selection parameters which describe the attributes of the data you want to read (e.g. the category or brand). This is basically a list of characteristics and characteristic values.
BAPI_PBSRVAPS_GETDETAIL2 is very similar to BAPI_PBSRVAPS_GETDETAI but is only available from SCM 4.1 onwards.
For the complete list of parameters, you can go to transaction SE37, enter the function module names above and check out the documentation.
Please post again if you have questions.
Hope this helps. -
SNP - Planning Book/Data View not showing up in /SAPAPO/SNP94
Hi All:
I created a planning Book out of a custom SNP planning area. While I could see the Planning Book in the list of Planning Book in the /SAPAPO/SDP94 - Interactive Supply Network Planning (all Books) I could not see the custom planning book in /SAPAPO/SDP94 - Interactive Supply Network Planning (all Books) . I could ony see the SAP supplied PB there. Will SDP94 transaction display only the standard SNP Planning book? How can I make sure that the custom PB is displaed in /SAPAPO/SDP94?
pl. help
Thanks
RyanHi Narayanan,
a couple of simple checks..
can you please check that you have not set a filter critera in the shuffler in planning book/data view?
you can also check if by mistake only a limited number of users are assigned to this planning book and data view ?
else you may want to check note : , 327371
Let me if this helps.
Rgds, Sandeep -
How to create a custom Button in a SNP planning book
Hi Experts,
I created my own Planning Book and Dataview in SNP with 3 Key Figures: KF1, KF2, KF3. Now I want to create one my own button with Macro so that when I press that button, the Macro will run to calculate: KF3 = KF1 + KF2.
I know that I can drag this Macro to one of default events like: Default, Level Change, Start. But actually, I want to create my own button so that I can handle the event as I want.
My question are:
1. How to create a custom button on the toolbar of SNP Planning book and writing macro for the button?
2. Please give me any document, material teaching about writing macro and relating to my above scenario.
Thanks very much!
Duyennx
Edited by: xuanduyen on Sep 6, 2011 9:20 AMHi,
Access the transaction "/n/sapapo/advm". In the list select your planning book/ data view and click 'Start Macro Builder' button.
In the Macro builder screen, drag and drop your macro from Macro depot to the work area.
Right click on your macro name and select 'properties'. In the pop up, next to the Assigned Push button field, there is a button 'Choose'. Click that. It will display all the available icons. In standard system, it displays more than 1000 icon. Choose any one icon which is suitable for your macro function. Close the pop up and save the macro. This will assign a push button to your macro.
In the Planning book tool bar, you can see the selected icon in the header tool bar. Just by clicking that icon, you can execute the macro interactively.
And I don't know whether we can include/design our own icon. But there are already 1000+ standard icons to choose.
Regards,
Manimaran M. -
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 -
Error while loading the planning book
Hi There,
I am getitng the below error while loading the data in planning book
"Error for COM routine using application program (return code 40,016)
Error reading data - Planning book cannot be processed further"
Ran /SAPAPO/TS_LCM_CONS_CHECK and /SAPAPO/TS_LCM_REORG but its not working , still getting the same error.
Could you please advise?
Thanks,
KrishnaHi Krishna,
Looks like a key figure might be incorrectly created or there might be a problem in aggregation/disaggregation of key figures due to numerous number of CVCs.
Regards
JB -
Error -- While Uploading Data into Planning Book
Hi all...
working on SCM 4.1...
In Planning book...while loading the data of one SKU-Location into the PB , i am getting the below error...
"Overflow during propagation calculation: Number too large"
Message no. /SAPAPO/OM_TS078
Diagnosis
An overflow occurred while propagating a change to a key figure within the LCA routine.
In this case an internal error in the LCA routine is concerned.
*ProcedureCreate an OSS message as detailed in SAP Note 167280.*
can anybody help me to resolve the same as i couldnot ablt to view the data in planning book for one of the Product-location.
Regards,
Rajesh PatilHi Senthil,
For Some of the SKUs it is giving the Error , some abrupt values are stored in Live Cache for these SKUs(CVC), thats why it giving the Error.
The only solution is ..i have to delete the CVCs and create new one...
But i will loose the data as we cant take the Backup of Old CVC data --> Giving COM Error
The reason of Abrupt Values in Live Cache Could Be -->.>
Macro/Alerts
How can we fix these types of Error , as regularly i am getting these Error??
Is there any Note/Patch to overcome this issue?
Will be GR8 if i will get the solution..
Regards,
Rajesh Patil -
Unable to release transport request for modified Planning book from Dev Sys
Hi All
can someone advice on this:
We have included a new key figure to our existing Planning book, which is already defined in Planning Area. This key figure is just getting shipping data for comparison and is not having any impact on macros also. We inserted key figure and set the attributes as output only and all looks good in Development system. But when we created transportation request and trying to release request it is giving error "Test Call of transport control program (tp) ended with return code 0208" Message no: TK094
can any one advice on this
KVHello,
Please check with Basis team. I think this is not related to planning book that you are trying to export. A look in the message text gives the following:
Check the following points:
Feasibility of the transport control program tp
Parameter settings in the transport profile
Availability of the transport directory and the subdirectories (cofiles, data, log, sapnames, bin)
Write authorization for the subdirectories
Write authorization for the files of the subdirectories cofiles, data, log, sapnames
Release the request again when the error has been removed.
Hope this helps.
Warm regds,
Ashutosh -
How to find out the latest changes in Planning Book
HI Experts,
Please let me know, is there any way to find out who has changed the values in Planning Book and when ??Hi Srini,
We also have a similar requirement wherein we want to know who has changed the values in DP. Fortunately we have an additional key figure, which we are not using at the moment. We intend to write a macro wherein we can copy the key figure that is to be monitored copied in that new key figure at every exit of the planning book(exit macro). When the old value is changed, we will copy the old value in the new key figure (using an exit macro) and also generate an data base alert which will help us to capture the details of the change, that is, user id, time of change and the quantity of change.
Let me know if this suggestion suits your requirement.
Rgds, Sandeep
Maybe you are looking for
-
This was only 1 page, not a large amt of printing?
This was only 1 page, not a large amount of printing?
-
How do I insert a page into multiple .PDF files?
Hi everyone, I have several hundred PDF files every month, and I need to insert a page at the end of each document. The files and insert are in PDF format. What is the easiest way to do this? I am using Acrocrbat 10. Thank You
-
i need function module such that to convert sap format to pdf format.... if source code available attach it plz
-
How can I transfer video (and photos) from my iPhone to my Mac for editing?
-
HD Audio through XtremeGamer Pro?
I am backing up Blu-Ray movies : to my HDD and starting an HD library. I am using a XtremeGamer Pro to output audio through 3x3.5mm to 6 RCA jacks (which is considered multichannel analog). Several sources out there say HD audio can be passed through