‎2007 Sep 05 10:27 AM
Hi
i am having
SELECT-OPTIONS: s_erdat FOR vbak-erdat.
i am getting s_erdat - low value from one table which is from program logic . high value = sy-datun -1.
when you run this program it is coming good.
now, the problem is, i want to crate a variant and run the background job. when ever i run the background job that variant should automatically take values mention from program logic
Message was edited by:
sudhakara reddy
‎2007 Sep 05 10:31 AM
Hi,
In the At selection-screen event write the below code
loop at s_erdat.
s_erdat-high = sy-datum.
modify s_erdat index sy-tabix.
endloop.
Satya.
‎2007 Sep 05 10:31 AM
hi,
select-options : v_date for sy-datum.
initialization.
get the date from some table and put in variable lv_lowdate.
v_date-low = lv_lowdate.
append v_date.
v_date-high = sy-datum.
append v_date.
rewards if useful,
regards,
nazeer
‎2007 Sep 05 10:38 AM
Hi Sudhakar..
This is the Logic.
SELECT-OPTIONS:s_erdat FOR vbak-erdat.
INITIALIZATION.
S_ERDAT-SIGN = 'I'.
S_ERDAT-OPTION = 'BT'.
SELECT SINGLE <DATEFIELD>
FROM <TABLE> INTO S_ERDAT-LOW.
WHERE <COND> .
S_ERDAT-HIGH = SY-DATUM.
APPEND S_ERDAT.
<b>Reward if Helpful.</b>
‎2007 Sep 05 10:42 AM
variant values can be retrieved from the TVARVC table. you can set the variant properties to pick up a particular value from this table and then keep a row in this table for the specific value.
‎2007 Sep 05 10:43 AM
hi,
selection-screen: begin of block blk1 with frame title text-001.
select-options : s_date for vbak-erdat default ' ' to sy-datum.
selection-screen : end of block blk1.
Reward with points if helpful.
Message was edited by:
Vinutha YV
‎2007 Sep 05 10:43 AM
Hi,
Check the below code:
tables: bsad.
select-options:
sdate for bsad-bldat default sy-datum no-extension.
Initialization.
loop at sdate.
sdate-high = sy-datum.
modify sdate index sy-tabix.
endloop
Hope the Info will help you. Reward points if helpful.
With Regards
K K V