﻿class viqmel  database="SAP" dbtable="VIQMEL" assembly="s10cis"

  string   QMNUM            maxsize="12" zerofill="yes"  // Meldungsnummer
  date     QMDAT            maxsize="10" // Datum
  date     AUSVN            maxsize="10" // Störungsbeginn (Datum)
  string   QMTXT          maxsize="40"       // Kurztext
  string   PRIOK          maxsize="1"       uppercase="yes"   historyid=""           // Priorität
  string   MATNR          maxsize="18"      uppercase="yes"    link="mara"       historyid="MAT"    // Materialnummer
  string   equnr          // Equipemtnummer
  string   myequnr        // Equipmentnummer extern
  string   tplnr         // technischer Platz
  string   mytplnr       // technischer Platz extern

  date     QMDAB          maxsize="10"       // Datum für den Abschluß der Meldung
  string   LS_KDAUF       maxsize="10"      zerofill="yes"    uppercase="yes"   link="vbuk"       historyid="AUN"    // Kundenauftragsnummer
  decimal  RKMNG          decimals="3"       // Reklamierte Menge
  string   MGEIN          maxsize="3"        // Mengeneinheit

  string QMART maxsize="2" uppercase="yes" link="tq80" historyid="QMR" // Meldungsart
  string VKORG maxsize="4" uppercase="yes"  historyid="VKO" // Verkaufsorganisation
  string VTWEG maxsize="2" uppercase="yes" historyid="VTW" // Vertriebsweg
  string SPART maxsize="2" uppercase="yes" historyid="SPA" // Sparte
  string VKBUR maxsize="4" uppercase="yes"                             // Verkaufsbüro


  string QMCOD maxsize="4" uppercase="yes" // Codierung
  string QMGRP maxsize="8" uppercase="yes" // Codegruppe

  string BSTNK historyid="" maxsize=35 // Kusndenreferenz

  string kunum historyid="" maxsize=10 //Kundennummer


 Non-database-section

  string  mymatnr
  string  mymatbez
  string  mykdauf
  date    myaudat
  string  myvbeln
  date    mylifdt
  string  mymgein
  string  mystatus
  string  mystatuscodes
  string  html_longtext
  string  html_longtextreadonly
  string  html_partners
  string longtext
  string eqktx
  string qmartx method="build_qmartx"
  string status
  string isopen


  // sapdialog
  object mysapdialog class="sapdialog"

  // Auftrag
  object myvbapmini2 class="vbapmini2"
  string mykdpos
  string myposnr
  string myvrkme method="build_myvrkme"

  // Lieferung
  object mylipsmini class="lipsmini"

  // Kundennummer (Eingabe)
  string mykunnr maxsize="10" zerofill="yes" uppercase="yes"
  object mycustomer class="kna1"

  // Ansprechpartner
  string contact_pernr_zm
  string dropdown_contact_zm method="build_dropdownlist_contacts"

  // Equipments
  string dropdown_myequnr method="build_dropdown_myequnr"

  // Sparten
  string dropdown_spart method="build_dropdown_spart"

  // Verkaufsbüros
  string dropdown_vkbur method="build_dropdown_vkbur"


  // Material
  object mymaramini class="maramini"
  string matkx method="build_matkx"

  // material search
  string material_searchtext uppercase="yes"  historyid=""
  string material_searchtype method="build_material_searchtype"
  string material_searchcomment
  integer materialsearch_updatelevel
  folder materialsearch class="matmini"

  // Priorität
  object mytq80 class="tq80"
  string dropdown_priok  method="build_dropdownlists"

  // Codierung (für Sachverhalt)
  string dropdown_codeandgroup method="build_dropdownlists"
  string codeandgroup

  // folder for SAP database access
  folder priok_tab class="t356_t"
  folder qpgt_tab class="qpgt"
  folder qpct_tab class="qpct"
  folder tvkbt_tab class="TVKBT"
  folder tspat_tab class="tspat"

    // rfc
  folder viqmel_input   class="simplestring"
  folder viqmel_output  class="simplestring"
  folder viqmel_input2  class="simplestring"
  folder viqmel_output2 class="simplestring"
  folder viqmel_input3  class="simplestring"
  folder viqmel_output3 class="simplestring"
  folder contacts_input class="simplestring"
  folder contacts_output class="simplestring"


  folder rfcmessages class="rfcmsg"

  // Methods
  method build_dropdownlists  in=(qmart)
  method build_matkx in=(mymatnr)
  method build_myvrkme in=(mymatnr)
  method build_material_searchtype
  method build_dropdown_myequnr in=(mykunnr)
  method build_qmartx in=(qmart)
  method build_dropdownlist_contacts in=(mykunnr)
  method build_dropdown_spart
  method build_dropdown_vkbur

endclass








































