Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MENU RUNNING PROBLEM

Former Member
0 Likes
593

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
565

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

4 REPLIES 4
Read only

Former Member
0 Likes
566

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

Read only

0 Likes
565

thanks narendran,

Now program is running.

reg

R.Vijai

Read only

Former Member
0 Likes
565

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

Read only

Former Member
0 Likes
565

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^