Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SCREENS

This is lalitha .

In the below report I am not able to solve the error in "case-endcase' .

This is my program for getting a checkbox in screens .

REPORT ZLAL_CHECKBBOX .

DATA: CB1,

CB2,

X(30) VALUE 'SAI',

Y(30) VALUE 'PRANEETH',

TEMP(30),

E(4) .

CALL SCREEN 100 .

MODULE CHBK INPUT .

CASE sy-ucomm.

when CB1.

IF CB1 = 'X' AND CB2 <> 'X' .

TEMP = X .

ELSE. IF CB1 = 'X' AND CB2 = 'X' .

concatenate Y X INTO TEMP .

ELSE. IF CB1 = 'X' AND CB2 = 'X' .

TEMP = Y .

ELSE. CLEAR TEMP .

ENDIF .

WHEN CB2 .

IF CB1 = 'X' AND CB2 <> 'X' .

TEMP = Y .

ELSEIF CB1 = 'X' AND CB2 = 'X' .

concatenate X Y INTO TEMP .

ELSEIF CB2 <> X AND CB1 = 'X' .

TEMP = X .

ELSE .

CLEAR TEMP .

ENDIF .

WHEN E .

LEAVE PROGRAME .

ENDIF .

ENDCASE .

ENDMODULE CHBK INPUT .

Former Member
Not what you were looking for? View more on this topic or Ask a question