on 04-10-2012 10:30 AM
Dear SAP,
now snp heuristic take in account current stock on hand when running. but i want to another key figure to replace key stock on hand to run snp heuristic.
For example:
Location K110 has demand 1500 and current stock on hand is 500, Key figure 'Ton kho ke hoach' is 700 so when running snp heuristic the system the number of receipt is: 1500 - 500.
But we want the system takes akey figure in account 'Ton kho ke hoach' it means that the number of receipt is: 1500 - 700
is it OK? if it's OK please show me how to do this.
thanks so much.
Hi Hung Tran,
It looks like you want to drive the SNP heuristics with your own key figures. Since it impacts the standard functionality, I would recommend change your design approach so that you will still be using the standard key figures but the values would be updated as per your requirements.
For instance, the 'Stock on Hand (Projected)' is an auxiliary key fig STOCK with key figure function set to 3004. SAP tries to create a proposal when this quantity becomes negative or less than target stock level.
Well, we can alter the std macro to meet your requirement as follows.
1. Deactivate the following steps of the standard macro 'Detailed: Stock balance'
2. Create one more step in the same macro as follows
Step x: 1 .. n iterations
After making these changes to the macro 'Detailed: Stock Balance', activate it and then load the data view (executing t.code /SAPAPO/SDP94 afresh) with your test data to see the results in expected way.
Thanks,
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear SAP,
thanks for your support.
I've done what you guided me. but if i create second step like:
2. Create one more step in the same macro as follows
Step x: 1 .. n iterations
the system do: stock on hand = stock on hand + 'Ton kho ke hoach'
this is not my expectation. I want the system use only take in account 'Ton kho ke hoach' in stead of using 'Stock on hand' when running snp Heuristics.
please help us
thanks
hungth
Hi Hungth,
Some comments:
1) What is the relevance of this KF "Ton kho ke hoach" for you? What does it mean? What is its relevance in SNP Heuristics?
2) You could possibly tamper with the working of SNP Heuristics, but please be aware that your changes would affect the working of this macro everywhere where you use it e.g. all SNP Heuristics run would get affected. Hope you are aware of this huge impact. If not, keep this in mind.
3) Stock on hand (projected) shows the net stock situation, so my guess is that the above proposes logic would not work, as I think you are trying to replace stock by your custom KF "Ton kho ke hoach". You don't want to replace "NET" stock by your custom KF.
4) You can't deactivate a particular step of a macro. You can deactivate the whole macro as one object. You could make some changes to macro, this cause deactivation of macro, and then you could delete the irrelevant steps. As said earlier, be very careful, these are standard macros, and it's not really a good idea to temper with them, unless you are very clear on what you are doing and understand the impact.
5) Once you explain the meaning of your KF, and also what exactly you are trying to achieve, it might be possible to propose some solution.
Thanks - Pawan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pawan,
I agree with all the points that you mentioned except #4 i.e. making a macro step inactive. I just want to bring the following to your notice.
Thanks,
Rajesh
Hi Hungth,
As mentioned in my initial post, Stock on hand is the standard KF with Key Figure Function. If you want to change that maintain your key figure with key figure function and use it in standard macros that drive the calculation like 'Stock Balance', 'Safety stock, reorder point, target stock calculation', etc.
However, it is not a best practice and will create issues for you in future when you go for upgrades. Manage your client or business and set the expectations correctly.
Thanks,
Rajesh
User | Count |
---|---|
8 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.