cancel
Showing results for 
Search instead for 
Did you mean: 

Using both SS Stock Methos SZ and MZ

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member187488
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Ada,

Thank you for your suggestion. Here is what I have so far. one of hte problems that I have with this is thta I keep getting the message: 'Unable to interpret "SZ" as a number.' Also I am not sure what to enter for the

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

> New step : ( 105 Iterations :Initial;08/11/2013 )

IF

> New condition

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

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

ENDIF

> Safety Days Supply : ( 104 Iterations :08/21/2011;08/11/2013 )

IF

> New condition

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

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

'SZ'

ENDIF

> Safety Days Supply - Original : ( 104 Iterations :08/21/2011;08/11/2013 )

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

SAFETY_DAYS( ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION ; 0 )

Thanks,

Rumi

former_member187488
Active Contributor
0 Kudos

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

Answers (0)