Consignment stock in the planning book

Hi Experts
I would like to display Consignent stock category CD in Planning Book.
I am using PHYSICAL_STOCK( u2018productu2019 ; u2018locationu2019 ; version ; u2018categoryu2019 ; u2018categoryu2019 ; u2026) returns the stock of a location product of one or more categories.
Based on the above macro fnction i can able to get Plant Stock but for consignment stock this function is not working.
How to achieve this.Please suggest me if we have any other macro function to get consignent stock.
Or i need to create a new fiunction for this.
Please give your opinions on the above issue.
Thanks

I recommend that you use PHYS_STOCK_LOCPRODS instead of the PHYSICAL_STOCK function because the PHYSICAL_STOCK function doesn't show any value in the aggregated level.
Here are the steps:
1) Create a custom category group called ZCD.  You need to do this because the PHYS_STOCK_LOCPRODS function only takes category group as one of its parameters.
2) Assign CD (consign stock category) to ZCD category group.
3) Use this in your macro: PHYS_STOCK_LOCPRODS( 'ZCD' ; ACT_VERSION ; ACT_LOCATION_PRODUCTS( ) )
P.S. Syntax-wise, make sure that you separate it into two lines and have all the spaces in the right place
By the way, you cannot simply assign ZCD to a key figure in the planning area key figure details section and expect it to show up in the planning book.  You have to use the function to get the consignment stock value.

