‎2007 Feb 06 3:47 AM
Hi experts,
I created a menu with 3 items. and i write the code in abap editor (se38)
like this.
REPORT ZMMINTERACTIVE.
set pf-status 'ZPSD'.
TABLES : KNA1,LFA1,MARA.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'OPEN'.
SELECT * FROM LFA1.
WRITE :/10 LFA1-LIFNR.
ENDSELECT.
WHEN 'SAVE'.
SELECT * FROM KNA1.
WRITE :/10 KNA1-KUNNR.
ENDSELECT.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
error is not coming , but program is not running , what is the problem, kindly give me the solution.
Reg
R.Vijai
‎2007 Feb 06 3:49 AM
Hi,
For the report to display..
Give a write statement..
EXAMPLE
<b>SET BLANK LINES ON.
WRITE: / ''.</b>
set pf-status 'ZPSD'.
TABLES : KNA1,LFA1,MARA.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'OPEN'.
SELECT * FROM LFA1.
WRITE :/10 LFA1-LIFNR.
ENDSELECT.
WHEN 'SAVE'.
SELECT * FROM KNA1.
WRITE :/10 KNA1-KUNNR.
ENDSELECT.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
Thanks,
Naren
‎2007 Feb 06 3:49 AM
Hi,
For the report to display..
Give a write statement..
EXAMPLE
<b>SET BLANK LINES ON.
WRITE: / ''.</b>
set pf-status 'ZPSD'.
TABLES : KNA1,LFA1,MARA.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'OPEN'.
SELECT * FROM LFA1.
WRITE :/10 LFA1-LIFNR.
ENDSELECT.
WHEN 'SAVE'.
SELECT * FROM KNA1.
WRITE :/10 KNA1-KUNNR.
ENDSELECT.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
Thanks,
Naren
‎2007 Feb 06 4:02 AM
‎2007 Feb 06 3:54 AM
you dont have created any list with write or uline or anything before at user-command. so your list is not appearing and after your list only you can access the menu and it will trigger the event. so before at user-command write something to create your list.
then only it will work.
write : 'Basic list'.
at user-command.
case sy-ucomm.
when 'OPEN'.
endcase.
regards
shiba dutta
‎2007 Feb 06 3:54 AM
hi
good
check with the menu that you have created using the menu editer and check in the debug mode that wheather the code you have written to activate those menus is working or not,
check you have properly activate and save all the menu items or not.
Thanks
mrutyun^