Skip to Content
0
Former Member
Apr 03, 2008 at 06:01 AM

help

10 Views

Hello,

Please help me, i have made one screen programme there i put delete/display/exit/insert buttons, there i am having problem of when i am clicking display my data is not displaying and other buttons insert and delete also, kindly let me know what i have to do, the code which i have written that i mentioned below.

&----


*& Report ZSUJU

*&

&----


*&

*&

&----


REPORT ZSUJU.

Tables : zemp.

Data : it like zemp occurs 0 with header line.

&----


*& Module STATUS_2000 OUTPUT

&----


  • text

----


MODULE STATUS_2000 OUTPUT.

SET PF-STATUS 'ZUOM'.

  • SET TITLEBAR 'xxx'.

ENDMODULE. " STATUS_2000 OUTPUT

&----


*& Module USER_COMMAND_2000 INPUT

&----


  • text

----


MODULE USER_COMMAND_2000 INPUT.

CASE SY-UCOMM.

WHEN 'EXIT'.

LEAVE program.

WHEN 'DISPLAY'.

SELECT SINGLE * FROM ZEMP INTO IT WHERE EMP_NO = IT-EMP_NO.

WRITE : 10 IT-EMP_NO, 20 IT-EMP_NAME, 30 IT-EMP_DOB, 40 IT-EMP_DOJ, 50 IT-EMP_COUNTRY.

WHEN 'INSERT'.

IT-EMP_NO = IT-EMP_NO.

IT-EMP_NAME = IT-EMP_NAME.

IT-EMP_DOB = IT-EMP_DOB.

IT-EMP_DOJ = IT-EMP_DOJ.

IT-EMP_COUNTRY = IT-EMP_COUNTRY.

INSERT INTO ZEMP VALUES IT.

ENDCASE.

ENDMODULE. " USER_COMMAND_2000 INPUT

please help at your earliest and oblige.

thanks,

suja