Created
January 17, 2018 01:01
-
-
Save svict4/787cc86823048b3ce727f7eb4218f432 to your computer and use it in GitHub Desktop.
ABAP Dropdown in SAP CRM UI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*-- This code is placed within the GET_V of the attribute within the context node | |
*-- (please note that the GET_P must also specify that it is type picklist in the appropriate WHEN clause). | |
DATA: lo_ddlb TYPE REF TO cl_crm_uiu_ddlb, | |
lt_dropdown TYPE bsp_wd_dropdown_table. | |
*-- Create an instance of the class specifying that the source type is a table. | |
CREATE OBJECT lo_ddlb | |
EXPORTING | |
iv_source_type = gr_owner->gc_source_type_table. "This value is 'T' for Table. | |
*-- Bind the dropdown table to the dropdown and set that to the returning param. | |
lo_ddlb->set_selection_table( it_selection_table = lt_dropdown ). | |
rv_valuehelp_descriptor = lo_ddlb. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment