cancel
Showing results for 
Search instead for 
Did you mean: 

POWL: dropdown key in a POWL

Smitha
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello!

Has any body implemented a dropdown key in the POWL worklist. I have used the

field POWL_DISPLAY_DOM as 'DK' from structure POWL_FIELDCAT_STY. That hasn't helped me in getting a dropdown in the powl worklist.

Thanks in advance!

Best regards,

Smitha.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you fill the information related to Drop-Down key in the field VALID_VALUES of structure POWL_FIELDCAT_STY then automatically the field will becomes as a drop-down only.

<b>For Example:</b> Here for CARRID field i am providing the drop-down information.

ls_fieldcat-colid = 'CARRID'.

  • ls_fieldcat-filter_ref = 'CARRID'.

ls_fieldcat-colpos = '1'.

ls_fieldcat-col_visible = abap_true.

ls_fieldcat-enabled = abap_true.

ls_fieldcat-allow_sort = abap_true.

ls_fieldcat-allow_filter = abap_true.

ls_valid_value-key = 'LH'.

ls_valid_value-value = 'Lufthansa'. "#EC NOTEXT

INSERT ls_valid_value INTO TABLE lt_valid_values.

ls_valid_value-key = 'BA'.

ls_valid_value-value = 'British Airways'. "#EC NOTEXT

INSERT ls_valid_value INTO TABLE lt_valid_values.

ls_valid_value-key = 'UA'.

ls_valid_value-value = 'United Airlines'. "#EC NOTEXT

INSERT ls_valid_value INTO TABLE lt_valid_values.

ls_valid_value-key = '*'.

ls_valid_value-value = 'All'. "#EC NOTEXT

INSERT ls_valid_value INTO TABLE lt_valid_values.

ls_fieldcat-valid_values = lt_valid_values.

INSERT ls_fieldcat INTO TABLE c_fieldcat.

I think I make you clear for your requirement

Thanks and Best Regards,

Vijay