Hallo zusammen
Ich habe folgendes Problem:
Folgende Abfrage in meinem Abap funktioniert:
select distinct
a~tdname
into corresponding fields of table gt_allemat
from stxh as a
where a~tdid = gitxtid "welche TextID
and a~tdspras = 'DE' "Sprache
and a~tdfdate >= '01.01.2004' "Von datum
and a~tdfdate <= '31.12.2004' "Bis Datum
and a~mandt = '010'. "Mandant
** =====================================
Folgende Abfrage gibt nichts zurück:
select distinct
a~tdname
into corresponding fields of table gt_allemat
from stxh as a
where a~tdid = gitxtid "welche TextID
and a~tdspras = 'DE' "Sprache
and a~tdfuser = gierfass
and a~tdfdate >= givondat "Von datum
and a~tdfdate <= gibisdat "Bis Datum
and a~mandt = '010'. "Mandant
** ==================================================
Variablendefinitionen für givondat und gibisdat:
Variante 1:
parameters: givondat type D. "von Datum
parameters: gibisdat type D. "bis Datum
Datum-Variante 2:
parameters: giVonDat like stxh-tdfdate. "von Datum
parameters: giBisDat like stxh-tdfdate. "bis Datum
Wieso finde ich mit diesen Variablen keine Werte?
** ============================================
Variablendefinitionen für gierfass:
parameters: gierfass like stxh-tdfuser default 'SMA'.
Verwendung der Benutzer-Variable gierfass:
'S*' -> es wird nichts selektiert
'SMA' -> es wird etwas gefunden
Wieso lässt sich hier mit S* nichts finden?
** ============================================
Danke für Eure Hilfe
Dani