on 2022 Aug 18 6:52 AM
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.