当前位置:网站首页>[essay]me53n add button to call URL
[essay]me53n add button to call URL
2022-06-27 22:48:00 【Tab Zhu】
ME53N Add button , call URL
Recently I met a need , Is in the ME52N,ME53N Add a button on the , The calling program directly logs in to other systems to view PR Corresponding documents ( Use the web address instead of )
1. Add custom buttons
Open function group MEGUI-> Find the name REQ Of Status( If the ME23N Enhancement is the choice NORMAL) Click on the
Add a... Directly BUTTON:ZCALLOAURL
Note that you need to select Edit... When modifying here -> Modify the operating -> Turn off the assistant
2. Add implicit enhancements
After we add the button , We need to add corresponding logic to the button , adopt SE38 open include LMEGUICJL Program stay Method lcl_document_cmd->if_command_mm~execute Finally, do implicit enhancement ZMM_TAB_CUSTOM_BUTTON, Then add the following code
CASE im_fcode.
WHEN 'ZCALLURL'.
IF SY-TCODE EQ 'ME52N' OR SY-TCODE = 'ME53N'.
DATA(l_transaction_oaurl) = l_appl->my_trmgr->get_current( ).
READ TABLE l_transaction_oaurl->my_data ASSIGNING FIELD-SYMBOL(<fs_oaurl>) INDEX 1.
IF <fs_oaurl>-doc_key IS NOT INITIAL." here doc_key yes PR Number
" When PR Call the link when it exists
data lv_url TYPE string.
lv_url = 'www.baidu.com'.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = lv_url
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
MESSAGE s368(00) WITH ' Failed to open connection ' '' DISPLAY LIKE 'E'.
RETURN.
ENDIF.
ENDIF.
ENDIF.
WHEN OTHERS.
ENDCASE.among <fs_oaurl> The corresponding structure is :doc_key Stored is PR number
3. ME5XN effect
After completion , We are ME53N, Select a PR after , Click the call link , You can jump to Baidu home page
边栏推荐
- netERR_CONNECTION_REFUSED 解决大全
- Beijing University of Posts and Telecommunications - multi-agent deep reinforcement learning for cost and delay sensitive virtual network function placement and routing
- 月薪3万的狗德培训,是不是一门好生意?
- 这类人开始被VC疯抢,月薪8万
- Typescript learning
- Solve the problem that the virtual machine cannot be connected locally
- Is it safe for GF futures to open an account?
- Codeforces Round #716 (Div. 2)
- Yolov6: the fast and accurate target detection framework is open source
- [microservices] (16) -- distributed transaction Seata
猜你喜欢

Conversation Qiao Xinyu: l'utilisateur est le gestionnaire de produits Wei Brand, zéro anxiété définit le luxe

Login credentials (cookie+session and token token)

C # QR code generation and recognition, removing white edges and any color

爬虫笔记(2)- 解析

爬虫笔记(3)-selenium和requests

First knowledge of the second bullet of C language

Livox Lidar+海康Camera实时生成彩色点云

Codeforces Round #723 (Div. 2)

医美大刀,砍向00后

“顶流爱豆制造机”携手四个产业资本,做LP
随机推荐
Livox Lidar+海康Camera 基于loam的实时三维重建生成RGB彩色点云
netERR_CONNECTION_REFUSED 解决大全
Windwos 8.1系统安装vmware tool插件报错的解决方法
Contest 2050 and Codeforces Round #718 (Div. 1 + Div. 2)
ABAP essay-excel-3-batch import (breaking through 9999 lines of standard functions)
對話喬心昱:用戶是魏牌的產品經理,零焦慮定義豪華
Is it safe for GF futures to open an account?
Stunned! The original drawing function of markdown is so powerful!
How to open an account for agricultural futures? How much is the handling charge for opening an account for futures? Who can give you a preferential handling charge?
How to prioritize the contents in the queue every second
Macro task and micro task understanding
The "business and Application Security Development Forum" held by the ICT Institute was re recognized for the security capability of Tianyi cloud
Crontab scheduled task common commands
Learn to go concurrent programming in 7 days go language sync Application and implementation of cond
[suggested collection] ABAP essays-excel-4-batch import recommended
Codeforces Round #721 (Div. 2)
结构化机器学习项目(二)- 机器学习策略(2)
CUDA error:out of memory caused by insufficient video memory of 6G graphics card
【你真的会用ES吗】ES基础介绍(二)
Consumer finance app user insight in the first quarter of 2022 - a total of 44.79 million people