Webdynpro abap to workflow attachments

Hi gurus,
I have opened same meaasge in workflow forum also since I was not sure which will be more helpful.
I added  the attachment to workflow using the following code from my webdynpro abap application:
DATA: lv_xstring TYPE xstring,
        att_id TYPE swr_att_id,
        ls_msg_ln TYPE TABLE OF swr_messag,
        ls_msg_str TYPE TABLE OF swr_mstruc,
        lv_objkey TYPE swr_att_doc_id,
         ls_header             TYPE swr_att_header.
  lv_xstring = lv_file.
  ls_header-file_type      = 'B'.
  ls_header-file_name      = 'Attachment'.
  ls_header-language       = sy-langu.
  CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
    EXPORTING
      workitem_id          = lv_wi_id
      att_header           = ls_header
     att_bin              = lv_xstring
     do_commit            = 'X'
   IMPORTING
     return_code          = rc
     att_id               = att_id
TABLES
   message_lines        = ls_msg_ln
   message_struct       = ls_msg_str .
I see the attachments in the workitem but am unable to open the attachment.
Another question is how can I show the same documents in another webdynpro application as attachments.
Thanks,
ST

used the standard webdynpro component WDK_POWL_WF_DETAIL and it has whatever was needed for attachments.
Thanks,
St

