Generic Object Services using Web Dynpro
I am using Web Dynpro for ABAP and would like to access Generic Object Services (GOS) to view attachments to an SAP Business Object. Using the cl_gos* classes does not work when running WebDynpro as it uses the controls framework.
How can I access the functionality of GOS from a Web Dynpro application?
Regards,
Bob
Hi,
I assume that you wantted to have the attachements in a mail.
Please check out the Adobe Forms(ie PDF attachements) and Office Control UI elements in WDA.
Regards
Lekha
Similar Messages
-
Generic Object Services using WebDynpro ABAP
I am using Web Dynpro for ABAP and would like to access Generic Object Services (GOS) to view attachments or similar functionality for attachments in web dynpro ABAP. How can I access the functionality of attachments from a Web Dynpro application?
Any help is appreciated.
ThanksHi,
I assume that you wantted to have the attachements in a mail.
Please check out the Adobe Forms(ie PDF attachements) and Office Control UI elements in WDA.
Regards
Lekha -
I want to know what sort of the objects developed using web dynpro
Hi all ,
Pls specify few things on what is done using webdynpro and its uses.
Thanks .Web Dynpro is SAP's primary UI strategy for its applicaitons moving forward. The Business Suite will delivery its new screens primarily in Web Dynpro ABAP. The NetWeaver Middleware, Business By Design, and Composite Applications primarily use Web Dynpro Java. Web Dynpro is focused on UIs that represent complex business applications, but is not limtied to browser based clients. It is client indepent rendering and is always stateful.
-
Update Entity Service using Web Dynpro
Hi,
I am pretty new to Web Dynpro. I have defined an Entity Service which is working. With Web Dynpro I can create new entities using:
ASomething newSomething = SomethingServiceProxy.create();
newSomething.setX(x);
newSomething.getAspect().sendChanges();
Now I would like to update this entity and tried:
... wdContext.currentSomethingElement().modelOject();
mySomething.setX(y);
newSomething.getAspect().sendChanges();
unfortunately this is not working. The database is not updated. How to solve this problem?
Thanks in advance!
FelixHi
thanks for the answer, but I think you do not have to call serviceFacade.save() and unfortunately it did not help.
I found a solution, but I think it is more a work around. There should be a better option...
ASomething something = wdContext.currentSomethingElement().modelOject();
ASomething something2 = SomethingServiceProxy.read(something.getGuid());
something2.setX(y);
something2.getAspect().sendChanges();
using this coding the DB is updated.
Why is it not possible to call directly:
somethin.getAspect().sendChanges()
Thanks,
Felix
Message was edited by:
Felix Japs -
How to use web dynpro's web service to import XML file
Hi
I have an xml file and I want to use a web dynpro's web service to cosume this file which is existing on my local drive. Can anyone help me which steps I have to do to use this file as a web service using web dynpro.
ThanksHi
You can refer below Wiki Article on SDN. I hope that will help you out.
[https://www.sdn.sap.com/irj/sdn/wiki?path=/display/emtech/consuming%2babap%2bweb%2bservices%2busing%2bflex]
Thanks. -
Consume Web Service in Web Dynpro
Hi Experts,
I´m currently trying to learn web dynpro development.
Scenario: I have one component which embed two views. One view is for enter customer number and in the other view I will see the name of the customer. The name of this customer is provided in a sap erp2005. I have develop a function modul and wich gave me the appropriate data(customer name). Then I create a web service base on this function module.
When I test this web serviec in WSNavigator, I get the customer name, so the web service is working well.
My Problem is: I can´t invoke this Web Service in Web Dynpro. My steps to invoke web service were: create a model with the web service wsdl and then I add this model in the component (in "Used Models").
I have create a application and assign it to the component. When I "Deploy new archive and Run" the application I be come the error: "Configuration not found for application: demo.sap.com/test_wd3,serviceRefId:7fecf23b-0895-48f3-9902-0e7015a705c3. Please check the configuration details from the NWA. You may have not assigned the Service Group to a Provider System, or the generation of the configuration has failed."
What do I have to consider or to set up?
It is right to assign the input field to the context parameter?
PS: I have followed the steps in this tutorial, but I don´t use XI or PI
http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-part-ii/technology/sap/7/
best regards
Anna von Landsberg
Edited by: Anna_von_Landsberg on Dec 8, 2010 4:48 PMHi,
I have the following message error:
Exception on execution of web service with WSDL URL
'http://j2eeserver:port/xxxx/Config1?wsdl'
with operation 'RequestNode' in interface
'urn:xxxxx'
When i debugged it, I found the following error:
Cannot find the required parameter [unTipoProducto] in request message content.
What is wrong?, I pasted the code of my method, that call to web service in the component controller.
public void Alta_Entrega( )
//@@begin Alta_Entrega()
String tipoProducto = wdContext.currentAlta_EntregaElement().getUnTipoProducto();
Request_Alta_Entrega entregaMO = wdContext.currentRequest_Alta_EntregaElement().modelObject();
if (!wdContext.currentAlta_EntregaElement().getUnTipoProducto().equalsIgnoreCase("")){
IWDMessageManager manager = wdComponentAPI.getMessageManager();
if (logger.beDebug()) {
entregaMO.wdSetInvocationLogEnabled(true); //switch on logging for this model object
try{
entregaMO.setInvokerProperty(Stub.USERNAME_PROPERTY,"xxx");
entregaMO.setInvokerProperty(Stub.PASSWORD_PROPERTY,"xxx");
entregaMO.execute();
wdContext.nodeResponse().invalidate();
wdContext.nodeAlta_Entrega().invalidate();
}catch (Exception e){
manager.reportException(e.getMessage(),false);
logger.debugT(entregaMO.wdGetRequestLog()); //request log (HTTP header + SOAP request)
logger.debugT(entregaMO.wdGetResponseLog()); //response log (HTTP header + SOAP response)
logger.debugT(entregaMO.associatedModelClassInfo().getModelInfo().toString()); //model metadata in XML format
logger.debugT(entregaMO.toString()); //model object tree in XML format (= model context node content)
I hope you can understand me, because my english is very bad!!.
Thank you. -
How to call web services in WEB DYNPRO ABAP
Hi ABAPER'S,
Please let me know how to call web services in web dynpro.
Thanks,
Sandy.Hi Sandy,
Please check this blog..
/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
also cehck this...
call the webservices in webdynpro ABAP.
calling webservice in webdynpro component
Re: Web Services in WDA.
Cheers,
Kris.
Edited by: kissnas on May 24, 2011 11:37 AM -
How to use Generic Object Services(GOS) for each table control record.
Dear Expert,
I am using generic object services for document attachment but i am facing a problem while attaching document to a table control row. my requirement is to attach separate document for each and every row of table control but i am unable to attach document row wise of the table control.for each row GOS should display corresponding attached document not all the attached document.
Thanks in Advanced
Bhuwan Tiwari
Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PM
Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PMYou haven't explained what object and object key you're using, nor have you provided any indication of how you implemented the GOS attachment functionality. You need to provide more information to resolve an issue like this.
-
Attach Documents to Custom Program Using Generic Object Services
Hi There,
I created Object type ZGOS and used in the custom program, when i try to attach documents it allows and then shows in attachment list.
But When I use that program next time that document attached is not available.
Is there any separate save Class or FM available for saving the document to the specified custom program.
I am using following code in the program,
CLEAR obj.
SET OBJECT TYPE TO 'ZGOS'
obj-objtype = objtype.
SET OBJECT KEY = REPORT NAME
SELECT SINGLE name
FROM trdir
INTO obj-objkey
WHERE name = sy-repid.
CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
CREATE OBJECT manager
EXPORTING
is_object = obj
EXCEPTIONS
OTHERS = 1.
Thanks in advance.Check the Naimesh Patel Blog he explain very well
http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html -
Attach doc from external content server- using Generic Object Service (GOS)
Dear All,
i have intergrated an external content server to SAP using SAP archive link. All the scanned document are there in Content server and corresponding entries are done in SAP.I can search and view document using tcode : OAAD
Please tell me steps for "how to attach a document from external content server using Generic Object Service "
Scenario is : For example when we change any Master records or create a new PO, or do some financial transaction then i need to attach the supporting document which is there in my content server connected to SAP.how do we manual attach a Document in SAP using GOS.
Do we need to do some special configuration to use GOS .please give the steps from initial.
Thanks
sandeepHello,
Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
This will help in attaching the document to your required business document.
To verify you can check the archivelink table or by transaction OAAD.
Hope this will help you.
-Thanks,
Ajay -
How to attach document using Generic Object Service
Hi all,
How can i create attachment to the parked invoice using Generic Object services? i want function modules which are used to do it.
Actually I want to do this from the business object method. I am having word document as one of the workitem step. once i get this document I need to attach this document to the parked invoice so that users can see that document by view object list.
Its urgent.
thanks.Hello,
Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
This will help in attaching the document to your required business document.
To verify you can check the archivelink table or by transaction OAAD.
Hope this will help you.
-Thanks,
Ajay -
Attach Documents using Generic Object Services
With reference to Manual Bassani's SDN Contribution of code examples on how to attach documents using Generic Object Services - we have found that since implementing ECC 6 the following code no longer works (at the end of page 9):
CALL CREATE ATTACHMENT SERVICE FROM TOOLBAR
WHEN 'ATTACH'.
CALL METHOD MANAGER->START_SERVICE_DIRECT
EXPORTING
IP_SERVICE = 'CREATE_ATTA'
IS_OBJECT = OBJ
EXCEPTIONS
NO_OBJECT = 1
OBJECT_INVALID = 2
EXECUTION_FAILED = 3
OTHERS = 4.
It is necessary to use IP_SERVICE = 'PCATTA_CREA' to get this to function correctly.
The original document can be found at [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3]Check the Naimesh Patel Blog he explain very well
http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html -
How to trigger a workflow using generic object services?
Hi Experts,
Let me know on how to trigger a workflow using generic object services.
My requirement is to trigger the FI document reversal document using Object services.
Any info or docs relevant to this, please share with me..
Thanks,
Dinesh.Dinesh,
First of you need to check if the transaction has a BO (in released status) published to use the GOS.
These are the pre-requisites for GOS
http://help.sap.com/saphelp_46c/helpdata/en/94/aa532cddd511d289860000e8216438/content.htm
Once done.. check that you have valid workflow linkages active for this BO.
Now when you click on the 'start workflow' the system will show all relevant workflows for the BO to choose from and to start. -
Reusable objects using web dynpro java...any suggestions ?
Hello All,
I want to create few Reusable objects using web dynpro java. Please suggest some scenarios.
regards
Mrinalini.Hi,
I can suggest especially this one:
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30d56578-f7e5-2a10-5ab5-8afc55d2e0e8
Some other hits you may find useful:
This guide mentions some tutorials about reusability:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ba2db0e5-0601-0010-9790-e271902f2c38?quicklink=index&overridelayout=true
Here
Web Dynpro Java [original link is broken]
and here
SAP NetWeaver Composition Environment Samples Center [original link is broken]
you'll find other tutorials as well.
Best Regards,
Ervin -
Can I use Web Dynpro to provide Web Services
I know I can use Adative web services model to consume existing web services. But I have not seen any example to use Web Dynpro as the web service provider. Can this be done? If yes, how?
Thanks.Hi,
WebDynPro Java/ABAP are primarily User Interface technologies. Webservices are faceless (without UI ) components that provide certain functionality. Using UI technologies like WebDynPro Java/ABAP etc, we can build a face( UI ) to the webservices.
DnyPro itself means a screen & WebDynPro is for building web based applciations.
Hope this resolves your question.
Well, if you still want to use it as provider & if you have an existing web-service, the way to do it is, Right click on your WebDynPro ABAP component & select CREATE->Service Call. Build a Custom Controller or use the Component Controller to get the service using service type = Webservice proxy for your webservice. You can use this Component as a Used component in any other webdynpro components & use this to access webservices.
Thanks,
Phani
Edited by: Phani Rajesh Mullapudi on Oct 8, 2009 10:41 PM
Maybe you are looking for
-
Suppress Field "Due Date" in posting screen (F-02)
Hi all, When I post with special GL for customer / Vendor by t-code F-02, a field "Due on" is always set as required. But I dont need this field in screen. I suppress this field in Field Status group in OBC4 and OB41 (for posting key 09 & 19) alread
-
Application crashes in CS4 on renaming document using Save As
I have ported a project from CS3 to CS4.But on renaming a document using File->Save As option my application crashes . This did not happen in CS3.I m unable to find the problem
-
Please let me know the benefits of high availability. Actually i have 2 machines with good spec.. I wana install oracle 10g infrastructure & middle-tier on both machines having o/s windows 2003 server. where will High availability use and what will b
-
Template from page???
I mistakenly have deleted a template. I know I should have backed it all up, but what's done is done. Now, I have several pages created from that template. Is there any way of creating a template from one of those pages so that I can use that as t
-
Why does Firefox v 7.0 no longer pass downloads to Speed Download?
All my Browsers worked with Speed Download v. 5.2.28 doing the downloading for them (installed are Safari 5.0.5, Chrome 14, and Camino 2.0.9), but since updating to v 7.0 Firefox no longer seems to allow the downloads to be handled by SpeedDownload.