Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

POWL: How to display/populate the content of a field programmatically in the selections criteria?

shobhan_rana
Explorer
0 Kudos

Hi all

One of the value of the input field is not known in advance. e.g Sales organisation. Is it possible to display content of the select - Options in the selection criteria of a POWL? I_SELCRIT_VALUES contain the selection criteria only whose values are maintained in Transaction - POWL_QUERY.

By changing c_default_values of METHOD if_powl_feeder~get_sel_criteria as folows.

if c_default_values is INITIAL.
ls_rsparams-kind = 'S'.
ls_rsparams-sign = 'I'.
ls_rsparams-option = 'EQ'.
ls_rsparams-low = '1010'.

INSERT ls_rsparams INTO c_default_values INDEX 1.

endif.

Can the value of the sales organisation field be populated/displayed in the selection criteria field? Following is the selection screen on POWL List from Web browser.

vkorg.png

1 REPLY 1

0 Kudos

If you look at standard feeder class for POWL CL_FITV_POWL_FEEDER_TRIPS method GET_SEL_CRITERIA it populates default values so your code to enter default values should work.