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

How do I get the Dataelement Using ABAP Code/a Function-Module

Former Member
0 Likes
6,303

Hi Friends,

How can i find the DATAELEMENT of a FIELD with the help of ABAP CODE,or is there any

function-module which returns me DATAELEMENT of a FIELD , if i export the FIELD NAME ?

Thanks and Regards,

Xavier.P

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,052

hi,

Use the Function Module DDIF_FIELDINFO_GET

or

Use the tables DD03l, DD04l for table fields and data elements.

thanks,

raji

7 REPLIES 7
Read only

Former Member
0 Likes
3,052

Hi,

take the details from the table DD04L with the field values table = ENTITYTAB and ROLLNAME as yor data element.

hope this will helps you.

Thanks

Read only

Former Member
0 Likes
3,053

hi,

Use the Function Module DDIF_FIELDINFO_GET

or

Use the tables DD03l, DD04l for table fields and data elements.

thanks,

raji

Read only

Former Member
0 Likes
3,052

Hi,

Table DD03L contains the data you need. Pass the input as table name and field name and get it from DAta element field

Read only

former_member222860
Active Contributor
0 Likes
3,052

Hi,

This FM gives the dataelement for the fieldname

SWU_GET_ROLLNAME_TO_FIELDNAME

u should give fieldname with the table name like VBAK-VBELN.

thanks

Mahesh

Read only

Former Member
0 Likes
3,052

Hi,

I think there are couple of methods like u can get data-element name from DD03L and in that Roll name is the field.

Second is using FM 'BVW_FIELDNAMES_GET' in which u have to pass table name and it will give u all fields name with data element.

Cheers,

Parth Parikh

Read only

shadow
Participant
0 Likes
3,052

Hi ,

check the tables DD03L for table fields and DD04L data elements.

or press f1 on field ,go to technical setting u can get........

Regard's

Shaik.

Edited by: SHAIK JAILABDIN on Jan 19, 2009 8:14 AM

Read only

Former Member
0 Likes
3,052

Hi...

data: it_dfies TYPE TABLE OF DFIES,

wa_dfies TYPE DFIES.

CALL FUNCTION 'DDIF_FIELDINFO_GET'

EXPORTING

tabname = 'VBAK'

FIELDNAME = 'VBELN '

TABLES

DFIES_TAB = it_dfies.

READ TABLE it_dfies INTO wa_dfies INDEX 1.

WRITE /wa_dfies-ROLLNAME. "data element