Rob's ABAP Tips: How to add custom Report Program to the SAP menu

Rob's ABAP Tips: How to add custom Report Program to the SAP menu

One of the most common requirements that has come my way over the years, after creating an ABAP Report program is to add that program to the standard SAP Easy Access Menu for, yes you guessed it, ease of access by the Report users. Coming from a VS background I was surprised at just how unintuitive this simple process is in the SAP world. In my opinion it is a tad unfair to expect a client to add more custom tcodes to the already long list he/she needs to remember; it can easily become a nightmare. So here’s my own version of how I’ve approached the requirement in the past:

So I had developed an executable Report program (ZPY_JOURNAL) for the Payroll module and this was to be added under the Infosystem->Employee menu section:

So the first thing I had to do was find out the technical name of the Parent area menu under which the custom Report was to be added. To do this you click the “Employee” menu to highlight it and go to the main Menu at the top of the screen, click “Extras” and select “Technical Details”. By doing this I found out that the “Employee” area menu‘s technical name is “HR_ZA”.

The next step was to edit the “Employee” Area Menu in tcode se43n (Area Menu Maintenance)by adding my custom report as a subnode under that menu. In se43n you enter the Area Menu’s technical name (1) and then click the “Change Area Menu” pencil icon (2) to get into the menu’s change screen as follows:

The system will ask you to specify a processing mode and you select “Change” as shown below:

This takes you to the “Edit Area Menu XXXXX” screen where you click on the “Employee” area menu (1) to select it and then click “Add Entry as Subnode” (2) as shown in the diagram below.

This brings up the “Add New Entries” menu prompting you to enter the text which will be shown on the SAP Area Menu and the relevant Z-report which the menu should execute. In my case I entered the following for my custom Report program titled “ZPY_JOURNAL” and clicked the OK tick :

After this I then made sure to save these changes in the “Edit Area Menu XXXXX” screen and voila! a custom menu which triggers my Z-report program is added under the Employee section.


要查看或添加评论,请登录

Robert Chamisa-Denhere的更多文章

社区洞察

其他会员也浏览了