Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

need a drop down list for cost center group


I need to add the cost center group selection option to my program. I have added it to the selection options of my program and I would like to have a drop down list on this field. I have looked at the t-code KS13 and I am thinking that this is what I need. I am not sure if this is a search help or something else. if this is a search help, is it possible to use the same search help in my program? can some please let me know how I would do this in my program? possibly a code example?

thanks in advance for the help.

Former Member

How about something like this?

report zrich_0001.

tables: kmas_d.

select-options s_kostls for kmas_d-kostl_set .

at selection-screen on value-request for s_kostls-low.

  call function 'K_GROUP_SELECT'
            class            = '0101'
            field_name       = 'KOSTL'
*            class_name       =
            set_name         = kmas_d-kostl_set
*            set_title        = kmas_d-settxt_kst
*            table_name       =
            no_set_picked    = 1
            others           = 2.

  s_kostls-low = kmas_d-kostl_set.


RIch Heilman

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question