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

Similar Messages

  • I have the iPhone 4S and my daughter has the iPad 2, we share one Apple ID, is there anyway to stop her text messages from appearing on my iPhone and vice versa?

    I have the iPhone 4S and my daughter has the iPad 2.  We share my Apple ID.  Is there any way to stop her text messages from appearing on my phone, and vice versa?  She doesn't need to be reading my texts!

    no, there currently is no way of doing this. You can only create a second Apple ID.

  • Dynamic data flow from sales order to delivery and vice-versa

    Hi Experts,
    One of our teams working for a client (transportation industry) on ECC 6.0 is facing an issue in relation to copying of partner data. (Ship-to-party address field changes to be precise)
    Currently, whenever the partner address data changed in a Sale order, though delivery is already created prior to this change, the change done is dynamically getting reflected in delivery too. Further, if the partner data in the delivery is changed, this also is getting updated on the preceding document i.e. sales order.
    We have checked the copy controls under VTLA and didn’t find any specific modifications made in this regard. Our question is:
    Is there any configuration available in standard SAP through which the data updates (like header data viz. partner field data etc.) get dynamically updated forward and backwards in a sales flow(i.e. from sales order to delivery and vice-versa)
    Your help on this will be highly appreciated.
    Regards,
    Jagan

    if the partner data in the delivery is changed, this also is getting updated on the preceding document i.e. sales order.
    The standard functionality is if you change the address of a partner function, the same will get reflected in an existing sale order.  This being the case, can you reconfirm your statement that in delivery, if you change the partner function, the same will get updated in sale order also?
    G. Lakshmipathi

  • How to transfer texts from text control to table and vice versa

    Hi
    if anybody can give me link or any code giving how to transfer text from text control to table and vice versa, that will be of great help to me
    THanks in advance

    Rashmi,
    Use the methods GET_TEXT_AS_R3TABLE / SET_TEXT_AS_R3TABLE and then you will have to use the SAVE_TEXT to store in the database.
    The GET_TEXT_AS_R3TABLE method will give you back a internal in which text, in which text on the screen is existing. Similarly once you fetch the data from database using READ_TEXT, use the method SET_TEXT_AS_R3TABLE to put the text on the screen.
    These methods belong to class CL_GUI_TEXTEDIT class.
    Regards,
    Ravi
    note : Please mark all the helpful answers

  • What is the difference between action and workflow? How do I decide that I need an action in a transaction and not a workflow and vice versa?

    Dear Experts,
    I have few doubts and request your expert inputs to clarify my doubts.
    What is the difference between action and workflow? How do I decide that I need an action in a transaction and not a workflow and vice versa?
    Your earliest response is highly appreciated.
    Thanks,
    SMTP

    Hi SMTP,
    First of all, as I mentioned action is nothing but an executable work item which is designed in the workflow itself. In other words, Workflow is like your OOPS class. At run time, workflow instances are created just like objects of classes. Now, the steps designed in the workflow are called TASKS and the instances of tasks are called WORKITEMS. Now, the work items where any user action is required are called executable work items. ANd the work items where no user action is required (for example, sending an email in background) are called non-executable work items.
    Whether to go with development of workflow or not depends upon your business scenario. If your requirement is only to send an email and you find any BAdi or exit where in you can write your logic then there is no need of creating a workflow. If there is a defined business process with defined users and time lines, then you can go with the development of workflows.
    Rest, the below link will help you in understanding basic concepts of workflow :
    Why use SAP Workflow? | Insight Consulting Partners
    Regards,
    Richa

  • How to convert from UNICODE (UTF16) to UTF8 and vice-versa in JAVA.

    Hi
    I want to insert a string in format UTF16 to the database. How do I convert from UTF16 to UTF8 and vice- versa in JAVA?. What type must the database field be? Do I need a special set up for the database (oracle 8.i)?
    thanks
    null

    I'm not sure if this is the correct topic, but we are having problems accessing our Japanese data stored in UTF-8 in our Oracle database using the JDBC thin driver. The data is submitted and extracted correctly using ODBC drivers, but inspection of the same data retrieved from the GetString() call using the JDBC thin driver shows frequent occurrences of bytes like "FF", which are not expected in either UTF8 or UCS2. My understanding is that accessing UTF8 in Java should involve NO NLS translation, since we are simply going from one Unicode encoding to another.
    We are using Oracle version 8.0.4.
    Can you tell me what we are doing wrong?
    null

  • How do I sync my event colors from treo 650 to iCal and vice versa?

    heres the deal:
    in using iCal and my Treo 650 (Verizon), I have been iSyncing the two together. While all the data and calendar events, contacts from Address book, tasks from task list transfer no problem, none of the event colors sync up. If an event from iCal is marked red, it moves to the Treo in "unfiled" gray. If the event is on the Treo and moves to the iCal, it is automatically shuffled under the default color code in the Options category.
    If the event is on both the Treo and iCal as red, and I edit the iCal version and then sync the two, it changes the Treo version back to "gray", even though both tools have the same color options and the same categorizations. although this sounds like a small glitch, I run a tour guiding business with multiple tour guides and the color coding is crucial to my PDA, so its driving me absolutely crazy. I bought my Treo with the promise that everything would sync up with the iCal, and it wont.
    What do I do?

    The behavior you describe is a characteristic limitation of the iSync Palm Conduit.
    The Missing Sync for Palm OS from Mark/Space supports categories and groups, and therefore—on advanced Palm OS devices like your Treo 650 smartphone—calendar colors. You can learn more about this application here:
    http://www.markspace.com/missingsync_palmos.php
    The Mark/Space Knowledge Base says this about categorization:
    Calendars and Categories
    • iCal events are assigned to a Palm category with the same name as the calendar they are part of. If the category does not exist on the Palm device, the Events conduit creates a category with the calendar name and assigns the event to that category. If that category cannot be added—due to space limitation—the event is added to Unfiled.
    • Palm events/tasks that are in a specific category are sent to that calendar in iCal only if a calendar with the same name as the category exists. If the calendar does not exist, the record will be sent to the calendar that is chosen in the conduit configuration sheet. If the calendar is read only, the event/task will be ignored.
    • On the first synchronization of read-only calendars, the items are properly assigned to the correct category on the device. If any edit is made to an item in a read-only calendar the change is ignored but will persist on the device until something forces it to be overwritten by data from the desktop, for example: if the read-only item was updated. If an item is assigned to a read-only calendar it will be switched to the calendar you have selected in your preferences.
    • Calendars listed in the conduit settings are pulled from Sync Services, meaning that if iCal has not finished synchronizing with Sync Services the full list of calendars may not be read.

  • Data from R/3 to APO and vice versa

    Hi,
       Does anyone know what data is usually sent from R/3 to APO and from APO to R/3?
    Thanks

    Hi Disha,
        could you please let me know what is PPM and also what data is transferred back to R/3?

  • Changing from finite to continuous samples and vice versa?

    Hello,
    I have a problem which I'm trying to overcome: I have a measurement system consisting of an analog output and reading two analog inputs. I would like to run it continiously to monitor the current values (without saving the previous data), however, when I click something like a record button, I'd like to start a recording of a predefined period (like a finite samples measurement) and then restarting the monitoring without saving again.
    Currently my measurement program is based on the examples "Continuous AO" and AI vis, and are made with continuous sample mode and while loops. How can I insert a record button?
    I tried putting event handlers in the measurement loop, however it suspended the loop from running.
    I attach a screenshot of my current measurement loop. (With the shift register I tried to read data, however I cannot get it out of the loop, until the loop is stopped)
    Thank you in advance
    Engage! using LV2012
    Attachments:
    question.png ‏81 KB

    I have tried adopting something similar, however it doesn't work the way it should. (Or at least the way I think it should) Could you please help me ironing it out? I've seen some vis on the internet with queue-controlled (but only one-way) and tried adopting them.
    The MainProgram vi is the app, with some settings (now limited to a signal file selection and channel settings). Then the data acquisition can be started by clicking the Start Acq button.
    And here come my problems: first sometimes the queue starts, sometimes it doesn't (or at least it doesn't start the data acquisition). And the main point: I set the sample rate, yet it is acquired at a much-much slower rate (my signal has a period time of 4 seconds, yet it needs at least 20 seconds to get near finishing). And the strangest: sometimes, mostly after some time (about 1-2 min) it hangs and does nothing with the daq (yet labview seems responsive, just my program hangs somewhere).
    So now only the controlled acquisition is in the problem and first I don't care about forwarding the data for analysis and saving. (That seems to be the smaller problem).
    What am I doing wrong? Thanks for your help. 
    I attach all the files.  (MainProgram is the app itself, MY.SIGNAL is the signal file I want to output.) I use a USB-6211 device. (at work a physical one, at home a simulated one).
    Engage! using LV2012
    Attachments:
    queued_daq.zip ‏366 KB

  • Same MessageID  from sender(Webservice) --  PI --  ECC and vice versa

    Folks,
    We have a sender and receiver  webserver which has its own monitoring system in it and it tracks messages by means of Message ID which it creates .
    Now this web service when hits PI it sends the message ID in a field in payload.
    The message ID which the webservice sends is now different then which is created in PI as the  message propagates
    The same message ID is created in ECC as we all know .
    Now Our problem is we are  finding it difficult to track messages from webservice Outbound as well as inbound
    If there are 100 messages we have to search on the basis of time only , we cant search on message ID
    My question is can we have a unique message ID throughout the scenario.
    ( i.e webservice -- PI-- ECC and ECC -- PI --Webservice)
    Please  help
    thanks
    Ninad

    Thanks Gouri ,
    In case of webservice sender the webservice sends a message ID in a payload ( they have there own monitoring using there own message ID )
    Being in Support , I get a call that message belonging to  xxxxx message ID has failed. Now when I look in SXMB_MONI
    I see 1000 messages between same sender and receiver.
    I have to check payload and check the said message ID and then find the message , this is Cumbersome
    hope we find some better approach
    Thanks
    Ninad

  • MFP Anomaly Detected Access Points are moving from one wlc to another and vice versa

    Hi together,
    a customer has lost some Access Points to another WLC with 7.2  and then they come back after 15 minutes to the origin WLC with 7.5
    Attached the messages
    MFP Protection is configured as optional
    152
    Wed Nov 27 05:33:26 2013
    MFP Anomaly Detected - 1 Not encrypted event(s) found as   violated by the radio 58:bf:ea:0f:67:4a and detected by the dot11 interface   at slot 1 of AP 58:bf:ea:0f:67:40 in 300 seconds when observing . Client's   last source mac 70:11:24:e4:43:0f
    153
    Wed Nov 27 05:31:40 2013
    AP Disassociated. Base Radio MAC:88:43:e1:56:91:d0
    154
    Wed Nov 27 05:31:40 2013
    AP's Interface:0(802.11b) Operation State Down: Base Radio   MAC:88:43:e1:56:91:d0 Cause=New Discovery Status:NA
    155
    Wed Nov 27 05:31:33 2013
    AP Disassociated. Base Radio MAC:58:bf:ea:0f:73:d0
    156
    Wed Nov 27 05:31:33 2013
    AP's Interface:1(802.11a) Operation State Down: Base Radio   MAC:58:bf:ea:0f:73:d0 Cause=New Discovery Status:NA
    157
    Wed Nov 27 05:31:33 2013
    AP's Interface:0(802.11b) Operation State Down: Base Radio   MAC:58:bf:ea:0f:73:d0 Cause=New Discovery Status:NA
    158
    Wed Nov 27 05:31:28 2013
    AP Disassociated. Base Radio MAC:58:bf:ea:0f:fc:20
    159
    Wed Nov 27 05:31:28 2013
    AP's Interface:1(802.11a) Operation State Down: Base Radio   MAC:58:bf:ea:0f:fc:20 Cause=New Discovery Status:NA
    160
    Wed Nov 27 05:31:28 2013
    AP's Interface:0(802.11b) Operation State Down: Base Radio   MAC:58:bf:ea:0f:fc:20 Cause=New Discovery Status:NA
    161
    Wed Nov 27 05:31:17 2013
    AP Disassociated. Base Radio MAC:b4:e9:b0:e4:02:20
    162
    Wed Nov 27 05:31:17 2013
    AP's Interface:1(802.11a) Operation State Down: Base Radio   MAC:b4:e9:b0:e4:02:20 Cause=New Discovery Status:NA
    163
    Wed Nov 27 05:31:17 2013
    AP's Interface:0(802.11b) Operation State Down: Base Radio   MAC:b4:e9:b0:e4:02:20 Cause=New Discovery Status:NA
    164
    Wed Nov 27 05:31:15 2013
    AP Disassociated. Base Radio MAC:a4:18:75:eb:da:b0
    165
    Wed Nov 27 05:31:15 2013
    AP's Interface:1(802.11a) Operation State Down: Base Radio   MAC:a4:18:75:eb:da:b0 Cause=New Discovery Status:NA
    166
    Wed Nov 27 05:31:15 2013
    AP's Interface:0(802.11b) Operation State Down: Base Radio   MAC:a4:18:75:eb:da:b0 Cause=New Discovery Status:NA
    167
    Wed Nov 27 05:28:26 2013
    MFP Anomaly Detected - 35 Not encrypted event(s) found as   violated by the radio d8:24:bd:2f:df:6f and detected by the dot11 interface   at slot 1 of AP d8:24:bd:2f:df:60 in 300 seconds when observing Deauth.   Client's last source mac 00:23:14:a7:e3:54
    168
    Wed Nov 27 05:23:26 2013
    MFP Anomaly Detected - 23 Not encrypted event(s) found as   violated by the radio f8:4f:57:a5:40:b2 and detected by the dot11 interface   at slot 0 of AP f8:4f:57:a5:40:b0 in 300 seconds when observing . Client's   last source mac 44:4c:0c:ba:27:77
    Don´t know at the moment how to handle it.
    Regards
    Alex

    Hi lAlex,
    Disable Client MFP under WLAN advanced tab & see if  this still occur
    Regards
    Rasika
    **** Pls rate all useful responses *****

  • Synching Contacts from Outlook (2003) to Iphone and vice versa

    Can anyone tell me how I can have edited contacts update same contact on the Ipohne and how can I get edits or new contacts I enter on my Iphone to add or change on my Outlook.  Other smartphones I had were able to perform this function.  Help anyone?

    Yes, Outlook is normally where the iPhone gets its contacts when using Windows. If the contacts are on an Exchange server and you set up mail, contacts and calendar (in Settings) on the phone to point to the server it will happen automagically.
    If the contacts are only on Outlook and you do not sync to an Exchange server they contacts will sync when you sync the phone to iTunes by cable. There is a one-time setup step; tap on the Info tab in iTunes when the phone is connected and check the box to sync Contacts.
    BTW, this is not a copy. It is a sync. Changes made on either side are copied to the other on the next sync or via push if through Exchange.
    Message was edited by: Lawrence Finch

  • Navigate from WebDynpro Application to BPS Layout and vice versa

    Hi,
    Please see the following Problem Statement:
    We have WebDynpro applications and BPS applications in our project. All the applications are published via SAP Portal. Both areas (WebDynpro and BPS) have same selection screen (Selection fields are common). Is it possible to call
    WebDynpro application from BPS layout (on click of button)and also passing the selection parameters to the WebDynpro application and vice-versa.
    - Sujal Shah

    Hi,
    You can you free tool from Oracle called OMWB (Oracle Migration Workbench) for SQL Server to Oracle.
    For more details, visit http://www.oracle.com/technology//tech/migration/workbench/index.html
    From Oracle to SQL Server, there are third party tools available.
    Cheers,
    Harshw
    Message was edited by:
    [email protected]

  • 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

  • Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input

    Dear Friends,
    We are facing a serious problem for debugging. Expecting valuable input for the same.
    Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input in Production Server.
    The debugging (for WebDynpro-ABAP application) is working in Dev. Server for
    1st ] Within R/3
    Ex. debug for bapi within R/3. i.e. value enter as input in R/3 only.
    2nd ] From webpage to R/3
    Ex. Some input given on the internet web page developed through WebDynpro and external breakpoint set in R/3 it works. It directs to R/3 code through debugging.
    In Prod. Server the 1st case above is working but the 2nd case is not working.
    In Prod. Server the WebDynpro developed applications are running successfully through internet explorer webpage inputs. So running the application is not a problem in prod. Server but debugging of the same is the problem.
    The setting which are done in Prod. server are,
    1] RZ10 in parameters are set for port and host name.
    2.1] In SMICM check for ICM.
    2.2] Host file updated in Windows-System 32.
    3] In SICF following services are active,
    3.1] default_host/sap/bc/webdynpro
    3.2] default_host/sap/public/bc
    3.3] default_host/sap/public/bc/webdynpro/viewdesigner
    3.4] default_host/sap/bc/wdvd
    3.5] default_host/sap/public/icman
    3.6] default_host/sap/bc/gui/sap/its/webgui
    3.7] default_host/sap/public/ping
    3.8] default_host/sap/bc/error
    3.9] default_host/sap/bc/echo
    4] In SE80
    4.1] Internet services-System-are published
    4.2] Internet services-WEBGUI-are published
    4.3] Utilities-Setting-ABAP Editor-Debugging-Username & New Debugger set.
    4.4] Utilities-Setting-ABAP Editor-Editor-Front-End Editor(New) set.
    5] In Su01 for user profiles sap_all & sap_new is assigned and role  SAP_BC_WEBSERVICE_DEBUGGER is assigned.
    6] The support packages are also updated to latest level.
    7] Gone through following links but not getting any clues.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/74d50bd1431b5ae10000000a42189c/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/EN/77/3545415ea6f523e10000000a155106/frameset.htm
    Thanks in Advance.
    Best Regards,
    Abhijit.

    No cross posting
    Read the "Rules of Engagament"
    Regards
    Juan

