Hi Experts,
I have created a query and depending on user selection in the report, some document numbers are populated into an internal table it_bkpf. I'd like these document numbers to be auto-populated in to the selection screen when the report is executed. Selection field dn relates to bseg-belnr. I've created some code below which doesn't work, it's at section AT SELECTION-SCREEN. All my other coding is at START-OF-SELECTION and works ok.
loop at it_bkpf into wa_bkpf.
dn-low = wa_bkpf-belnr.
dn-option = 'EQ'.
dn-sign = 'I'.
append dn.
endloop.
Please can someone advise where I'm going wrong?
Kind regards
Dave