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

Remove NE and add delete statement.

Former Member
0 Likes
1,110

Hi All,

I have the following selection Query,

SELECT prueflos vcode vbewertung .

FROM qave INTO TABLE i_qave

FOR ALL ENTRIES IN i_qasr

WHERE prueflos = i_qasr-prueflos

AND vbewertung NE ' '.

I want to remove the NE and implement same using delete statement.

Thanks,

Debrup.

1 ACCEPTED SOLUTION
Read only

former_member386202
Active Contributor
0 Likes
1,030

Hi,

After select statement use delete statement.

Refer below code.

SELECT prueflos vcode vbewertung .

FROM qave INTO TABLE i_qave

FOR ALL ENTRIES IN i_qasr

WHERE prueflos = i_qasr-prueflos.

delete i_qasr where vbewertung eq ' '.

Regards,

Prashant

Hi All,

I have the following selection Query,

SELECT prueflos vcode vbewertung .

FROM qave INTO TABLE i_qave

FOR ALL ENTRIES IN i_qasr

WHERE prueflos = i_qasr-prueflos

AND vbewertung NE ' '.

I want to remove the NE and implement same using delete statement.

Thanks,

Debrup.

7 REPLIES 7
Read only

Former Member
0 Likes
1,030
if i_qasr is not initial.

SELECT prueflos vcode vbewertung 
FROM qave INTO TABLE i_qave
FOR ALL ENTRIES IN i_qasr
WHERE prueflos = i_qasr-prueflos. 

delete i_qave where vbewertung  EQ ' '.
endif.
Read only

0 Likes
1,030

Hi all,

Thanks a lot for the answers, my doubt is resolved now.

Thanks,

Debrup.

Read only

former_member386202
Active Contributor
0 Likes
1,031

Hi,

After select statement use delete statement.

Refer below code.

SELECT prueflos vcode vbewertung .

FROM qave INTO TABLE i_qave

FOR ALL ENTRIES IN i_qasr

WHERE prueflos = i_qasr-prueflos.

delete i_qasr where vbewertung eq ' '.

Regards,

Prashant

Read only

GauthamV
Active Contributor
0 Likes
1,030

hi,

use this.


loop at i_qave.

if i_qave-vbewertung = ' '. 

delete i_qave.

endloop.

Read only

Former Member
0 Likes
1,030

HI.

Refer this code.

if i_qasr is not initial.

SELECT prueflos vcode vbewertung .

FROM qave INTO TABLE i_qave

FOR ALL ENTRIES IN i_qasr

WHERE prueflos = i_qasr-prueflos.

endif.

if i_qave is not initial.

delete i_qave where vbewertung EQ ' '.

endif.

Regards.

Jay

Read only

Former Member
0 Likes
1,030

Hi,

SELECT prueflos vcode vbewertung .

FROM qave INTO TABLE i_qave

FOR ALL ENTRIES IN i_qasr

WHERE prueflos = i_qasr-prueflos.

AND vbewertung NE ' '.

If not i_qasr[] is initial.

delete i_qasr where vbewertung ne ' '.

endif

Read only

Former Member
0 Likes
1,030

Hi Debrup,

Try using this.

SELECT prueflos vcode vbewertung .

FROM qave INTO TABLE i_qave

FOR ALL ENTRIES IN i_qasr

WHERE prueflos = i_qasr-prueflos.

Loop at i_qave.

if i_qave-fvbewertung <> space.

delete i_qave.

endif.

endloop.

Thanks & Regards

Ruchi Tiwari