Skip to Content
author's profile photo Former Member
Former Member

Using both SS Stock Methos SZ and MZ

Hi All,

I am trying to use the both the Safety Stock Methods 'SZ' and 'MZ'. However, there appears to be some difficulty with using both of these at the same time.

For example I am using SZ for some material/plants and MZ for other material/plant combination, all using the same data view.

If I have the macro Safety Day's assigned as a default macro in the data view, then the value in the key figure 'Safety Dayu2019s Supply' for the product/location using MZ gets wiped out.

If I do not have the macro Safety Day's assigned, then the Safety Day's Supply in the APO Product master for this material/location does not get pulled into the key figure 'Safety Dayu2019s Supply' in the dataview.

Is there something that I am missing here?

Perhaps I need to enter a logic with an u2018IFu2019 statement that only makes the macro 'Safety Day's relevant to certain plants?

I also checked the SAP standard planning book (9ASNP_SSP) and this did not have a Safety Dayu2019s Macro assigned

Has anyone else experienced a similar issue? Or is this the standard design?

Rumi

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 16, 2011 at 08:49 AM

    Hello Rumi,

    First, you'll need the macro 'SAFETY_DAYS()' is you want to get safety days supply from product master.

    This is for sure.

    So if you don't want the time based maintenance safety days supply being overwritten by the macro 'SAFETY_DAYS()', I think in this macro, you need an 'IF' option to judge which safety stock method is used. Like:

    IF

    MATLOC( 'SAFTY' ; ACT_PRODUCT ; ACT_LOCATION ) = 'SZ'

    SAFETY_DAYS( ... )

    ENDIF

    You'll also need to make sure that the macro only runs at product/location detailed level.

    Best Regards,

    Ada

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Rumi,

      Sorry I made a mistake on the field name, please use 'MSDP_SB_METHOD' (safety stock method).

      Your macro should look like:

      > New step : ( 104 Iterations :08/21/2011;08/11/2013 )

      IF

      > New condition

      DET_LEVEL( '9AMATNR' ; 'X' ) = 1 AND

      DET_LEVEL( '9ALOCNO' ; 'X' ) = 1

      IF

      > New condition

      MATLOC_C( 'MSDP_SB_METHOD' ; ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION ) = 'SZ'

      > New step : ( 1 Iteration :Initial ; Initial )

      LAYOUTVARIABLE_SET( 'named_variable' ;

      SAFETY_DAYS( ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION ; 0 ) )

      > New step : ( 104 Iterations :08/21/2011;08/11/2013 )

      > Row: Safety Days' Supply - 9ASVTTY ( Frm 08/21/2011 ) =

      LAYOUTVAR_VALUE( 'named_variable' )

      ENDIF

      ENDIF

      Best Regards,

      Ada

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.