Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cost Center & Cost Element Group

Former Member
0 Kudos

Hi All,

I have a customized report in which I have Cost Center & Cost Element Group in the selection screen. Cost Center Group is linked to CSKS-KOSAR and Cost Element Group is linked to CSKB-KATYP. Therefore i get only few entries when i press F4 on these fields.

Now the requirement is that these F4 helps should display all the entries as we have in transactions KSH1 and KAH1.

Can anyone tell form which field KSH1 and KAH1 are picking up the values? Also how do we add this in my report?

Thanks & Regards,

Naba

2 REPLIES 2

kesavadas_thekkillath
Active Contributor
0 Kudos

im not sure....in the f4 value request event...

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = 'SAPLKKHI' <----u r program Name

dynumb = sy-dynnr <---ur prg screen no

TABLES

dynpfields = 'GRPDYNP-CO_AREA' <---ur

selection-screen field name

EXCEPTIONS

invalid_abapworkarea = 01

invalid_dynprofield = 02

invalid_dynproname = 03

invalid_dynpronummer = 04

invalid_request = 05

no_fielddescription = 06

undefind_error = 07

OTHERS = 999.

kesavadas_thekkillath
Active Contributor
0 Kudos

DATA:DYNPFIELDS LIKE DYNPREAD .

append u r screen field name into this and pass it to FM