Different screen layouts: I am developing an InputScript for transaction VD03. During the tests I realized that a particular screen (SAPMF02D.7108) looks different, depending on what the user did before. How can I distinguish the different cases?

You can query the existence of a particular field. Example:

Screen SAPMF02D.7000

  // is the field "Sales organization" displayed?

  if F[RF02D-VKORG]

    Enter "=TAB05"        // Partner roles


    Enter "/27"           // Sales area data