how to generate SNP planned order with different category
Our SNP system receives Forecast and Salse Order from DP system.
and we'd like to generate SNP planned order with different category..for example, 'AI' for Forecast Demand and 'AL' for Sales Order..
currently, If we run CTM, system generate SNP planned order with the
same category 'AI'..
another system(APS) in Our company receives planned order from SNP
and they want to receive planned order for forecast and planned order for sales order seperately..
Srinivas krishnamoorthy replied
It is not directly achievable however can be done through BADIs and two CTM profile. I am assuming that sales orders are planned ahead of Forecast demands. So have two CTM profiles - one for Sales Orders (regenerative mode) and the other for Forecast Demands (net change mode). You may have to invoke two BADIs in the first run for Sales Orders - one that changes master data by putting a temperory Forecast Horizon in SNP2 tab (BADI /sapapo/ctm_matloc). The other BADI (BADI /sapapo/ctm_orders) changes the ATP category just before saving. in the second run though you just need to run the latter BADI by saving it in the ATP category required. BADIs can be invoked based on CTM profiles used.