Distribuition Function in Planning book

Hello Everyone!,
I facing issue in using distribution function in planning book.
I have to update one KF for many products & I'm trying to use the distribution function.
But the problem is I have many rows/products loaded in planning book & for each row/product I have to manually enter the value & operator. This is cumbersome.
Is there a way to update all products/rows in planning book with single execution?
What & how distribution formula can be used.
Any inputs in this regard will be much appreciated.
Thanks in advance.

Hi Amol,
Thanks for the info, your suggestion may help me but the problem that I'm facing is that, If I load individual product in planning book then the KF is appearing in distribution function window.
But when I load all products the KF is not appearing in distribution function window.
Also I have observed that when I load individual product, the KF field is available in editable mode but when I load all products, the KF row in planning book is non-editable. I think this is preventing the KF appearance in distribution function window.
See below.....
When loaded single product
When loaded multiple products
Please suggest.
Thanks.

Similar Messages

  • Require function module for start and end bucket of planning book

    Hello All,
    I need to fetch the start and end bucket date of a planning book. Is there any function module which can directly give first and last bucket date of a planning book ?
    Thanks & Regards,
    Vivek

    Hello dear Sanjeev / Datta,
    Thanks for your prompt response.
    The problem resolved. The solution is as follows.
    Step1) CALL FUNCTION '/SAPAPO/MSDP_PB_READ_DVIEW'
                Input : Plng book and dataview
                output: cs_pbdvwhdr       = ls_header (in changing parameter)
    Step2) CALL FUNCTION '/SAPAPO/SDP_TB_CREATE_COLS'
                Input: bucket Profile of past and future, which we will get from step1.
                          And from date as space in a variable of type datum (As the parameter is mandatory)
                Output: et_cols_ext (Importing table) which will give start and end date.
    Hope, This solution will help others also.
    Thanks & Regards,
    Vivek

  • How to get planning area if I have planning book - Function module/table

    Hello All,
    Our basic requirement is to find out whether the planning book we are using is DP relevant or SP relevant. (inside the custom program)
    One way is to find out the relevant planning area and find out if the planning area is DP relevant or SP relevant.
    But can anyone suggest if there are any tables or function modules to achieve the same?
    Thanks a lot.
    Regards,
    Chandan

    Dear Chandan,
    You can use the table "/SAPAPO/PBMVW" for your issue. "APP_SNP" field tells if it SNP planning book or not. Thee tables gives all planning books present in the system.
    If you want dataview's you can use table ""/SAPAPO/PBDVW"".
    I hope the information solves your issue.
    Thanks and Regards,
    Nithin.

  • Function module to read/write notes in the planning book

    Hi All,
    Can you guyz tell me the FMs to read / write NOTES in the planning book. Notes as in you can right click on a cell of PB and do display notes.
    win full points for the answer.
    Thanks - Chandan

    Check FM /SAPAPO/MSDP_NOTE_WRITE and Use of APO BAPIs page in SCM Wiki.
    Thanks,
    Somnath

  • Planning Book Function

    Hi All,
    Thanks a lot for ur information...
    Please find the i am facing problem below ...
    Rolling Forecast System design the process is to calculate Rolling Forecasts for the future 6 Months.Demand Planner willl utilize the statistical forecast values starting from next month for 6 months.
    We have a Liters and KG's two Planning Book, still date data is coming 6 months only. But Now my requirements is we want to data 12 months once. how to change this logic in planning book level.
    Ex:
    Planning Book -12 months Data----->DSO
    Please provide me solutions Step-by-step... So, I am very struggling now please...
    Thanks in Advance..
    Regards
    Kavitha

    Kavita, Bharathi,
    The data view displays the data as per the Planning Bucket Profile. The PBP defines the  extent/periodicity in which data needs to be displayed. To change from 6 months to 12 months do the following:
    1). Either create a new PBP or change the existing one using Tx /SAPAPO/TR30. For 12 months you shopuld have:
                Number=12
                Peridodicity='M'
    2). Access Tx /SAPAPO/SDP8B
    Give the Planning Book and data view and enter 'EDIT' mode.
    In the upcoming mode click on the "Planning Book" button on top left corner.
    In the upcoming window open the 'Data View' Taband enter your new PBP in "TB profile ID (Future) Keep pressing "Continue" (bottom left) till you see the COMPLETE button. press complete.
    Now when you access the PB/DV you should see 12 months data.  Make sure that your planning area has been initialised upto 12 months.
    Thank You.
    Cheers!
    Abhi

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

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

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

  • Planning book Cell colours are not displayed correctly in upgarded SCM 7.0

    Hi All
    WE have recently upgarded SCM 4.1 to SCM 7.0 system and I am testing new system. I am stuck in one issue . We have some keys figure rows which are open of inout/output. WE have macros for this key figures to close for certian period. After closing we defined cell Background colour to be same as default colour of other rows in planning book. For SCM 4.1 we used colour no 9 for this.
    But in New System SCM 7.0 looks like colour numbers have changed. So I changed macros for background colour , we have an option when changing system gives colour palett and we can select, I tested the whole pallett fo matching colour with default planning book celllc colours- no colour is matching , when I look at palett it looks same but when I  select that in macro the shade looks diferent . 
    Can some one advice how can we get exact colout number to match defult colour of palnning book cells.
    Thanks
    KV

    Hi Kristin,
    You can always change the cell color to default by using 0 as argument of the macro function. For instance, the following macro change the color of cell to red if the corresponding prop factor value is negative. On the other hand, for a positive value or zero, the default background color is retained.
    Thanks,
    Rajesh

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

  • Uploading planning book data error

    Hi Emmanuel,
    I think you can help me with this qn.
    When i am trying to upload the planning book data after using the save locally function, i am not able to load the data back to the planning book. I am getting a dump.
    I am not able to resolve it. can u please guide me.
    Thank you very much in advance

    Hi Sandeep,
    When you saved the file using the "Save locally" functionality in the Interactive Planning transaction, did you choose the option "Prepare file for upload at a later time" ? You have to choose that option so that an upload later will work.
    Also, please check out OSS note Note "925933 - Interactive Planning Excel up/download corrections".
    Please tell me if this helps to solve your problem

  • Dump for custom planning books in SDP94

    Hi,
            We are having a fresh SCM APO 5.0 installation. We used to get a dump whenbever the SDP 94 transaction  was executed. We found a SAP note 889989 and applied. Now the problem is it is dumping for any other planning book except the standard SAP delivered ones when the SDP94 transaction is executed. I found a note 498861 but does it help?
    Here is the dump:
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          10/10/2007 16:39:31
    Short text
         The current application triggered a termination with a short dump.
    What happened?
         The current application program detected a situation which really
         should not occur. Therefore, a termination with a short dump was
         triggered on purpose by the key word MESSAGE (type X).
    Error analysis
         Short text of error message:
         Control Framework : Error processing control
         Long text of error message:
          Diagnosis
              An error occurred when the system tried to process the commands
              from the Automation Queue on the presentation server.
              There are several possible reasons for this:
              - The installation of the SAP GUI on the presentation server is
              faulty or obsolete.
              - There is an error in the application program
              - There is an error in the SAPGUI or an integrated control
          Procedure
              1. Make sure that you have imported the appropriate Support
              Package, the current kernel, and GUI patch for the release of your
              system
              2. Check whether the error occurs locally on one or a few PCs, or
              generally on all PCs. Note whether the error only occurs for some
              users, for example because of a specific Customizing setting.
              If it only occurs locally, this suggests an installation problem
              with the PC. Check the installation; if necessary, reinstall thesoftware. In the dump, search for the SY-MSGLI field, since it may
    point to the cause of the error.
    3. Activate the Automation Trace (in accordance with SAP Note
    158985).
    4.Start the transaction and continue until the screen immediately
    before the dump.
    5. From the System -> Utilities menu, choose Autom. Queue,
    Synchronous Processing.
    The status bar of the GUI displays the text:
       "Automation synchron flush mode on"
    6. If you now proceed with the application, the short dump will
    display the ABAP call that caused the error; the Automation Trace
    will contain the error on the presentation server.
    7. If necessary, load the short dump and trace files on to
    sapservX, so that SAP can analyze them.
    Trigger Location of Runtime Error
        Program                                 SAPLOLEA
        Include                                 LOLEAU02
        Row                                     29
        Module type                             (FUNCTION)
        Module Name                             AC_SYSTEM_FLUSH
             Can any one suggest me a solution please?
    Thanks.

    hi Raj,
    this normally happens for all the new installations when opening the planning books with tcode /SAPAPO/SDP94. every new installation gives different dump with the above tcode. the best option is to contact the SAP team.
    regards,

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

  • Show Sales orders, STOs, & Deliveires in SNP planning book by Shipping Poin

    We are using ECC 6.0 and SCM 7.0.
    We have a requirement to model the Shipping point as a location in SNP. By this functionality we want to show Sales orders, STOs, & Deliveires in SNP planning book by Shipping Point in addition to Delivering Plant which is default now.
    When I create Sales Orders in ECC system always perform shipping point determination and passon to APO per schedule line via CIF. These Sales Orders always show up in SNP under delivering plant/location. We also want to show them under Shipping Point location.
    Here is what I have done so far:
    1. I have created a CIF integration model for all required shipping points and CIFed over to APO. These locations are showing up in SNP planning book.
    2. I have created Sales Orders and verified the shipping points are determined correctly and sent Sales Orders to APO successfully.
    3. I see all the Sales Orders in SNP planning book at delivering plant/location.
    4. But I don't see any sales orders under shipping point. They also don't show in RRP3 screen.
    5. If I create a forecast in RRP3 at Shipping Point location they show-up in SNP planning book at Shipping point location.
    Any idea how to model shipping points in SNP for planning?

    check what the ATP order type is of these orders are (from RRP3)
    then check what ATP group these order types are assigned to (from SPRO)
    then in the SNP Planning are make sure the Keyfigure you want to see them in refers to the ATP group from above
    Which planning book are you using? Is it a standard book/ copy of a standard book? What KF are you expecting to see it under... the standard book has KF for planned production that will be same as your PPDS planned orders

  • APO DP planning books - use of 2 grids in view

    I am using APO DP V5.
    I know that it's possible to have 2 grids in a planning book view.
    Can anyone give good examples of where 2 grids have been found to be useful?
    Would it be possible to have 1 grid for 'forecast' and 1 grid for 'history'?
    Thanks,
    Bob Austin

    The definition of two grids in a data view (not sure if you mean that by planning book view) is only possible when creating a data view for the first time. Once a data view is created you cannot add the second grid as the Table 2 option is grayed out under Title section of Data View tab.
    Good example of using 2 grids is while using DP BOM functionality and also in those cases where the top grid keyfigures are to be drilled down but the bottom grid keyfigures remain at aggregate level. So if you want to compare the forecast numbers in detail with the total budget then use the total budget keyfigure in Grid 2. Remember while drilling down, keyfigures in Grid 2 are not drilled down.
    In you case of having forecast in one grid and histroy in another can be effective since the data in the keyfigures are in two different time horizons. But remember if you have history in Grid 2 then the data will be aggregate (assuming you have loaded multiple CVCs) and will not be drilled down which the Forecast keyfigure in Grid 1 is drilled down to lower levels.
    Hope this helps.
    Thanks,
    somnath

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

    I 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

