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

Problem in parameter and select-options

Former Member
0 Likes
764

Hi

i declared select option and parameter . some time the variable doesnt take user entered value ..it takes default value not entered one.

Thanks

Shankar

7 REPLIES 7
Read only

Former Member
0 Likes
742

you must have given any default value while declaring the parameter or select option

then only it will take default vale.other wise user can enter,

regrads,

Ruchika

Read only

Former Member
0 Likes
742

Hi

Any default value is only to prepopulate the selection fields when the program is run.

User can retain or change the values as required.

Regards

Raj

Read only

0 Likes
742

i have given default value..but if user gives other value it takes only default value

Read only

0 Likes
742

hi shankar,

can you paste your code here.

regards,

Navneeth K.

Read only

0 Likes
742

Hi Shankar ,

Where have you given the default values , in the event initialization or at selection-screen output.

Plese give the default values in initialization event.

Regards

Arun

Read only

Former Member
0 Likes
742

Hi.

selction option have

SELECT-OPTIONS sel FOR f.

Additions

1. ... DEFAULT g

2. ... DEFAULT g ... OPTION xx ... SIGN s

3. ... DEFAULT g TO h

4. ... DEFAULT g TO h ... OPTION xx ... SIGN s

5. ... MEMORY ID pid

6. ... MATCHCODE OBJECT mobj

7. ... MODIF ID key

8. ... NO-DISPLAY

9. ... LOWER CASE

10. ... OBLIGATORY

11. ... NO-EXTENSION

12. ... NO INTERVALS

13. ... NO DATABASE SELECTION

14. ... VALUE-REQUEST

15. ... VALUE-REQUEST FOR LOW/HIGH

16. ... HELP-REQUEST

17. ... HELP-REQUEST FOR LOW/HIGH

I think so you are using this syntax.

... DEFAULT g

so remove default value from your code.

regards.

Jay

Read only

Former Member
0 Likes
742

Hi Shankar,

It should nt happen like that.

Default values should only take if the user not changed anything in that field. If the user changes, the value should populated the changed one.

See if u have done like this:

Eg: parameters: p_matnr like mara-matnr default ' 00000012345'.

select-options s_matnr for mara-matnr.

INITIALIZATION.

s_matnr-option = 'I'

s_matnr-low = '0000023456'.

append s_matnr.

clear s_matnr.

Reward points for helpful answers.

Thanks.

hari krishna.