Skip to Content
0
Former Member
May 14, 2009 at 08:50 AM

Values of select-options lost in tabbed screen when in batch mode

143 Views

Hi,

I have a very strange problem. When I run the following program in online mode (with values given for s_time1-low, s_time1-high and p_time1 on the second tab), everything is fine and the values given for s_time1 and p_time1 are printed. However, if I run the program in background (batch mode), the values s_time1-low and s_time1-high are initial and this is what is printed out.

Does anyone have a clue what could be the reason for this behavior? Any help is much appreciated!

Best regards,

Michael.

Demo-Program:

REPORT zdemo.

SELECTION-SCREEN: BEGIN OF TABBED BLOCK maintab FOR 26 LINES,
  TAB (20) button1 USER-COMMAND pushmain DEFAULT SCREEN 100,
  TAB (20) button2 USER-COMMAND pushtime DEFAULT SCREEN 200,
  END OF BLOCK maintab.

*********** MAIN SCREEN (100) ***********

SELECTION-SCREEN: BEGIN OF SCREEN 100 AS SUBSCREEN.

PARAMETERS:     p_test TYPE i DEFAULT 10000.

SELECTION-SCREEN: END OF SCREEN 100.

*********** TIMEFRAME SCREEN (200) ***********

SELECTION-SCREEN: BEGIN OF SCREEN 200 AS SUBSCREEN.

SELECT-OPTIONS:   s_time1 FOR sy-timlo NO-EXTENSION.
PARAMETERS:       p_time1 AS CHECKBOX DEFAULT ' '.

SELECTION-SCREEN: END OF SCREEN 200.


START-OF-SELECTION.

  WRITE:/ 's_time1-low:', s_time1-low.
  WRITE:/ 's_time1-high:', s_time1-high.
  WRITE:/ 'p_time1:', p_time1.