Application Development and Automation 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: 
Read only

DDIF_FIELDINFO_GET Replace class

Former Member
0 Likes
2,855

HI ,

There is class or method which replace the FM DDIF_FIELDINFO_GET ?

Regards

Joy

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,794

Use CL_ABAP_ELEMDESCR=>GET_DDIC_FIELD. (Look at [Run Time Type Services in Release 6.40 |http://help.sap.com/abapdocu_70/en/ABENNEWS-640-RTTI.htm])

Regards,

Raymond

7 REPLIES 7
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,795

Use CL_ABAP_ELEMDESCR=>GET_DDIC_FIELD. (Look at [Run Time Type Services in Release 6.40 |http://help.sap.com/abapdocu_70/en/ABENNEWS-640-RTTI.htm])

Regards,

Raymond

Read only

0 Likes
1,794

HI Raymond

Thanks a lot ,

in the FM i provide in field ls_domain_name-domain_type

domain_type  domain_index
DATFM	        1

and in LT_DOMAIN_VALUES i get :

1		EQ	E	DD.MM.YYYY
2		EQ	E	MM/DD/YYYY
3		EQ	E	MM-DD-YYYY


      CALL FUNCTION 'DDIF_FIELDINFO_GET'
        EXPORTING
          tabname        = 'USDEFAULTS'
          langu          = sy-langu
          lfieldname     = ls_domain_name-domain_type
        TABLES
          fixed_values   = lt_domain_v
        EXCEPTIONS
          not_found      = 1
          internal_error = 2
          OTHERS         = 3.

There is a way to use it the same since i dont see where i can put the table name and the field name .

Thanks for quick replay .

Regards

Read only

0 Likes
1,794

- Use CL_ABAP_STRUCTDESCR=>GET_DDIC_FIELD_LIST to get the field list of table/structure

- Use CL_ABAP_ELEMDESCR=>GET_DDIC_FIXED_VALUES to get the value list of data element (of its domain)

Regards,

Raymond

Read only

0 Likes
1,794

HI Raymond,

Can u provide an example how to use it since i don't know where I put The input data

such as table name and domain types .

tabname        = 'USDEFAULTS'
          lfieldname     = ls_domain_name-domain_type

Thanks

Joy S

Edited by: Joy Stpr on Oct 13, 2009 8:06 AM

Read only

0 Likes
1,794

Look via SE24 at the parameters of the methods, a little sample for fields description of structure/table:

DATA: lcl_abap_structdescr TYPE REF TO cl_abap_structdescr,
      lt_ddic_info         TYPE ddfields.

FIELD-SYMBOLS: <ddic_info> TYPE LINE OF ddfields.

lcl_abap_structdescr ?= cl_abap_structdescr=>describe_by_name( 'MARA' ).

lt_ddic_info = lcl_abap_structdescr->get_ddic_field_list( ).

LOOP AT lt_ddic_info ASSIGNING <ddic_info>.
* Here select your field
ENDLOOP.

Another for a single field description

  DATA:
    lo_descr      TYPE REF TO cl_abap_elemdescr,
    ls_field      TYPE dfies,
    lt_domvalue   TYPE ddfixvalues.
  lo_descr ?= cl_abap_elemdescr=>describe_by_name( 'MARA-MATNR'  ).
  ls_field  = lo_descr->get_ddic_field( ).
  lt_values = lo_descr->get_ddic_fixed_values( p_langu = sy-langu )

Regards,

Raymond

Read only

Former Member
0 Likes
1,794

Hi,

Try with the following alternative FMs

DDIF_FIELDLABEL_GET

DDIF_NAMETAB_GET

DD_INT_UPDATE_DDFTX

Regards,

Deeba

Read only

0 Likes
1,794

HI ,

Thanks but i want to use the classes instead the function do u have an idea how to provide the table ?

Regards