‎2009 Jun 16 1:56 PM
Hi,
I have written the following Select Query .I got one record in IT_BKPF1 but the awkey field in Internal Table IT_BKPF1 is Blank. can u help me.
SELECT bukrs
belnr
gjahr
blart
bldat
budat
cpudt
usnam
bvorg
xblnr
bstat
awtyp
awkey
INTO TABLE it_bkpf1
FROM bkpf
WHERE awkey = '51056012492007 '.
Regards,
Deepthi.
‎2009 Jun 16 2:08 PM
make sure that Internal Table BKPF has the same structure.
bukrs
belnr
gjahr
blart
bldat
budat
cpudt
usnam
bvorg
xblnr
bstat
awtyp
awkey
the way you are selecting.
‎2009 Jun 16 2:11 PM
‎2009 Jun 16 2:12 PM
check the declaration for that internal table. it should match with ur select query field order
‎2009 Jun 16 2:11 PM
‎2009 Jun 16 2:14 PM
The field in the internal table should be in the same ORDER and of same TYPE.
Please verify.
Thanks,
Amol
‎2009 Jun 16 2:18 PM
I have commented bstat field from selection as it has got some deep strcture.
SELECT bukrs
belnr
gjahr
blart
bldat
budat
cpudt
usnam
bvorg
xblnr
bstat
awtyp
awkey
INTO TABLE it_bkpf1
FROM bkpf
FOR ALL ENTRIES IN it_ekbe
WHERE
awkey = it_ekbe-awkey.
‎2009 Jun 16 2:36 PM
BSTAT a deep structure?
Better include AWTYP in the where-condition, or we will see you in the performance forum soon.
Thomas