Maybe you are looking for

  • Is it possible to encrypt a single mail account?

    Hi, apologies to regulars if this topic has been addressed. I looked for posts about encrypting mail, and mostly found stuff about encrypting messages as they were sent/received (PGP type problems). I have a very specific question that doesn't seem t

  • How to execute a jar file in a java application

    Hi, I've already try to execute a jar file by this way : Runtime.getRuntime().exec(java -jar myJarFile.jar); But the problem is that the display doesn't launch. Normally a "JFrame" display. however the corresponding process is launched. So i would to

  • Unix command in pro*c

    hi, all It is so strange that the after running Unix command in a pro*c. The variable value is changed. The following is the code printf("1:tempfile1:%s\n", tempfile1); printf("1:tempfile2:%s\n", tempfile2); sprintf(cmdstr, "sort -k 1.13,1.18 %s -o %

  • Late 2011 MacBook Pro Audio Crackling from 3.5mm Output and USB Audio Devices.

    Howdy. I don't know what's wrong with my laptop. Recently any headphone I have used with the 3.5mm output has been crackleing. I assumed the jack it's self was broke but when I set up my Audioenndine D1 amp it is still crackling from videos on YouTub

  • Change keyboard language by java program

    I have done internationalization successfully in my java web application. but for insert input i always need to select language of keyboard manualy by control panel's . have any one java program to select keyboard language programatically.