Quantcast
Channel: SCN : All Content - User Interface Development in ABAP
Viewing all articles
Browse latest Browse all 540

Hi team i am unable to populate fields on selection screen in one of query for POWL

$
0
0

My POWL screen will looks like below

powl1.jpg

When I click on orders assigned to me query I am able to see my values on selection screen as below

powl2.jpg

But when I click on orders reported by me I am seeing only 3 fields which are set in configuration, but for order type and Entered by fieldsI am unable to set though fields are showing in mt_defaults table

powl3.jpg

My code was like below

*** Status preset outstanding
 
CLEAR ls_defaults.
  ls_defaults
-selname = 'SP_OFN'.
  ls_defaults
-kind    = cl_rplm_qimt_co=>sc_sel_kind_param.
  ls_defaults
-sign    = 'I'.
  ls_defaults
-option  = 'EQ'.
  ls_defaults
-low     = 'X'.
 
APPEND ls_defaults TO lt_defaults.*** Status preset in process
 
CLEAR ls_defaults.
  ls_defaults
-selname = 'SP_IAR'.
  ls_defaults
-kind    = cl_rplm_qimt_co=>sc_sel_kind_param.
  ls_defaults
-sign    = 'I'.
  ls_defaults
-option  = 'EQ'.
  ls_defaults
-low     = 'X'.
 
APPEND ls_defaults TO lt_defaults.*- Creation date preset: number of days in past
 
CLEAR ls_defaults.
  ls_defaults
-selname = 'RD_DIPOD'.
  ls_defaults
-kind    = cl_rplm_qimt_co=>sc_sel_kind_param.
  ls_defaults
-sign    = 'I'.
  ls_defaults
-option  = 'EQ'.
  ls_defaults
-low     = '00007'.
 
APPEND ls_defaults TO lt_defaults.
*- rder type
 
CLEAR ls_defaults.
  ls_defaults
-selname = 'S_AUART'.
  ls_defaults
-kind    = cl_rplm_qimt_co=>sc_sel_kind_selopt.
  ls_defaults
-sign    = 'I'.
  ls_defaults
-option  = 'EQ'.
  ls_defaults
-low     = 'MR01'.
 
APPEND ls_defaults TO lt_defaults.

* Entered by current user
 
CLEAR ls_defaults.
  ls_defaults
-selname = 'S_ERNAM'.
  ls_defaults
-kind    = cl_rplm_qimt_co=>sc_sel_kind_selopt.
  ls_defaults
-sign    = 'I'.
  ls_defaults
-option  = 'EQ'.
  ls_defaults
-low     = sy-uname.
  ls_defaults
-high    = ' '."sy-uname.

APPEND ls_defaults TO lt_defaults.


*** Return the default values

  e_default_values[]
= lt_defaults[].

 

But I am not able to see my fields on selection screen. it is going to CL_POWL_UTIL->GET_UPDATED_SELCRIT and it is taking old parameters which has 3 fields namelyoutstanding, in process, no. of days in past” .

*   try to get the cached default criteria of the query
   
CALL METHOD cl_powl_query_accessor=>get_cached_selcrit.

It is not refreshing at the above method though I am continuously refreshing program POWL_D01.


Viewing all articles
Browse latest Browse all 540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>