Skip to Content
author's profile photo Former Member
Former Member

RFC for getting Datatype of a dataelement .

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2011 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 25, 2011 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 04, 2011 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 20, 2011 at 11:15 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 20, 2011 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 24, 2011 at 11:56 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.