In select options how to get default values as current month first date and last date by default. ex: 1/12/2004 & 31/12/2004.

Showing Answers 1 - 2 of 2 Answers

B.V.Surender

  • Oct 25th, 2007
 


Hi,

Select-options are used to give multiple inputs at runtime, This is an table which have the fields (low,high,option,sign). We can give default values by using these fields,   For example:
 
* Declaration:

select-option: s_matnr for mara-matnr.
 
* Default values assigning:

s_matnr-low = '100-100'. ( lowest value of input )

s_matnr-high = '500-100'. ( highst value of input )

s_matnr-option = 'BT'. ( Analyzable operators are "EQ", "NE", "GE", "GT", "LE", "LT",
                                     "CP" and "NP" if column high is initial, and "BT", "NB" if
                                     column high is not initial. )

s_matnr-sign = 'I'         ( 'I' or 'E')

append s_matnr.
clear s_matnr.

 We have to append the select-option field after assigning the values as in upper example.

  Was this answer useful?  Yes

hi fnd,
         i will send a sample code for ur problem.check it once..

      
select-options : s_data for sy-datum.
initilization.
s_data-sign      = 'I'.
s_data-options = 'BT'.
s_data-low       =  '1/12/2004'.
s_data-high       =  '31/12/2004'.
append s_data.

Regards,
Kiran Kumar.G
            Have a Nice Day..

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions