2022 May 10 12:22 PM
Hello everyone.
I need to add a field in a selection-screen, so that users would be able to search data with the help of market. Markets are classified as K001, K002, K003 ... Kn. So, if a user enters K001, information only on that particular market should be displayed.
I have written all neccessary code, but I do not why it does not work. I will provide screenshots and some peace of code. If anything else needed, I will therefor provide.
SELECT wlk1~* INTO TABLE @i_wlk1 FROM wlk1 JOIN wrsz ON wlk1~filia EQ wrsz~asortSELECT SINGLE locnr INTO <fs_output>-locnr FROM wrsz WHERE asort EQ <fs_output>-filia AND datbi GE sy-datum.
wrsz~locnr is the table~field that keeps neccessary data.


Hope I was clear.
Either move fields of both joined table into the internal table, or adapt the second select to use same where criteria thant in the first join.
2022 May 10 1:27 PM
Your code does not guarantee that the same assortment record is checked in the first and second select statements:
Could you consider using a single select statement to build the displayed internal table
2022 May 11 5:42 AM
I got your point. How can I write all this in one select? can you help me with this? if you need more of my code, I will provide it.
Thank you before-hand.
2022 May 11 4:59 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |