05-11-2007 6:40 PM
Hi experts,
I have created ALV grid and displaying fields from Ztable.
In one if the fields i have cost center (KOSTL) field.
Now, in the ALV grid KOSTL field how can i get exsting cost center values(PICK list)? So that user can select one of the existing cost centers.
Pls let me know with example.
reward guaranteed,
thanks
kaki
05-11-2007 6:48 PM
Hi
To get F4 values for that field cost center
Create a search help for that field using the CSKS table and use
or use the fun modules
VRM_SET_VALUES
HELP_VALUES_GET_WITH_MATCHCODE
When a ALV list is displayed , why you need F4 values, how do you select and insert into that cost center field in to that field which is displayed as list in ALV.
Reward points if useful
Regards
Anji
05-11-2007 6:53 PM
Hi Reddy,
My requirements is user can add new rows by clicking insert new row button.
While inserting new values into new row, user wanted to see how many cost centers are existing.
I want to get some list like in the program BCALV_EDIT_03.
See the "plane type" . If you click the plane type..you can see all plane types. User can select any plane type and update the row.
05-11-2007 7:47 PM
Hi,
while creating fieldcatalog for ALV use structure of your output table and call
data : v_structure like dd02l-tabname.
v_structure = c_ysccalv.
call function 'LVC_FIELDCATALOG_MERGE'
exporting
i_structure_name = v_structure
i_client_never_display = c_x
changing
ct_fieldcat = i_fieldcat[].
then system automatically give you the F4 help no need to write your custom code for this.
if you don't have structure for your output then create thru se11 with check tables, search help attached to fields.
aRs
11-21-2007 5:39 AM