Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Not getting data

Former Member
0 Likes
353

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.

2 REPLIES 2
Read only

Sm1tje
Active Contributor
0 Likes
322

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.

Read only

Former Member
0 Likes
322

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.