‎2007 May 14 7:24 AM
Hai Friends,
How to include Menu Painter in ABAP Editor?
regards,
kavitha.
‎2007 May 14 7:38 AM
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
‎2007 May 14 7:26 AM
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>'
‎2007 May 14 7:27 AM
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.
‎2007 May 14 7:28 AM
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.
‎2007 May 14 7:38 AM
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
‎2007 May 14 7:45 AM
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
‎2007 May 14 7:53 AM
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^
‎2007 May 14 7:58 AM
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