Calling BADIs in Web-Dynpro Application
Hi All,
Is it possible to call BADIs in WebDynpro java ? If yes can anybody please send some document regarding this to me.
Thanks & Regards,
Amit Kade
Hi,
These links can be of some help
<a href="http://searchsap.techtarget.com/tip/1,289483,sid21_gci900872,00.html">Link1</a>
<a href="http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci1154531,00.html">Link 2</a>
Regards,
Ashwani
Similar Messages
-
Call a ABAP Web-Dynpro-application via a BSP-Application
We have a BSP-Framework, that call several applications among other things other BSP-Applications, ITS-Application and other systems. Now I want to integrate a ABAP Web Dynpro-Application.
For the moment I can call the ABAP Web Dynpro-Application from our application.
This application runs in the same session as the Framework (verify in transaction sm04).
When I want to call another application in the Framework, the session will be killed (no more sessions in sm04). This happens also, when I want to call the ABAP Web Dynpro-Application a second time.
I guess, that the ABAP-Framework thinks I want to go outside the system (for example www.google.de) and close the session. I found out, that this wouldn't happen, if the application were suspended. But I found no way to tell the application via a url-parameter to suspend.
Can someone help me?Thx for the tip,
but I can't firea suspend plug. Because I'm in BSP. I understand the docu so, that you have the option to call a other apllication like BSP from a ABAP Web Dynpro.
I want to call the ABAP Web Dynpro form BSP like this way.
1. Start BSP-Framework
2. Call ABAP Web-Dynpro-Application from BSP
3. Call another Application from BSP without automatically logout by unload ABAP Web Dynpro. (I have a chance to call the ABAP Web Dynpro again via url to suspend before I call the other app.)
Regards Stefanie -
Error - Creating a Web Dynpro Application Accessing ABAP Functions
Dear All,
we are trying to implement a web dynpro application with accessing ABAP functions.
Previous tasks:
- insert the ABAP system into the SLD from the NWDI System (Transaction RZ70; the ABAP system is correctly insert into the SLD => technical systems)
- equipped the JCO connections with the web dynpro content manager (ping and test = OK)
Its the standard tutorial out of the SDN called Creating a Web Dynpro Application Accessing ABAP Functions.
Some hints:
- There are no errors after the implementation and the rebuild of the project in the NWDS
- The auto deployment works fine to the development runtime system. The application is shown in the Web Dynpro content manager
- The In the build log I found these entries:
System.err] [Invoked from com.sap.s2x.tools.GUID.getnodeaddress(GUID.java:585)]
[System.err] java.net.UnknownHostException: FRASAPP562: FRASAPP562
[System.err] at java.net.InetAddress.getLocalHost(InetAddress.java:1191)
[System.err] at com.sap.s2x.tools.GUID.getnodeaddress(GUID.java:575)
[System.err] at com.sap.s2x.tools.GUID.<clinit>(GUID.java:179)
[System.err] at com.sap.s2x.tools.S2XGUID.getGUID(S2XGUID.java:19)
[System.err] at com.sap.ide.metamodel.core.i18n.LanguageState.createS2XID(LanguageState.java:191)
[System.err] at com.sap.ide.metamodel.core.i18n.S2XLanguageUnmarshaller.unmarshal(S2XLanguageUnmarshaller.java:52)
[System.err] at com.sap.ide.metamodel.core.i18n.TextPoolProxy.loadLanguageState(TextPoolProxy.java:703)
[System.err] at com.sap.ide.metamodel.core.i18n.TextPoolProxy.prepareLanguageForRead(TextPoolProxy.java:646)
[System.err] at com.sap.ide.metamodel.core.i18n.TextPoolProxy.isEmpty(TextPoolProxy.java:222)
[System.err] at com.sap.ide.webdynpro.checklayer.MDOChecker.check(MDOChecker.java:23)
[System.err] at com.sap.ide.webdynpro.checklayer.view.ViewChecker.check(ViewChecker.java:52)
[System.err] at com.sap.ide.webdynpro.checklayer.controller.ViewControllerChecker.check(ViewControllerChecker.java:96)
[System.err] at com.sap.ide.webdynpro.checklayer.controller.ControllerChecker.check(ControllerChecker.java:119)
[System.err] at com.sap.ide.webdynpro.checklayer.controller.ControllerChecker.check(ControllerChecker.java:56)
[System.err] at com.sap.ide.webdynpro.checklayer.component.ComponentChecker.check(ComponentChecker.java:181)
[System.err] at com.sap.ide.webdynpro.checklayer.component.ComponentChecker.check(ComponentChecker.java:56)
[System.err] at com.sap.ide.webdynpro.generation.Generation.check(Generation.java:2039)
[System.err] at com.sap.ide.webdynpro.generation.Generation.generatePersistentComponent(Generation.java:1296)
[System.err] at com.sap.ide.webdynpro.generation.console.GenerationConsole.generate(GenerationConsole.java:175)
[System.err] at com.sap.webdynpro.generation.ant.GenerationAnt.main(GenerationAnt.java:50)
[System.err] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[System.err] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[System.err] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[System.err] at java.lang.reflect.Method.invoke(Method.java:324)
[System.err] at com.sap.webdynpro.generation.ant.WDGenAntTask.execute(WDGenAntTask.java:219)
[System.err] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[System.err] at org.apache.tools.ant.Task.perform(Task.java:364)
[System.err] at org.apache.tools.ant.Target.execute(Target.java:341)
[System.err] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[System.err] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[System.err] at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:112)
[System.err] at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61)
[System.err] at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:213)
[System.err] at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:190)
[System.err] at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
[System.err] at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
[System.err] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[System.err] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[System.err] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[System.err] at java.lang.reflect.Method.invoke(Method.java:324)
[System.err] at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)
[System.err] at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:102)
[System.err] at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:76)
[System.err] at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58)
[System.err] at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723)
[System.err] at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1495)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.build(CBSBuildController.java:727)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.execCommand(CBSBuildController.java:503)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.evalCmdLine(CBSBuildController.java:442)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.run(CBSBuildController.java:314)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.exec(CBSBuildController.java:252)
[System.err] at com.sap.tc.buildcontroller.CBSBuildController.mainLoop(CBSBuildController.java:207)
- Im able to start the application out of the Web Dynpro content manager with run => only the user interface is displayed without any functionality
- The normal start over the NWDS fails => error text
com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'local/J08_Flugdat_Daventdcflight~xxx.com' and application 'FlightListApp' are not deployed on the server. Please check the used URL for typos.
There two different URLs in use.
Start via NWDS:
http://frasapp562:50000/webdynpro/dispatcher/J08_Flugdat_Daventdcflight~xxx.com/FlightListApp
Start via web dynpro content manager:
http://frasapp562:50000/webdynpro/dispatcher/xxx.com/aventdc~flight/FlightListApp
For test purposes, we started the BAPI (BAPI_Flight_Getlist) on the ABAP system directly. It works.
Any ideas about the system behaviours (different URLs and missing functionality)?
Thanks a lot in advanced!
Best regards
ChristophThe Error has been solved The implementation of a method was missing....
Thx
Christoph -
Can the role info be passed from portal to ABAP web dynpro application
Hi,
We have some roles in the portal. We call the ABAP web dynpro applications from the portal. Is it possible to pass on the role from the portal to the Web dynpro ABAP application so that we can use this role information in the application.
Thanks,
PoojaHi,
you can try to add the expression
role=<IView.PCDUnit>
as part of the Application Parameters in the iView. This will be the role in 99%. However not all iViews started in the Portal must belong to a role. You can start iViews using page navigation that are not part of a role. Therefore the PCD does not talk about roles but about "units" which is the superordinate term.
the value will be the PCD path of the role - e.g:
portal_content/myFolder/roles/myRole -
Passing a parameter while calling a web dynpro application on portal
hi
I am having a web dynpro application which retrieves data from R/3 system via RFC using Jco destinations define in the Portal.
Now we have different kinds of portals running on the same WAS, now I want the application to run which access data from different R/3 systems thru different JCo destinations.
I need to create a logic such that mu application runs fine on any portal with any Jco destination.
Is there any provision to achieve this.
kindly let me know about this.
Thanks and regards
krisGopi,
there's an parameter called "sap-wd-arfc-useSys" you can pass to the application, to change the used JCo-Connection (read more at http://help.sap.com/saphelp_erp2005/helpdata/en/f4/651741f163f023e10000000a155106/frameset.htm)
so, if you're running the WD-aaplication on <b>one</b> WAS and call it from different portals, you have to create three (or six with the META-connections) JCo-Connection on your WD-WAS.
In a WD-application you can access URL-Parameters with:
WDWebContextAdapter.getWebContextAdapter().getRequestParameter("<your URL Parameter-Name>");
kr, achim -
FPM Form Scripting - How to call a web dynpro application as pop up
Hi All,
I want to call a web dynpro application as a pop up from FPM form scripting.
Like click on button -Maintain Approval Routing in a FPM form i want to open a web dynpro pop up..
Thanks In Advance.Refer to the post How to show pop up’s in WDA HCMPF by Yugandhar Reddy - on some hints
Hope this helps.
Regards,
Sahir. -
The Web Dynpro application was called up with the wrong URL parameters
Hi all,
I am using the systems below:
ERP STACK :16
EHP : 4
EHP SP Stack :4
EA-HR * : 604(SP12)
SAP-HR * :604(SP12)
XSS JAVA components : SAP ESS 603 SP05
SAP MSS 600 SP16
PCUI_GP 603 SP05
Business Package : BP ERP05 ESS 1.41 SP04
BP ERP05 MSS 1.41 SP04
BP ERP05 COMMON PARTS 1.41 SP04
I am getting below error after clicking on the appraisal document:
App. Called Up Incorrectly
The Web Dynpro application was called up with the wrong URL parameters.
Note
Enter the URL parameters and their use.
You can find more information on the functions that you can perform in the catalog for appraisal templates in the Implementation Guide (IMG) for Objective Setting and Appraisals under Edit Forms.
I already applied the below notes also:
1468466 Performance Management Launchpad Configuration
1463821 Performance Management Portal Configuration
1416756 OBN Configuration in Performance Management
1408243 Configuration for object-based navigation
Plz advise me??
Thanks,
Anumitcan you paste the exact error. also you can take a HTTP trace and see which resourse or UWL is being launched!
-
Calling an interface METHOD of another abap web dynpro application
Hi Experts,
Can u plz tell how we can Call an interface METHOD of another abap web dynpro application in main WD Component.
Thanks
MaheshHi ,,
Example ALV interface method calling GET_MODEL interface method
View attribute declaration : M_WD_ALV type IWCI_SALV_WD_TABLE
DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
wd_this->M_WD_ALV = wd_this->wd_cpifc_alv( ). "ALV is the usage name
DATA lv_value TYPE ref to cl_salv_wd_config_table.
lv_value = wd_this->M_WD_ALV->get_model( ). " interface method calling in ALV component usage.....
Regards,
Devi -
Calling a Web Dynpro Application from POWL feeder class
Hi,
I know this question is asked before but never answered, but I try again......
I have a own POWL feeder class where I defined a button in method IF_POWL_FEEDER~GET_ACTIONS.
I know that this action can be handled in method IF_POWL_FEEDER~HANDLE_ACTION.
When pressing the button I want do call another web dynpro application.
How can I do this? -> Any Example Coding?
Thank you and best regards, EdgarHi Vineet,
it works, thanks a lot!!!! Best Regards, Eddy
P.S.: Here is the coding for triggering the event and passing parameters for the selected POWL table line:
METHOD if_powl_feeder~handle_action.
DATA: ls_parameter TYPE powl_namevalue_sty.
DATA: lt_flights TYPE ty_flights.
DATA: ls_flight TYPE sflight.
DATA: ls_selected TYPE rstabix.
FIELD-SYMBOLS: <lt_fligts> TYPE STANDARD TABLE.
IF i_actionid = 'EDIT'.
* Important: this triggers the event
e_portal_actions-fire_wdevent = abap_true.
* Pass parameters to event
ASSIGN c_result_tab TO <lt_fligts>.
lt_flights = <lt_fligts>.
* Determine the first selected row
READ TABLE c_selected INTO ls_selected INDEX 1.
* Read selected POWL data
READ TABLE lt_flights INDEX ls_selected-TABIX INTO ls_flight.
CHECK sy-subrc = 0.
* Pass parameters
ls_parameter-key = 'ACTIONID'.
ls_parameter-value = 'I_ACTIONID'.
APPEND ls_parameter TO e_portal_actions-parameters.
ls_parameter-key = 'CARRID'.
ls_parameter-value = ls_flight-carrid.
APPEND ls_parameter TO e_portal_actions-parameters.
ls_parameter-key = 'CONNID'.
ls_parameter-value = ls_flight-connid.
APPEND ls_parameter TO e_portal_actions-parameters.
ls_parameter-key = 'FLDATE'.
ls_parameter-value = ls_flight-fldate.
APPEND ls_parameter TO e_portal_actions-parameters.
ENDIF.
ENDMETHOD. -
Calling Web Dynpro application or URL from POWL
Hi Friends,
I need to call a Web Dynpro appl from a custom POWL. In my feeder class's method HANDLE_ACTION, i am not getting how to use e_portal_actions parameter for calling a URL of WD application. Pls help me out in this.
Regards,
SaudYou can create a launchpad application through tran LPD_CUST and then in repsective method of POWL class you can launch your web dynpro application like this
DATA ls_appl_param TYPE APB_LPD_S_PARAMS.
DATA lt_appl_param TYPE APB_LPD_T_PARAMS.
DATA lt_lpd_content TYPE apb_lpd_t_content.
DATA lr_lpd_content TYPE REF TO apb_lpd_s_content.
DATA lt_lpd_appl_params TYPE apb_lpd_t_params.
DATA lr_lpd_handle TYPE REF TO cl_apb_launchpad_api.
DATA lo_component TYPE REF TO if_wd_component.
DATA lr_provider TYPE REF TO if_apb_lpd_provider.
"Get launchpad handle
lo_component = wd_comp_controller->wd_get_api( ).
cl_apb_launchpad_api=>read_for_display( EXPORTING id_role = cl_oif_ui_assist=>sc_lpd_roles "Role Name
id_instance = cl_oif_ui_assist=>sc_lpd_instance " Instance Name for Launchpad
id_langu = sy-langu
ir_provider = lr_provider
ir_wd_component = lo_component
RECEIVING er_launchpad = lr_lpd_handle ).
CHECK lr_lpd_handle IS BOUND.
lt_lpd_content = lr_lpd_handle->get_content( ).
READ TABLE lt_lpd_content REFERENCE INTO lr_lpd_content
WITH KEY link_text = cl_oif_ui_assist=>sc_lpd_link_text. "Link text for launchpad
ls_appl_param-key = cl_oif_ui_assist=>wda_config_key. "'SAP-WD-CONFIGID'. "app conf if any
ls_appl_param-value = cl_oif_ui_assist=>CREATE_CONFIG_ID. "'MDG_OIF_CREATE_CONF'.
APPEND ls_appl_param TO lt_appl_param.
lt_lpd_appl_params = lr_lpd_content->application_parameter.
"launch application
lr_lpd_handle->launch_application(
id_application_id = lr_lpd_content->application_id
it_application_parameters = lt_lpd_appl_params
it_business_parameters = lt_appl_param -
Examples of 'calling a web dynpro application with parameters'
Hi!!
I'm I have been watching manual 'Web dynpro for abap: advanced concepts' in the sections 'url parameters' and 'calling a web dynpro application with parameters'.
Is there some example where these terms are seen.
Thanks in advance.Hi Ana,
a window inbound plug can have parameters.
These parameters are automatically fished out of the URL by the framework.
So your inbound plug handler method has easy access to the parameters.
URL
http://<host>:port/sap/bc/webdynpro/sap/<your application>?param1=xyz¶m2=abc
The application is configured to call an inbound interface(window) and plug.
The plug can be declared with parameters.
Double click on window inbound plug and add your parameters.
The parameters are made available by framework if present in Launch URL.
You can also call an application that has parameters directly entered on the parameters tab.
ie Parameters can be part of the application launch.
regards
Phil -
Error when initially calling Travel Trip Form Web Dynpro application
Hello all,
we are facing a problem when calling for the first time the Travel Trip Form Web Dynpro application.
In the trace file we get the following error message:
application [webdynpro/dispatcher] Processing HTTP request to servlet [dispatcher] finished with error.
The error is: com.sap.tc.webdynpro.services.sal.core.DispatcherException: Wrong Web Dynpro URL: "../WebDynpro/Servlet/<deployableObject>/<application>/xx?..". xx is not allowed without exchange key. Retrieved URI path: /sap.com/esstratri/TripForm/~wd_key890_1246626831816/background.gif.
Exception id: [001E680CB1CE0078000002A600007B4A00046DCCEE3F358A]
This appears when a trip has been initially created and if the user wants to display a travel trip form.
However, this does not appear anymore, if you click on the travel trip form again.
Best Regards
PhilippHello Philipp,
We are having same problem. Please let me know solution....
Som -
Which sy variable is initiated when web dynpro application call rfc of r/3
Hi,
My question is that when i pressed my web dynpro application button which called rfc at r/3 at that time which system variable will initiated.
Regards,
GurpritHi Gurprit,
All variables of sys structure will be intiated.
regards,
Ganga. -
Call ESS FPM CATS Working time application from non FPM web dynpro application on click of button
Hi,
My requirement is to launch ESS Working time application HRESS_AC_CATS_1 from custom web dynpro application.
ESS CATS working time application is configured in LPD_CUST launchpad.
I tried using method cl_hr_navigation_services=>navigate in my custom web dynpro but it did not work.
Regards,
IbrahimIn case you want to use Launchpad, you can use ABAP class CL_APB_LAUNCHPAD_API. If choose not to use Launchpad, you can use method CONSTRUCT_WD_URL of ABAP class CL_WD_UTILITIES to generate the URL. Specify Web Dynpro application and Web Dynpro Configuration as parameter. Finally create an external window using method CREATE_EXTERNAL_WINDOW that points to that URL.
-
Calling a Web Dynpro application from a web application
Hi everyone, I've got a problem I hope someone can help me resolve.
What I wanna do is to show a login form, which is part of a J2EE web application (contained in a SAP Web AS), an after the user submits the required information, I have to redirect the user to a Web Dynpro application, which is contained in the same Web AS, but I have to redirect this user using single sign on.
I'm not sure about what I have to do, I'm new in these technologies, I think I need to use UMFactory, but I have made some investigation and I'm not so sure about what I have to do yet, can anyone give me a hand with this?Hi Joel,
Please follow the documents below
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/80fbc690-0201-0010-1aba-93d5c8232b4a
http://help.sap.com/saphelp_nw04s/helpdata/en/b0/4d2b418a3edb2be10000000a1550b0/content.htm
Hope this helps.
Regards,
Kiran Kandepalli.
Maybe you are looking for
-
Control access of a form from another form.
hi all, Please help me . This is a system which contains a lot of forms (more than 100) . The system administrator can specify whether a user can insert, update,delete or query for each form (this varies for each user). So, when a user logs in and ca
-
If anyone can help w\this, please respond. My ITunes crashed a couple of mnths ago and I've been tryin to reinstall ever since w\out any success and am getting very frustrated. It will install onto my computer and my desktop (shows that it and Quickt
-
How to iterate the webservice Data control result set?
Hi all, How to iterate the webservice Data control result set? I have an jsff page where I am displaying the single UserDetails by webservice DataContol. As per my design requirement I should iterate the DataControl resultSet to get the user details
-
Access Control Mechanism in JSF
Hi all , I am working on a project (still in analysis phase) and have decided to go for JSF over struts. As i have found that JSF has good advantages over struts. I am searching for a good model (with code) to implement a robust access control mechan
-
Firefox cannot open administrator of websites
firefox cannot open administrator of websites ''Locking as duplicate, continue here - https://support.mozilla.org/en-US/questions/924020 - TonyE