Grupy dyskusyjne   »   sucheny do Remusa

sucheny do Remusa



1 Data: Grudzien 15 2008 09:21:22
Temat: sucheny do Remusa
Autor: Mak 

 <?xml version = "1.0" encoding = "ISO-8859-1"?>

<SuchDialogTransfer>
   <ObjektID>SuchDialog</ObjektID>
   <Bezeichnung>...</Bezeichnung>
   <XML-Erstellt>01.12.08 14:11</XML-Erstellt>
   <Objekte>
      <TBSuchDialog>
         <UniqueID>MODELL</UniqueID>
         <Name>MODELL</Name>
         <Titel>MODELL</Titel>
         <Beschreibung>MODEL from SARKATRB</Beschreibung>
         <ReturnFields>MODELL</ReturnFields>
         <Partner/>
         <MengenFaehig>FALSE</MengenFaehig>
         <FieldList/>
      </TBSuchDialog>
      <TBSuchDialogVariante>
         <UniqueID>MODELL.1</UniqueID>
         <Name>1</Name>
         <Bezeichnung>MODELL</Bezeichnung>
         <Sql>          SELECT MARKE, MODELL FROM SARKATRB</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
   </Objekte>
</SuchDialogTransfer><?xml version = "1.0" encoding = "ISO-8859-1"?>

<SuchDialogTransfer>
   <ObjektID>SuchDialog</ObjektID>
   <Bezeichnung>...</Bezeichnung>
   <XML-Erstellt>01.12.08 14:11</XML-Erstellt>
   <Objekte>
      <TBSuchDialog>
         <UniqueID>MARKE</UniqueID>
         <Name>MARKE</Name>
         <Titel/>
         <Beschreibung/>
         <ReturnFields>MARKE</ReturnFields>
         <Partner/>
         <MengenFaehig>FALSE</MengenFaehig>
         <FieldList/>
      </TBSuchDialog>
      <TBSuchDialogVariante>
         <UniqueID>MARKE.1</UniqueID>
         <Name>1</Name>
         <Bezeichnung>Marke</Bezeichnung>
         <Sql>              SELECT MARKE FROM SARKATRA</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
   </Objekte>
</SuchDialogTransfer><?xml version = "1.0" encoding = "ISO-8859-1"?>

<SuchDialogTransfer>
   <ObjektID>SuchDialog</ObjektID>
   <Bezeichnung>...</Bezeichnung>
   <XML-Erstellt>10.12.08 14:37</XML-Erstellt>
   <Objekte>
      <TBSuchDialog>
         <UniqueID>ARTIKEL</UniqueID>
         <Name>ARTIKEL</Name>
         <Titel>Artikel suchen</Titel>
         <Beschreibung>Artikel</Beschreibung>
         <ReturnFields>Nummer</ReturnFields>
         <Partner/>
         <MengenFaehig>FALSE</MengenFaehig>
         <FieldList>ALSATZST</FieldList>
      </TBSuchDialog>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.1</UniqueID>
         <Name>1</Name>
         <Bezeichnung>Artikelsuche</Bezeichnung>
         <Sql>&lt;SQL&gt;  &lt;Field Name=&quot;NrLief&quot; Domain=&quot;SAR300.NRLIEF&quot;/&gt;
&lt;Field Name=&quot;NrBestell&quot; Domain=&quot;SAR300.NRBESTELL&quot;/&gt;
&lt;Field Name=&quot;LIEFART&quot; Domain=&quot;SAR300.LIEFART&quot;/&gt;
&lt;Field Name=&quot;ALSATZST&quot; Domain=&quot;SAR300.SATZSTATUS&quot;/&gt;
&lt;Field Name=&quot;WGRBEZ&quot; Domain=&quot;SAR130.BEZ&quot;/&gt;

&lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@x&quot; /&gt;
select * from (
  SELECT a.Bez,
         a.Nummer,
         a.Matchcode,
         b.NrLief,           b.LIEFART,          b.SATZSTATUS as ALSATZST,
         b.NrBestell,
         a.NrGrp,           (select x.bez from sar130 x where a.nrgrp=x.nrwagrp) as WGRBEZ,
         a.Artikeltyp,          a.nrekgrp,           a.Beschaffart,
         a.KZDivArt,
         a.Lagertyp,
         a.Produktlinie,
         a.Lagerbewertart,
         a.Zollartikel,
         a.Exportverbot,
         a.NrHersteller,
         a.ZeichNr,
         a.Sortiment,
         a.Satzstatus
  FROM SAR100 a
 &lt;COND DBTYPE = &quot;ORACLE&quot;&gt;
  &lt;VALID&gt;
     , SAR300 b
     where a.nummer = b.nummer (+)
       and (b.LIEFART =&apos;1&apos; or b.liefart is NULL)

  &lt;/VALID&gt;
  &lt;INVALID&gt;
     left join SAR300 b
     on a.nummer = b.nummer      WHERE (b.LIEFART =&apos;1&apos; or b.liefart is NULL)
  &lt;/INVALID&gt;
  &lt;/COND&gt;
  &lt;FILTER NAME=&quot;SAR100.PAS&quot; DOC=&quot;NUMMER,ARTIKELTYP&quot;/&gt;  ) x   where (x.ALSATZST is NULL or x.ALSATZST =&apos;0&apos;)

