Valores fijos de un dominio – DDIF_DOMA_GET

Si se desea obtener los valores fijos de un dominio podemos usar la función DDIF_DOMA_GET

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
    DATA l_name LIKE dcobjdef-name.
    DATA it_dd07v LIKE dd07v OCCURS 0 WITH HEADER LINE.
 
    REFRESH: it_dd07v.
    l_name = 'STATV'.
    CALL FUNCTION 'DDIF_DOMA_GET'
         EXPORTING
              name          = l_name
              langu         = sy-langu
         TABLES
              dd07v_tab     = it_dd07v
         EXCEPTIONS
              illegal_input = 1
              OTHERS        = 2.
    IF sy-subrc = 0.
       SORT it_dd07v BY domvalue_l.
       READ TABLE it_dd07v WITH KEY  domvalue_l = TI_TABLE-GBSTK.
       IF sy-subrc = 0.
         TI_TABLE-ESTADO = it_dd07v-DDTEXT.
       ENDIF.
    ENDIF.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: