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: 

fixed values in DOMAIN

Former Member
0 Kudos
146

Dear All,

How to get the text defined in value range of a domain?

field name:

data : zfff like z_itab-zfff.

data element: zeee

domain: zddd.

value range: 01-bangalor

02-hyd

03-chennai

I want retreive the text i.e bang,hyd,....

can anybody tell me how to do?

Regards,

Radhika.

2 REPLIES 2

Former Member
0 Kudos
92

Dear Radhika,

Use below code.

DATA:ITAB LIKE DD07V OCCURS 0 WITH HEADER LINE.

DATA:LANG TYPE SY-LANGU VALUE 'EN'.

DATA:TEXT LIKE DD07T-DDTEXT.

CALL FUNCTION 'DDIF_DOMA_GET'

EXPORTING

NAME = 'zddd'

STATE = 'A'

LANGU = LANG

  • IMPORTING

  • GOTSTATE =

  • DD01V_WA =

TABLES

DD07V_TAB = ITAB

  • EXCEPTIONS

  • ILLEGAL_INPUT = 1

  • OTHERS = 2

READ TABLE ITAB WITH KEY DOMVALUE_L = zfff.

TEXT = ITAB-DDTEXT.

Regards,

former_member212653
Active Contributor
0 Kudos
92

Get data from table:

DD07L (R/3 DD: values for the domains)

DD07T (DD: Texts for Domain Fixed Values (Language-Dependent))