Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

confused between user exit and PCUI

Dear friends..

I am confused between user exit and pcui...

I was working on search help problem..I used user exit for the portal and i found that the program was not working generating the search help, then i moved to pcui..and write a code in drop-down list box method. my screen field is input field,,and i am giving you the code which i used.. problem is this my earlier user exit is in active mode still, does it interfere to pcui method... please reply me with your sudggestion,,or code, or any article will be great help of mine.. thanking you.

METHOD if_crm_bsp_model_access_il~fill_dropdown_listbox.

TYPES:

BEGIN OF t_listbox_data,

key TYPE AD_ADDRNUM,

value TYPE ADDDesc,

END OF t_listbox_data.

DATA:

lw_data TYPE REF TO data,

lw_listbox_data TYPE t_listbox_data,

li_data TYPE REF TO data,

li_listbox_data TYPE TABLE OF t_listbox_data,

li_listbox_data_temp TYPE TABLE OF t_listbox_data.

FIELD-SYMBOLS:

<fi_listbox_data> TYPE table,

<fw_listbox_data> TYPE t_listbox_data,

<fw_ddlb> TYPE crmt_dropdownlistbox_data.

  • Looping over all dropdown list values

LOOP AT ct_dropdownlb_data ASSIGNING <fw_ddlb>.

  • When the custom field is processed

IF <fw_ddlb>-fieldname EQ ‘AD_Addrnum’.

  • Creating the objects.

CREATE DATA li_data TYPE TABLE OF t_listbox_data.

CREATE DATA lw_data TYPE t_listbox_data.

  • Assigning field symbols.

ASSIGN li_data->* TO <fi_listbox_data>.

ASSIGN lw_data->* TO <fw_listbox_data>.

  • Copying the retrieved lines.

<fi_listbox_data>[] = li_listbox_data[].

  • Name of the key column

<fw_ddlb>-keycolumnname = 'KEY'.

  • Name of the value column

<fw_ddlb>-valuecolumnname = 'VALUE'.

  • Moving the data to the table

MOVE li_data TO <fw_ddlb>-data.

ENDIF.

ENDLOOP.

ENDMETHOD.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question