Skip to Content
0
Jan 10, 2012 at 03:22 PM

Identify table Name from the Field Symbol pointing to Table

364 Views

Hi ,

I have a Field symbol refering to a Table ( say for example Infotype 0001 having 20 reoords ) .

I need to identify the Table name from the Field name i have. ( expecting to get the Table name as PA0001 )

I have got the Key fields name ( fields names stored in SE11 even with data elements and lenghts )

using CL_ABAP_DATADESCR.

But how do i get the Table name from these field Names?

Functionality Required: I have looked for FM

FM DDIF_FIELDINFO_GET that gives field names if we enter Table name but i need the Reverse of this ?

Any ideas ?