&lt;/SQL&gt;
</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID>@ARTIKEL</DomainID>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.2</UniqueID>
         <Name>2</Name>
         <Bezeichnung>Artikelsuche &#252;ber alle Lieferanten</Bezeichnung>
         <Sql>&lt;SQL&gt;  &lt;Field Name=&quot;NrLief&quot; Domain=&quot;SAR300.NRLIEF&quot;/&gt;
&lt;Field Name=&quot;NrBestell&quot; Domain=&quot;SAR300.NRBESTELL&quot;/&gt;
&lt;Field Name=&quot;LIEFART&quot; Domain=&quot;SAR300.LIEFART&quot;/&gt;
&lt;Field Name=&quot;ALSATZST&quot; Domain=&quot;SAR300.SATZSTATUS&quot;/&gt;
&lt;!--      Erst mal wieder auskommentiert weil keine Zeilenweise verkn&#252;pfte Suche mit dieser Einstellung m&#246;glich ist.
    Wenn die Memtable als ComObjekt &#252;bergeben werden kann (Hr. Romen) dann kommt das wieder zum tragen.
    &lt;USERPARAM NAME=&quot;TREATASSTATIC&quot; VALUE=&quot;SELECT=[NRLIEF] PARAM=[LIEFERANT]&quot; /&gt;     &lt;USERPARAM NAME=&quot;TREATASSTATIC&quot; VALUE=&quot;SELECT=[LIEFART] PARAM=[XLIEFART]&quot; /&gt; -- !&gt; &lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@x&quot; /&gt;
select * from (
  SELECT a.Bez,
         a.Nummer,
         a.Matchcode,
         b.NrLief,           b.LIEFART,          b.SATZSTATUS as ALSATZST,
         b.NrBestell,
         a.NrGrp,           (select x.bez from sar130 x where a.nrgrp=x.nrwagrp) as WGRBEZ,
         a.Artikeltyp,          a.nrekgrp,           a.Beschaffart,
         a.KZDivArt,
         a.Lagertyp,
         a.Produktlinie,
         a.Lagerbewertart,
         a.Zollartikel,
         a.Exportverbot,
         a.NrHersteller,
         a.ZeichNr,
         a.Sortiment,
         a.ktocode,
         a.lagercharge,
         a.lagersernr,
         a.lagernve,
         a.nrstschl,
         a.nrkstl,
         a.Satzstatus
  FROM SAR100 a
 &lt;COND DBTYPE = &quot;ORACLE&quot;&gt;
  &lt;VALID&gt;
     , SAR300 b
     where a.nummer = b.nummer (+)
  &lt;/VALID&gt;
  &lt;INVALID&gt;
     left join SAR300 b
     on a.nummer = b.nummer      WHERE 1=1
  &lt;/INVALID&gt;
  &lt;/COND&gt;
  &lt;FILTER NAME=&quot;SAR100.PAS&quot; DOC=&quot;NUMMER,ARTIKELTYP&quot;/&gt;  ) x   where (x.ALSATZST is NULL or x.ALSATZST =&apos;0&apos;)

&lt;!--    Erst mal wieder auskommentiert weil keine Zeilenweise verkn&#252;pfte Suche mit dieser Einstellung m&#246;glich ist.
  Wenn die Memtable als ComObjekt &#252;bergeben werden kann (Hr. Romen) dann kommt das wieder zum tragen.
  and (:LIEFERANT IS NULL and ((:XLIEFART IS NULL and (x.liefart=&apos;1&apos; or x.liefart IS NULL))
                           OR ((:XLIEFART between &apos;0&apos; and &apos;z&apos;) and (:XLIEFART  = x.LIEFART))))
   OR (:LIEFERANT between &apos;0&apos; and &apos;zzzzzzzzzz&apos; and :LIEFERANT = x.NRLIEF        and (:XLIEFART IS NULL OR (:XLIEFART between &apos;0&apos; and &apos;z&apos; and :XLIEFART  = x.LIEFART)))
-- !&gt;

  &lt;/SQL&gt;
</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID>@ARTIKEL</DomainID>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.3</UniqueID>
         <Name>3</Name>
         <Bezeichnung>Optionale-Artikel suchen</Bezeichnung>
         <Sql>&lt;SQL&gt;  &lt;Field Name=&quot;Nummer&quot; Domain=&quot;SAR100.NUMMER&quot;/&gt;
