Schnittstelle.GM: Unterschied zwischen den Versionen

Aus OrgaMon Wiki
Zur Navigation springen Zur Suche springen
Zeile 8: Zeile 8:
* Dieser Baustelle ist ein besonderes Import-Verzeichnis zugeordnet
* Dieser Baustelle ist ein besonderes Import-Verzeichnis zugeordnet
* Dort liegt die Datei Mapping.txt
* Dort liegt die Datei Mapping.txt
FILE.MESSAGE.HEAD.ORDER.id;ORDER.id
<s>FILE.MESSAGE.number;ORDER.Meldung</s> ## FALSCH
FILE.MESSAGE.DATA.POSITION.TASK.operation;ORDER.Grund
FILE.MESSAGE.DATA.POSITION.TASK.operator;ORDER.Auftraggeber
FILE.MESSAGE.DATA.POSITION.TASK.notes;ORDER.BEMERKUNGEN
   
   
  FILE.MESSAGE.DATA.POSITION.CUSTOMER.name;BRIEF.Name
  FILE.MESSAGE.number;ORDER.Nummer
  FILE.MESSAGE.DATA.POSITION.CUSTOMER.street;BRIEF.Strasse
FILE.MESSAGE.HEAD.order_id;ORDER.id
  FILE.MESSAGE.DATA.POSITION.CUSTOMER.street_nr;BRIEF.Hausnummer
FILE.MESSAGE.HEAD.description;ORDER.Bemerkung
  FILE.MESSAGE.DATA.POSITION.CUSTOMER.postcode;BRIEF.PLZ
FILE.MESSAGE.POSITION.order_position;ORDER.Aufgabe
  FILE.MESSAGE.DATA.POSITION.CUSTOMER.city;BRIEF.Ort
FILE.MESSAGE.POSITION.service;ORDER.Grund
  FILE.MESSAGE.DATA.POSITION.CUSTOMER.id;BRIEF.KundeNummer
FILE.MESSAGE.POSITION.LOCATION.org_unit;ORDER.Auftraggeber
FILE.MESSAGE.POSITION.CUSTOMER.name;BRIEF.Name
  FILE.MESSAGE.POSITION.CUSTOMER.id;BRIEF.KundeNummer
FILE.MESSAGE.POSITION.CUSTOMER.ADDRESS.street;BRIEF.Strasse
  FILE.MESSAGE.POSITION.CUSTOMER.ADDRESS.street_nr;BRIEF.Hausnummer
  FILE.MESSAGE.POSITION.CUSTOMER.ADDRESS.postcode;BRIEF.PLZ
  FILE.MESSAGE.POSITION.CUSTOMER.ADDRESS.city;BRIEF.Ort
  FILE.MESSAGE.POSITION.CUSTOMER.ADDRESS.city_district;BRIEF.Ortsteil
   
   
  FILE.MESSAGE.DATA.POSITION.LOCATION.postcode;LIEGENSCHAFT.PLZ
  FILE.MESSAGE.POSITION.LOCATION.counting_level;LIEGENSCHAFT.Zählebene
  FILE.MESSAGE.DATA.POSITION.LOCATION.city;LIEGENSCHAFT.Ort
FILE.MESSAGE.POSITION.LOCATION.metering_point;LIEGENSCHAFT.Messstelle
  FILE.MESSAGE.DATA.POSITION.LOCATION.street;LIEGENSCHAFT.Strasse
  FILE.MESSAGE.POSITION.LOCATION.info;LIEGENSCHAFT.Info
  FILE.MESSAGE.DATA.POSITION.LOCATION.street_nr;LIEGENSCHAFT.Hausnummer
FILE.MESSAGE.POSITION.LOCATION.net;LIEGENSCHAFT.Netz
  FILE.MESSAGE.DATA.POSITION.LOCATION.metering_point;LIEGENSCHAFT.Messstelle
  FILE.MESSAGE.POSITION.LOCATION.ADDRESS.street;LIEGENSCHAFT.Strasse
  FILE.MESSAGE.POSITION.LOCATION.ADDRESS.street_nr;LIEGENSCHAFT.Hausnummer
  FILE.MESSAGE.POSITION.LOCATION.ADDRESS.postcode;LIEGENSCHAFT.PLZ
