Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: How to delete the records in end routine even if matching in where condition

$
0
0

Hi Pawan,

 

In sort statement use all key fields, as you are using in read statement with binary search.

 

You want to make blank if condition is not matching so try this sample code.

 

if sy-subrc = 0.

 

sort it_tab by /bic/p_plant

           /bic/p_area

           /bic/p_areaid

           /bic/p_equip

           /bic/p_eqnum.

endif.

 

loop at result_package assigning <result_fields>.

 

read table it_tab into wa_tab with key  /bic/p_plant = <result_fields>-/bic/p_plant

                                                        /bic/p_area  = <result_fields>-/bic/p_area

                                                        /bic/p_areaid = <result_fields>-/bic/p_areaid

                                                        /bic/p_equip = <result_fields>-/bic/p_equip

                                                        /bic/p_eqnum = <result_fields>-/bic/p_eqnum binary search.

if sy-subrc = 0.

 

<result_fields>-funct_loc = wa_tab-funct_loc.

 

else.

 

<result_fields>-functi_loc = ' '.

 

endif.

 

Thanks,

Somesh.


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>