‎2007 Jan 30 8:35 PM
Hi All,
Is there any function module to get the custom table fields and associated T table fields
I have requirement to get the fieldname and its full attributes and if any T table is associated the custom table, the i need to get the fieldname and attributes of T table also.
Thanks
aRs
‎2007 Jan 30 8:59 PM
Hi Rich,
One more question regarding this.
How can i programatically find out whether a table (partent) have an association of T table (text)
Thanks
aRs
‎2007 Jan 30 8:38 PM
‎2007 Jan 30 8:44 PM
An example........
report zrich_0001 .
data: idfies type table of dfies with header line.
parameters: p_table type ddobjname.
call function 'DDIF_FIELDINFO_GET'
exporting
tabname = p_table
tables
dfies_tab = idfies
exceptions
not_found = 1
internal_error = 2
others = 3.
loop at idfies.
write:/ idfies-fieldname, idfies-position,
idfies-rollname, idfies-fieldtext.
endloop.
Regards,
Rich Heilman
‎2007 Jan 30 8:44 PM
Hi,
USe the table DD03L. this table gives you the list of all the fields and corresponding in a table.
Regards,
Vara
‎2007 Jan 30 8:47 PM
Hi Rich,
Thanks for your reply.
The function module only providing info related to Main (Parent) table and not giving the details about the T table. In that case i have to call this function module second time for getting T table values.
Thanks
aRs
‎2007 Jan 30 8:51 PM
‎2007 Jan 30 8:49 PM
Hi
Use the following Function Module
"DDIF_FIELDINFO_GET"
you just pass TabName & Fieldname at Exporting Parameters
this will gives you the Field Description.
Regards
Sreeni
‎2007 Jan 30 8:59 PM
Hi Rich,
One more question regarding this.
How can i programatically find out whether a table (partent) have an association of T table (text)
Thanks
aRs
‎2007 Jan 30 9:09 PM
Please check the modified code.
report zrich_0001 .
data: idfies type table of dfies with header line.
data: p_txttable type dd08v-tabname.
parameters: p_table type ddobjname.
call function 'DDIF_FIELDINFO_GET'
exporting
tabname = p_table
tables
dfies_tab = idfies
exceptions
not_found = 1
internal_error = 2
others = 3.
loop at idfies.
write:/ idfies-fieldname, idfies-position,
idfies-rollname, idfies-fieldtext.
endloop.
call function 'DDUT_TEXTTABLE_GET'
exporting
tabname = p_table
importing
texttable = p_txttable
* CHECKFIELD =
.
skip 3.
call function 'DDIF_FIELDINFO_GET'
exporting
tabname = p_txttable
tables
dfies_tab = idfies
exceptions
not_found = 1
internal_error = 2
others = 3.
loop at idfies.
write:/ idfies-fieldname, idfies-position,
idfies-rollname, idfies-fieldtext.
endloop.
Regards,
Rich Heilman