Attach Interactive Forum to Workflow from a Webdynpro ABAP application

I have a webdynpro ABAP application which has an Interactive form. After the user enters the form and clicks on 'Submit', I trigger a workflow for Approval. My requirement is to add this same form as an attachment to the workflow. I know I can do this by adding the Fileupload UI element and letting the user browse to the file after saving it. But I want to attach it directly without the user having to save the form to Desktop first.
I tried passing the pdf_source(XSTRING) to the container and it does attaches a pdf to the workflow but when I open it, the form is blank and user entered values are missing.
Please respond only if you know the solution and don't send me links to other forums on SDN, I have read them all.

sharing the solution always helps some or the other person seeking similar answers to their problems. It would be good to share your solution in this open community. It helps.

Similar Messages

  • Calling Portal iView from a WebdynPro ABAP application

    Hi ,
    I have a requirement where I need to call an iView in my portal from the Webdynpro application also existing in the portal.
    Can anyone provide me the method with source code( if possible ) to call an iView existing in the portal from the WebDynPro ABAP application.
    Best Regards
    Sid

    Hi Siddharth,
    Well, I think you can go for Portal Navigation concept.
    Please check the required source code in WDR_TEST_PORTAL_NAV Web Dynpro component. That will illustrate both Page based Navigation and Object based Navigation.
    Hope that should solve your problem.
    Regards
    <i><b>Raja Sekhar</b></i>

  • How to exit from a WebDynpro ABAP application and open another url

    Hi Friends,
    How to exit from a WebDynpro ABAP application and open another url like (www.yahoo.com) in the same window of the WD4 application on click of a Button?
    Regards,
    Xavier

    Hi,
    First of all you should create outbound plug in the window you are trying to exit with plufg type "Exit"
    Then create method handler in the view with this code
            data lo_view_cntr type ref to if_wd_view_controller.
            data lo_win_cntr type ref to if_wd_window_controller.
            data: l_parameter_list type wdr_event_parameter_list,
                  l_parameter type wdr_event_parameter,
                  l_val type ref to data,
                  l_val_url type REF TO data.
            field-symbols: <fs> type any,
                           <fs_url> type any.
            lo_view_cntr  = wd_this->wd_get_api( ).
            lo_win_cntr = lo_view_cntr->get_embedding_window_ctlr( ).
            CREATE DATA l_val type c.
            CREATE DATA l_val_url type string.
            ASSIGN l_val->* to <fs>.
            ASSIGN l_val_url->* to <fs_url>.
            <fs> = 'X'.
            <fs_url> = 'http://your-link.com'.     
            l_parameter-name = 'URL'.
            l_parameter-value = l_val_url.
            INSERT l_parameter INTO TABLE l_parameter_list.
            lo_win_cntr->if_wd_view_controller~fire_plug( EXPORTING plug_name = 'EXIT_PLUG'
                                                                    parameters = l_parameter_list ).
          You can easily change this logic to exit application instead of redirecting to the site
           just changing to
           l_parameter-name = 'CLOSE_WINDOW'.

  • Need a call a portal iView from a WebDynPro ABAP Application

    Hi,
    I have to call a portal iView from the WD ABAP application.
    The iView root is e.g.
    folder1/folder2/check_workset1/iView
    How can we call it using Absolute navigation or Relative Navigation.
    I just want to call this path.
    Can anyone provide me with a code snippet.
    Best Regards
    Sid

    Hi ,
    I am calling the following method in my action call of a Webdynpro ABAP View
      CALL METHOD lo_portal_manager->NAVIGATE_ABSOLUTE
      EXPORTING
        NAVIGATION_TARGET   = 'Roles://portal_content/xxxx._and_remuneration'
        NAVIGATION_MODE     = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_EXTERNAL
       WINDOW_FEATURES    =
       WINDOW_NAME        =
       HISTORY_MODE       =
       TARGET_TITLE       =
          CONTEXT_URL       = 'http://xxx.xxx.adsint.biz:50000/irj/portal'
       POST_PARAMETERS    = ABAP_FALSE
       USE_SAP_LAUNCHER   = ABAP_TRUE
       BUSINESS_PARAMETERS =
       LAUNCHER_PARAMETERS =
    But it is still noot opening the page for me from the WD ABAP application.
    Can anyone let me know , what can be the reason.
    Best Regards
    Sid

  • Adding attachments to workflow from Web Dynpro ABAP Application program.

    Hi,
    workflow is supposed to start by a Web Dynpro ABAP Application.
    The user can attach files to it.
    A superior is supposed to review the files and either approve or reject the request.
    I tried the following in Web Ddynpro ABAP:
    CALL FUNCTION 'EWW_WORKFLOW_START'
    EXPORTING
    X_TASK = 'WS90000074'
    IMPORTING
    Y_WORKFLOW_ID = lv_WF_ID
    TABLES
    X_CONTAINER = lv_IT_CONTAINER
    EXCEPTIONS
    then followed by:
    CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
    EXPORTING
    WORKITEM_ID = lv_wf_id
    ATT_HEADER = lv_swr_att_header
    ATT_BIN = Item_FILENAMEATTACHED
    DOCUMENT_OWNER = SY-UNAME
    LANGUAGE = SY-LANGU
    IMPORTING
    ATT_ID = lv_swr_att_id
    The Workflow has only one user decision step and one notification Step.
    In the user decision step, there is a binding from ATTACHOBJECTS to the task.
    But, in the log, you can see the attachment in the Workflow Container of the workflow instance, but you don't see it in the task (neither Inbox nor UWL)
    I have checked the binding it is correct. I am getting the attachment in workflow container in '_attach_objects' element. but this attachment has to go to the user decision step, so I am binding the '_attach_objects' of workflow container to '_attach_objects' of user decision step. But the attachment was not going to user decision step.
    Could you please let me know where am i doing wrong?
    Thanks,
    V.Nagaraju

    @Ruslim Chang 
       Sorry to point out but the FM will return the Workitem ID only so there is no problem with the LV_WF_ID variable.
    @vundralla nagaraju
    Instead of making binding between attachobjects make binding between
    WiGroup_ID <---- attachobjects
    and then on the next step you try to make biniding in the user decision step by using WiGroup_ID.I think it should work.

  • Calling a portal page from WebDynPro ABAp application

    Hi,
    I would like to call a portal page (any type) from a WebdynPro ABAP application. I have the PCD location of the page.
    Which call shall I make :
    Absolute Navigation
    Relative Navigation or
    OBN.
    Also, can anyone send me short code snippet on the following.
    The package SWDP test examples are not working.
    Best Regards
    Sid

    Hi Siddharth,
    Well, to start with you can go for ABSOLUTE NAVIGATION.
    Secondly, you can find the snippet here
      DATA LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
      DATA LO_PORTAL_MANAGER TYPE REF TO IF_WD_PORTAL_INTEGRATION.
      DATA L_NAVIGATION_TARGET TYPE STRING.
      LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
      LO_PORTAL_MANAGER = LO_API_COMPONENT->GET_PORTAL_MANAGER( ).
      MOVE 'pcd://portal_content/com.xxxx.zpof_f_XXXXportalcontent/com.xxxx.test/com.xxxx.folders.MaintenanceBusinessPackage/com.xxxx.test.mt.pages.Pages/com.xxxx.pages.MaintenanceTasks'
        to l_navigation_target.
      CALL METHOD lo_portal_manager->NAVIGATE_ABSOLUTE
        EXPORTING
          NAVIGATION_TARGET   = L_NAVIGATION_TARGET
    *      NAVIGATION_MODE     = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_INPLACE
    *      WINDOW_FEATURES     =
    *      WINDOW_NAME         =
    *      HISTORY_MODE        = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES
    *      TARGET_TITLE        =
    *      CONTEXT_URL         =
    *      POST_PARAMETERS     = ABAP_FALSE
    *      USE_SAP_LAUNCHER    = ABAP_TRUE
    *      BUSINESS_PARAMETERS =
    *      LAUNCHER_PARAMETERS =
    Above it, the examples of SWDP will not work if you test them from SE80-ABAP WAS...I suggest you to create a WDA IView in Portal and test it in Portal itself.
    Hope this should solve your problem.
    Regards
    <i><b>Raja sekhar</b></i>

  • Popup for transport request in WebDynpro ABAP application

    Hi there,
    which function module can I use to prompt the user for the transport request in an WebDynpro ABAP application.
    In SAPGUI I found 'TR_ORDER_CHOICE_CORRECTION' to do this but I get a short dump when I call this one from a WebDynpro ABAP application ...
    Many thanks in advance!
    Regards,
    Steffen

    Thanks for your replay!
    The reason I get the short dump is the function modules I found call a dynpro screen inside for prompting for the request. I am not surprised this does not work for WebDynpro applications ....
    So I thought there is a generic function module for WebDynpro applications available or a WebDynpro component I can use for this ... Sure I could build it by myself but this does not seem to be the right way for me since this requirement seems to be of a generic nature.
    @Gaurav: I am interested to bring up a generic popup for prompting for the request. So I cannot use the flags to suppress the screen ...
    Best regards,
    Steffen

  • Webdynpro abap application attached to SWFVISU is tested from se80

    hi,
    when webdynpro ABAP application is attached to workitem in SWFVISU the the workitem id is passed via url when calling the application. (though the url seen in the application in se80 in the webdynrpo abap component does not have workitem id paramter)
    [link1|http://forums.sdn.sap.com/thread.jspa?threadID=1209159]
    [link2|http://forums.sdn.sap.com/thread.jspa?threadID=226957]
    [link3|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6?QuickLink=index&overridelayout=true]
    I am running this application from se80 - application - right click - test. (this is required to troubleshoot one of the issues.)
    at this time it does not ask for workitem id and directly runs the application . It picks the same workitem id everytime. I tried doing this with a couple of different user ids. but I cant figure out from where it picks this particular workitem id. the status of this workitem is complete in the system.
    thanks
    bhakti

    Hi-
    (though the url seen in the application in se80 in the webdynrpo abap component does not have workitem id paramter)
    It is required to have a parameter WI_ID (as an Application parameter) in your WDA. And via this Application parameter WDA will receive the workitem id, when the task is exceuted from UWL (provided configuration is done in swfvisu)
    Could you confirm, there is no Application parameter (WI_ID) in your WDA?
    It picks the same workitem id everytime. I tried doing this with a couple of different user ids. but I cant figure out from where it picks this particular workitem id
    If you defined WI_ID in Application parameter and there is an option to provide value and it seems, you have defined some value over there or other way might be in your method (inbound plug), you may gave default value to WI_ID in the parameter
    If your application is working properly from UWL and for testing purpose, you could put a breakpoint and change the workitem id, when executing from se80
    Vinoth

  • How to execute a workflow from a webdynpro application???

    hi friends....
    How to execute a workflow from a webdynpro application???
    we are using ep6, ecc5????

    If you want to start a workflow in the backend, you need to call a RFC that starts it.

  • Launching webdynpro ABAP application from workflow task  (without UWL)

    Hello,
    How can i start webdynpro ABAP application from workflow without portal?
    Workflow and webdynpro ABAP are located on the same system.
    I assume it must be possible without transaction SWFVISU.
    thanks
    Regards
    Paul

    First you need to define a external service then you have to generate a task from this external service and then you need to include this task id in you workflow for a ACTIVITY step then this step can be either background or can be assigned to any agent
    you have to make use the below two Txn
    WF_HANDCUST and WF_EXTSRV

  • Attach File in WebDynpro ABAP Application

    Hi everyone
    I need your help to attach files in custom WebDynpro ABAP application. Kindly share if there is any sample standard WebDynpro ABAP application or share some sample code.
    Best Regards
    Iftikhar Ali

    This question has been answered in following link.
    [http://forums.sdn.sap.com/thread.jspa?forumID=249&threadID=2137285]
    Regards
    Iftikhar Ali

  • Login pop-up when launching Webdynpro ABAP application from SAP Inbox

    Hello All,
    We have configured our workflow to trigger WD ABAP application from SAP Inbox.
    However when we launch the workitem from SAP Inbox, we are getting a login pop-up screen in IE which prompts us to enter SAP password.
    Can you please help how can we avoid getting that login screen and how the WD ABAP application can single sign on from SAP GUI to IE for that user-id.
    Appreciate all your help.
    Regards,
    Samta.

    Hi Samta,
    You can configure User(RFC) and password for your webdynpro appl'n using SICF tcode.
    Path : /default_host/sap/bc/webdynpro/sap/(your wdp appln)
    Thanks
    Katrice

  • WebDynpro ABAP application issue from Portal after ECC 6 upgrade to SP14

    Hi,
       We have recently upgraded the Kernel, ABAP and Java stack of ECC 6.0 system to SP14. After the upgrade most of the WebDynpro ABAP applications doesn't load and just flickers when run from Portal as a WebDynpro iView, but they run perfectly fine when accessed directly using URL. These were running fine prior to the upgrade. Can someone suggest what can be going wrong.
       Will reward points for helpful answer.
    Regards
    Mukesh

    Hi Mukesh,
    As Gajendra said, restarting the service in SICF sometimes works for us, but not always.  We have also had to deactivate the entire Webdynpro node, and then reactivate it and all of the services below it.
    Obviously something changed in the SP, given that we now have to do this every time we create a new WDA application.
    Cheers,
    John

  • Pass a table from my webdynpro JAVA application to an RFC in R/3

    Hi All,
    I need to Pass a table from my webdynpro JAVA application to an RFC in R/3. How can I do that?
    Regards
    Sarath

    Hi,
    Please have a look at this thread,
    Pass Table as Input to Adaptive RFC
    Regards,
    Saravanan K

  • How to access SQL tables from WebDynPro ABAP application ?

    Hi,
    I am trying a scenario, where I need to send an user ID to SQL server table (update/modify/delete) from webDynpro ABAP application.
    Basically ,I am trying to know:---
    a>How to write a SQL Connection from ABAP code within webdynpro ABAP application
    b>What are the ways to do it.(by code or any other API/mechanism)
    I appreciate if anybody knows this.
    Thanks
    Praveen

    Hi,
    The EXEC CONNECT ... is usually used in the procedural ABAP code. For this you can refer to the ABAPDOCU.
    I dont have any sample code on the classes I listed try to check out them for the parameters and the methods they have.
    In WD for Java, we have these connection classes to connect to any databsae server.
    Or try to create an RFC with DESTINATION for this
    Pls check out this link for this -
    Pull data from another r3 server using abap dynpro
    Regards
    Lekha

Maybe you are looking for