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

Re: Lookup in DTP filter routine

$
0
0

Hi Shahid,

 

You can write a code like below..

 

Data: i_t_mat_no type table of /bic/azsls_dly00,

        i_s_mat_no type /bic/azsls_dly00.

 

Read table i_t_range with key fieldname = ‘/bic/zmatnm’.

 

If sy-subrc = 0.

 

Select /bic/zmatnm /bic/zdelloc from /bic/azsls_dly00 into corresponding fields of table

i_t_mat_no where /bic/zmatnm in (‘M1020’, ‘M1021’). 

 

LOOP AT I_T_MAT_NO INTO I_S_MAT_NO.

I_S_MAT_NO-/bic/zmatnm = ‘EU01’.

MODIFY I_T_MAT_NO FROM I_S_MAT_NO TRANSPORTING /bic/zmatnm.

ENDLOOP.

endif.

 

 

Loop at i_t_mat_no into i_S_mat_no_1.

L_t_range-fieldname = ‘/bic/zmatnm’.

L_t_range-sign  = ‘I’.

L_t_range-option  = ‘EQ’.

L_t_range-low = I_S_MAT_S_NO-/bic/zmatnm.

If l_idx <> 0.

Modify l_t_range index l_idx.

Append l_t_range.

endif.

endloop.

 

 

Arivazhagan S


Viewing all articles
Browse latest Browse all 8720

Trending Articles



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