2007 Nov 07 5:54 AM
Hi
I have to initilized the select options as default value:
1.doc type : bsart with a 'zimp' .2.doc date :bedat with sy-datum.
I had used :
Initilization.
bsart-low = 'zimp' .
bedat-low = 'sy-datum'.
But its not working.Plz tell me the way?
regards
vipin
Hi
I have to initilized the select options as default value:
1.doc type : bsart with a 'zimp' .2.doc date :bedat with sy-datum.
I had used :
Initilization.
bsart-low = 'zimp' .
bedat-low = 'sy-datum'.
But its not working.Plz tell me the way?
regards
vipin
2007 Nov 07 5:56 AM
Hi,
You forgot to use append statement.
Use the append statement .
Initilization.
bsart-low = 'zimp' .
bedat-low = 'sy-datum'.
<b>append bsart.
append bedat.</b>
I hope your problem is fully solved now.
Regards,
Rama chary.Pammi
2007 Nov 07 5:56 AM
Hi
do like this
Initilization.
bsart-low = 'zimp' .
bsart-sign = 'I'.
bsart-option = 'EQ'.
append bsart.
bedat-low = 'sy-datum'.
bedat-sign = 'I'.
bedat-option = 'EQ'.
append bedat.
Regards
anji
2007 Nov 07 6:05 AM
hey..thnaks i got what to do....but tell me one thing,what is this ?
bsart-sign = 'I'.
bsart-option = 'EQ'.
what they are going to do??
2007 Nov 07 6:12 AM
Hi,
as u know select-options gives u a table with four feilds
1>SIGN
2>OPTION
3>LOW
4>HIGH
when we want to preapre default values to it. we generally use....
go through the below link
http://www.sap-img.com/abap/difference-between-select-options-ranges.htm
Reward if helpful.
Regards,
nagaraj
2007 Nov 07 6:12 AM
Hi vipin,
sign have the options like 'I' for inclusive 'E' for exclusive
Inclusive means between the input provided in the fields, vice versa for exclusive
OPTION have the options 'EQ ' 'NEQ' 'BT'for between etc
Thanks & Regards,
vinesh
2007 Nov 07 6:18 AM
ok,
Thanks a lot to all of u..
one more thing...if user does put vaules in both the low & high for bsart-low & bsart-high,it will work fine na?also if he only put vale in bsart-high,will this bsart-option = 'EQ' will create any prob or not?
2007 Nov 07 6:22 AM
Hi Vipin..
hope u have seen my prev post.
You can set the values for both LOW and HIGH in this way.
INITIALIZATION.
S_BEDAT-SIGN = 'I'. "Include
S_BEDAT-OPTION = 'BT'. "between
S_BEDAT-LOW = SY-DATUM - 30.
S_BEDAT-LOW = SY-DATUM.
APPEND S_BEDAT.
Note: If u set the Value of HIGH then u cant use the Option = 'EQ'. it compares only LOW.
REWARD IF HELPFUL.
2007 Nov 07 6:23 AM
p_doc-low = 'ZIMP'. " default value for import PO.
p_doc-sign = 'I'.
p_doc-option = 'bt'.
APPEND p_doc.
p_date-low = sy-datum. " default vaule as current date.
p_date-sign = 'I'.
p_date-option = 'bt'.
APPEND p_date.
If i am using this ,its displaying error. both if i used 'EQ' or 'BT'.its error meaasge.
what to do?
2007 Nov 07 6:26 AM
Hi Vipin..
p_doc-low = 'ZIMP'. " default value for import PO.
p_doc-sign = 'I'.
p_doc-option = 'BT'. "Upper case
APPEND p_doc.
p_date-low = sy-datum. " default vaule as current date.
p_date-sign = 'I'.
p_date-option = 'BT'. "Upper case
APPEND p_date.
Note: You can do this only for SELECT-OPTIONS or Ranges. Check it.
Reward if helpful.
2007 Nov 07 6:36 AM
2007 Nov 07 5:57 AM
pass the correct select option name.
select-option:bsart
select-option:bedat
initil..
bsart-low = 'zimp' .
bedat-low = 'sy-datum'.
2007 Nov 07 6:04 AM
Hi Vipin..
This is the code for u.
Initilization.
bsart-low = 'zimp' .
APPEND BSART.
bedat-low = sy-datum. "dont give the quotes
Append Bedat.
Reward if Helpful.
2007 Nov 07 6:33 AM
Hi
SELECT-OPTION ALLWAYS LOOKS LIKE A STRUCTURE
WHICH IS HAVING FILEDS LIKE
<b>LOW
HIGH
OPTION
SIGN</b>
Initilization.
bsart-low = 'zimp' .
<b>BSART-SIGN = EQ OR BT OR LT ETC..
BSART-OPTION = I OR E
APPEND BSART .
CLEAR BSART</b>
bedat-low = 'sy-datum'.
<b>BEDAT-OPTION = I OR E
BEDAT-SIGN = EQ ETC..
APPEND BEDAT
CLEAR BEDAT</b>
<b>rEWARD IF USEFULL</b>.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |