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

Problem in select statement

Former Member
0 Likes
561

Hi guyz,

I need help on this one.

I was asked to create a new table named T9S20. it has mandt, kunnr, vkorg and vtweg fields in it. it is a maintanable table, so i set it as one.

however when i try to select fields on it, the internal table doesn't retrieve anything. I already put TS920 sample data which means it should be equal to 0,which means it has retrieved data.

here is the select statement that i coded.

SELECT kunnr vkorg vtweg

INTO table i_t9s20

FROM t9s20

WHERE kunnr = vbpa-kunnr.

i hope someone can help me.

thanks!

4 REPLIES 4
Read only

Former Member
0 Likes
539

Hi,

Try like this,

<b>SELECT kunnr vkorg vtweg

INTO CORRESPONDING FIELDS OF table i_t9s20

FROM t9s20

WHERE kunnr = vbpa-kunnr.</b>

Regards,

Padmam.

Read only

Former Member
0 Likes
539

Hi tina,

Maybe you are running on a client box without test data. For example client 130 for ABAP development only without test data & you also have a different client let's say client 150 for testing with data.

Hope it helps

Read only

Former Member
0 Likes
539

Hi,

First select the data from VBPA. then use for all entries and in where condition specify as

<b>KUNNR = I_VBPA-KUNNR.</b>

Read only

S0025444845
Active Participant
0 Likes
539

Hi,

try with this.

select kunnr into it_vbfpa from vbpa.

if it_vbpa[] is not initial.

SELECT kunnr vkorg vtweg

INTO table i_t9s20

FROM t9s20

for all entries in it_vbpa

WHERE kunnr = it_ vbpa-kunnr.

endif.

regards,

sudha