&lt;Field Name=&quot;Matchcode&quot; Domain=&quot;SAR100.MATCHCODE&quot;/&gt;
&lt;Field Name=&quot;Bez&quot; Domain=&quot;SAR100.BEZ&quot;/&gt;
&lt;Field Name=&quot;Satzstatus&quot; Domain=&quot;SAR100.SATZSTATUS&quot;/&gt;
&lt;Field Name=&quot;OPTNUMMER&quot; Domain=&quot;SAR104.OPTNUMMER&quot;/&gt;
&lt;Field Name=&quot;Optbez&quot; Domain=&quot;SAR100.BEZ&quot;/&gt;
&lt;Field Name=&quot;Optmatchcode&quot; Domain=&quot;SAR100.MATCHCODE&quot;/&gt;
&lt;Field Name=&quot;OptSatzstatus&quot; Domain=&quot;SAR100.SATZSTATUS&quot;/&gt;
&lt;Field Name=&quot;Menge&quot; Domain=&quot;SAR104.MENGE&quot;/&gt;
&lt;USERPARAM NAME=&quot;NUMMER&quot;       VALUE=&quot;SORT ASC&quot; /&gt;
&lt;USERPARAM NAME=&quot;OPTNUMMER&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@a&quot; /&gt;
 SELECT a.Bez,
       a.Nummer,
       a.Matchcode,
       a.Satzstatus,
       b.OPTNUMMER,
      (select Matchcode from sar100 x where b.OPTNUMMER=x.nummer) as Optmatchcode,
      (select bez from sar100 x where b.OPTNUMMER=x.nummer) as Optbez,
      (select Satzstatus from sar100 x where b.OPTNUMMER=x.nummer) as Optsatzstatus,
      b.Menge
FROM SAR100 a, SAR104 b
WHERE a.NUMMER = b.NUMMER   &lt;FILTER NAME=&quot;SAR100.PAS&quot; DOC=&quot;NUMMER,ARTIKELTYP&quot;/&gt;
&lt;/SQL&gt;
</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.4</UniqueID>
         <Name>4</Name>
         <Bezeichnung>Artikelsuche &#252;ber Ref.-Art-Nr.-Lieferant</Bezeichnung>
         <Sql>&lt;SQL&gt;  &lt;USERPARAM NAME=&quot;ARTNRLIEFERANT&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;USERPARAM NAME=&quot;NUMMER&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@a&quot; /&gt;
 SELECT b.ARTNRLIEFERANT,
       a.Nummer,
       a.Bez,
       a.Matchcode,
       (select NrLief from sar300 x where a.nummer=x.nummer and b.NrLief=x.Nrlief and x.satzstatus &lt;=&apos;0&apos;) as NrLief,
       (select NrBestell from sar300 x where a.nummer=x.nummer and  b.NrLief=x.Nrlief and x.satzstatus &lt;=&apos;0&apos;) as NrBestell,
       a.NrGrp,
       a.Artikeltyp,
       a.Beschaffart,
       a.KZDivArt,
       a.Lagertyp,
       a.Produktlinie,
       a.Lagerbewertart,
       a.Sortiment,
       a.Zollartikel,
       a.Exportverbot,
       a.NrHersteller,
       a.ZeichNr,
       a.Satzstatus
FROM SAR100 a, SAR125 b
WHERE a.NUMMER = b.NUMMER   &lt;FILTER NAME=&quot;SAR100.PAS&quot; DOC=&quot;NUMMER,ARTIKELTYP&quot;/&gt;
&lt;/SQL&gt;
</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.5</UniqueID>
         <Name>5</Name>
         <Bezeichnung>Ersatzartikel suchen</Bezeichnung>
         <Sql>&lt;SQL&gt;  &lt;USERPARAM NAME=&quot;NUMMER&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;USERPARAM NAME=&quot;PRIORITAET&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@a&quot; /&gt;

SELECT a.Bez,
       a.Nummer,
       a.Matchcode,
       a.Satzstatus,
       b.NRERSATZARTIKEL,
      (select Matchcode from sar100 x where b.NRERSATZARTIKEL=x.nummer) as Ersatzmatchcode,
      (select bez from sar100 x where b.NRERSATZARTIKEL=x.nummer) as Ersatzbez,
      (select Satzstatus from sar100 x where b.NRERSATZARTIKEL=x.nummer) as Ersatzsatzstatus,
      b.Prioritaet,
      b.Art,
      b.DatumVon,
      b.DatumBis
FROM SAR100 a, SAR111 b
WHERE a.NUMMER = b.NRARTIKEL   &lt;FILTER NAME=&quot;SAR100.PAS&quot; DOC=&quot;NUMMER,ARTIKELTYP&quot;/&gt;
&lt;/SQL&gt;
</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID>@ERSATZARTIKEL</DomainID>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.6</UniqueID>
         <Name>6</Name>
         <Bezeichnung>Artikelsuche &#252;ber Kundenartikelnummer</Bezeichnung>
         <Sql>
&lt;SQL&gt;

&lt;USERPARAM NAME=&quot;NUMMERKD&quot;       VALUE=&quot;SORT ASC&quot; /&gt;
&lt;USERPARAM NAME=&quot;NUMMER&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@a&quot; /&gt;
 SELECT b.NUMMERKD,
       b.BEZKUNDE,
       b.ZUSATZANGABE,
       b.EMPFVKPREIS,
       a.Nummer,
       a.Bez,
       a.Matchcode,
       a.NrGrp,
       a.Artikeltyp,
       a.Beschaffart,
       a.KZDivArt,
       a.Lagertyp,
       a.Produktlinie,
       a.Lagerbewertart,
       a.Sortiment,
       a.Zollartikel,
       a.Exportverbot,
       a.NrHersteller,
       a.ZeichNr,
       a.Satzstatus
FROM SAR100 a, SPR500 b
WHERE a.NUMMER = b.NUMMER   &lt;FILTER NAME=&quot;SAR100.PAS&quot; DOC=&quot;NUMMER,ARTIKELTYP&quot;/&gt;
&lt;/SQL&gt;

