cancel
Showing results for 
Search instead for 
Did you mean: 

DTP rountine with Multiple Single Values

0 Kudos
1,457

Hi,

I want to build a routine in DTP to use sql statement to search the database table get required update document numbers and to set filter for fields document number.

How could I pass the internal table value in I_t_range? I saw the example input the value range in I_t_range. But my sql statement output is multiple rows, I try to saved the output in internal table, but I don't know how could I pass the internal table in I_t_range in order to filter multiple Single Values from source system.

Accepted Solutions (1)

Accepted Solutions (1)

Abhishek_Hazra
Active Contributor

Hi jackylai,

Yes, from your given code snippet, let's assume the internal table where you have all the filter entries is : lt_temp (with necessary work area/field symbol declaration). You just have to add a loop to assign the values one by one in the filter range table at the end of the code like below :

LOOP AT lt_temp INTO l_temp .

l_t_range-fieldname = 'BELNR'.
l_t_range-sign = 'I'.
l_t_range-option = 'EQ'.
l_t_range-low = l_temp-BELNR.

APPEND l_t_range.

This will work as you want 🙂

Best Regards,
Abhi

0 Kudos

Hi Abhishek,

Thank you so much.

Answers (0)