Web Dynpro as Callable object in GP using PDF Forms

Hi All,
I somehow want to integrate a user filling out a pdf form within a Guided Procedure. So far I have created a local web dynpro DC and I want to make it a Web Dynpro Callable Object (GP Interface). The problem is, I want the user to be able to see the PDF form when filling out the form. For example, if they had a role in the portal where they can invoke the Web Dynpro application with the pdf form, then when they click submit on the pdf they invoke the guided procedure...is this possible? This is so, I can use the web dynpro to do some data validation and call some bapis to get info, then submit this all to the GP. Is this achievable? I know how to do most things, I just want to know things like when is the "execute" and "getDescription" methods called? I want my execute( com.sap.caf.eu.gp.co.api.IGPExecutionContext executionContext ) method to call a bapi also. Is that possible? How do I automate a GP process when I click submit on the pdf form?
Thanks in advanced
TM

Hi,
You can integrate a PDF control in a Web Dynpro view. Refer the following links for that:
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm">Example of the Use of an Interactive PDF Form (SAP Library - Web Dynpro for Java)</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/60/6fc10c6748479392101e09c9e8d33a/frameset.htm">Interactive Forms in Web Dynpro for Java</a>
Also you can create Web Dynpro Java callable object in GP by implementing the IGPWebDynproCO interface. Refer the following links for that:
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59">Implementing a Web Dynpro Callable Object which Implements the GP Interface</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814">Implementing a Web Dynpro Callable Object</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/fd/afb4429027da11e10000000a155106/frameset.htm">Implementing a Web Dynpro Component</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/de/8976417f2d5558e10000000a1550b0/frameset.htm">Implementing and Exposing a Web Dynpro as a Callable Object</a>
You can start a GP process using the public API:
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/fcdf77fc6510b3e10000000a11466f/frameset.htm">Starting and Terminating Processes Using the GP API (SAP Library - Creating Composite Applications)</a><a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1">Creating Interactive Forms in Web Dynpro for Java</a>
Also you can start a GP process using Web Service:
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm">Starting a Process Using Web Services (SAP Library - Creating Composite Applications)</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/93/27dc108cfc407fbf6c726151840001/frameset.htm">Starting and Terminating Processes Within a Composite</a>
Refering the above links you'll get a fairly good idea how to integrate Adobe forms in WDP and how to start GP process programitically. My suggestion for your requirement would be if always you need to start the process after the user submits the Adobe form, then consider having the Adobe form as the first step for the process. In that case you don't need to start the process programitically. Whenever the user starts filling up the Adobe form the GP process will start. You can refer <a href="/people/dipankar.saha3/blog/2007/03/02/how-to-present-your-gp-processes-to-the-end-user">this blog</a> on how to start a GP process as an iview link in portal.
Otherwise if based on certain conditions you need to start the process then you can either use the Java API or the web service to start the process from Web Dynpro. You should have the Adobe form embedded in Web Dynpro and on submit event you can check the conditions and start the process if required.
Thanks,
Dipankar

