‎2008 May 06 10:23 AM
Hi all ,
Not getting Data in interman table i_konv.
Tell me the solution.
start-of-selection.
select avbeln afkart aknumv afkdat abelnr aktgrd a~mwsbk
b~ktgrm
from ( vbrk as a inner join vbrp as b on
avbeln eq bvbeln )
into corresponding fields of
table vbrk_vbrp
Regards
Aastha
WHERE ( a~fkart eq billtype ) and
( a~fkdat in billdate ) and
( a~ktgrd eq acgrpd ) and
( b~ktgrm eq acgrpm ) .
select konts mwskz
from t030k
into table i_t030k
where mwskz eq taxcode .
if vbrk_vbrp[] is not initial .
select knumv kschl mwsk1 kwert
from konv
into corresponding fields of table i_konv
for all entries in vbrk_vbrp
where knumv = vbrk_vbrp-knumv
AND ( KSCHL = 'JIN1' OR kschl = 'JIN6' )
and mwsk1 = i_t030k-mwskz.
endif.
‎2008 May 06 10:51 AM
Aashta,
the last select, don't think this will work.
if vbrk_vbrp[] is not initial .
select knumv kschl mwsk1 kwert
from konv
into corresponding fields of table i_konv
for all entries in vbrk_vbrp
where knumv = vbrk_vbrp-knumv
AND ( KSCHL = 'JIN1' OR kschl = 'JIN6' )
and mwsk1 = i_t030k-mwskz.
endif.
You are using i_t030k-mwskz, but the field is probably empty, since you are using this statement:
select konts mwskz
from t030k
into table i_t030k
This will fill the internal table, but not the header which you are using as comparison in the select statement.
‎2008 May 06 10:57 AM
hi
as ur using inner join make sure ur tables have data according to where condition u used in SELECT statement ,
coz this query will display data only which will fullfill all where conditions.
select statements r rite.
reward if helpful.