FILE.MESSAGE.POSITION.LOCATION.ADDRESS.city;LIEGENSCHAFT.Ort
FILE.MESSAGE.POSITION.LOCATION.ADDRESS.city_district;LIEGENSCHAFT.Ortsteil
   
   
  FILE.MESSAGE.DATA.POSITION.ARTICLE_TYPE.type_description;ZAEHLER.Art
  FILE.MESSAGE.POSITION.ARTICLE.id;ZAEHLER.Nummer
  FILE.MESSAGE.DATA.POSITION.ARTICLE.article_description;ZAEHLER.Info
  FILE.MESSAGE.POSITION.ARTICLE.article_description;ZAEHLER.Info
  FILE.MESSAGE.DATA.POSITION.ARTICLE.id;ZAEHLER.Nummer
  FILE.MESSAGE.POSITION.ARTICLE.type_description;ZAEHLER.Material
  FILE.MESSAGE.DATA.POSITION.ARTICLE_TYPE.device_group;ZAEHLER.Typ
  FILE.MESSAGE.POSITION.ARTICLE.device_group;ZAEHLER.Artikel
  FILE.MESSAGE.DATA.POSITION.ARTICLE.device_group;ZAEHLER.Artikel
  FILE.MESSAGE.POSITION.ARTICLE.no_further_use;Verschrottung
   
   
  FILE.MESSAGE.DATA.POSITION.LOCATION.city_district;LIEGENSCHAFT.Ortsteil
  FILE.MESSAGE.POSITION.ARTICLE_TYPE.device_group;EINBAU.Typ
  FILE.MESSAGE.DATA.POSITION.ARTICLE.no_further_use;Verschrottung
  FILE.MESSAGE.POSITION.ARTICLE_TYPE.device_parameters;EINBAU.Parameter
  FILE.MESSAGE.DATA.POSITION.LOCATION.usage_metering_point;Verwendung
  FILE.MESSAGE.POSITION.ARTICLE_TYPE.product;EINBAU.Art
  FILE.MESSAGE.DATA.POSITION.planning_reason;ORDER.Motiv
  FILE.MESSAGE.POSITION.ARTICLE_TYPE.type_description;EINBAU.Material
FILE.MESSAGE.DATA.POSITION.order_position;ORDER.Position
 
  PK;ORDER.Anker
  PK;ORDER.Anker
FILE.MESSAGE.DATA.POSITION.LOCATION.net;LIEGENSCHAFT.Netz
FILE.MESSAGE.DATA.POSITION.LOCATION.info;LIEGENSCHAFT.Info
   
   
  0=<?xml version="1.0" encoding="ISO-8859-1"?>
  0=<?xml version="1.0" encoding="ISO-8859-1"?>
  IGNORE=1-0:1.7.1;W|1-0:0.0.9*255;|1-0:1.8.0;kWh|1-0:21.7.0;W|1-0:41.7.0;W|1-0:61.7.0;W
  IGNORE=1-0:1.7.1;W|1-0:0.0.9*255;|1-0:1.8.0;kWh|1-0:21.7.0;W|1-0:41.7.0;W|1-0:61.7.0;W
  NAMESPACE=ORDER.Auftraggeber;ORDER.Motiv;LIEGENSCHAFT.Netz
  NAMESPACE=ORDER.Auftraggeber
  REPLACE=(Regionalzentrum|)(Demontage|Dem)(Anlagenänderung|AnÄ)(Vertragsänderung|VeÄ)(Stichprobe|Sti)(Neuinstallation|Neu)(Störung|Stö)(  | )(--|-)
  REPLACE=(Regionalzentrum|)(Demontage|Dem)(Anlagenänderung|AnÄ)(Vertragsänderung|VeÄ)(Stichprobe|Sti)(Neuinstallation|Neu)(Störung|Stö)(  | )(--|-)


Zeile 58: Zeile 62:
=== Schema ===
=== Schema ===


  Zähler_Nummer(28)
  Zähler_Nummer(24)
  Regler_Nummer(02)
  SAP_Info_#_#(ORDER.Nummer,02)
  SAP_Info_#_#(ORDER.id,02)
  SAP_Info_#_#(ORDER.id,03)
  SAP_Info_#_#(ORDER.Position,04)
  SAP_Info_#_#(ORDER.Bemerkung,04)
  SAP_Info_#_#(Sparte,05)
  SAP_Info_#_#(ORDER.Aufgabe,05)
  SAP_Info_#_#(Motiv,10)
  SAP_Info_#_#(ORDER.Grund,06)
  SAP_Info_#_#(AuftragsQuelle,01)
  SAP_Info_#_#(AuftragsQuelle,01)
  SAP_Info_#_#(Meldung,03)
  SAP_Info_#_#(Einbau.Typ,29)
  SAP_Info_#_#(Typ,33)
  SAP_Info_#_#(Einbau.Art,31)
  SAP_Info_#_#(Artikel,32)
  SAP_Info_#_#(Einbau.Material,26)
  Kunde_Brief_Name1(12)
  SAP_Info_#_#(edis_key,35)
  Kunde_Brief_Strasse_#_#_#(13,14,)
  SAP_Info_#_#(Zaehlwerk,34)
  Kunde_Brief_Ort_#_#_#(16,17,)