</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.8</UniqueID>
         <Name>8</Name>
         <Bezeichnung>Artikelsuche &#252;ber def. Lager, Lagerplatz</Bezeichnung>
         <Sql>&lt;SQL&gt;  &lt;USERPARAM NAME=&quot;NUMMER&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;USERPARAM NAME=&quot;NRLAGER&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;USERPARAM NAME=&quot;LGORT&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@a&quot; /&gt;
 Select  b.NrLager,         b.LgOrt,
        a.Nummer,
        a.Bez,         a.Matchcode,        (select NrLief from sar300 x where a.nummer=x.nummer and x.liefart=&apos;1&apos; and x.satzstatus &lt;=&apos;0&apos;) as NrLief,
       (select NrBestell from sar300 x where a.nummer=x.nummer and x.liefart=&apos;1&apos; and x.satzstatus &lt;=&apos;0&apos;) as NrBestell,
        a.NrGrp,         a.Artikeltyp,         a.Beschaffart,         a.KZDivArt,
        a.Lagertyp,         a.Produktlinie,         a.Lagerbewertart,         a.Sortiment,         a.Zollartikel,
        a.Exportverbot,         a.NrHersteller,
        a.ZeichNr,
        a.Satzstatus
From SAR100 a, SLA010 c, SAR103 b

Where a.Nummer = b.Nummer
      And c.NrLager = b.NrLager   &lt;FILTER NAME=&quot;SAR100.PAS&quot; DOC=&quot;NUMMER,ARTIKELTYP&quot;/&gt;

&lt;/SQL&gt;
</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID>@LAGER</DomainID>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.10</UniqueID>
         <Name>10</Name>
         <Bezeichnung>Artikelsuche &#252;ber Artikelcode</Bezeichnung>
         <Sql>&lt;SQL&gt;  &lt;Field Name=&quot;STELLE1&quot; Domain=&quot;SAR145A.STELLE1&quot;/&gt;
&lt;Field Name=&quot;STELLE2&quot; Domain=&quot;SAR145A.STELLE2&quot;/&gt;
&lt;Field Name=&quot;STELLE3&quot; Domain=&quot;SAR145A.STELLE3&quot;/&gt;
&lt;Field Name=&quot;STELLE4&quot; Domain=&quot;SAR145A.STELLE4&quot;/&gt;
&lt;Field Name=&quot;STELLE5&quot; Domain=&quot;SAR145A.STELLE5&quot;/&gt;
&lt;Field Name=&quot;Bez1&quot; Domain=&quot;SAR145.BEZ&quot;/&gt;
&lt;Field Name=&quot;Nummer&quot; Domain=&quot;SAR100.NUMMER&quot;/&gt;
&lt;Field Name=&quot;Matchcode&quot; Domain=&quot;SAR100.MATCHCODE&quot;/&gt;
&lt;Field Name=&quot;Bez&quot; Domain=&quot;SAR100.BEZ&quot;/&gt;
&lt;Field Name=&quot;NrLief&quot; Domain=&quot;SAR300.NRLIEF&quot;/&gt;
&lt;Field Name=&quot;NrBestell&quot; Domain=&quot;SAR300.NRBESTELL&quot;/&gt;
&lt;Field Name=&quot;NrGrp&quot; Domain=&quot;SAR100.NRGRP&quot;/&gt;
&lt;Field Name=&quot;Artikeltyp&quot; Domain=&quot;SAR100.ARTIKELTYP&quot;/&gt;
&lt;Field Name=&quot;Beschaffart&quot; Domain=&quot;SAR100.BESCHAFFART&quot;/&gt;
&lt;Field Name=&quot;KZDivArt&quot; Domain=&quot;SAR100.KZDIVART&quot;/&gt;
&lt;Field Name=&quot;Lagertyp&quot; Domain=&quot;SAR100.LAGERTYP&quot;/&gt;
&lt;Field Name=&quot;Produktlinie&quot; Domain=&quot;SAR100.PRODUKTLINIE&quot;/&gt;
&lt;Field Name=&quot;Lagerbewertart&quot; Domain=&quot;SAR100.LAGERBEWERTART&quot;/&gt;
&lt;Field Name=&quot;Sortiment&quot; Domain=&quot;SAR100.SORTIMENT&quot;/&gt;
&lt;Field Name=&quot;Zollartikel&quot; Domain=&quot;SAR100.ZOLLARTIKEL&quot;/&gt;
&lt;Field Name=&quot;Exportverbot&quot; Domain=&quot;SAR100.EXPORTVERBOT&quot;/&gt;
&lt;Field Name=&quot;NrHersteller&quot; Domain=&quot;SAR100.NRHERSTELLER&quot;/&gt;
&lt;Field Name=&quot;ZeichNr&quot; Domain=&quot;SAR100.ZEICHNR&quot;/&gt;
&lt;Field Name=&quot;Satzstatus&quot; Domain=&quot;SAR100.SATZSTATUS&quot;/&gt;
&lt;USERPARAM NAME=&quot;STELLE1&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;USERPARAM NAME=&quot;STELLE2&quot;       VALUE=&quot;SORT ASC&quot; /&gt;
&lt;USERPARAM NAME=&quot;STELLE3&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;USERPARAM NAME=&quot;STELLE4&quot;       VALUE=&quot;SORT ASC&quot; /&gt;
&lt;USERPARAM NAME=&quot;STELLE5&quot;       VALUE=&quot;SORT ASC&quot; /&gt; &lt;USERPARAM NAME=&quot;NUMMER&quot;       VALUE=&quot;SORT ASC&quot; /&gt;
&lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@a&quot; /&gt;

