on 2011 Oct 11 6:22 AM
Hi,
How to add a custom field in the selection criteria of a POWL screen in SNC.
We are using SNC 7.01.
Thanks,
Feroz
Request clarification before answering.
Dear Feroz,
Follow the following steps:
1. Go to your Feeder Class.
2. Change the method IF_POWL_FEEDER~GET_SEL_CRITERIA of your feeder.
3. For Example adding a period field.
**-----------PERIOD----------------**
ls_seldef-selname = 'PERIOD'.
ls_seldef-kind = 'S'.
ls_seldef-param_type = 'I'. "Input field
ls_seldef-allow_admin_change = abap_true.
ls_seldef-datatype = 'HAP_SEL_VAL_DATE_FROM'.
ls_seldef-quicksearch_crit = 'X'.
CONCATENATE sy-datum+0(4) '0101' INTO lv_bdate.
CONCATENATE sy-datum+0(4) '1231' INTO lv_edate.
APPEND ls_seldef TO lt_seldef.
CLEAR ls_seldef.
please note that the internal table lt_seldef should be mapped to c_selcrit_defs .
c_selcrit_defs = lt_seldef
Hope it helps1
Warm regards,
Upendra Agrawal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Feroz,
Somewhere I read where Thomas Jung wrote that :
POWL is a generic framework where a single WD Component actually implements
many POWL applications. The real underlying logic comes from the feeder class.
I think that if there are any more fields which can be added, then they should have been coded in the IF_POWL_FEEDER~GET_SEL_CRITERIA method.
Check this method & if you are lucky, the fields you want may be already there.
If not then you will have to enhance the standard feeder.
Warm regards,
Upendra Agrawal
User | Count |
---|---|
89 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.