Skip to Content
0
Former Member
Jan 10, 2008 at 05:48 AM

Problem with tabstrip 'Save' button

47 Views

When I click on the 'Save' button for my tabstrip which has 3 tabs, the error is shown for what i want for the first tab as shown at this link:

http://img185.imageshack.us/img185/7290/screen1eg6.png

But when I look at my second and third tabs, the screen's input field is disabled when it is suppose to be enabled for the user to key in. The screen as show here:

http://img185.imageshack.us/img185/6615/screen2ns8.png

Line: -


My codes as below:

MODULE USER_COMMAND_9000 INPUT. Screen 9000 is the that contain the tabstrip

IF SY-UCOMM = 'BACK'.

LEAVE PROGRAM.

ELSEIF SY-UCOMM = 'EXIT'.

LEAVE PROGRAM.

ELSEIF SY-UCOMM = 'SAVE'.

IF IO_NAME IS INITIAL.

MESSAGE E004(ZMSG02).

CLEAR SY-UCOMM.

ELSEIF IO_AGE IS INITIAL.

MESSAGE E005(ZMSG02).

CLEAR SY-UCOMM.

ELSEIF IO_GENDER IS INITIAL.

MESSAGE E006(ZMSG02).

CLEAR SY-UCOMM.

ELSE.

PERFORM INSERT_TABLE.

ENDIF.

ENDIF.

ENDMODULE. "USER_COMMAND_9000 INPUT

MODULE USER_COMMAND_9001 INPUT. Screen 9001 contains the subscreen for first tab

CASE SY-UCOMM.

WHEN 'SAVE'.

IF IO_NAME IS INITIAL.

MESSAGE E004(ZMSG02).

PERFORM INSERT_TABLE.

ENDIF.

ENDCASE.

ENDMODULE. "USER_COMMAND_9000 INPUT

MODULE USER_COMMAND_9002 INPUT. Screen 9002 contains the subscreen for second tab

CASE SY-UCOMM.

WHEN 'SAVE'.

IF IO_AGE IS INITIAL.

MESSAGE E004(ZMSG02).

ELSE.

PERFORM INSERT_TABLE.

ENDIF.

ENDCASE.

ENDMODULE.

MODULE USER_COMMAND_9003 INPUT. Screen 9003 contains the subscreen for third tab

CASE SY-UCOMM.

WHEN 'SAVE'.

IF IO_GENDER IS INITIAL.

MESSAGE E004(ZMSG02).

ELSE.

PERFORM INSERT_TABLE.

ENDIF.

ENDCASE.

ENDMODULE.

Line: -


Please tell me what is wrong with my codes? Please type out the codes to let me understand. I will reward all useful answers