Similar Messages

  • How to reflect consignment stock in the planning book

    Hi
    I have an issue were I am trying to pull through unrestricted consignment stock to the SNP planning book.
    I am only able to view the unrestricted stock, and not the unrestricted consignment stock when I am working in the planning book.
    However I am able to see the unrestricted consignment stock in the Product View in APO
    (/SAPAPO/RRP3 - Product View).
    The key figure we use to reflect physical stock is ATD Receipts in the planning book.
    I have included the category type CD in the category group ATR, which is assigned to this key figure ATD Receipts
    Please can you assist me with this issue.
    Thanx in advance
    Keegan

    Keegan
    It is not enough if you associate the category group with the key figure used to display stock. Go to the location for which you are trying to display stock and in the SNP tab stock category group field give this category group. It should work.
    The opening stock gets displayed based on the category group assigned in the location master and if the category group in loc master is blank then all stock categories in the default category group ST1 will get displayed
    Thanks
    Saradha

  • 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

  • Days supply is not populating in the planning book

    Hi Experts,
    When I select multiple products in the planning book, the value is papulating as total but if I drilled down to individual product then days supply(Key figure) values are not populating in the planning book.
    Please let me know if any idea.
    Regards,
    Hrishi

    From what you mention it looks like you do not use the standard SNP Planning Book. Was the macro inactive so that you had to regenerate?
    When you move a macro from workbench to level change it should not require to be regerated.
    Please check if following macros are active (green) under level change in sequence
    Determine Workdays
    Layout Attributes
    Drill (Level)
    Else compare the macros and sequence in the standard SNP Planning Book with the Planning Book you are using.
    The Day's Supply (All: Day's Supply) and Determine workdays macros are essential for populating the day's supply keyfigure.
    Thanks,
    Somnath

  • 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

  • Remove Fixing of cells while exiting the planning book

    HI Gurus,
    i am looking for a stnadard sap functionality to delete the fixing of cells done by the planners every month. is there any stnadrd macro function which i can use to delete the fixing of cells? the cells may be fixed at an aggregate level or at lowest level of the selection.
    is there any standard macro which i can use?
    Rgds, Sandeep

    Hi Alexander,
    that works. however i cannot make the key figure zero because some of my other KFs are getting disaggregated on that specifc KF.
    is there any other way to delete the fixing of the cells before exiting the planning book or using a standard function in any macro?
    Appreciate any inputs.
    Rgds Sandeep

  • User is unable to view the selection window in the planning book

    Hi Friends,
    I am able to view the selection window in the planning book.
    User is unable to view the selection window in the planning book.
    Is it authorization issue or any settings issue?
    Please explain me in detail.
    With regards,
    Balu

    HI Balu
    Can you check if ''Selection profile" is checked in the ''view selection" option in the top left of the planning book for the user?
    you can choose the hide/show the Selection profile tab, planning book/data view and macros tab using that function.
    Check if this helps.
    Rgds, Sandeep

  • Movement type to consume customer consignment stock in the delivery plant ?

    Need MM Functional expertise help to resolve the issue
    They are two plants associated
    1. Deliverying Plant (Customer Consignment Stock) ---> FPP
    2. Recieving Plant (Vendor Consignment Stock) ---> FNT
    Recieving Plant (FNT) will send a consignment Purchase Order (P0) to the delivery plant (FPP), which
    inturn delivery plant FPP will do post goods Issue (PGI) with movement type 635 {635 --> moves
    the stock from sloc 1000 to customer consignment stock}
    Once movement type 635 is completed, it will go customer consignment stock in the delivery plant FPP
    So Far OK..
    Recieving plant (FNT) will recieve the stock against movement type 101K into Consignment location, followed
    by movement type 411k (to move the stock from consignment location to OWN location).  Once its under OWN location,
    the inventory can be utilized for service orders (261)
    Issue:
    Not able to find a movement type to consume customer consignment stock in the delivery plant FPP
    Note: 1. 411k is used to consume vendor consignment stock
    2. Both plants are in different company codes
    Following OSS notes has been checked, but none is addressing the issue
    1. 520024
    2. 610896
    3. 362032
    4. 13006

    Customer consignment stock is consumed physically by a customer, the customer reports to you how much he has consumed, the delivering plant creates then a consignment order for consignment issue in the delivering plant, followed by converting it to a delivery and posting goods issue.

  • How to deactivate the Smoothing Factor button in the planning book.

    How can we restrict users to Activate smoothing and also to change smoothing factor?
    Piyush Nandan.

    Hi Piyush ,
    To deactivate the 'Activate Smoothing' and 'Change smoothing Factor' button form planning book you need to
    - Switch to Graphic mode in Planning book
    - Goto design screen by using 'Design' button near graphic button
    - From top menu 'Settings' dropdown select Configure toolbar or 'Switch Icons On/Off
    Here you can restrict the icons appearing in the planning books.
    Please confirm if this helps by rewarding suitable points...
    thanks ,
    Digambar

  • Start with dates from the past in the planning book

    I want to maintain some figures from the last 14 days in the past.
    And I want the planning book to show these 14 days, when I open the planning book.
    (I do not want to scroll back).
    In my Data view i have to define a Time Bucket profile for the future. (system demand)
    This profile I has defined with one day.
    The Time Bucket profile for the past are 21 days.
    When I start the planning book with the view, I see only one column with todays date.
    I want to see the past 14 days, and therefore I have to scroll back.
    Is it possible to start with the last 14 days?
    - By setting the Period information in the Data view tab?
    - By other settings?
    - By macro?

    Hi Per,
    You need to go for a developing an ABAP report. The development calls for updating the planning start date in the data view design mode.
    You can use function modules /SAPAPO/MSDP_PB_READ_DVIEW and /SAPAPO/MSDP_PB_SAVE_DVIEW_TAB.
    So the logic could be as follows:
    1. First develop a FM which will determine the planning start date as per your requirements. This has to be with respect to the system date. So this Function module should in effect subtract 14 days from system date and store in a date field.
    2. Using the FM  /SAPAPO/MSDP_PB_READ_DVIEW, this date can be updated in the data view / PLanning start date field.
    3. Using FM /SAPAPO/MSDP_PB_SAVE_DVIEW_TAB, you can save and generate the data view.
    After developing the program you need to schedule this in background so that the planning start date is calculated and stored automatically.
    You need to take care of one thing though. In case there are any macros developed in the data view/macro book, the start dates for macro execution will be changed as well. You need to tweak those as per your requirements.
    Hope this helps.
    Regards,
    Ashutosh

  • DP - Sales and Demand Forecast values in the Planning book were increased.

    Dear DP Experts,
    The Sales and Demand Forecast values in the Planning book were increased.  Is there a way to tract who user could have made the changes?  Can we view the last change like in the document flows?
    Thanks,
    Glason

    hi Glason
    if the values have been changed by the user community, I am not sure if there is a way to find out. However if there is technical flaw in data processing, you can check for the steps as posted in the above post.
    We faced a similar issue in our project. We were not able to trace the user ids under which the values were changed. However since we retain the 15 days of back up, we were able to check that the values were changed on a certain date but not the user ids. but we were still able to restore the original values.
    As an additional step, we also developed macros to store (in the form of alerts) the exisitng value and the updated value incase the there was a manual change in the Sales forecast and other editable key figures.  This ensured that there was a check if there was a manul change. we also ensured that these macros were not executed during the background jobs.
    SAP also provides a standard SAP APO Change Monitor add-on which can be used to track chnages to the key figures. Please refer to note 1308968 for further information on the add on.
    let me know if this helps.
    Rgds, Sandeep

  • Change the period labelling in the planning book

    Hi I want to change the period labelling in the planning book. currently it is showing default I want to customize it to January, february, etc. I know there is a user exit APODM006. but I want to know the process to do it. thank you

    Hi friends
    Is there a way to achieve this? What can be the approach to solve the requirement?
    Hi Pratik,
    How to go with the requirement? Can this be achieved?
    Regards,
    Raju.
    Message was edited by:
            Narayana Raju Sampathirao

  • SNP Time horizon in the planning book

    Hello all,
               We have weekly buckets in our SNP planning book right now. Everytime one enters the planning book, the time horizon starts only from the current week.
    We want to change this to have the past week also in the time horizon.
    Could any of you tell me how this can be done and if it can be done, will there be any problem in seeing data in the past week?
    thanks!
    PV

    Hi PV,
    Addition to what Ulises Marín suggested, if your requirement is to see 1 week in past or more than that, then create your own Time bucket profile and assign it to data view in past.
    This can be done through tcode: /SAPAPO/SDP8B.
    Tcode for to create Time bucket profile is  /SAPAPO/TR30.
    Hope this helps you.
    Regards,
    Jagadeesh.
    Pls reward points if it is helpful.

  • How to read or change the planning book in APO ???

    Hi all ,
        can anybody tell me how to read or change the planning book in APO
      Regards,
      Tarang Shah

    Hi ,
    you can use the follwing BAPI
    BAPI_PBVARS_GETDETAIL to read the planning book
    BAPI_PBVARS_CHANGE_KEY* to change the planing book
    thanks and regards ,
    Ashok kumar

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

Maybe you are looking for