Maybe you are looking for

  • ITunes 10.7(21) freezes when iPhone 4 (iOS 6) plugged in

    Hello, Since the latest iTunes update to 10.7, I can no longer plug in my iPhone, iPod without iTunes freezing. iTunes stops responding, and the only way to get out of it is to force quit. This occurs accross two 21" iMacs, one running Mountain Lion

  • IPod not working with Windows 7

    My iPod (an iPod color), when connected to my PC with Windows 7 RC, gives me the error message that the driver for the iPod failed to install properly. I have uninstalled and reinstalled iTunes, but to no avail. Can anyone help? The iPod otherwise wo

  • 1.4.2_13 Oracle Forms - Problem after change of JAR, JRE does not respond

    Hi, We use JRE version 1.4.2_13 as this was the certified version for Oracle Forms 10g. We recently implemented a new module that uses a Java Bean. We use Java Beans already but this one allows the user to save from an Oracle Form to there PC. Becaus

  • Problem in netprice(urgent requirement)

    hello every one. there is a problem in net price(NETPR). in me23n it is showing 0.2345 i.e more than 3 or 4 decimal places. but if we use in reports it is showing only 0.00 i.e two digits after decimal. i want more than 2 decimals.plz go through this

  • Consolidation in BPC 7.5 NW

    Hi Experts, Could you please let me know what is consolidation in BPC and how helpful it would be for Planners. Please send me the basic documents related to consolidation . Thanks. Regards, Sanjeev