‎2007 Aug 08 10:13 AM
I have selection-screen as follows
PARAMETERS : p_bukrs1 TYPE bukrs ,
p_kostl1 TYPE kostl .
PARAMETERS : p_bukrs2 TYPE bukrs ,
p_kostl2 TYPE kostl .
Req: When user press F4 on P_KOSTL1, it should display cost centers only for company code value entered in P_BUKRS1, similarly for P_KOSTL2 it should display cost centers for comapny code entered in P_BUKRS2.
I know I can select records on AT SELECTION-SCREEN .. ON VALUE-REQUEST for respective fields and display in F4 with some FM .
<b>Is there any method by which I can call the search help specifying the company code as parameter?</b>
‎2007 Aug 08 10:40 AM
by using FM DYNP_VALUES_READ u can get the values of BUKRS.
based on the values of BUKRS get values of Cost Centres from DB tables into Internal tables
F4IF_INT_TABLE_VALUE_REQUEST by using this u can display.
Regards
peram