SAP_Info_#_#(Zaehlernummer.Ausbau,24)
  Kunde_Brief_Nummer(11)
  Zähler_Info_#_#(Zahler.Material,26)
  Zähler_Ort_Name1(12)
Zähler_Info_#_#(edis_key,35)
  Zähler_Ort_Strasse_#_#_#(18,19,)
Transaktion(HAC)
Kunde_Brief_Name1(08)
  Kunde_Brief_Nummer(09)
Kunde_Brief_Strasse_#_#_#(10,11,)
  Kunde_Brief_Ort_#_#(12,13)
Zähler_Info_#_#(Liegensch.-Info,17)
Zähler_Info_#_#(Messtelle,16)
  Zähler_Ort_Strasse_#_#_#(19,20,)
  Zähler_Ort_Ort_#_#(21,22)
  Zähler_Ort_Ort_#_#(21,22)
  Zähler_Ort_Ortsteil(20)
  Zähler_Ort_Ortsteil(23)
Monteur_Info_#_#(,09)
  SAP_Art_#_#(31,34)
Monteur_Info_#_#(,06)
Zähler_Info_#_#(,27)
Zähler_Info_#_#(OT,22)
Zähler_Info_#_#(ZLP_Messstelle,23)
  Zähler_Info_#_#(ZLP_Netz,24)
Zähler_Info_#_#(ZLP_Info,25)
Zähler_Info_#_#(ZLP_Verwendung,26)
Zähler_Info_#_#(Zählerausbau_Info,27)
Transaktion(HAC)
Zähler_Info_#_#(Netz,29)
Zähler_Info_#_#(Liegenschaft Info,30)
Zähler_Info_#_#(Zählwerk,36)
Zähler_Info_#_#(ZählerEinbau_Produkt,34)
Zähler_Info_#_#(edis_key,37)
SAP_Info_#_#(edis_key,37)
SAP_Info_#_#(Zählwerk,36)
Zähler_Info_#_#(Zählernummer Ausbau,28)
SAP_Info_#_#(Zählernumer Ausbau,28)


* technisch notwendige Felder sind
* technisch notwendige Felder sind

Version vom 2. April 2020, 11:12 Uhr

zurück


Import

  • der Import erfolgt in sogenannten Auftrags- oder Import-Baustellen.
  • Das Baustellen-Kürzel wird mit einem "#" eingeleitet
  • Dieser Baustelle ist ein besonderes Import-Verzeichnis zugeordnet
  • Dort liegt die Datei Mapping.txt
FILE.MESSAGE.number;ORDER.Nummer
FILE.MESSAGE.HEAD.order_id;ORDER.id
FILE.MESSAGE.HEAD.description;ORDER.Bemerkung
FILE.MESSAGE.POSITION.order_position;ORDER.Aufgabe
FILE.MESSAGE.POSITION.service;ORDER.Grund
FILE.MESSAGE.POSITION.LOCATION.org_unit;ORDER.Auftraggeber

FILE.MESSAGE.POSITION.CUSTOMER.name;BRIEF.Name
FILE.MESSAGE.POSITION.CUSTOMER.id;BRIEF.KundeNummer
FILE.MESSAGE.POSITION.CUSTOMER.ADDRESS.street;BRIEF.Strasse
FILE.MESSAGE.POSITION.CUSTOMER.ADDRESS.street_nr;BRIEF.Hausnummer
FILE.MESSAGE.POSITION.CUSTOMER.ADDRESS.postcode;BRIEF.PLZ
FILE.MESSAGE.POSITION.CUSTOMER.ADDRESS.city;BRIEF.Ort
FILE.MESSAGE.POSITION.CUSTOMER.ADDRESS.city_district;BRIEF.Ortsteil

FILE.MESSAGE.POSITION.LOCATION.counting_level;LIEGENSCHAFT.Zählebene
FILE.MESSAGE.POSITION.LOCATION.metering_point;LIEGENSCHAFT.Messstelle
FILE.MESSAGE.POSITION.LOCATION.info;LIEGENSCHAFT.Info
FILE.MESSAGE.POSITION.LOCATION.net;LIEGENSCHAFT.Netz
FILE.MESSAGE.POSITION.LOCATION.ADDRESS.street;LIEGENSCHAFT.Strasse
FILE.MESSAGE.POSITION.LOCATION.ADDRESS.street_nr;LIEGENSCHAFT.Hausnummer
FILE.MESSAGE.POSITION.LOCATION.ADDRESS.postcode;LIEGENSCHAFT.PLZ
FILE.MESSAGE.POSITION.LOCATION.ADDRESS.city;LIEGENSCHAFT.Ort
FILE.MESSAGE.POSITION.LOCATION.ADDRESS.city_district;LIEGENSCHAFT.Ortsteil

