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 painter

Former Member
0 Likes
3,463

Hai Friends,

How to include Menu Painter in ABAP Editor?

regards,

kavitha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,070

Hi Kavitha,

Goto tcode SE41(Menu Painter). Create a menu.write tcode for the buttons. and include that menu in ur program using this code :

set pf-status 'menu1'.

write:/ 'testing'.

at user-command.

CASE SY-UCOMM.

WHEN 'EXO1'. "Cancel

leave program.

WHEN 'H001'. "PAY SLIP

submit Z8hgpay_slip via selection-screen.

WHEN 'H002'. "INTERACTIVE REPORT

submit Z8hginteractive_report.

WHEN 'SAVE'. "Save

WHEN OTHERS.

ENDCASE.

Reward points if helpful.

Regards,

Hemant

7 REPLIES 7
Read only

Former Member
0 Likes
2,070

hi

goto se41(Menu painter)

add the fields to b included in abap editor

save and activate

in se38 u can include then using set PF-status '<name given in menupainter>'

Read only

Former Member
0 Likes
2,070

Hi,

Use Tcode SE41.

Check this sample program

DATA: BEGIN OF itab OCCURS 0,

check,

value(20),

END OF itab.

SET PF-STATUS 'TEST1'.

itab-value = 'ETSAT'.

APPEND itab.

itab-value = 'ETSATADSF'.

APPEND itab.

itab-value = 'ETSAT'.

APPEND itab.

LOOP AT itab.

WRITE: / itab-check AS CHECKBOX,

itab-value.

ENDLOOP.

AT USER-COMMAND.

DATA: wa LIKE itab.

DATA: itab_download LIKE itab OCCURS 0 WITH HEADER LINE.

IF sy-ucomm = 'DOWNLOAD'.

DESCRIBE TABLE itab.

DO sy-tfill TIMES.

READ LINE sy-index FIELD VALUE itab-check.

IF sy-subrc <> 0.

EXIT.

ENDIF.

CHECK itab-check = 'X'.

itab_download-value = itab-value.

APPEND itab_download.

ENDDO.

  • download

call function 'WS_DOWNLOAD'

exporting

filename = 'C:\TEST.XLS '

tables

data_tab = itab_download.

ENDIF.

Records,

Priyanka.

Read only

Former Member
0 Likes
2,070

Write the following command:

Set Pf-Status 'Status1'.

Double click status it will ask to create pf status. Create that or you can copy a standard status in SE80.

Read only

Former Member
0 Likes
2,071

Hi Kavitha,

Goto tcode SE41(Menu Painter). Create a menu.write tcode for the buttons. and include that menu in ur program using this code :

set pf-status 'menu1'.

write:/ 'testing'.

at user-command.

CASE SY-UCOMM.

WHEN 'EXO1'. "Cancel

leave program.

WHEN 'H001'. "PAY SLIP

submit Z8hgpay_slip via selection-screen.

WHEN 'H002'. "INTERACTIVE REPORT

submit Z8hginteractive_report.

WHEN 'SAVE'. "Save

WHEN OTHERS.

ENDCASE.

Reward points if helpful.

Regards,

Hemant

Read only

Former Member
0 Likes
2,070

hi,

Goto transaction code SE41(menu painter).u can call pf-status option in grid display in that u can include what all u want to display save and activate.

Reward with points if helpful.

Message was edited by:

Vinutha YV

Read only

Former Member
0 Likes
2,070

hi

good

se41 create your own menu painter,than if you want to put that in the ABAP editor than look for the userexit that can help you to add that same in the ABAP editor and than you change it accordinlgy.

thanks

mrutyun^

Read only

Former Member
0 Likes
2,070

I cant help it, but you are assigning a PF-Status to a Dynpro.

Including the menu Painter in SE80 is a very decieving designation for what you are doing here