Application Development and Automation 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: 
Read only

parameters need to hav five default values

Former Member
0 Likes
656

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
625

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.

4 REPLIES 4
Read only

Former Member
0 Likes
626

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

Read only

Former Member
0 Likes
625

Hi,

You can use VRM_SET_VALUES to assign list of values

Kindly reward if helpful

Regards,

gaurav

Read only

0 Likes
625

Hey

for an example on how to use it

check

DEMO_DYNPRO_DROPDOWN_LISTBOX

Reward Points if helpful

regards,

gaurav

Read only

Former Member
0 Likes
625

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