String getSmhInr(String argtrninr)
{
  String smhinr = "";
  Platform.dbExecuteSQL( "select INR from SMH where TRNTYP = 'TRN' and TRNINR = ? and DIR = '>' and CORTYP = 'SWT' and GRPSEQ = 0 and (MSGTYP='103' or MSGTYP='202')", argtrninr );
  int ignore = 0;
  if( Platform.errorCode() > 0 )
  {
    ignore = Platform.errorCode();
  }
  else
  {
    Argument<String> smhinrBox = new Argument<>();
    Platform.dbFetchFields( "", smhinrBox );
    smhinr = smhinrBox.value;
    ignore = Platform.errorCode();
  }
  Platform.dbCloseCursor();
  return smhinr;

}