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: 

RFC for getting Datatype of a dataelement .

Former Member
0 Kudos

Hi,

I have a requirement where I have to remotely query into a system and retrieve the datatype of a dataelement . Currently I know only DDIF_FIELDINFO_GET which is RFC enabled but it return only for table fields.

Please help.

Regards,

Anupam Yadav

6 REPLIES 6

Former Member
0 Kudos

Hi Anupam ,

I dont know a RFC enabled FM which does the function you want , so one option can be to created a new RFC module

Regards

Arun

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

You can create a custom wrapper RFC & call the FM 'DDIF_DTEL_GET' inside it. Alternatively you can use the RTTI method CL_ABAP_ELEMDESCR=>DESCRIBE_BY_NAME to get the details.

BR,

Suhas

paul_bakker2
Active Contributor
0 Kudos

Hi,

The function module RS_DME_IM_IM4D_DTEL_GET does exactly what you want.

It is an RFC-enabled wrapper for DDIF_DTEL_GET.

hope this helps

Paul Bakker

Former Member
0 Kudos

Hi Anupam,

Kindly try with the function module RS_DME_IM_IM4D_DTEL_GET.

Pass the dataelement for which you want to know the data type as input parametr to this function module, it will return the need de information in a structure called DDINFO.

Hope this will meet your requirement.

Thanks and regards,

Rinzy Deena Mathews.

Former Member
0 Kudos

Hi Anupam,

For your requirement the most feasible solution would be

1) Creating an RFC FM and then inside your RFC FM,you can use any of the following normal Function Modules:

DDIF_DOMA_GET ==========*FOR DOMAINS

DDIF_DOMA_PUT

DDIF_DTEL_GET ==========*FOR DATAELEMENTS

DDIF_DTEL_PUT

Revert for further clarification

Thanks

Sri

Former Member
0 Kudos

Hi,

Table 'DD04L' contains data type of data elements. You can use field 'DATATYPE' which is available in table 'DD04L'.

Use RFC 'RFC_READ_TABLE' to fetch the data from table 'DD04L'.

Regards

Dande