Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8689

Re: how to display listbox in ALV with domain values

$
0
0

Hi Arunkumar,

 

Perhaps you could use standard class CL_RECA_DDIC_DOMA to get the domain values? Method GET_VALUES supplies the values defined within a domain.

 

CONSTANTS: lc_bstat TYPE string VALUE 'BSTAT'.
 DATA: lt_values TYPE re_t_rsdomaval .
 * Get domain values for document status
 cl_reca_ddic_doma=>get_values( EXPORTING  id_name   = lc_bstat                                                IMPORTING  et_values = lt_values                                                   EXCEPTIONS not_found = 1                                                   OTHERS    = 2 ).
 IF sy-subrc <> 0.
 * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
 *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
 ENDIF.

Now you can fill your listbox from the internal table LT_VALUES.


Viewing all articles
Browse latest Browse all 8689

Trending Articles