SELECT cd.STELLE1,
       cd.STELLE2,
       cd.STELLE3,
       cd.STELLE4,
       cd.STELLE5,
 &lt;COND DBTYPE = &quot;ORACLE&quot;&gt;   &lt;VALID&gt;
CAST(
substr(
trim((select bez from sar145 b where b.stelle1 = cd.stelle1 and cd.stelle1 &lt;&gt; 0
and b.stelle2 = 0 and b.stelle3 = 0 and b.stelle4 = 0 and b.stelle5 = 0 ))
|| &apos;, &apos; ||
trim((select bez from sar145 b where b.stelle1 = cd.stelle1 and cd.stelle1 &lt;&gt; 0
and b.stelle2 = cd.stelle2 and cd.stelle2 &lt;&gt; 0
and b.stelle3 = 0 and b.stelle4 = 0 and b.stelle5 = 0 ))
|| &apos;, &apos; ||
trim((select bez from sar145 b where b.stelle1 = cd.stelle1 and cd.stelle1 &lt;&gt; 0
and b.stelle2 = cd.stelle2 and cd.stelle2 &lt;&gt; 0
and b.stelle3 = cd.stelle3 and cd.stelle3 &lt;&gt; 0
and b.stelle4 = 0 and b.stelle5 = 0 ))
|| &apos;, &apos; ||
trim((select bez from sar145 b where b.stelle1 = cd.stelle1 and cd.stelle1 &lt;&gt; 0
and b.stelle2 = cd.stelle2 and cd.stelle2 &lt;&gt; 0
and b.stelle3 = cd.stelle3 and cd.stelle3 &lt;&gt; 0
and b.stelle4 = cd.stelle4 and cd.stelle4 &lt;&gt; 0
and b.stelle5 = 0 ))
|| &apos;, &apos; ||
trim((select bez from sar145 b where b.stelle1 = cd.stelle1 and cd.stelle1 &lt;&gt; 0
and b.stelle2 = cd.stelle2 and cd.stelle2 &lt;&gt; 0
and b.stelle3 = cd.stelle3 and cd.stelle3 &lt;&gt; 0
and b.stelle4 = cd.stelle4 and cd.stelle4 &lt;&gt; 0
and b.stelle5 = cd.stelle5 and cd.stelle5 &lt;&gt; 0)), 1, 100 ) AS VARCHAR2(255) ) as bez1,

  &lt;/VALID&gt;
  &lt;INVALID&gt;

convert( varchar(100), (
isNull((select bez from sar145 b where b.stelle1 = cd.stelle1 and cd.stelle1 &lt;&gt; 0
and b.stelle2 = 0 and b.stelle3 = 0 and b.stelle4 = 0 and b.stelle5 = 0 ), &apos; &apos; ) + &apos;,&apos; +
isNull((select bez from sar145 b where b.stelle1 = cd.stelle1 and cd.stelle1 &lt;&gt; 0
and b.stelle2 = cd.stelle2 and cd.stelle2 &lt;&gt; 0
and b.stelle3 = 0 and b.stelle4 = 0 and b.stelle5 = 0 ), &apos; &apos;) + &apos;,&apos; +
isNull((select bez from sar145 b where b.stelle1 = cd.stelle1 and cd.stelle1 &lt;&gt; 0
and b.stelle2 = cd.stelle2 and cd.stelle2 &lt;&gt; 0
and b.stelle3 = cd.stelle3 and cd.stelle3 &lt;&gt; 0
and b.stelle4 = 0 and b.stelle5 = 0 ), &apos; &apos; )  + &apos;,&apos; +
isNull((select bez from sar145 b where b.stelle1 = cd.stelle1 and cd.stelle1 &lt;&gt; 0
and b.stelle2 = cd.stelle2 and cd.stelle2 &lt;&gt; 0
and b.stelle3 = cd.stelle3 and cd.stelle3 &lt;&gt; 0
and b.stelle4 = cd.stelle4 and cd.stelle4 &lt;&gt; 0
and b.stelle5 = 0 ), &apos;  &apos;) + &apos;,&apos;  +
isNull((select bez from sar145 b where b.stelle1 = cd.stelle1 and cd.stelle1 &lt;&gt; 0
and b.stelle2 = cd.stelle2 and cd.stelle2 &lt;&gt; 0
and b.stelle3 = cd.stelle3 and cd.stelle3 &lt;&gt; 0
and b.stelle4 = cd.stelle4 and cd.stelle4 &lt;&gt; 0
and b.stelle5 = cd.stelle5 and cd.stelle5 &lt;&gt; 0), &apos; &apos; )

)) as bez1,

  &lt;/INVALID&gt;
 &lt;/COND&gt;


       a.Nummer,
       a.Bez,
       a.Matchcode,
       (select NrLief from sar300 x where a.nummer=x.nummer and x.liefart=&apos;1&apos; and x.satzstatus &lt;=&apos;0&apos;) as NrLief,
       (select NrBestell from sar300 x where a.nummer=x.nummer and x.liefart=&apos;1&apos; and x.satzstatus &lt;=&apos;0&apos;) as NrBestell,
       a.NrGrp,
       a.Artikeltyp,
       a.Beschaffart,
       a.KZDivArt,
       a.Lagertyp,
       a.Produktlinie,
       a.Lagerbewertart,
       a.Sortiment,
       a.Zollartikel,
       a.Exportverbot,
       a.NrHersteller,
       a.ZeichNr,
       a.Satzstatus
