Dynamically show/hide QTYSTU on PTH1

I am trying to show/hide QTYSTU based on the transaction type.  This field is not part of the standard transaction setup where the show hide options are available.  I am trying to make this adjustment using the AFFMASK action on SPEPTH (shown below) 

I know the "-" is the action that hides the field.  "N" indicates it is a number and the 9.2 is the number format.  

$AFFMASK
  If GFLAG = "STD" #Std transaction code Hide the following fields
    Chgfmt [M:PTH1]QTYSTU With "-N:9.2"
  Else
    Chgfmt [M:PTH1]QTYSTU With "N:9.2"
  Endif
  Affzo [M:PTH1]
Return

Thank you in advance for any assistance.  

Top Replies