cancel
Showing results for 
Search instead for 
Did you mean: 

SNC POWL

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Got the solution.

I can add the custom field in the selection screen using IF_POWL_FEEDERGET_SEL_CRITERIA method and for contrlloing the data based on the custom selection criteria I can use the method /SCF/IF_ICH_POWLCHANGE_RESULT of BADI /SCF/ICH_POWL.

Thanks,

Feroz

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Upendra,

Thanks for the quick response.

The feeder class for the screen is the Standard one.

My question is in SNC perspective. Does SNC provide any provision (e.g. some TCode, View config etc) to add the custom selection criteria to the POWL screen?

Thanks,

Feroz

Former Member
0 Kudos

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

anupam_srivastava2
Participant
0 Kudos

Hi Upendra

I am having a similar requirement , add a drop down menu in ALV tool bar for RR over view screen for Supplier, question is how to find the respective feeder class ?

Regards

Anup