04-12-2010 2:29 PM
Hi All,
I am facing a strange situation where in the APPEND command work fine where I run my Interface in foreground but when I run the interface in background mode it doesnt APPEND the values to the select options.
I have coded the below code in INITIALIZATION.
INITIALIZATION
SELECT SINGLE MAX( run_nr )
FROM ztsifoutdet
INTO gv_temp_nr
WHERE sys_id EQ p_sysid.
SELECT SINGLE run_date
FROM ztsifoutdet
INTO gv_date
WHERE sys_id EQ p_sysid
AND run_nr EQ gv_temp_nr.
gv_temp_nr = gv_temp_nr + c_1.
CLEAR s_bdter.
s_bdter-sign = 'I'.
s_bdter-option = 'BT'.
s_bdter-low = gv_date.
s_bdter-high = sy-datum.
APPEND s_bdter.
Here the APPEND statement doesnt append values to S_BDTER when ran in background. ITs quite strange.
Please reply.
Regards
Abhii
04-12-2010 2:55 PM
As far as I know, INITIALIZATION is processed before values from selection variants are pulled in. Check that the variant that you use for processing the program in background contains the desired values.
Alternatively try filling the values in event AT SELECTION-SCREEN OUTPUT.
Thomas
04-12-2010 2:55 PM
As far as I know, INITIALIZATION is processed before values from selection variants are pulled in. Check that the variant that you use for processing the program in background contains the desired values.
Alternatively try filling the values in event AT SELECTION-SCREEN OUTPUT.
Thomas
04-12-2010 3:00 PM
HI Abhi,
INITIALIZATION " Change it to At selection-screen output
SELECT SINGLE MAX( run_nr )
FROM ztsifoutdet
INTO gv_temp_nr
WHERE sys_id EQ p_sysid.
SELECT SINGLE run_date
FROM ztsifoutdet
INTO gv_date
WHERE sys_id EQ p_sysid
AND run_nr EQ gv_temp_nr.
gv_temp_nr = gv_temp_nr + c_1.
CLEAR s_bdter.
s_bdter-sign = 'I'.
s_bdter-option = 'BT'.
s_bdter-low = gv_date.
s_bdter-high = sy-datum.
APPEND s_bdter.
Cheerz
Ram
04-12-2010 3:10 PM
Hi,
As every one said.. write it in selection-screen-output, Whenever face this kind of problem related to job. try debuging the job(JDBG)
Edited by: Anurag_n on Apr 12, 2010 4:10 PM