Forward / backward consumption Logic ( Macro) in DP Planning book

Hi ,
      i need to have Forward / backward consumption Logic ( Macro) in DP Planning book .
For example- say i have keyfigure - A , B.  Kefigure B need to consume the value of keyfigure A ( forward/ backwrd)  in DP planning book .
Is there any std  MACROfunctionality to do this? 
If NO. how we can write macro for this requirement ?
Regrds
Rajesh

Hi Aparna & desai,
          Macro function - DEMAND_CALC( ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION ; ) will work only when we manintain product master with version and if we work in that same planning version. means every time it will go and refer product master setttings of 1) strategy 2) forward consumption days 3) backward consumtion days. So its more usful in SNP planning book.
But i am working in DP planning book and version which i am working is  not involved in product master. so i hope this function will not work.
Is there any otherway  to achive this with time series keyfigure . what logic i can use for macro?
Regrads
Rajesh

Similar Messages

  • Backward- Forward  and Forward- Backward

    Hi, all!
    Can you explainfor me about +Backward- Forward  and Forward- Backward+ in General Setting-> Inventory tab-> Planning.
    I don'nt understand it, can you make clealy
    Thank you!

    Hi....
    Consumption Method – there are two available methods of forecast consumption
    by the Sales Order:
    • Backward- Forward – In this method, the Sales Order first goes
    backwards to 'consume' the forecast which is closest to the Due Date of
    the order and continues to the first day of the range if required (as
    defined in Days Backward field below),
    After that, if no forecast is found (or the forecast, which was consumed,
    was insufficient) the Sales Order goes from the Order's due date and
    forward (see an example below).
    • Forward- Backward - In this case the sales order goes forward to
    'consume' the forecast which is closest to the Due Date of the order and
    continues up to the last day of the range if needed (as defined in Days
    Forward field below). After that, if no forecast is found (or the forecast,
    which was consumed, was insufficient) goes from the Order's due date
    and backward.
    Days Backward - Defines the maximum number of days for the Sales Order to go
    backwards in order to 'consume' the forecast.
    Days Forward - Defines the maximum number of days for the Sales Order to go
    forward in order to 'consume' the forecast.
    If you are not yet understand you can search in SAP Portal a note that related to that.
    Or if you want, you can send me your email address and i will send you the PDF file about MRP.
    It has complete explanation for you to know.
    Regards,
    Lina Yuanita

  • Standard FM to trigger events using planning book macro

    Hi Folks,
    I'm wondering if there is a standard FM that would allow me to raise event through the use of pb macro?
    I know how to acheive it through custom FM but I would like to know if there is any standard sap solution available for the same.
    Thanks

    Hello,
    It is not clear to me what do you want to do. Do you want to trigger an event from using a Macro in the Planning Book?
    You can create a User function Macro (I suppose this is what you said that you want to avoid).. please read this note:
    631499
    - Using the user function Macro
    Other option is to raise events using function BP_EVENT_RAISE. Check this thread:
    User function macro to trigger events
    Kind Regards,
    Mariano

  • View db alerts generated in planning book A from within planning book B?

    Hi,
    I have a db alert macro implemented as a default macro in one of our SNP planning books/data view. This is correctly generating db alerts per the criteria coded into the macro. In Alert Monitor, the database alerts show the planning book (book A) and data view (view 1) from which the alerts were generated.
    The planners monitoring this specific alert do not have/should not have access to planning book A and data view 1,  but will have access to a different planning book (B)/data view (2) within the same planning area.
    Is it possible to generate a db alert from a default macro residing in planning book A, data view 1 but have the db alert as viewed in Alert Monitor display a different planning book (B), data view (2) so that when the user launches Supply Network Planning by right clicking on the db alert, the user is taken to planning book B, data view 2 with the alert selection loaded?
    In short, I need to generate db alerts via a default macro in one planning book/data view but must enable planners who monitor these alerts to do so in a different planning book, data view -- all within the same planning area.
    I saw an earlier thread (id 4517019) that seemed to indicate this was possible to assign db alerts generated in one planning book to another planning book,  but it was not clear how to implement this. We are on APO version 4.0. In the macro's Alert/status element properties I do see a section called 'Different Source' which allows me to specify a different planning book and macro. However, I do not understand how this is meant to be used and whether this will be useful to me.
    I would appreciate any help you can offer.
    Thanks!
    - Heidi

    Saradha,
    Thank you for your reply! I checked the various versions of SAP help and found that only as of Release SCM 4.1 can you assign the alerts that are generated in a planning book/ data view to another planning book/data view via the mechanism you explained.  That tells me that perhaps in SCM 4.0 there is no straightforward way of doing this.
    In 4.0, when I double click the macro alert element I see different attributes - one of them is in a section titled 'Different Source' and contains to fields - one that allows you to specify a planning book and the other to specify a macro in that planning book. I'm experimenting with that now to better understand what it's purpose is. If you have any idea, please let me know. Otherwise, thanks very much for your response!
    Thanks,
    - Heidi

  • Unfreezing the Months in Demand Planning book.

    Hello Experts,
    User has limited access of change mode (6 months) in a particular demand planning book. User wants to extend the change access horizon to 10 months.
    Please guide me what necessary steps to be taken so that user has access to do changes for next 10 months instead of 6.
    Thank you in advance, points assured .
    Regards
    Rahul Chitte

    Hi Rahul,
    We really need more information here to help you.
    Let me try and help in guiding you towards that.
    Question: Is the user able to see 12 months (May to Apr), but able to change only 6 months (May to Oct ), or the user is able to see only 6 months (may to oct) and unable to see next 6 months (nov to apr).
    Scenario 1: User is able to see all 12 months but able to change only 6 months.
    Possible Cause - There is no standard setting that lets lockout few periods alone. However pls do check for some default macros that might be setup to lockout specific periods. Look for the use of function cell_input() in the macros within the planning book.
    Scenario 2: User is able to see only 6 months.
    Possible Cause - The time bucket profile is set for only 6 months.
    How to check this?
    Go to /sapapo/sdp8b go to dataview tab. Look for the TB Profile ID (Future). Make a note of this name.
    Go to /SAPAPO/TR30 - "Maintain Time Buckets Profile for Demand Plng and Supply Network Plng". In this txn give that name. Then click periods. You should be able to see how many months are configured. You need to change the number of periods here. This is assuming you have sufficient time series created to go thru all 12 months.
    Pls revert back with your findings incase the problem is not resolved.
    Hope this makes sense.
    Thanks
    Mani
    Edited by: Mani Suresh on Apr 9, 2010 2:11 PM

  • The effects of mentioning forward and backward consumption period under 40?

    Dear all,
    If I have mentioned strategy group 40 in material and by consumption mode as 2 and backward consumption and forward consumption period as 100 days,
    what will be the implication of this if i do the MRP run?
    regards,
    Sanju

    Hi,
    Normally you will enter PIR for weeks or Months in MD61, if you use Strategy type 40 and consumption mode as 2, backward days as 100 and forward days as 100,
    If a sale order comes the system will first take the backward 100 days and consume the PIR, and then forward for remaining sale order qty (if any).
    For ex. Sale order qty 1000,
    Last 100 PIR total qty (for last three months / last 100 days): 700
    In future PIR qty for 100 days = 2000
    then the system will consumes the 700 from the backward period and 300 from the forward period, then PIR becomes (backward = 0 (all are consumed), forward =1700 (300 consumed by the sale order)
    Thanks,
    JK

  • In Material Master Screen,functionally what is BAckward Consumption period

    In Material Master Screen,functionally what is BAckward Consumption period & Forward Consumption period in the MRP Screen.Pls explain its functionality

    Hi,
    The safety time / actual range of coverage ensures that the planned warehouse stock covers the requirements of a defined number of days. It therefore serves as a time float and thus works alongside the safety stock, which acts as quantity float.
    The system simulates bringing the requirements forward by the specified number of days and the planning for the receipts, created for these requirements in the planning run, is also brought forward by this number of days.
    Prerequisites
    ·   You have set the Safety Time indicator in the material master record (MRP 2 View) to define whether the safety time is only to apply to independent requirements or to all requirements.
    ·    In the material master record (MRP 2 View), in the Safety Time/Actual Range of Coverage field, you have entered the number of workdays by which the requirements are to be brought forward.
    ·    If, in addition to this actual range of coverage, you also want to define a different number of workdays in certain periods or a safety time less than one day then, in Customizing for MRP in the activity Define Period Profile for Safety Time/Actual Range of Coverage you can define a period profile and assign it to the material in the material master record.
    Regards,
    Vijay

  • 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.
    Sreeni

    This 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

  • Capacity Consumption in SNP Capacity Planning Book

    Hi,
    Can someone let me know how the Capacity Consumption KF(9ACACON)  is calculated in the SNP Capacity Planning Book.
    No macor is associated with the KF. But when i load the data in specific to a resource it gives me some value in the Capacity Consumption KF.
    Is there any option to identify the calculation logic of this KF ?
    Regards
    BVN

    Hi
    There is no formula as such, it depends on the master data settings in your resource. In transaction /sapapo/res01 you can display the Capacity but how exactly depends on what type of resource you are using and how the capacity is calculated, basically you can have:
    Time-Continuous capacity
    PP/DS Bucket Capacity
    SNP Bucket Capacity
    And they can also have different values!
    For the SNP View it should be using the SNP Bucket Capacity, so if you click on this tab in your resource master data it should have a field "Bucket Definition" which can either be from Continuos Capacity or be maintained separately. If you click the button "Bucket Capacity" it should show you the current values you have.
    If it is from Cont Capacity then click that tab and see the start, end and break times there.
    To add a little confusion, you may also have several variants of capacity, the active variant is on the General Data tab, this is the capacity variant that should show up as standard capacity in your planning book.
    There is more to it all than this but hopefully that should help answer your qeustion.
    Regards
    Ian

  • Requirements and Consumption logic

    Hi,
    In PP we have a number of Planning strategies. Each has a different behaviour.
    In some , the requirements are Sales orders and in some PIR's and in some unforecasted reqts and in some customer requirements. They are consumed in different ways. Sometimes sales orders consume PIR's and some time GI or GR will reduce the saleder or the PIR and some times backflushing reduces the requirements
    Can any one please let me know in what kind of strategies , what type of requirements are used and how / when they are consumed and why this logic is so
    Kindly share you ideas on this
    Thanks,
    SS

    Hello Dear,
    Please see the below chart for your reference its a high level understanding-
    Strategy
    Requirements type for independent requirements
    Requirements type for customer requirements
    10
    LSF
    Make-to-stock production
    KSL
    Sale from stock without independent requirement reduction
    11
    BSF
    Gross planned independent requirements
    KSL
    Sale from stock without independent requirement reduction
    20
         KE
    Individual sales order without consumption
    25
         KEK
    Make-to-order with configurable material
    26
         KEL
    Make-to-order for material variants
    30
    LSF
    Make-to-stock production
    KL
    Sales order manufactured by lot size
    40
    VSF
    Planning with final assembly
    KSV
    Sales order with consumption
    50
    VSE
    Planning without final assembly
    KEV
    Make-to-order with consumption
    52
    VSE
    Planning without final assembly
    KSVS
    Make-to-stock with consumption without final assembly
    54
    VSE
    Planning without final assembly
    KEKT
    Make-to-order with consumption of variant
    55
    VSE
    Planning without final assembly
    KELV
    Make-to-order variant with consumption
    56
    VSE
    Planning without final assembly
    KEKS
    Make-to-order with consumption of characteristics planning
    59
    VSEB
    Planning; phantom assemblies
    60
    VSEV
    Planning the planning material
    KEVV
    Individual customer with planning material consumption
    63
    VSEV
    Planning the planning material
    KSVV
    Make-to-stock with consumption of planning material
    65
    VSEV
    Planning the planning material
    ELVV
    Make-to-order variant with planning material
    let me know if you want to know something more in detail.
    Thanks
    Vikram

  • How to create a macro for a planning type in MC8b transaction

    Hi,
    I am presently working for a product allocation demand, which have a information structiure with characteristic and key field.
    the characteristic are production allocation quantity, incoming order quantity, and open order quantity.
    i have created a planning type in which the data updation takes from the excel file to the planning type in mc95.
    but i need to create a macro for this planning type .
    can any body give the details information how to create a Macro for a planning type.
    Thanks and regards
    GopalKrishna

    Dear Gopal
    May be the link would be helpful to you.
    [Planning Types and Macros|http://help.sap.com/saphelp_46c/helpdata/en/a5/631cc443a211d189410000e829fbbd/frameset.htm]
    Drill down the left tab once you opened the link, for more information.
    Thanks
    G. Lakshmipathi

  • On iOS 7.0.2 everytime I unlock my phone while my music is playing, it skips. Forward, backward, and by small and large amounts of time.

    On iOS 7.0.2 everytime I unlock my phone while my music is playing, it skips. Forward, backward, and by small and large amounts of time.

    Hi cowboyincognito,
    Thanks for visiting Apple Support Communities.
    If you don't have the option to play music by genre on your iPhone, try this step to find the Genre option:
    Browse your music library.
    You can browse your music by playlist, artist, or other category. For other browse options, tap More. Tap any song to play it.
    To rearrange the tabs in the Music app, tap More, then tap Edit and drag a button onto the one you want to replace.
    Best Regards,
    Jeremy

  • To extend a clip I have `Show Fine Tuning controls' turned on in my iMovie 11 preferences, but the blue forward/backward buttons don't appear.  To get the orange handle bar, is there a hotkey?

    To extend a clip I have `Show Fine Tuning controls' turned on in my iMovie 11 preferences, but the blue forward/backward buttons don't appear.  To get the orange handle bar, is there a hotkey?

    That's a comment in the file. It has no effect at all.

  • 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,
    Maria

    Hello 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.

  • 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 Mohnot

    Hi,
    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

Maybe you are looking for

  • Multiple photo block issues?

    Hello, When I put multiple photo "blocks" in an iWeb Photo page, iWeb seems to do two odd things: 1. The slideshow only sees one of the two blocks - can't tell the pattern, whether it is the one on top or on the bottom. 2. When I click on the individ

  • Lightroom 5 Printing under Mac OS 10.8 - crashes

    I have been using  Adobe Lightroom for several years - no problems. Recently I installed LR 5 on my imac  running OS 10.8. Two days ago I was able to print files. Suddenly Lightroom 5 crashed as it exceutes the print script. Have re-installed LR5 ser

  • Problem in Saving Image Code

    Hi, I'm been dealing with this code that should be saving an image as a JPEG format. public static void saveAsJPEG(RenderedImage image, String file) throws java.io.IOException { String filename = file; if(!filename.endsWith(".jpg")) filename = new St

  • Ibooks for mac did not completely sync with my ipad

    Hi I have recently upgraded to Mavericks. I have been looking forwardto this upgrade especially for iBooks. I was surprised to notice onced i had synced that not all the items in my ibooks on my ipad had been syncronised. Some  collections, such as t

  • I am trying to find out what the FULL model number is on Satellite Pro L500, please help!

    Hi, I have a Satellite Pro L500, but I am trying to locate the rest of the model number (L500-XXXX.... etc). I have looked on the bottom label, and all it says is Satellite Pro L500 SYSTEM UNIT. My part no. is PSLS1A-031002 My HDD is 500gb RAM is 4GB