FROM SAR100 a, SAR145A cd
where a.nummer=cd.nummer   &lt;FILTER NAME=&quot;SAR100.PAS&quot; DOC=&quot;NUMMER,ARTIKELTYP&quot;/&gt;

&lt;/SQL&gt;
</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID>@ARTIKELCODE</DomainID>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.18</UniqueID>
         <Name>18</Name>
         <Bezeichnung>Artikel Verpackungen</Bezeichnung>
         <Sql>&lt;SQL&gt;  &lt;Field Name=&quot;NUMMER&quot; Domain=&quot;SAR119.NUMMER&quot;/&gt;
&lt;Field Name=&quot;BEZ&quot; Domain=&quot;SAR100.BEZ&quot;/&gt; &lt;Field Name=&quot;KURZBEZ&quot; Domain=&quot;SAL110.KURZBEZ&quot;/&gt;  &lt;Field Name=&quot;NRVERPACK&quot; Domain=&quot;SAR119.NRVERPACK&quot;/&gt;


SELECT a.NUMMER,
       b.BEZ,
       a.LFDVERPEINH,
       a.VERPACKART,
       a.MEEH,
       (select KURZBEZ from SAL110 z where a.MEEH=z.NRME) as kurzbez,
       a.MENGE,
       a.NRVERPACK,
       (select bez from SAR100 x where a.NRVERPACK=x.NUMMER) as MEBez

   FROM SAR119 a, SAR100 b
   WHERE a.NUMMER=b.NUMMER &lt;/SQL&gt;
</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID>@VERPACKUNGEN</DomainID>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.19</UniqueID>
         <Name>19</Name>
         <Bezeichnung>Artikelsuche &#252;ber Zusatzfelder</Bezeichnung>
         <Sql>&lt;SQL&gt;
&lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@a&quot; /&gt;
Select a.Nummer,
       a.Bez,
       d.NrMerkmal,
       c.Bezeichnung,        d.Wert,
       a.Matchcode,
       a.NrGrp,
       a.Artikeltyp,        a.nrekgrp,
       a.Beschaffart,
       a.KZDivArt,
       a.Lagertyp,
       a.Produktlinie,
       a.Lagerbewertart,
       a.Sortiment,
       a.Zollartikel,
       a.Exportverbot,
       a.NrHersteller,
       a.ZeichNr,
       a.Satzstatus
From  SAR100 a, SAL231 c, SAL235 d
Where a.SATZDID=d.ALLGZUSATZFELD
  And c.NrTabelle = d.NrTabelle      And c.NrMerkmal = d.NrMerkmal     &lt;FILTER NAME=&quot;SAR100.PAS&quot; DOC=&quot;NUMMER,ARTIKELTYP&quot;/&gt;

&lt;/SQL&gt;
</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID>@ZUSATZFELDER</DomainID>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.20</UniqueID>
         <Name>20</Name>
         <Bezeichnung>Leihgut Seriennummer in eigenem Lager</Bezeichnung>
         <Sql>
&lt;SQL&gt;  &lt;Field Name=&quot;ARTBEZ&quot; Domain=&quot;SAR100.BEZ&quot;/&gt;
&lt;Field Name=&quot;LGBEZ&quot; Domain=&quot;SLA010.BEZ&quot;/&gt;
&lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@a&quot; /&gt;

select a.NUMMER, a.BEZ as ARTBEZ, b.NRLAGER, e.BEZ as LGBEZ, b.LGORT,        d.NUMMEREIGEN, d.NUMMERFREMD, d.NUMMEREIGENRW
  from SAR100 a, BLA040 b, BLA048 c, BLA046 d, SLA010 e
 where a.LAGERSERNR = &apos;T&apos;
   and a.NUMMER = b.NUMMER
   and b.SATZSTATUS = &apos;0&apos;
   and b.NRLAGER = e.NRLAGER    and e.LAGERTYP = &apos;11&apos;
   and b.BESTANDSTIEFEDID = c.BESTANDSTIEFEDID
   and c.LAGERMENGEAKTUELL &gt; 0
   and c.SERIENDID = d.SERIENDID

&lt;/SQL&gt;

</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.21</UniqueID>
         <Name>21</Name>
         <Bezeichnung>Leihgut Seriennummern beim Kunden</Bezeichnung>
         <Sql>