FILE.MESSAGE.POSITION.ARTICLE.id;ZAEHLER.Nummer
FILE.MESSAGE.POSITION.ARTICLE.article_description;ZAEHLER.Info
FILE.MESSAGE.POSITION.ARTICLE.type_description;ZAEHLER.Material
FILE.MESSAGE.POSITION.ARTICLE.device_group;ZAEHLER.Artikel
FILE.MESSAGE.POSITION.ARTICLE.no_further_use;Verschrottung

FILE.MESSAGE.POSITION.ARTICLE_TYPE.device_group;EINBAU.Typ
FILE.MESSAGE.POSITION.ARTICLE_TYPE.device_parameters;EINBAU.Parameter
FILE.MESSAGE.POSITION.ARTICLE_TYPE.product;EINBAU.Art
FILE.MESSAGE.POSITION.ARTICLE_TYPE.type_description;EINBAU.Material
PK;ORDER.Anker

0=<?xml version="1.0" encoding="ISO-8859-1"?>
IGNORE=1-0:1.7.1;W|1-0:0.0.9*255;|1-0:1.8.0;kWh|1-0:21.7.0;W|1-0:41.7.0;W|1-0:61.7.0;W
NAMESPACE=ORDER.Auftraggeber
REPLACE=(Regionalzentrum|)(Demontage|Dem)(Anlagenänderung|AnÄ)(Vertragsänderung|VeÄ)(Stichprobe|Sti)(Neuinstallation|Neu)(Störung|Stö)(  | )(--|-)


  • Die xml-Auftragsdateien müssen auch ins Baustellen-Verzeichnis der jeweiligen Baustellen verschoben werden
  • Verschrottung.ini
TRUE=Schrott
*=

Schema

Zähler_Nummer(24)
SAP_Info_#_#(ORDER.Nummer,02)
SAP_Info_#_#(ORDER.id,03)
SAP_Info_#_#(ORDER.Bemerkung,04)
SAP_Info_#_#(ORDER.Aufgabe,05)
SAP_Info_#_#(ORDER.Grund,06)
SAP_Info_#_#(AuftragsQuelle,01)
SAP_Info_#_#(Einbau.Typ,29)
SAP_Info_#_#(Einbau.Art,31)
SAP_Info_#_#(Einbau.Material,26)
SAP_Info_#_#(edis_key,35)
SAP_Info_#_#(Zaehlwerk,34)
SAP_Info_#_#(Zaehlernummer.Ausbau,24)
Zähler_Info_#_#(Zahler.Material,26)
Zähler_Info_#_#(edis_key,35)
Transaktion(HAC)
Kunde_Brief_Name1(08)
Kunde_Brief_Nummer(09)
Kunde_Brief_Strasse_#_#_#(10,11,)
Kunde_Brief_Ort_#_#(12,13)
Zähler_Info_#_#(Liegensch.-Info,17)
Zähler_Info_#_#(Messtelle,16)
Zähler_Ort_Strasse_#_#_#(19,20,)
Zähler_Ort_Ort_#_#(21,22)
Zähler_Ort_Ortsteil(23)
SAP_Art_#_#(31,34)
  • technisch notwendige Felder sind
ORDER.id
ORDER.Position
AuftragsQuelle
Meldung

Reiter Ergebnis

#
# Zugangsdaten
#
FTPVerzeichnis=import

#
# Zugangsdaten zur Foto-Ablage
#
FTPServer-Foto=...
FTPBenutzer-Foto=...
FTPPasswort-Foto=...
ZipPasswort-Foto=...

#
# Dateiformat
#
ZipPräfix=xxx-
SpaltenReihenfolge=ORDER.id!;ORDER.Position;Zw;Sparte;Messpunkt;AuftragsQuelle;Meldung;WechselDatum;Verbraucher_Ort;Verbraucher_Strasse;Zaehler_Nummer;ZaehlerStandAlt;NA;NB;ZaehlerNummerNeu;ZaehlerStandNeu;NN;Eigentumsnummer;V1;V2;V3;FA!;FN!
Zählwerk=Zw
AuchAlsXML=JA
EinsZuEins=NEIN
EineDatei=JA
eMail=...
AuchMitFoto=FA;FN
OhneStandardXLS=JA

#
# QS-Mode "aus"
#
QS_Mode=0

Reiter Protokolle

# Vergebliche Besuche
V1
V2
V3
# Bemerkung 
I3
I4
I5
# wichtiger Hinweis
I6
I7
I8
# Fotos
FA
FN

Ergebnismeldung

notwendige Dateien

  • xls2xml.ini
Bilder=JA


  • ArbeitsschritteImport-v21.dtd (notwnedig wegen Oc, damit der Schnittstellen-Typ erkannt wird)
  • ArbeitsschritteImport-v23.dtd (notwendig wegen der Schema-Prüfung, also ob die Ergebnis-Datei valide ist)