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

Regarding Tablename in Selection-screen

HI all,

my requirement is,, If i will give Table name in the selection-screen then the output is to display all the fields in table...

for example if i will give MARA.... THE Output has to display all the fields of mara and their description..

can any one give some idea pls...and if poss give some eg coding also....

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 Feb 26, 2009 at 03:52 AM

    Hi,

    DD03L holds the Table Fields

    DD03T holds the Table Fields and description

    OR use FM DB_GET_TABLE_FIELDS

    RFC_READ_TABLE - Fields with Description

    Edited by: Avinash Kodarapu on Feb 26, 2009 9:31 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 26, 2009 at 03:56 AM

    Hi,

    Use DD03L Table for getting field names of the tables.

    Regards,

    Surendar Reddy.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2009 at 04:08 AM

    Hi

    Good

    if you are entering the selection screen parameter as MARA than you can use the structure DD03P and DD03D .

    DD03D structure return you the field name like MATNR and DD03P will retrun you the Short Desctiption like Material Number.

    Thanks

    mrutyun^

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2009 at 04:46 AM

    Hi,

    Check these function modules

    BKK_DB_GET_TABLE_FIELDS

    RM_TABLE_FIELDS_GET

    or check these tables

    DD03L Table Fields

    DD03T DD: Texts for fields (language dependent)

    Regards,

    Jyothi CH.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2009 at 04:58 AM

    Hello mate,

    you can do that in two ways. When you specify the table name from your selection screen, you can retreive all fields names for that selection from table DD03L and DD03T for the descriptions.

    easier would be to use the function module FM DB_GET_TABLE_FIELDS and pass the table you want to display the fields and ( RFC_READ_TABLE for the Fields with Description).

    Hope this helps

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2009 at 04:59 AM

    Hi,

    use this FM ,

    U'll get all the field names and its descriptions for the Table.

    FMRE_GET_TABLEFIELDS_LONGNAMES

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi,

      i used this functional module ......i got the output

      DDIF_FIELDINFO_GET

      field name description1 description2..

      description1 is default english..

      description2 is what evr language we select in selection screen tat language has to be displayed in output...

      could u pls help me out regarding this....

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.