Hello,
I am trying to call report RIEQUI20 with selection table. I noticed that if my selection table contains selections on field EQUNR, only the first entry in selection table is factored in, the rest are ignored.
The following code calls report RIEUI20 with two selections on field EQUNR. The report returns the entry for equipment 10004174. The one with number 10004171 is ignored and not returned. If I switch the order in selection table so that EQUNR 10004171 is the first entry, only the equipment 10004171 is returned by the report. The expected behavior would be that the report returns both equipments 10004174 and 10004171.
DATA: selection_table TYPE TABLE OF rsparams, selection TYPE rsparams. selection-selname = 'EQUNR'. selection-sign = 'I'. selection-kind = 'S'. selection-option = 'EQ'. selection-low = '10004174'. APPEND selection TO selection_table. selection-selname = 'EQUNR'. selection-sign = 'I'. selection-kind = 'S'. selection-option = 'EQ'. selection-low = '10004171'. APPEND selection TO selection_table. SUBMIT riequi20 WITH SELECTION-TABLE selection_table AND RETURN.
In this particular report this behavior seems to occur only with selections on EQUNR. Selections on other fields seem to work properly. I observed the same behavior with report RIAUFK20 with selection on AUFNR. Performing the same selections via SE38 returns correct data.
What is the cause of this? Can't selections on these fields be passed to the report via selection-tables? If so, why and how should one do it?
Thank you in advance,
Aleks