Similar Messages

  • Attachment from webdynpro abap to workflow and vice versa

    I added  the attachment using the following code from my webdynpro abap application:
    DATA: lv_xstring TYPE xstring,
            att_id TYPE swr_att_id,
            ls_msg_ln TYPE TABLE OF swr_messag,
            ls_msg_str TYPE TABLE OF swr_mstruc,
            lv_objkey TYPE swr_att_doc_id,
             ls_header             TYPE swr_att_header.
      lv_xstring = lv_file.
      ls_header-file_type      = 'B'.
      ls_header-file_name      = 'Attachment'.
      ls_header-language       = sy-langu.
      CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
        EXPORTING
          workitem_id          = lv_wi_id
          att_header           = ls_header
         att_bin              = lv_xstring
         do_commit            = 'X'
       IMPORTING
         return_code          = rc
         att_id               = att_id
    TABLES
       message_lines        = ls_msg_ln
       message_struct       = ls_msg_str .
    I see the attachments in the workitem but am unable to open the attachment.
    Another question is how can I show the same documents in another webdynpro application as attachments.
    Thanks,
    ST

    Hello,
    Try specifying file_extension = 'DOC' like in this thread (see Pavan's code about halfway down) :
    attachment to _Attach_Objects in user dicision step
    regards
    Rick Bakker
    Hanabi Technology

  • Hyperlink to launch webdynpro abap from workflow

    Hi Guys,
    We have developed WORKFLOW where we need to send HYPERLINK along with WORKITEM to the AGENTS.
    When ever the user(AGENT) clicks on the HYPERLINK we need to launch our WEBDYNPRO ABAP APPLIOCATION.
    Please guide me to achieve this scenario.
    Thanks&regards,
    Harsha P

    Hi
    I think you have to check the below points  as Karri has suggested you some good points, and still if you face some issues then
    1. Make sure you have made the workitem ID as URL parameters.
    2. You should be able to access the URL parameters from Default method of the Window.
    3. Make sure the URL that you are generating is correct , by looking at URL I felt like some thing is missing, like if you have observed the url of any webdynpro applicaiotn it may be some thing like
    https://<domain>.50000/sap/bc/webdynpro/....   and this is purely my guess so make sure th URL you are populating is correct.
    @Rick
    Why do you keep saying "kemp" when the sign-off is "Karri"?
    May be you should concentrate on suggesting some thing useful regarding thread issue, rather than how the others signature is or suggesting something how to call or address the other forum participants.  Its just a suggestion....
    Don't mind its just a friendly advise.
    Regards
    Pavan

  • 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.

  • In Webdynpro abap workflow integrating

    HI,
        I have Created one sample workflow now when i click the button in webdynpro i need to run that workflow .
    I have searched so many articles but iam not clear plz tell me clearly if any articules also .
       i need clear steps to integrate workflow in webdynpro abap.
    Iam Wiating For good response.
    thanking you,
    A.S.Ananth.

    Hi Ananth,
    Check this.. it might help
    Information about Integration WebDynpro for ABAP and Business-Workflow
    how to call workflow from webdynpro ?
    Workflow in WebDynpro
    Cheers,
    Kris.
    Edited by: kissnas on Mar 10, 2011 7:06 AM

  • 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

  • Trigger an workflow from webdynpro abap.

    hai
    gurus!
        iam new to webdynpro.iam femilier with workflow . can anybody explain me with an clear example, how to trigger an workflow from webdynpro abap.
    regards
    rose

    Hi Rose
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf">Click</a> Here, to know the step by step procedure of using Webdynpro in Workflows
    Use SAP_WAPI_START_WORKFLOW RFC
    Regards
    Abhimanyu L
    Message was edited by:
            Abhimanyu Lagishetti

  • SAP Workflow, Webdynpros Abap and NW Business Client

    Hi All,
    Are there good explanations or examples about using Webdynpros Abap in Business Workflow in combination with Netweaver Business client? There is one for using WD4A with UWL, but i'm not sure if this is the same...
    Kind Regards Thomas
    Edited by: tw18399 on Jun 22, 2010 2:29 PM

    Hello !
            Please refer to Practical workflow for SAP - second edition or refer
            http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?quicklink=elearn&overridelayout=true
    Regards,
    S.Suresh

  • WebDynpro ABAP vs WebDynpro JAVA for Adobe forms--PCRs--MSS

    Hi Experts,
    This might be a generic question :
    I am modifying PCRs (MSS 1.0,EP 7,ECC 6.0) and now I have come to a point where I need to decide if I have to use Webdynpro JAVA or Webdynpro ABAP for modifying Adobe interactive forms which come with MSS 1.0 out of the box from SAP.
    What does SAP suggest??
    What do you suggest??
    Quick answers appreciated

    Hi Aditi,
    Thanx for your suggestion but let me just detail what Iam looking for;
    I will have to develop a custom PCR for Hire/Rehire (no workflow -- weird right),
    now if I develop Adobe forms for this, my question is how am I going to bind these forms to the scenario (QISRSCENARIO).
    Whatever is entered  in  this form is not going through workflow but is going to be directly updated in the database when the manager says SUBMIT.
    Usually the HR developer goes to the scenario and selects input by Adobe form and clicks <b>generate</b>, but now if I develop the form using Webdynpro JAVA how am I going to integrate the generated form to that particular scenario.
    Sorry if Iam not clear enough, but I really need help in this regard.
    Thank you

  • Calling Webdynpro application from Workflow Task

    Hi All,
    How do i call a custom Java WebDynPro Application from my task? How to pass the container values to the Webdynpro application.
    Can some one help me out?
    Thanks,
    Sarath

    Hi sarath,
    u see this thread, u get more information
    calling web dynpro from workflow - SWFVISU
    Calling Java code from Webdynpro Abap UI
    WebDynpro application that can work with SAP workflow work items?
    WebDynpro in Workflow
    Regards,
    vino

  • UWL Integration with Webdynpro ABAP

    Hello,
    I am creating a Webdynpro ABAP Application in which I want to create a screen(form) with various Input fields which will be entered by the user and it will have a Submit button.
    On the click of the Submit button I want to trigger a Workflow and send a workitem to the Approver. The Approver will be determined by the creator by selecting from a DropDown which will have the list of all the Approvers. How can I integrate this with UWL so that the Approver can logon to the Portal to Approve /Reject the workitem.
    Any help would be highly appreciated.
    Thanks in advance.

    you need to create the task entry in uwl xml file for your workflow task to call for an application.
    you can check performance management worklfow ws12300122 that has task 12300110.
    to execute a webdynpro abap application for task 12300110 below xml content in uwl configuration is required.
       <ItemType name="uwl.task.webflow.TS12300110.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType="TS12300110" 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="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                        <Property name="WebDynproApplication" value="HAP_MAIN_DOCUMENT"/>
                     <Property name="PLAN_VERSION" value="${item.PlanVersion}"/>
                     <Property name="APPRAISAL_ID" value="${item.ID}"/>
                     <Property name="PART_AP_ID" value="${item.PartID}"/>
                        <Property name="wi_id" value="${item.externalId}"/>
                        <Property name="MODE" value="X"/>
                      <Property name="sap-wd-configId" value="HAP_AC_MAIN_DOC"/>
                        <Property name="openInNewWindow" value="yes"/>
                     <Property name="System" value="SAP_Webdynpro_ABAP"/>
                      <Property name="WebDynproNamespace" value="sap"/>
                       <Property name="display_order_priority" value="5"/>
                   </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>
    Do respond for futher queries.

  • Webdynpro ABAP Travel and Expenses

    Hi All,
             I have configured Webdynpro ABAP Travel and Expenses with ESS 1.41. I am able to submit an expense request and view the PDF form when I click on the Display form in the request. I am using the standard worklfow WS20000040 for trip approval. When I submit a trip it comes back to the employee for for the trip consistent check. In this step when I click on the "Display Form" button I am getting the error "Value null of URL parameter SAP_FITV_PERSNO has the wrong type".
    I followed the steps mentioned in the migration guide attached to the note 1076144 and I have uploaded the XML file provided for EHP4 in the portal.
    XML
    ===
        <Action name="com.sap.pct.erp.mss.tra.action.DisplayExpenseForm" groupAction="" handler="SAPWebDynproABAPLauncher" referenceBundle="com.sap.pct.erp.mss.tra.DisplayForm" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="toolbar=no,menubar=no">
          <Properties>
            <Property name="WebDynproApplication" value="FITV_TRIP_FORM"/>
            <Property name="SAP_FITV_TRIPCMP" value=""/>
            <Property name="SAP_FITV_TRIPNO" value=""/>
            <Property name="System" value="System_Alias"/>
            <Property name="WebDynproNamespace" value="sap"/>
            <Property name="display_order_priority" value="10"/>
            <Property name="SAP_FITV_PERSNO" value="${item.EmployeeNumber}"/>
          </Properties>
        </Action>
    But if I hard code the TRIP number and Personnel number the PDF forms opens correctly.
    XML
    ===
        <Action name="com.sap.pct.erp.mss.tra.action.DisplayExpenseForm" groupAction="" handler="SAPWebDynproABAPLauncher" referenceBundle="com.sap.pct.erp.mss.tra.DisplayForm" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="toolbar=no,menubar=no">
          <Properties>
            <Property name="WebDynproApplication" value="FITV_TRIP_FORM"/>
            <Property name="SAP_FITV_TRIPCMP" value=""/>
            <Property name="SAP_FITV_TRIPNO" value="123456789"/>
            <Property name="System" value="System_Alias"/>
            <Property name="WebDynproNamespace" value="sap"/>
            <Property name="display_order_priority" value="10"/>
            <Property name="SAP_FITV_PERSNO" value="00945892"/>
          </Properties>
        </Action>
    The bindings in the workflow are correct, I am not sure why the values are not being passed from the UWL to the FITV_TRIP_FORM application.
    If you have encountered this issue, can you please let me know how you fixed this.
    Thanks,
    Anand

    Hello krupanand,
    We are also facing the same issue.
      But still we are facing the issue.  we have implimented the note 1076144 but not 1239932.
    Is it mandatory to impliment  the second note.
    The reason we didnt impliment note 1239932 is that,  we are not using FITV_POWL_TRIPS  application.
    we are using the UWL iview for travel workitems
    Kindly help in sorting this issue.
    BR,
    Harthi

  • Open Webdynpro ABAP application from UWL

    Hello Experts,
    The requirement is we need to open the Custom Webdynpro ABAP application when the user clicks on the UWL tasks instead of ITS based screen.
    We have created a custom workflow task. Then we maintained the task entry with Webdynpro ABAP application name in SWFVISU transaction.
    After re-registering the UWL connector in Portal I could not find the Task ID in UWL definition. In UWL the task item is visible but could not open the task because the UWL could not identify the task no for this.
    Am I missing something in the above steps?
    Kindly help.
    Kind Regards,
    Nirmal Sivakumar G

    Any thoughts on this issue guys?

  • Web Dynpro ABAP with workflow in EP

    Hi friends..
    I wants my web dynpro application in EP workflow (its a form which needs to be field by multiple users).. can u suggest how to do this , i am new to EP as well webdynpro ABAP.. please suggest how to proceed..
    regards
    siddharth

    Hi Siddarth,
    I can help you through some links are available here...
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    https://www.sdn.sap.com/irj/sdn/ep?rid=/webcontent/uuid/fe7a864d-0a01-0010-5c9f-992510042c41 [original link is broken]
    /thread/113025 [original link is broken]
    Thanks and Regards,
    Prabhakar Dharmala

  • Start both Webdynpro JAVA and WebDynpro ABAP from UWL

    Hi all:
    We are facing a situation. We need to start both JAVA dynpro and ABAP dynpro applicaiton from uwl. The JAVA dynpro application is the ESS absense request. And we also developed other workflow which use ABAP dynpro as work item . The problem is when we regist our ECC system to UWL, the system can only provide  WAS java information or WAS ABAP. So there are alway one type of our work items can't start correctlly. How can I modify the UWL configuration to meet our requirement?
    Anyone knows please notify, thank you very much!
    Wayne

    Hi,
    when you try to register backend system , you will choose system alias which was already existing in the portal which has WAS hostname and port.
    that is sufficient. Based on visualzation parameters , you can launch webdynpro abap/java tasks.
    check below article
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf
    Regards,
    Koti Reddy

Maybe you are looking for

  • Adobe Shape for Android?

    Are there any plans on the Android version?

  • How to add new signature in Control Recipe

    Hi Friends I am trying to add new signature/user id in control recipe. But I did not find any option. Can anybody guide me as how to add. Pls send me step by step procedure. Thanks

  • Where are root certificate located in OS 10.6.8?

    I have been using Outlook for my mail, as Mail has dropped several attachments and does not seem to be as reliable.  However, I am receiving error messages informing me that the root certificates for my .me account are not trusted.  I accessed Keycha

  • Tree node icon from XML

    Is there a way to define a linkage id to set the icon for the tree component in external XML? This is what I tried and it does not work. <node label="Test" data="SomeID" icon="SomeLinkageID"> The tree node is using the default folder icon. I know I c

  • Change Search UIBB dynamically.

    Hi Guys,              The search fields of search UIBB are defined in method : GET_DEFINITION of the feeder class using a strucutre. My requirement is to hide / show certain search fields based on an event at runtime. I donu2019t want to restart the