&lt;SQL&gt;
&lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@y&quot; /&gt;
&lt;Field Name=&quot;NUMMER&quot; Domain=&quot;SAR100.NUMMER&quot;/&gt;
&lt;Field Name=&quot;BEZ&quot; Domain=&quot;SAR100.BEZ&quot;/&gt;
&lt;Field Name=&quot;NUMMEREIGEN&quot; Domain=&quot;BLA046.MNUMMEREIGEN&quot;/&gt;
&lt;Field Name=&quot;NUMMERFREMD&quot; Domain=&quot;BLA046.NUMMERFREMD&quot;/&gt;
&lt;Field Name=&quot;NUMMEREIGENRW&quot; Domain=&quot;BLA046.MNUMMEREIGENRW&quot;/&gt;
&lt;Field Name=&quot;KUNDE&quot; Domain=&quot;SKD100.NRKD&quot;/&gt;
&lt;Field Name=&quot;NAME&quot; Domain=&quot;SAL120.SUCHNAME&quot;/&gt;
&lt;Field Name=&quot;LIEFERTERMIN&quot; Domain=&quot;BVE182.LIEFERTERMIN&quot;/&gt;
&lt;Field Name=&quot;NRBELEG&quot; Domain=&quot;BVE142.NRBELEG&quot;/&gt;

select distinct
       a.nummer, y.bez, b.nummereigen, b.nummerfremd, b.nummereigenrw,
       a.lgort Kunde, e.suchname Name, max(k.liefertermin) Liefertermin, max(z.nrbeleg) NRBELEG
   from sar100 y, bla040 a, bla048 x, bla046 b, bve142 z, bve183 i,
        bve160 j, bve182 k, sla010 c, skd100 g, skd121 d, sal120 e
  where a.satzstatus=&apos;0&apos;
  and x.lagermengeaktuell&gt;0
  and a.bestandstiefedid=x.bestandstiefedid
  and x.seriendid is not null
  and x.seriendid=b.seriendid
  and a.nrlager=c.nrlager
  and c.lagertyp=&apos;2&apos;
  and a.lgort=g.nrkd
  and g.nrskd121=d.nrauto
  and d.nradr=e.nradr
  and a.bestandstiefedid=i.bestandstiefedid   and i.mengendid=j.mengendid
  and i.mengendid=k.mengendid
  and (j.nrbelegtyp=31 or j.nrbelegtyp=40)
  and j.positionsart = 26
  and j.gueltig &lt;&gt; &apos;2&apos;
  and j.belegdid=i.lagerbuch
  and j.belegdid=z.belegdid
  and a.nummer = y.nummer
group by a.nummer, y.bez, b.nummereigen, b.NUMMERFREMD, b.NUMMEREIGENRW, a.lgort, e.suchname
&lt;/SQL&gt;

</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.25</UniqueID>
         <Name>25</Name>
         <Bezeichnung>versetztes Leergut offen</Bezeichnung>
         <Sql>&lt;SQL&gt;  &lt;Field Name=&quot;Nrkd&quot; Domain=&quot;SKD100.NRKD&quot;/&gt;
&lt;Field Name=&quot;NrBeleg&quot; Domain=&quot;BVE142.NRBELEG&quot;/&gt;
&lt;Field Name=&quot;Nummer&quot; Domain=&quot;SAR100.NUMMER&quot;/&gt;
&lt;Field Name=&quot;Bez&quot; Domain=&quot;SAR100.BEZ&quot;/&gt;
&lt;Field Name=&quot;Liefertermin&quot; Domain=&quot;::@Leergutrueckgabe&quot;/&gt;
&lt;Field Name=&quot;Menge&quot; Domain=&quot;BVE700.MENGE&quot;/&gt;

select a.nummer, b.bez, a.nrkd, e.nrbeleg, d.liefertermin, sum(a.menge * -1 ) as Menge
from bve700 a, sar100 b, bve160 c, bve182 d, bve142 e where     leergutabrechnung = 1 and     a.nummer = b.nummer and     a.liefmengendid = c.mengendid and     a.liefmengendid = d.mengendid and     c.belegdid = e.belegdid and
    e.nrbelegtyp = 31
Group by a.nummer, b.bez, a.nrkd, e.nrbeleg, d.liefertermin


&lt;/SQL&gt;
</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.99</UniqueID>
         <Name>99</Name>
         <Bezeichnung>Alle Felder</Bezeichnung>
         <Sql>&lt;SQL&gt;
&lt;OPTION SATZSTATUS=&quot;1&quot; /&gt;
&lt;OPTION MAINTABLE=&quot;@a&quot; /&gt;

SELECT * FROM SAR100 a
  &lt;FILTER NAME=&quot;SAR100.PAS&quot; DOC=&quot;NUMMER,ARTIKELTYP&quot;/&gt;

&lt;/SQL&gt;
</Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.81</UniqueID>
         <Name>81</Name>
         <Bezeichnung>Vierrad</Bezeichnung>
         <Sql>&lt;SQL&gt;
&lt;OPTION MAINTABLE=&quot;@SAR100&quot; /&gt;

select sar100.nummer, sar100.bez, SARKATR3.MEHRFACHAUSWAHL, SARKATR3.MARKE, SARKATR3.MODELL,         SARKATR3.MOTORISIERUNG, SARKATR3.LABEL,
       SARKATR3.KUNDENINFO,  SARKATR2.BESCHREIBUNG, SARKATR2.INFO1, SARKATR2.INFO2 from sar100, SARKATR1, SARKATR2, SARKATR3
