title: How to hide conditionally custom fields in screen exit? (CMOD)
body: <p>My task is to customize the Header Details Screen of the <code>ME33K</code> transaction, the goal is to add a box with new fields that should appear only if the Agreement type is the one I defined by using the transaction <code>SPRO</code> (ex: Agreement type <code>ABC</code>).</p>
  <p>I started making an enhancement to that screen by using the <code>CMOD</code> transaction, I created a dummy box and field with some hard-coded input value and it's working fine.</p>
  <p>My next step would be to make these new fields appear only if the Agreement is of type <code>ABC</code>, but I cannot find the correct approach.</p>
  <p>I tried doing some Screen-Loop programming and deactivating the box and/or fields, but the only ones that get deactivated are the standard ones that exist already, the ones I added with the enhancement are not affected.</p>
  <p>EDIT :</p>
  <ul>
  <li>The enhancement I used was 'MM06E005'.</li>
  <li>I wrote the following Screen-Loop code in the include provided in the 'EXIT_SAPMM06E_006' user exit :
  <pre><code>loop at screen.
    if screen-name = 'CUSTOM_FIELDS'.
      screen-active = 0.
      modify screen.
    endif.
  endloop.
  </code></pre>
  </li>
  </ul>