Web Dynpro for ABAP(9):Suspend Call And Enhancement
作者:互联网
3.13Suspend and Resume Calls
在保留first application情况下,导航到second application。
示例代码:创建outbound:go_suspending,URL参数类型:String or TIHTTPNVP
URL格式:<schema>://<host>.<domain>.<extension>:<port>/sap/bc/webdynpro/
<Namespace>/<application name >?<parameter name>=<parameter value>
method ONACTIONGO_SUSPENDING . data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW . L_REF_MAIN_WINDOW = WD_THIS->GET_MAIN_WINDOW_CTR( ). L_REF_MAIN_WINDOW->FIRE_GO_SUSPENDING_PLG( URL = 'http://…………/webdynpro/sap/my_secondary_wda' ). endmethod.
示例代码:second application,接收resume plug
method HANDLEDEFAULT . data: l_url_parameters typetihttpnvp. wdevent->get_data( exporting name =if_wd_application=>all_url_parameters importing value= l_url_parameters). . . endmethod .
3.14Modification-Free Enhancements
在不影响原有WDA Application情况下,添加增强。
1.SE80,Web Dynpro Comp,打开已有Component;
2.点击Enhance按钮;
3.创建Enhancement Implementation
4.创建additional view;
选择Views->右键->Create as Enhancement;
选择已经创建的Enhancement Implementation;
创建Views:V_ENHANCE1,可以在Component下看到文件夹:Enhancement Implementation;
标签:Web,Suspend,parameters,URL,ABAP,application,WINDOW,Enhancement,MAIN 来源: https://www.cnblogs.com/tangToms/p/16365459.html