where  sar100.nummer=SARKATR3.nummer and sar100.nummer=SARKATR2.nummer and SARKATR1.nummer=sar100.nummer and
       SARKATR1.ARTIKELGRUPPE=&apos;1&apos; and SARKATR2.SPRACHE=&apos;1&apos;         &lt;/SQL&gt;          </Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.82</UniqueID>
         <Name>82</Name>
         <Bezeichnung>MC</Bezeichnung>
         <Sql>&lt;SQL&gt;
&lt;OPTION MAINTABLE=&quot;@SAR100&quot; /&gt;

select sar100.nummer, sar100.bez, SARKATR3.MEHRFACHAUSWAHL, SARKATR3.MARKE, SARKATR3.MODELL,
       SARKATR3.BJ, SARKATR3.KW, SARKATR3.DESIGN, SARKATR3.MANTEL,              SARKATR3.EG, SARKATR3.ANSCHLUSSDURCHM, SARKATR3.KUNDENINFO,
       SARKATR2.GARANTIE, SARKATR2.INFO1, SARKATR2.INFO2
from sar100, SARKATR1, SARKATR2, SARKATR3
where  sar100.nummer=SARKATR3.nummer and sar100.nummer=SARKATR2.nummer and SARKATR1.nummer=sar100.nummer and
       SARKATR1.ARTIKELGRUPPE=&apos;2&apos; and SARKATR2.SPRACHE=&apos;1&apos;  &lt;/SQL&gt; </Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.85</UniqueID>
         <Name>85</Name>
         <Bezeichnung>Rennsport</Bezeichnung>
         <Sql>&lt;SQL&gt;
&lt;OPTION MAINTABLE=&quot;@SAR100&quot; /&gt;

select sar100.nummer, sar100.bez, SARKATR3.MEHRFACHAUSWAHL, SARKATR3.MARKE, SARKATR3.MODELL,
       SARKATR3.TYPENBEZEICHNUNG, SARKATR2.INFO1, SARKATR2.INFO2,  SARKATR2.BEZEICHNUNG
from sar100, SARKATR1, SARKATR2, SARKATR3
where  sar100.nummer=SARKATR3.nummer and sar100.nummer=SARKATR2.nummer and SARKATR1.nummer=sar100.nummer and
       SARKATR1.ARTIKELGRUPPE=&apos;5&apos; and SARKATR2.SPRACHE=&apos;1&apos;

&lt;/SQL&gt; </Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.89</UniqueID>
         <Name>89</Name>
         <Bezeichnung>Uhren</Bezeichnung>
         <Sql>&lt;SQL&gt;
&lt;OPTION MAINTABLE=&quot;@SAR100&quot; /&gt;

select sar100.nummer, sar100.bez, SARKATR3.MEHRFACHAUSWAHL, SARKATR3.MARKE, SARKATR3.MODELL,
       SARKATR3.TYPENBEZEICHNUNG, SARKATR2.INFO1,  SARKATR2.BEZEICHNUNG
from sar100, SARKATR1, SARKATR2, SARKATR3
where  sar100.nummer=SARKATR3.nummer and sar100.nummer=SARKATR2.nummer and SARKATR1.nummer=sar100.nummer and
       SARKATR1.ARTIKELGRUPPE=&apos;9&apos; and SARKATR2.SPRACHE=&apos;1&apos;   &lt;/SQL&gt; </Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogVariante>
         <UniqueID>ARTIKEL.86</UniqueID>
         <Name>86</Name>
         <Bezeichnung>Boutique</Bezeichnung>
         <Sql>&lt;SQL&gt;
&lt;OPTION MAINTABLE=&quot;@SAR100&quot; /&gt;

select sar100.nummer, sar100.bez,       SARKATR2.INFO1, SARKATR2.KATEGORIE, SARKATR2.BEZEICHNUNG, SARKATR2.FARBE, SARKATR2.GROESSE
from sar100, SARKATR1, SARKATR2
where  sar100.nummer=SARKATR2.nummer and SARKATR1.nummer=sar100.nummer and
       SARKATR1.ARTIKELGRUPPE=&apos;6&apos; and SARKATR2.SPRACHE=&apos;1&apos; &lt;/SQL&gt; </Sql>
         <AllowQuick>FALSE</AllowQuick>
         <AllowFull>FALSE</AllowFull>
         <WarnIfEmpty>FALSE</WarnIfEmpty>
         <DomainID/>
         <ParameterList/>
      </TBSuchDialogVariante>
      <TBSuchDialogField>
         <UniqueID>ARTIKEL.ALSATZST</UniqueID>
         <Name>ALSATZST</Name>
         <DisplayLabel/>
         <DisplayWidth>0</DisplayWidth>
         <DisplayFormat/>
         <DisplayAlign/>
         <IsCurrency>FALSE</IsCurrency>
         <InVisible>TRUE</InVisible>
         <BOClassName/>
      </TBSuchDialogField>
   </Objekte>
</SuchDialogTransfer>



sucheny do Remusa



Grupy dyskusyjne