Skip to Content
author's profile photo Former Member
Former Member

pick list in ALV

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on May 11, 2007 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 11, 2007 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 05:39 AM

    Try BCALV_EDIT_06

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.