cancel
Showing results for 
Search instead for 
Did you mean: 

How to display Customer Fields like a dropdown listbox ?

Former Member
0 Kudos

Hi Gurus !

I have added a Z field to the Shopping Cart: "ZZUBICACION". This fields has a domain with 3 fixed values:

Value / Description

1 - Location_1

2 - Location_2

3 - Location_3

I created this Customer Fields (CUF) using sapnote 672960 and using append structures in INCL_EEW_PD_HEADER_CSF_SC and INCL_EEW_PD_HEADER_CSF.

The field is appearing correctly in the Shopping Cart and the values are saved. So far, so good.

Here is my question:

Can I make the field look like a traditional listbox ? Right now is appearing as an input field with binoculars to the side.

Thank you in advance,

Best Regards,

Mariano.

Accepted Solutions (0)

Answers (1)

Answers (1)

dean_hinson2
Active Contributor
0 Kudos

Did you try my suggestion from the other forum?

Regards, Dean.

Former Member
0 Kudos

Your suggestion was to add the valid values in the DOMAIN of my Z-Field. As I already say my field has a DOMAIN with 3 fixed values.

Thank you anyway for taking your time.

Former Member
0 Kudos

Hi,

Solution in foll thread:

Former Member
0 Kudos

>

> Hi,

>

> Solution in foll thread:

>

>

>

I found a easier solution. Instead of modifyng the ITS (java and html) you can modify a Function Group (ABAP).

The function group is BBP_PDH_CUF, the include is LBBP_PDH_CUFF02 and the form is modify_display_table.

At the beginning of that form I have the following code:

*{   INSERT         XXXKNNNNNN                                        1
* Object registration key: ----------------------
  LOOP AT <display> INTO ls_display.
    CASE ls_display-name.

      WHEN 'ZZUBICACION'.
        ls_display-f4_availabl = 'W'.  " Drop down listbox
        MODIFY <display> FROM ls_display.

      WHEN OTHERS.
        CONTINUE.
    ENDCASE.
  ENDLOOP.
*}   INSERT

Thank you for your time.

I'm going to leave the question as answered.

Mariano.-

Former Member
0 Kudos

Thats really nice!Thanks for updating the thread.

Former Member
0 Kudos

Hello Deepti,

Are you able to do the above suggested code in "LBBP_PDH_CUFF01"?

Regards,

Kamal

SG
Explorer
0 Kudos

Hi Mariano,

Thank you for posting the logic to display the drop down list box for customer fields. I followed your instructions and logic, but was not able to create the drop down. I have started a new thread regarding this question.

It would be very helpful if u could reply to that. please help me in this regard. Once again thanks for your help and time i really appreciate it.

Thanks & Regards,

Sanjeev.