Code: Alles auswählen.
SELECT lq~lqnum, lq~matnr, lq~werks, lq~lgort, lq~bdatu,
mar~mtart, lq~lgtyp, mac~minbe, mac~bstfe, lq~verme, mak~maktx
FROM ( lqua AS lq INNER JOIN mara AS mar ON lq~matnr = mar~matnr
INNER JOIN marc AS mac ON lq~matnr = mac~matnr
AND lq~werks = mac~werks
INNER JOIN makt AS mak ON lq~matnr = mak~matnr )
INTO CORRESPONDING FIELDS OF TABLE @gt_collect
WHERE lq~matnr IN @so_matnr
AND lq~werks IN @so_werks
AND lq~lgort IN @so_lgort
AND lq~bdatu IN @so_bdatu
AND mar~mtart IN @so_mtart
AND lq~lgtyp IN @so_lgtyp
AND mak~spras = 'D'.
Code: Alles auswählen.
start-of-selection.
if %runmode-extr_on <> space.
call function '/1BCDWB/IQ000000026033EXTR'
Code: Alles auswählen.
e.g.
if %rtmode-pack_on = space or %rtmode-first_call = 'X'.
if not %dbcursor is initial.
close cursor %dbcursor.
endif.
open cursor with hold %dbcursor for
select CDHDR~OBJECTCLAS CDHDR~OBJECTID CDHDR~UDATE CDHDR~UTIME CDHDR~TCODE CDHDR~USERNAME CDPOS~OBJECTCLAS CDPOS~OBJECTID
CDPOS~CHANGENR CDPOS~TABNAME CDPOS~TABKEY CDPOS~FNAME CDPOS~CHNGIND CDPOS~TEXT_CASE CDPOS~UNIT_OLD CDPOS~UNIT_NEW
CDPOS~CUKY_OLD CDPOS~CUKY_NEW CDPOS~VALUE_NEW CDPOS~VALUE_OLD CDPOS~_DATAAGING
from ( CDHDR
inner join CDPOS
on CDPOS~CHANGENR = CDHDR~CHANGENR
and CDPOS~OBJECTCLAS = CDHDR~OBJECTCLAS
and CDPOS~OBJECTID = CDHDR~OBJECTID )
where CDHDR~OBJECTCLAS in SP$00001
and CDHDR~OBJECTID in SP$00002
and CDHDR~USERNAME in SP$00003 .
endif.
if %dbcursor is initial.
raise cursor_not_open.
endif.
while %l_no_further_fetch = space.
fetch next cursor %dbcursor
into (CDHDR-OBJECTCLAS , CDHDR-OBJECTID , CDHDR-UDATE , CDHDR-UTIME , CDHDR-TCODE , CDHDR-USERNAME , CDPOS-OBJECTCLAS
, CDPOS-OBJECTID , CDPOS-CHANGENR , CDPOS-TABNAME , CDPOS-TABKEY , CDPOS-FNAME , CDPOS-CHNGIND , CDPOS-TEXT_CASE
, CDPOS-UNIT_OLD , CDPOS-UNIT_NEW , CDPOS-CUKY_OLD , CDPOS-CUKY_NEW , CDPOS-VALUE_NEW , CDPOS-VALUE_OLD , CDPOS-_DATAAGING
Die User, die irgendwann mal ein ähnliches Problem und dazu deine Fragestellung gefunden haben, werden dich für dieses Ende des Threads hassen 😁
Folgende Benutzer bedankten sich beim Autor IHe für den Beitrag:
DeathAndPain