05-08-2006 7:32 AM
05-08-2006 8:10 AM
05-08-2006 7:33 AM
05-08-2006 7:35 AM
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
05-08-2006 7:36 AM
1. Value table - which is at the Domain level of the field
2. Search Help
3. Check table
05-08-2006 7:36 AM
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
05-08-2006 7:43 AM
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.
05-08-2006 7:44 AM
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!!
05-08-2006 7:59 AM
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
05-08-2006 7:54 AM
<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.
05-08-2006 7:58 AM
if u r talking abt attributes of fieldcatalog , pls give ur mail id , i will send one document on ALV
05-08-2006 8:10 AM
05-08-2006 8:13 AM
05-08-2006 8:17 AM
Hi amao,
you can see the value range for possible values for a domain.