// AS_check.txt 
// Check data entry

// Go to tab "Net worth valuation" 
Enter "=TAB05"

// Net worth valuation
Screen SAPLAIST.1000

  // Remember old values to use them in case of error
  Set V[AS_corr_property_indicator] 	"&F[Property indicator]"
  Set V[AS_corr_man_value]        	"&F[Man.net wrth val.]"


 // Enter new values 
  Set F[Classification key] 	"&V[AS_classification_key]"
  Set F[Property indicator] 	"&V[AS_property_indicator]"
  Set F[Reason for man.val.] 	"&V[AS_man_reason]"
  Set F[Man.net wrth val.] 	"&V[AS_man_value]"

  // Enter
  Enter  OnError=Continue
  goto error


// Net worth valuation
Screen SAPLAIST.1000

  // Read text
   Set V[AS_classification_key_text]  "&F[T092T-VMTXT]"

  // Net worth value - standard treatment
  Set V[AS_man_value]                "&F[Man.net wrth val.]"

  
  // Back to first tab
  Enter "=TAB01"
 
  // Leave script, entries are ok
  Leave


// treatment of error message
label error
 

  // Set back values, since some errors occurred, to leave tab
 Set F[Property indicator] 	   "&V[AS_corr_property_indicator]"
 Set F[Man.net wrth val.]          "&V[AS_corr_man_value] "


  // Back to first tab with error message
  Message "&V[_lasterror]"  -statusline
  Enter "=TAB01"