Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CL_RECA_DDIC_DOMA Example?

Former Member
0 Kudos

The following code will not compile. I get an error saying "'ZTRANSMISSIONS' cannot be changed. The parameter "ID_NAME" in the declaration of class CL_RECA_DDIC_DOMA says it's a "fixed value". I'm confused. Can someone provide an example?


REPORT  ztestvehicle.

TYPE-POOLS: abap.

DATA ex TYPE abap_bool.

START-OF-SELECTION.

CALL METHOD CL_RECA_DDIC_DOMA=>EXISTS_VALUE
  IMPORTING
    id_name = 'ZTRANSMISSIONS'
    id_value = 'MAN'
   RECEIVING
    ex = rf_exists.

IF ex = abap_true.
  MESSAGE 'DOES EXISTS' TYPE 'I'.
ELSE.
  MESSAGE 'DOES *NOT* EXIST' TYPE 'I'.
ENDIF.

1 REPLY 1

Former Member
0 Kudos

Resolved on my own.