03-25-2011 9:21 AM
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
03-25-2011 9:31 AM
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
03-25-2011 11:10 AM
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
04-04-2011 2:19 AM
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
05-20-2011 12:15 PM
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.
05-20-2011 2:05 PM
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
05-24-2011 12:56 PM
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