Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to konw some attributes' possible VALUES?

Former Member
0 Kudos

<b><i>how to konw some attributes' possible VALUES?</i></b>

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sekhar

maowenxian@gmail.com

thanks!

12 REPLIES 12

hymavathi_oruganti
Active Contributor
0 Kudos

by pressing f4

athavanraja
Active Contributor
0 Kudos

what attributes?

if you are talking about possible values for a field

you can get it thru its search help

or domain fixed values

Regards

Raja

Former Member
0 Kudos

1. Value table - which is at the Domain level of the field

2. Search Help

3. Check table

Former Member
0 Kudos

Hai Amao

Check the following code

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ldf_tabname " Structure of VALUE_TAB

RETFIELD = LDF_FLDNAME "Name of return field in FIELD_TAB

  • PVALKEY = ' '

  • DYNPPROG = ' '

  • DYNPNR = ' '

  • DYNPROFIELD = ' '

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = LCF_VAL "Value return

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = TAB_TEMP " Table of Values

FIELD_TAB = LDT_FLDTAB " Fileds of the Hit list

RETURN_TAB = LDT_RETTAB " return the selected value

  • DYNPFLD_MAPPING =

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

READ TABLE LDT_RETTAB INDEX 1.

DATA: LDT_DFIES LIKE DFIES OCCURS 0 WITH HEADER LINE.

CLEAR LDT_DFIES.

CALL FUNCTION 'DDIF_FIELDINFO_GET'

EXPORTING

TABNAME = LDF_TABNANME

FIELDNAME = LDF_FLDNAME

  • LANGU = SY-LANGU

  • LFIELDNAME = ' '

  • ALL_TYPES = ' '

  • GROUP_NAMES = ' '

  • UCLEN =

  • IMPORTING

  • X030L_WA =

  • DDOBJTYPE =

  • DFIES_WA =

  • LINES_DESCR =

TABLES

DFIES_TAB = LDT_DFIES " Field List

  • FIXED_VALUES =

EXCEPTIONS

NOT_FOUND = 1

INTERNAL_ERROR = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Thanks & regards

Sreenivasulu P

Former Member
0 Kudos

Hi,

GOTO any table>double click on field type>double click on domain-->value range tab.

There if you specify some values then the table will allow in that particular values or in that range it-self.

You will find that values in Table:DD07T.

Thanks.

If this helps you reward with points.

Former Member
0 Kudos

Hi Sravanthi

i'm just a sap starter

can u tell me how to get them through the 3 ways which you give me. thanks you very much!!

0 Kudos

Hi AMAO,

1. Domain : You can hardcode the possible values for a

field under it's domain.

2. Search Help : You can goto SE11 and create a search help that display the possible values, here you can take all the possible values from the Database and specify your selection criteria. This Search help you can attache to your fields from your program by specifying the clause MATCH CODE OBJECT 'Search Help Name' after the field declaration.

3. You can also develop a Search Help Exit.

Hope this helps.

Please reward helpful answers.

Regards,

Amit Mishra

Regards,

Amit Mishra

Former Member
0 Kudos

<b>for instance(fieldcat):</b>

• row_pos (row position)

value set: 0, 1 - 3

Only relevant if the list output is to be multi-line (two or three lines) by default.

A multi-line list can also be defined by the user interactively if the default list is one-line.

The parameter specifies the relative output line of the column in a multi-line list.

• col_pos (column position)

value set: 0, 1 - 60

only relevant when the default relative column positions differ from the field catalog field sequence. The parameter specifies the relative column position of the field in the list output. The column order can be changed interactively by the user. If this parameter is initial for all field catalog entries, columns appear in the field catalog field sequence.

how can i get other attributes' value and descriptions.

0 Kudos

if u r talking abt attributes of fieldcatalog , pls give ur mail id , i will send one document on ALV

Former Member
0 Kudos

Hi Sekhar

maowenxian@gmail.com

thanks!

0 Kudos

sent 2 documents

sbhutani1
Contributor
0 Kudos

Hi amao,

you can see the value range for possible values for a domain.