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: 

pick list in ALV

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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.

former_member194669
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Try BCALV_EDIT_06