一些能提高ABAP开发人员日常工作效率的ABAP小工具-阿里云开发者社区

开发者社区> 开发者小助手-bz4> 正文

一些能提高ABAP开发人员日常工作效率的ABAP小工具

简介: 一些能提高ABAP开发人员日常工作效率的ABAP小工具
+关注继续查看

I write some small ABAP tools for my daily work. Some of them might not be so useful at first glance – I just write them for fun. Some of them could be used to improve work efficiency, to just reduce several mouse clicks – I am too lazy


Tcode Usage Statistics Tool

This 56 lines of report can print the tcode usage for a given user per month.

image.png

image.png

For example if you would like to check the tcode usage for user WANGJER during March 2017, you have to just choose any date in March and execute:

image.png

It shows I have used SAT for 692 times. Looks like I have some performance trouble on March?

image.png

The similar function could be found in tcode ST03N.


ABAP Class Version Browse Tool

ABAP workbench has built-in version management tool.


The version comparison could only be performed against two version at a time.


image.png

Sometimes I have the requirement to do some pure text analysis on the source code version, for example I need to figure out on which version a variable is introduced. So I write this small tool, which can downloads all the versions of source code into a text file, then I can simply use text analysis tool to fulfill my query.


Execute this 38 lines of tool and it will print out the source code of all versions of specified method.

image.png

image.png

The left task is to download it locally via Workbench:

image.png

Now I can review all the 77 versions of this method in a single text file.

image.png

Sublime Text is my favorite local text editor, as you can see from above screenshot there is also ABAP plugin for it to display ABAP source code with correct syntax highlight.

In Sublime Text it is possible to open the same file in separate two views so it is very convenience for me now to compare any two versions within the same editor window.


image.png

Development History Trace Tool

For example if I would like to recall what I have changed between 2017-03-01 and 2017-03-25, I can simply execute this 67 lines of reports:

image.png

image.png

image.png

Double click on each entry, and ABAP editor will be opened to allow me to review the source code of chosen entry.

image.png

This tool is especially useful for me as when I grow old, sometimes I didn’t remember what I have changed several days ago, and if I only make changes on Z objects then there will be no log in transport requests. Use this tool and I can immediately realize what I have changed for a given time interval.


Execute some transaction code without logging on to backend system

Suppose I am too lazy to log on a backend system to execute transaction code SM04. Then I can trigger it in excel and review result there as well.


Then I just create an excel with Macro enabled ( .xlsm ), put a button and assign the following VB code to it:

image.png

image.png

image.png

With this script I am calling function module TH_USER_LIST from excel, parse the result and display them in excel.

Now I click the button, I can observe in ABAP system that the function module TH_USER_LIST is called:


image.png

And result is displayed in excel:

image.png

XML difference compare tool

No need to download additional software to compare the different XML, as there is a standard class cl_proxy_ui_utils which can do this task for you.

See the following sample code:

image.png

Execute the report and there will be a popup where the difference is displayed. The implementation of


Mischief: send a message to another online user

The function module TH_POPUP can generate a popup window for a given online dialog user.

See example below:


image.png

Once executed, I will see a popup in my SAPGUI:

image.png

I have then written a report using this FM.

Once this report is executed, you can see a list of online users in current application server, which has the same content as in tcode SM04.

image.png

Double click on a given user, and he / she will see a popup dialog in his SAPGUI. You can use this mischief report to greet your colleague, for example send a message like “hey guys, you’d better stand up and have a cup of coffee” after you see he / she has already debugged one issue for half an hour?


BSP page browse history tool

The title might be a little bit misleading. To be more exact, this tool lists all automatically generated ABAP classes for BSP pages accessed by a given user.

Simply execute the report with a user name

image.png

And detail browser list is displayed:

image.png

You can find more background information regarding BSP and JSP, and also the source code of this tool from my blog JSP attribute tag used in Hybris UI implementation and counterpart in ABAP BSP.


版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
阿里云服务器怎么设置密码?怎么停机?怎么重启服务器?
如果在创建实例时没有设置密码,或者密码丢失,您可以在控制台上重新设置实例的登录密码。本文仅描述如何在 ECS 管理控制台上修改实例登录密码。
9494 0
SharePoint 2013 开发——构建工作流开发环境
博客地址:http://blog.csdn.net/FoxDave 本篇我们来讲述一下如何搭建SharePoint 2013工作流开发环境。 Windows Azure Workflow作为单独的可下载产品,使用户可以在他们本地环境的部署中创建并配置一个工作流场,同样地,我们也可以用这种方式构建我们自己的开发环境。
778 0
快速进行ECS服务器后端开发环境搭建工作
在后端的学习过程中,使用将工程部署在服务器上往往是学习中最琐碎最不容易引人注目的环节,但是这一环节又是至关重要的,本文将介绍使用Oneinstack进行服务器快速环境搭建,以及使用阿里行云和飞流进行代码自动测试构建流水线部署的快捷方式。
124 0
SharePoint 2013 开发——工作流架构
博客地址:http://blog.csdn.net/FoxDave SharePoint 2013的工作流较之前有了不同,第一次真正地作为独立的服务的概念推出了。
1021 0
接口开发前准备工作
调用集成接口前,请检查是否已经实现以下步骤,入驻平台等步骤已实现可忽略。 注:如果还没有签约或者在签约审核过程中可以使用沙箱环境测试接口。 一、平台入驻 1、使用支付宝账号入驻开放平台。 注册支付宝账号并完成实名认证,如已有支付宝账号请选择下一步入驻流程。
430 0
怎么设置阿里云服务器安全组?阿里云安全组规则详细解说
阿里云服务器安全组设置规则分享,阿里云服务器安全组如何放行端口设置教程
8409 0
小程序开发准备工作有这些
     想马上开始开发小程序的话,需要做好这些准备工作。   1. 创建小程序 2. 获取小程序APPID 创建好小程序以后,就能看到APPID在哪了 3. 配置httpRequest接口请求域名白名单 它是小程序与开发者的服务端之间数据通信的网关地址,这个网关地址需要设置到小程序后台里,小程序才允许两端数据通信。
875 0
阿里云服务器如何登录?阿里云服务器的三种登录方法
购买阿里云ECS云服务器后如何登录?场景不同,阿里云优惠总结大概有三种登录方式: 登录到ECS云服务器控制台 在ECS云服务器控制台用户可以更改密码、更换系.
13177 0
2315
文章
0
问答
来源圈子
更多
+ 订阅
文章排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载