Similar Messages

  • Implementing a Web Dynpro Java Callable Object in GP using a R/3 Model

    Hi to all,
    my scenario is that I have to Implement a WD Java Callable Object (as descripted in this example https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814) but I want to get datas from an R/3 system with a RFC Model.
    I tried but I have some problems how to use the model itself. Can someone help me, please?
    I'm using NWDS 7.0.
    Thank you very much,
    Antonio

    Hi Antonio,
    Go through this link https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=externalservicesusing+RFC&adv=false&sortby=cm_rnd_rankvalue  and find "Consuming RFC Function Module Using Guided Procedures" Application
    Thanks,
    Nataraju

  • Implementing a Web Dynpro Java Callable Object in GP using a Model

    Hi to all,
    my scenario is that I have to Implement a WD Java Callable Object (as descripted in this example https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814) but I want to get datas from an R/3 system with a RFC Model.
    I tried but I have some problems how to use the model itself. Can someone help me, please?
    Thank you very much,
    Antonio

    Hi,
        I thin k u have imported the RFC Model into the Workspace .
      Declare the usage of model in the component .
    then do model binding between the component controller and the Model Nodes.and finally the model binding with the component Controller and the View .
    in the Doinit method of the component Controller ,
    create the instance of the model and excecute the model.
    and finally invalidate the Response node of the Model.
    For further pleasde verify the link.
    [http://help.sap.com/saphelp_nw04/helpdata/en/d5/1558bfa6aa80499113983e738b1b21/frameset.htm]
    thanks and regards
    Fistae

  • NWDS setup for exposing web dynpro as callable object

    Hi
    I need help in understanding how to set-up my NWDS 7.0 environment, so as to implement and expose a web dynpro as callable object in Guided Procedure. I tried following some of the weblogs in the SDN but I get stuck at the step where depencencies to DC's caf/eu/gp/api/wd & caf/eu/gp/api etc. is to be done.
    It appears that NWDS 7.0 does not come with GP DC's.
    My NWDS version is 7.0.09 & in have NW 2004s.
    Thanks
    Vijendra

    Hi
    I need help in understanding how to set-up my NWDS 7.0 environment, so as to implement and expose a web dynpro as callable object in Guided Procedure. I tried following some of the weblogs in the SDN but I get stuck at the step where depencencies to DC's caf/eu/gp/api/wd & caf/eu/gp/api etc. is to be done.
    It appears that NWDS 7.0 does not come with GP DC's.
    My NWDS version is 7.0.09 & in have NW 2004s.
    Thanks
    Vijendra

  • Web Dynpro application callable object error: Page Builder Not available

    Hi, SDN Fellow.
    I created a callable object of Web Dynpro application. The callable object is atatched to an Action, and Action --> Block, and Block --> Process.
    I initiate the process in GP Runtime, when it comes to the Action screen the Web Dynpro application atatched to, I got the following error:
    The page builder required to display this application UI inside the portal environment is not available.
    As aa comparison, another callable object that atatched to a Web Dynpro component (that implement GP interface) is working fine.
    Please advise.
    Thanks in advance,
    KC

    Hi KC,
    When you start your process from GP Runtime, does the actual action/callable object open in a new window?
    Have a look at this SAP Note:
    [Error when executing a GP task - Page builder|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_gp/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393831353137%7d]
    Although the error message you are getting is different, but if your callable object opens in a new window, then the problem (in most probability) is the same as mentioned in the SAP Note.
    Also, try testing the Web Dynpro callable object in standalone mode. For more information on this, see:
    [Testing Callable Objects|http://help.sap.com/saphelp_nw04s/helpdata/en/4c/588041a17e060de10000000a1550b0/frameset.htm]
    Bye
    Ankur

  • Expose Web Dynpro as Callable Object

    Hi,
    I created my own webdynpro application which I want to expose it as callable object and in the process I cannot complete the following step:
    Add DC caf/eu/gp/api/wd and its public part IGPWebDynproCO.  The reason is that I cannot see any DC called caf/eu/gp/api. All I can see are caf/UI.., caf/core.., caf/runtime... etc.
    Thanks for your time.
    Best Regards,
    Shiva

    Hi,
    please pay attention to the workaround that is described here:
    <a href="/people/andre.truong/blog/2006/06/26/working-with-the-apis-of-caf-guided-procedures-nwdi-or-local-development">CAF WD API workaround</a>
    Regards,
      Jan

  • Exposing Web Services as Callable Objects

    Hello!
    I have SAP NetWeaver 04s SP7. How can I expose Web Services as Callable Objects?
    According to "Exposing Web Services as Callable Objects" (http://help.sap.com/saphelp_nw2004s/helpdata/en/44/4758351fcb1193e10000000a155369/frameset.htm), I should start with choosing type of CO "Service -> Web Service".
    Actually, I haven't this entry in CO type list!
    According to integrate Web Services with GP, this type appeared in SP8. What are the alternatives in SP7?
    "Background execution" and "External service" seem to be the best candidates...
    What is the best solution?
    Thanx in advance!

    Hello, Jan!
    I have SAP NWDS 7.0.07, and I cannot find there an option to create a CAF project. I can create Web service, EJB, Web DynPro, and something else - but not a CAF project. In documentation I did not find the connection points between NWDS and External Services, except some plug-ins.
    Maybe I've misunderstood you, sorry - I'm a newbie in SAP
    Actually, I've made a simple EJB, created a Web service from it, and deployed the WS to portal. Maybe, EJB instead of Web service can be somehow used in CAF?
    I've tried to create a CO of type Composite Application Service, but there was necessary to configure endpoint aliases. I've read the manual "Configuring Endpoint Aliases", but didn't succeed to make one for EJB remote call... I've defined the name, URL (http://<host_of_portal>:<portal_port>), user and pwd - but I've got an exception when tried to use the created alias:
    com.sap.caf.core.gp.servicelocator.exception.MetaModelBrowserException: Exception while trying to get InitialContext. at com.sap.caf.core.gp.servicelocator.CAFMetaModelBrowser.getAllApplications(CAFMetaModelBrowser.java:77) at com.sap.caf.core.gp.ui.backgroundco.admin.VSelect.browseCAFCore(VSelect.java:305) at com.sap.caf.core.gp.ui.backgroundco.admin.VSelect.onActionSelectEptAlias(VSelect.java:750) at com.sap.caf.core.gp.ui.backgroundco.admin.wdp.InternalVSelect.wdInvokeEventHandler(InternalVSelect.java:287) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at
    Maybe, the easiest way is to upgrade the versions of SAP and NWDS?
    Are there some manuals that could provide me some help about:
    1) creating CAS from the deployed Web service (from its creation in NWDS till its use in CAF, step-by-step)
    2) binding Web Dynpro apps and Web services, using CAF and GP.
    Or maybe I should attend SAP courses?
    I have SAP NetWeaver 04s SP7 and NWDS ver. 7.0.07.
    Sorry for the messy post, I did my best
    Message was edited by:
            Kirill Shepitko

  • Canu0092t use web service as Callable Object

    Hi,
    I’ve tried to use a web service as an callable object. After I provided the WSDL URL I’ve got the following error message : “Interface is empty; select Web service interface“. Can anybody tell me what that could be?
    Thanks in advance
    Robert Herbert

    Hi David,
    Thank you very much, you solved my problem.
    Curious usability issue!!
    Best regards,
    Robert

  • Problems with Web Dynpro Tutorial "Creating an Email Client Using ..."

    Hello,
    I have a problem with the Web Dynpro Tutorial Number 6 ("Creating an Email Client using Web Dynpro and Web Services"):
    On page 20 of the PDF description of the Tutorial, Step 6 reads:
    "In the view layout, select the UI element EmailFormGroup and then choose the entry Apply Template in the context menu"
    Yet the context menu of the UI element EmailFormGroup does not show an entry "Apply Template".
    Do you have any hints?
    Kind regards,
    Franz-Josef Krämer

    Hello,
    the solution was: it should have said "in the outline view" and not "in the view layout".
    In the outline view, the context menu included "Apply Template".
    So no further responses are necessary.
    Kind regards,
    Franz-Josef Krämer

  • Web Dynpro Java UI Customization from Portal Using CTRL+Right Click in Prev

    Hi Team,
    I am able to hide some Web Dynpro UI elements from Portal Content Administration >> Web Dynpro iView >> Preview and by Pressing CTRL+RIGHT CLICK.
    Here I need to understand the concept like how things work in this case. If we hide some UI in Web Dynpro Java iView customization will there not be any RFC/BAPI calls associated with that particular UI
    For Example: Web Dynpro iView is made up of CompA and CompB and I am going to hide the UI associated with CompA. When I invoke the application will there not be any activity like invoking CompA calling associated RFC/BAPI etc related to CompA
    Please help me in understand the concepts and performance implications on this.
    Regards
    Sudhir

    Hi Sudhir
    You are quite right to raise this concern
    If you start hiding elements you may find a change to functionality
    For example - in ESS - if you hide a field that is set to mandatory in the back-end ECC when the user
    goes to edit the screen they will not see the field and not maintain the field but they will get an error
    "fill in all required fields" - which will completely confuse them as they will have filled in all displayed fields
    Also if you hide one field in ESS that is required to populate another field this too many causes inconsistencies or errors
    Ideal UI elements to hide are those that have been set to unsued (in the case of ESS in the back-end) and have no dependancies to other fields - however there is no complete list - you must test each scenario to your satisfaction
    Best wishes
    Stuart

  • Can I use PDF forms on an iPAD?

    I have completed a multi page interactive PDF file. It is a survey and works fine off a laptop or desktop.
    My client has expressed an interest in having this work on an iPAD. The idea is use the iPAD for its convenience and then send the completed form via email back to the home office.
    Presently my file does not reveal the fields so I am thinking I need to do something more. I've got an iPAD but with less  than a week experience. I am speculating that it is the nature of the platform and probably the only way to make this work is to have the form on a server and use safari to be the depository.
    The business problem is a chronic web connection to work this way is not an assumption.
    Thanks for any thoughts

    You and your clients can try an iPad app under the title PDF Expert. Above all available features, I usually use this application to fill out PDF forms. PDF Expert even works with those forms that have built-in calculations. What is mostly important for me as a lawyer - sign up feature, that allows me affirm contracts, agreements, etc with the own signature right on the iPad and email back the documents to the office or clients.
    More information and features you can find in the app's description: http://itunes.apple.com/us/app/pdf-expert-fill-forms-annotate/id393316844?mt=8

  • WF_EXTSRV: use PDF Form in Change mode in Portal:

    Hai,
    I'am trying to use transaction WF_EXTSRV to generate a task which can be used within the UWL from the portal. The main purpose of this task is to show an exsisting PDF form in change mode. I allready found some nice information from SDN, but not enough to make it all work. I still have still these questions:
    1) How must I setup the required fields within transaction WF_EXTSRV when I want to generate for example this url:
    http://abc.abc.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm?SCENARIO=SPEG&MODE=CHANGE&NOTIF_NO=000600000003
    2) How must a then setup transaction SWFVISU? Which apllication and package name.
    I hope some can help me.
    Greetings,
    Remco

    Hi,
    When do you get this error ... "No scenario specified". ???
    I mean did you try creating an iview for IsrForm Java WD application sending the Scenario name as parameter?
    Betn us,
    Why dont you try the parameter IFV='P' for IsrFormApprove Java WD application itself. Get to know more about this parameter in these threads...
    Re: Buttons for ISR_APPROVE & ISR_PROCESS appearing in Workflow
    https://forums.sdn.sap.com/click.jspa?searchID=165819&messageID=1268222
    Regards,
    <i><b>Raja Sekhar</b></i>

  • Print functionality using PDF form in a webdynpro application

    Hello! All
    Currently, we have a webdynpro application and we need to provide the print feature to print the content of the iview display on IE browser. We try the File-> print feature provide by Microsoft through IE but this doesn't work. We are looking for any other option like print to pdf form. We don't know if it is possible. Is there any tutorial, help or anything that can help us to print to pdf form. Please share any other suggestion, comment and it will be much appreciated. Thank you very much.

    Hi,
    The content (which is a pdf content) can be exported as a PDF from a WD Application. For this you can use File Download control whose source is in the form of bytes (which is PDF content).
    Do you have the PDF content already generated?
    If so it is very easy to generate PDF from WD.
    If you need further help, kindly let us know.
    Thanks and regards
    RK

  • Navigate from Web Dynpro application to an iView URL using parameters

    Hi all,
    I have a problem navigating from a Wed Dynpro application to an iView URL. For the navigation, I use the WDPortalNavigation.navigateAbsolute() method. The navigation works fine, unfortunately any parameter that I pass to the iView URL is ignored.
    Here is the code I use:
    WDPortalNavigation.navigateAbsolute(
    "ROLES://portal_content/rack_visualization/RackView",
    WDPortalNavigationMode.SHOW_INPLACE,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    "space=1&style=3&rack=none");
    The RackView iView is based on the "iView URL" template. I expect that the navigation points to a URL like my_encapsulated_url?space=1&style=3&rack=none. Unfortunately the parameter passing doesn't seem to work.
    Any help would be greatly appreciated!
    Thanks,
    Christophe

    did u get this working ???
    I have a similar issue with the url iview.
    thanks
    venkat

  • Using PDF form as a sales order form on Android device

    Hi,
    I'm working on a digital sales order form solution, and found Adobe Reader for Android looking to be usefull. However I'm stuck with some questions and hoping to find answers here on the forums.
    I don't have a lot of experience with creating PDF's, but I do have sufficient experience with Javascript, so I managed to create form that does some calculations. Everything looks and works alright, but for it to work in the field there are some showstoppers.
    The form I've created has 2 signature fields
    Here are my issues. Please keep in mind that the user (sales representive) is filling in the form on an Samsung Galaxy Note.
    After the form is signed, the user can still make changes to the form. Is there a way to disable this?
    The signature default uses very thick lines. How can I force this to 1px default?
    The last used signature is stored. How can I disable this? (Customers don't want their signature to be stored, as the sales rep could use that to sign other forms as wel..)
    Adobe reader overwrite the original file upon closing. Is there a way to force a 'save as' screen?
    Adobe reader allows a user to make comments and write free hand. I'd like to disable this.
    (I've tried Document Restrictions, but this ruins the document by removing every form field.. )
    I've read something about Adobe LiveCycle server. Could that help me achieve wat I'm looking for?
    I hope someone can help me out and explain some of this

    Check out http://www.pdfemail.net/
    With PDFEmail.net, you can submit XML, FDF, XFDF, XDP data formats or PDF format.
    PDFEmail.net can merge the Data (XML) submission with a blank form using ASP.net, and attaches it to an e-mail message and sends it through SMTP, without client side e-mail software such as OUTLOOK.
    PDFEmail.net is installed on a workstation, and generates scripts and libraries you "UPLOAD" to your ASP.net webserver. There is no server-side installation, and zero programming knowledge is required. PDFEmail.net creates the scripts for you, and you just point your submit button action to the URL of the script.
    PDFEmail.net uses iTextSharp technologies, and includes 1 year of free technical support.
    For more information visit http://www.pdfemail.net/

Maybe you are looking for