‎2007 Jun 22 6:51 AM
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
‎2007 Jun 22 6:53 AM
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
‎2007 Jun 22 6:55 AM
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
‎2007 Jun 22 7:04 AM
i have given default value..but if user gives other value it takes only default value
‎2007 Jun 22 7:12 AM
‎2007 Jun 22 7:14 AM
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
‎2007 Jun 22 7:05 AM
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
‎2007 Jun 22 7:13 AM
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.