Command not executed: Why is the "Functional location" not set in InputScript:

Screen RI_ORDER_OPERATION_LIST.1000
  Enter "=S_TAB1"       // Order Header  
  Set V[FUNCTIONAL_LOCATION]  "&F[Functional Location]"
  Set F[Functional Location]  "&V[FUNCTIONAL_LOCATION]*"

Screen RI_ORDER_OPERATION_LIST.1000
  Enter "=S_TAB4"       // Operation                                          ?

After executing the "Enter =S_TAB1" you need a new screen command in order to be able to set the field value.

Explanation: GuiXT does not wait for the next screen when you execute an "Enter". It processes all subsequent statements until it finds a "Screen" command. Then it waits for the next screen to be sent by the SAP system and continues the processing with this screen, or with the next matching one (program + screen number).

Corrected script should read:

Screen RI_ORDER_OPERATION_LIST.1000
  Enter "=S_TAB1"       // Order Header  

Screen RI_ORDER_OPERATION_LIST.1000

  Set V[FUNCTIONAL_LOCATION]  "&F[Functional Location]"
  Set F[Functional Location]  "&V[FUNCTIONAL_LOCATION]*"
  Enter "=S_TAB4"       // Operation

   ...