2007 Jun 01 4:15 PM
frends information given in the spec is
Screen Label ReferenceField Select-Option or Parameter Default value
****************** ***************************** ****************
P_AGE CHAR(1) Checkbox
Validation, Error Action and other comments
Aging category
Values should be:
0-30,
31-60,
61-90,
91-120,
121-180,
180+ only
please help me how to declare this as a parameter.
2007 Jun 01 4:17 PM
HI,
Use select-options with no intervals
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR NO-INTERVALS.
Where u want to provide those aging values... as in F4 or default?
Regards
SAB
frends information given in the spec is
Screen Label ReferenceField Select-Option or Parameter Default value
****************** ***************************** ****************
P_AGE CHAR(1) Checkbox
Validation, Error Action and other comments
Aging category
Values should be:
0-30,
31-60,
61-90,
91-120,
121-180,
180+ only
please help me how to declare this as a parameter.
2007 Jun 01 4:17 PM
HI,
Use select-options with no intervals
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR NO-INTERVALS.
Where u want to provide those aging values... as in F4 or default?
Regards
SAB
2007 Jun 01 4:20 PM
Hi,
You can use VRM_SET_VALUES to assign list of values
Kindly reward if helpful
Regards,
gaurav
2007 Jun 01 4:23 PM
Hey
for an example on how to use it
check
DEMO_DYNPRO_DROPDOWN_LISTBOX
Reward Points if helpful
regards,
gaurav
2007 Jun 01 4:22 PM
Hi,
Try this..
You can use the FM VRM_SET_VALUES.
Check this example..
TYPE-POOLS: vrm.
PARAMETERS: p_test TYPE char1 AS LISTBOX VISIBLE LENGTH 10.
DATA: t_data TYPE vrm_values.
INITIALIZATION.
DATA: s_data TYPE vrm_value.
***Here you to have to do the select and populate the internal table
***t_data.
s_data-key = '1'.
s_data-text = '0-30'.
APPEND s_data TO t_data.
s_data-key = '2'.
s_data-text = '31-60'.
APPEND s_data TO t_data.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_TEST'
values = t_data
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
START-OF-SELECTION.
WRITE: / p_test.
Thanks,
Naren
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |