Webdynpro application with dropdown by key
Hi,
i' am creating an webdynpro application with dropdown key element. I have created a domain and in the value range tab i have given the entries like this
Fixed Value ShortDescription
0000001 ABCD
0000002 EFGH
0000003 IJKL
now when i run the webdynpro application iam able to see only the values entered in the Short Description and not the values entered in the Fixed Values.
may i know what has to be done to display the contents present in Fixed Value to get displayed in hte dropdownbykey in the webdynpro application.
Thanks,
BJR.
Hi, Badni,
If you can live without your custom domain, then you can use any standard data element and then programatically fill the attribute property with whatever content you want.
For example, you can create the following method and call it from WDDOINIT of your view:
METHOD set_values_for_dropdown_by_key.
DATA:
lo_nd_fli TYPE REF TO if_wd_context_node,
lo_info_fli TYPE REF TO if_wd_context_node_info,
lt_value_set TYPE wdr_context_attr_value_list,
ls_value_set LIKE LINE OF lt_value_set,
ls_scarr TYPE scarr.
* get node info
lo_nd_fli = wd_context->get_child_node( 'YOUR_NODE' ).
lo_info_fli = lo_nd_fli->get_node_info( ).
* set values
ls_value_set-value = '0000001'.
ls_value_set-text = '1 - ABCD'.
APPEND ls_value_set TO lt_value_set.
ls_value_set-value = '0000002'.
ls_value_set-text = '2 - EFGH'.
APPEND ls_value_set TO lt_value_set.
ls_value_set-value = '0000003'.
ls_value_set-text = '3 - IJKL'.
APPEND ls_value_set TO lt_value_set.
* assign value set to attribute
lo_info_fli->set_attribute_value_set(
name = 'YOUR_ATTRIBUTE_NAME'
value_set = lt_value_set ).
ENDMETHOD.
Furthermore, if you insist on domain fixed values, you can get them from the tables DD07L and DD07T and include them in your DropdownByKey programatically with program similar to the above one.
KR,
Igor
Similar Messages
-
How to close a Webdynpro Application with some action, if it is opened with a Tcode
Hi Experts,
I am looking to get some info regarding my post over here.
Scenario 1:
I opened my webdynpro application in SAP GUI (created a tcode for my webdynpro application and ).
Now, I have to add some button where I have to write a piece of code to close the GUI screen along with the webdynpro application. (ie, entire Tcode where the webdynpro application is shown, should be closed)
Please let me know if you have some info on this.
Scenario 2:
If the above scenario is not possible, then I wanted to know if I can call some screen in SAP GUI.
Note: The GUI screen must be called only from the webdynpro application that is opened with a tcode in SAP GUI.Hello,
Please try this:-
Window Plugs: Startup and Exit - Web Dynpro for ABAP - SAP Library
You can close the WD Application by follwoing way-
Create a button in a view and assign an action on it.
Create on exit plug in window level and fire that in the view button action level.
Z2-wd comp.
NAME
EXT:-Window
exit plug name.
DATA lo_z2 TYPE REF TO ig_z2 .
lo_z2 = wd_this->get_z2_ctr( ).
lo_z2->fire_ext_plg( -
Error while running webdynpro application with an Interactive form
Hi all,
I am getting the following defect when I run a adobe interactive form (webdynpro application). Any pointers?
Regards,
Deepak
500 Internal Server Error
Failed to process request. Please contact your system administrator.
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
Root Cause
The initial exception that caused the request to fail, was:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:464)
... 47 more
See full exception chain for details.
System Environment
Client
Web Dynpro Client Type HTML Client
User agent Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1)
Version null
DOM version null
Client Type msie7
Client Type Profile ie6
ActiveX enabled
Cookies enabled
Frames enabled
Java Applets enabled
JavaScript enabled
Tables enabled
VB Script enabled
Server
Web Dynpro Runtime Vendor: SAP, build ID: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:13:14[UTC], changelist=455669, host=pwdfm101), build date: Wed Oct 10 10:17:00 EDT 2007
J2EE Engine 7.00 patchlevel 109044.44
Java VM Java HotSpot(TM) Server VM, version:1.4.2_13-b06, vendor: Sun Microsystems Inc.
Operating system Windows 2003, version: 5.2, architecture: x86
Session & Other
Session Locale en_US
Time of Failure Thu Oct 18 17:39:22 EDT 2007 (Java Time: 1192743562661)
Web Dynpro Code Generation Infos
local/NIBCOSecurityFormWD
SapDictionaryGenerationCore 7.0013.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:26:06[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
SapDictionaryGenerationTemplates (unknown)
SapGenerationFrameworkCore 7.0013.20060719095755.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:13:54[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
SapIdeWebDynproCheckLayer 7.0013.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:32:11[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
SapMetamodelCommon 7.0013.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:14:42[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
SapMetamodelCore 7.0013.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:14:35[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
SapMetamodelDictionary 7.0013.20060719095619.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:23:29[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
SapMetamodelWebDynpro 7.0013.20070703112649.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:28:49[UTC], changelist=454024, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationCTemplates 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:42:07[UTC], changelist=455669, host=pwdfm101)
SapWebDynproGenerationCore 7.0013.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:32:21[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
SapWebDynproGenerationTemplates 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:42:07[UTC], changelist=455669, host=pwdfm101)
sap.com/tcwddispwda
No information available null
sap.com/tcwdcorecomp
No information available null
Detailed Error Information
Detailed Exception Chain
com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to UPDATEDATAINPDF
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:418)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: PDFDocument Processor failed to process Render Request.
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:55)
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:100)
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:123)
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:340)
... 29 more
Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:408)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.render(PDFObject.java:3948)
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRenderHandler.handle(PDFDocumentRenderHandler.java:148)
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:52)
... 32 more
Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:85)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:95)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:385)
... 35 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:464)
at java.net.Socket.connect(Socket.java:414)
at java.net.Socket.<init>(Socket.java:310)
at java.net.Socket.<init>(Socket.java:125)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initStreamsFromSocket(HTTPSocket.java:648)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initializeStreams(HTTPSocket.java:470)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getOutputStream(HTTPSocket.java:427)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.HTTPTransport.getRequestStream(HTTPTransport.java:355)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.outputMessage(MimeHttpBinding.java:550)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1432)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:78)
... 37 moreHi Deepak,
If you have solved the issue could you kindly close the thread with the solution as this will help others as well. If not kindly update the thread with the status. -
Problem withDeploy a Webdynpro application with generation of an Excel file
Considered,
the problem that we have is the following one: we are generating a file Excel from a Webdynpro application. At the time of executing it it throws the following error to us:
java.lang.NoSuchMethodError: java.lang.StringBuffer.append (Ljava/lang/String;)Ljava/lang/AbstractStringBuilder;
AT com.sap.lipigas.excelexportcomp.ExcelExportComp.trimHeaderText (ExcelExportComp.java: 413)
AT com.sap.lipigas.excelexportcomp.ExcelExportComp.trimHeaderTexts (ExcelExportComp.java: 396)
AT com.sap.lipigas.excelexportcomp.ExcelExportComp.toExcel (ExcelExportComp.java: 257)
In order to solve the subject we asked to him our client so that they make deploy of the application from SAP NETWEAVER STUDIO of them. When making they deploy the application works without no problem.
We are needing some component by which we cannot make deploy of the application? which would be that component?
Beforehand, thanks.I tried it like you said, but i get the error: -2147217865
exception occured.
[Microsoft][ODBC Excel Driver] The microsoft jet database engine could not find the object 'Sheet1'. Make sure the object exists...
So he doesn't seem to recognize a datasheet as a table (if i may compare it like this) when i choose the microsoft Excel driver with the workbook as described in your answer.
Any ideas?
i putted some attachements, maybe they make it easier to understand
Attachments:
test_excel_query.vi 37 KB
test_query_excel.xls 90 KB -
Silent install application with varying license key (not with TS)
Hi guys
I want to deploy an application through sccm 2012 r2 with a license key in the command line. So far no problem, with the paramater
ISX_SERIALNUMBER="XXX" I can handle that. So command line looks like:
msiexec /i "XY.msi" ISX_SERIALNUMBER="XXX"
But here's the problem. That license key changes very often, usually a key can just be used for 2-3 installation. After that I get a new key which I have to use (we have no volume licensing... yes I know... do not ask...).
I tried to create a machine variable (device - properties - variables) with the license key. but I didn't manage to get the variable in the command line correctly. I tried
ISX_SERIALNUMBER="%variable%" but it didn't work. I realised that those variables just can be used with a TS. But I really don't want to use a TS for software deployments...
After that I thought I'll try to get the variable with powershell and it worked. But just with an Administrator account who has access to the server. If i run the script in system context while deploying, it fails...
Does anyone have another way to deploy Software with a Licence Key as a computer variable? Or any other way to specify a specific Licence key for a specific computer?
thanks in advance
p.s. I know I could entering it manually... but that's not an option at this time.I used the code in this link to achieve this in the past Worked very well.
http://www.windows-noob.com/forums/index.php?/topic/4853-deploying-software-with-unique-keys/
Basically you create a database to store your licences and it will update the fields to assign a computer object with the licence. Enter a column for Licences and one for Client. Set both to be type varchar(50) and allow for Null entries.
Cheers
Paul | sccmentor.wordpress.com
That is pretty cool :) -
E-Recruiting WebDynpro applications with EHP0
Hi all,
usually I can use WebDynpro(ABAP) for e-recruiting with EHP4 but is there any
possibilty to get the WebDynpro applications for e-recruiting in EHP0?
Thanks,
AlexHi Alex,
What do you mean by 'EHP0"? Do you mean release 600? In this case please check the online documentation :
http://help.sap.com/saphelp_erp2005/helpdata/en/72/c9b54015c4752ae10000000a155106/frameset.htm
it explains that in once you have installed SP8 of release 600, Web Dynpro ABAP is available as another interface technology for the internal and external candidate scenarios.
Hope I could help you,
Kind Regards
Christine -
Single Webdynpro Application with multiple JCO Connection ?
Hi Experts,
I have a strange requirement ......
We have a Webdynpro Application which is connected to
say (using JCO connection)
client:- A
now i want to connect the same Webdynpro application to
Client:- B which is again in the same server as the client A.
Please help me how to handle this.
how it possible to connect a single Webdynpro application to two different clients using JCO Connection.
Please help.
Points would be rewarded to helpful answers.
Regards,
Sanjyoti.Hi experts
We have to use wd application for both client at a same time e.g. as follow
Client A -
> Travel app--->Featches data from A for employee hired in client A ,in same server as B
Client B -
> Travel app--->Featches data from B for employee hired in client B , in same server as A
we are using same EP for both client but using diffrent roles for employees of both client.
Please reply asap. -
Error while executing WebDynpro Application with Adobe interactive forms.
I have created a webDynpro application which involves an adobe interactive form. When i deploy and run the application, i am able to deploy it on the J2EE engine on the EP server but while executing it, i get the following exception -
<b>Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
Root Cause
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "UsageRights" operation. Request start time: Thu Oct 12 17:30:39 GMT+05:30 2006
at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:486)
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:185)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
... 21 more</b>
I would appreciate any help in this matter.
Thanks...Hi,
Check the note in this site...
https://websmp204.sap-ag.de/notes
Regards,
<i><b>Raja Sekhar</b></i> -
Save and Cancel Functionality in WebDynpro application with Adobe Forms
Hi,
I want to create an application with Adobe Interactive forms. This application will have 3 buttons: Save As Draft, Submit and Cancel.
This application also involves Workflow.
On Save As Draft, the form will be saved for later viewing. How can I achieve this functionality? Does UWL support Save As Draft feature.
On Submit, workflow is triggered and form is routed for approval.
On Cancel, the form is deleted from the system and cannot be retrieved. How can I get this functionality?
Issue: How to achieve Save As Draft and Cancel functionality?
Regards,
Vibha Singhal.It works well en SP 21.
Thanks. -
Webdynpro application with multiple DCs
Hi,
I have an application where it is splitted in to multiple DCs for the team development. Now at runtime there are navigation happenening across DCs, means on click of a button in view1 of DC1, it needs to call view2 of DC2. What is the best way to achive it? Is there a way to direcly call a DC component at runtime?
Any help?
regards,
SujeshHi Sujesh,
First I want to point out, that DCs do not communicate with each other. DCs are designtime constructs which comprise development entities with runtime and/or designtime relevance. Inter-DC calls are Inter-DC-object calls.
Is your question related with the problem how to communicate between Web Dynpro components of separate DCs? To answer this question you must know how to develop Web Dynpro applications based on using separate DCs. This is done by defining DC-usage relations based on Public Part Definitons. When these DC-relations are correctly set up you can use Web Dynpro entities from other child DCs in a parent DC as if these entites would be contained in the parent DC. The runtime dependencies (sharing references etc.) are defined automatically.
Regarding your "Best Design" question I reply with a simple but quite effective principle: <b>"Favor DC-separation of Web Dynpro development entities!":</b>
- Separate Web Dynpro components in separate DCs
- Separate Web Dynpro Models in separate DCs
- Separate Local Dictionaries in separate DCs
- Separate Web Dynpro Component Interface Definitions in separate DCs
- Seaprate reusable Web Dynpro components in seaprate DCs.
Best regards, Bertram
P.S.: Look at my corresponding tutorial dealing with multi-component application design: https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383 -
Integrating WebDynpro ABAP applications with UWL for workflow in Portal
Dear
We want to integrate an abap webdynpro application as task in the workflow with UWL.
More information was found in /people/ginger.gatling/blog/2005/12/14/create-new-uis-for-existing-workflow-tasks-with-abap-web-dynpro-and-universal-worklist
But no answer on the following issue:
We use the transaction SWFVISU to prepare standard setting for our task. This defines how a task is executed, once you select the task subject line on the worklist.
Task TS91700001
Visualization Type ABAP Web Dynpro
APPLICATION z_wd_pas
DYNPARAM IV_WIID=${item.externalId}&period=${item.PERIOD}
NAMESPACE SAP
SYSTEM_ALIAS SAP_BSP_EREC
But we want to start the abap webdynpro application with a dynamic parameter: period 07.2010 or 08.2010 or MM.YYYY. This parameter is a container element of the task, filled when the task is created. Also other parameters are available in the abap webdynpro application.
Component Z_WD_PAS
Interface View PAS
Plug Name DEFAULT
Help Menu Text
Help Link
Package Z_PAS
Language EN
URL http://saperpd1.imec.be:8000/sap/bc/webdynpro/sap/z_wd_pas
with parameters
IV_WIID 000000000000 SWW_WIID
ORG_UNIT 00000000 ORGEH
PERIOD SPMON
PERNR 00000000 PERSNO
Can we set the dynamic parameter list DYNPARAM from the task
or should we read the container in our abap webdynpro application described in http://wiki.sdn.sap.com/wiki/display/WDABAP/IntegratingWebDynproABAPapplicationswithUWLforworkflowin+Portal?
More information: The task is a webservice
Standard task 91700001 Z_PAS_CC
Object Category BOR Object Type
Object Type WEBSERVICE WebFlow Service
Method PROCESSDIALOG Dialog Service
with the following standard program code for this method:
begin_method processdialog changing container.
DATA: l_wi_objkey TYPE swotobjid-objkey.
DATA: l_wiid TYPE swwwihead-wi_id.
CALL FUNCTION 'SWE_WI_GET_FROM_REQUESTER'
IMPORTING
requester_workitemid = l_wi_objkey.
l_wiid = l_wi_objkey.
CALL FUNCTION 'SWF_WSC_START_LH_DIALOG'
EXPORTING
i_wiid = l_wiid
EXCEPTIONS
url_creation_failed = 1
browser_launch_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN 1.
exit_return '1000' space space space space.
WHEN 2.
exit_return '1001' space space space space.
WHEN OTHERS.
exit_return '1002' space space space space.
ENDCASE.
ENDIF.
end_method.
Before calling the function SWF_WSC_START_LH_DIALOG the parameters for the abap webdynpro should be defined. Is this possible ?
Thanks for your suggestions.
Best regards
Luc MarentI added below sources .
> <ItemType name="uwl.request.webflow.WS91000001" connector="WebFlowConnector" defaultView="WorkItemRequestsView" defaultAction="launchWebDynPro" executionMode="default">
> <ItemTypeCriteria systemId="UWLSETXXX" externalType="WS91000001" connector="WebFlowConnector" />
> <Actions>
> <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
> <Properties>
> <Property name="WebDynproApplication" value="ZWD_WF_002" />
> <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no" />
> <Property name="DynamicParameter" value="wi_id=${item.externalId}" />
> <Property name="openInNewWindow" value="yes" />
> <Property name="System" value="WDSETXXX" />
> <Property name="WebDynproNamespace" value="sap" />
> <Property name="display_order_priority" value="5" />
> </Properties>
> <Descriptions default="" />
> </Action>
> </Actions>
> </ItemType>
> <ItemType name="uwl.request.webflow.decision.WS91000001.UWLSETXXX" connector="WebFlowConnector" defaultView="WorkItemRequestsView " defaultAction="viewDetail" executionMode="default">
> <ItemTypeCriteria systemId="UWLSETXXX" externalType="WS91000001" connector="WebFlowConnector" />
> </ItemType> -
Calling A Webdynpro Application From Another Webdynpro Application
Hi,
i want to call a webdynpro application from another webdynpro application with sending parameters.
i used this method,
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = lv_webapp
IMPORTING
out_absolute_url = lv_url.
CONCATENATE lv_url '?param1=' lv_param INTO lv_url.
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component type ref to if_wd_component.
data lo_window type ref to if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->CREATE_EXTERNAL_WINDOW(
URL = LV_URL
lo_window->open( ).
but this method shows the parameters on the address bar.
is there a method to send the parameters to another webdynpro application without show the parameters on the address bar?
Can somebody help me pls?
Thanks.I've used a server cookie before. This was built for BSP, but it is really usable anywhere. It just writes the data temporary into the database. This way you can just pass one meaningless URL parameter - like a GUID and use this key to read the data (the server cookie) upon initialization of the new application. I generally serialize all the data that I want into one server cookie by serializing a class. I can then restore whatever attributes of the class that I want on the receiving side.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bd/4cd23a09313b37e10000000a11405a/frameset.htm -
How To Get GP Process Parameters in a Webdynpro Application runtime
Hi ,
Iu2019 ll hope you can help me to solve my problem with GP process.
Iu2019 m trying to get GP process parameters from a Webdynpro application.
I have to get parameters during the process runtime in every step of the process using
a webdynpro application with the following code:
IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
try {
IGPProcessInstance processInst = rtm.getProcessInstance(processId,userContext);
IGPProcessInstanceInfo procInfo = rtm.getProcessInstanceInformation(processInst.getID(),
userContext.getSAPUser());
IGPStructureInfo inputstructInfo = processInst.getTemplate().getInputParameters();
IGPStructure inputparams = GPStructureFactory.getStructure(inputstructInfo);
} catch (GPEngineException e) {
// TODO Auto-generated catch block
// e.printStackTrace();
manager.reportException("GPEngineException:"+getStackTrace(e), false);
} catch (GPInvocationException e) {
// TODO Auto-generated catch block
// e.printStackTrace();
manager.reportException("GPInvocationException:"+getStackTrace(e), false);
But printing the values of attributes with u201Cinputparams.getAttributeAs... ("param name")u201C the value returned is always 0. On the contrary if I check the same parameters structure in the runtime
GP view of the portal, the values are those that I have set in the start process wizard.
Have you a solution for this question?
Thanks in advance
Lucahi Abhimanyu
I believe originally access to session was deliberately not made available inside WDA.
Growing security concerns due to misuse of session information and
perhaps other reasons as well.
X.509 is considered a better approach.
This may not help you in your problem.
But you may see a trend in WDA pushing more robust and client independent
approaches.
Full x.509 access should remove the need for session fiddling.
Also when developers access such session info directly, there is a possiblity
when they dont understand the technology exactly that they create a security hole.
You may know how to do safely, it is however discouraged.
Im not aware of a way to get at the session info inside the WDA framework.
Well not without a mod to the framework.
It may be possible without a mod, but I dont know the trick.
If someone has a little trick... please post.
You may need to use BSP, if your only solution requires access to the session info.
regards
Phil -
Webdynpro Application Page in portal in CE7.1
Hi,
I have created a webdynpro application with property u201Csap.canBeSplitInIviewsu201D set to u201Ctrueu201D.I have deployed the application and in Portal Content I have created a webdynpro page out of this application.So now my webdynpro page is having two iviews.
Now I want to know the answers for below questions
1)Can we embed a url iview it in to the above created Webdynpro Application page in portal.I tried for it but couldnu2019t do so.
2)So,as an alternative I created a Page,added the above created Webdynpro Application page and a url iview to that page.Now that url iview is displayed along with the Webdynpro iview.Bot the problem is url iview is getting refreshed when ever I click a button in the webdynbpro application view .It even refreshes when I select a table row in webdynpro.
Please let me know if we can prevent url iview to refresh.
Regards,
SudhirHi,
>1)Can we embed a url iview it in to the above created Webdynpro Application page in portal.I tried for it but couldnu2019t do so.
No, I don't think so.
>Please let me know if we can prevent url iview to refresh.
For the parent page which hosts both the WD and the URL iview, set the property Isolation Method to URL. You can find this property under the property category Load.
Regards,
Satyajit. -
Issue in webdynpro application while calling from UWL
Hi All,
I am working on APPRAISAL workflow in HCM module.
In new version of SAP has provided ABAP web dynpro application HAP_MAIN_DOCUMENT (component HAP_MAIN_DOCUMENT)
but it is not integrated with workflow. Earlier insted of this application there was a BSP application and this was integrated with workflow.
Now to integrate ABAP webdynpro application with workflow I have created new web dynpro application and calling HAP_MAIN DOCUMENT application and when I test through SE80 transaction then I am just passing Work Item ID and it is opening HAP_MAIN DOCUMENT application. I have done it as follows.
In swfvisu I am passing Work Item ID and In application I am getting business object details using this I am createing a URL and then using exit plug I am calling HAP_MAIN_DOCUMENT application
*METHOD exit1 .*
* DATA lo_nd_new_url TYPE REF TO if_wd_context_node.
**DATA lo_el_new_url TYPE REF TO if_wd_context_element.**
**DATA ls_new_url TYPE wd_this->element_new_url.**
**DATA lv_url TYPE wd_this->element_new_url-url.**
**DATA: l_cmp_api TYPE REF TO if_wd_component,**
**result TYPE REF TO if_wd_window,**
**l_window1 TYPE REF TO if_wd_window_manager.**
*** navigate from <CONTEXT> to <NEW_URL> via lead selection**
**lo_nd_new_url = wd_context->get_child_node( name = wd_this->wdctx_new_url ).**
*** @TODO handle non existant child**
*** IF lo_nd_new_url IS INITIAL.**
*** ENDIF.**
*** get element via lead selection**
**lo_el_new_url = lo_nd_new_url->get_element( ).**
*** @TODO handle not set lead selection**
**IF lo_el_new_url IS INITIAL.**
**ENDIF.**
*** get single attribute**
**lo_el_new_url->get_attribute(**
**EXPORTING**
**name = `URL`**
**IMPORTING**
**value = lv_url ).**
**wd_this->fire_exit_plg( url = lv_url ). "abap_true**
*** l_cmp_api = wd_this->wd_get_api( ).**
*** l_window1 = l_cmp_api->get_window_manager( ).**
*** result = l_window1->create_external_window(**
***url = lv_url ).**
*** result->open( ).**
**ENDMETHOD.**
In SE80 it is opening application perfectly in same session of new Z webdynpro application.
But when I click on UWL workitem it is not opening.
In dubugging I checked that workitem ID is passed correctly also URL is created correctly for HAP_MAINDOCUMENT but it is not opening.
Please let me know is there any setting in UWL config.
Edited by: Akshay Kale on Nov 17, 2009 11:51 AM
Edited by: Akshay Kale on Nov 23, 2009 10:07 AMHi akshay,
Check the following links ,
Workitems, UWL and Web Dynpro for ABAP
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6
another that talks about swfvisu
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a002d1eb-33f0-2b10-f391-e1e0c3057c17&overridelayout=true
hope this helps.
Thanks,
Sahiba
Maybe you are looking for
-
Data Federator and Information Design tool
Hi, First, Can Data Federator be a single data source for Information Design Tool? Second, from performance point of view, using Information Design tool to build multi-sources Universe or building Universe on Data Federator, which way is better? Than
-
My iPhone seems to sync OK but at the end it says it can't back up because 'the back up was corrupt or not compatible with the phone'. Any ideas what I need to do?
-
PhotoShop Elements 5.0 Help file
Greetings: I am not able to access help from the HELP file in PhotoShop Elements 5.0. Message says I need file ahc.exe and suggests that I browse for it. If I search for it on the Internet, all I see are offers of help which require me to signup
-
Micro usb audio out feature addition request
so i had a pair on micro usb headphones out and i thought it would work on my stream 7, because of the buzzing problem. However it doesnt work and windows dosnt seem to read it either. Any way for a bios update for the stream 7 so micro usb audio out
-
I have a PDF document that I need to make changes to (add pictures and change verbiage). I have the converter (to word) capability but when the conversion is complete the format changes and the document becomes unusable. What I need to be able to upd