Drag and drop request

I was waiting for 1.1 as it was supposed to fix drag'n'drop issue on Windows (a lot of quiet Win-Mac differences in Lr...).
I expected this to fix one of the main issues with Lr that I have. That is: I can send RAW files to Photoshop through CameraRAW (to be used as Smart Objects for example) from every software - 5 years old ACDSee, Photoshop Album/Elements Organizer, Win Explorer, you name it, simply by dragging them and dropping onto Ps. No luck with Lightroom! Lightroom seems to be the least integrated when it comes to this!
But dragging files OUT OF Lr is still not working. In 1.1 there is at least a workaround but it involves copying the RAW files :-O.
I would love the ability to drag and drop multiple files out of Lr.
Thank You
m.
p.s. I would also like the sidecar files to travel with the dragged files [a bit like Easy Rider :-S]

Witkacy > "I would love the ability to drag and drop multiple files out of Lr.
Thank You
m. "
Me: "I subscribe!!"
Put in other words, I'd like to open the selected files in LR (either RAWs or JPEGs) in third party tools. How do I do that?

Similar Messages

  • Drag and Drop Tutorial  -- Most Requested

    Tutorial for one of the most reqeusted questions made! how to make drag and drop in Adobe Edge Animate , Check it out : http://www.edgehero.com/tutorials/draganddrop

    [url http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html]Introduction to Drag and Drop

  • Select All in a table does not work for Drag and Drop

    Hi. I am using Jdeveloper 11.1.1.2 but have also reproduced in 11.1.1.3.
    I am trying to implement drag and drop rows from one table to another. Everything works fine except when I do a Select All (ctrl-A) in a table, the table visually looks like all rows are selected, but when I try to click on one of the selected rows to drag to the other table, only the row I click on is dragged.
    I tried setting Range Size -1, fetch mode to FETCH_ALL, content delivery to "immediate" but nothing works.
    I even have reproduced not using a view object but just a List of beans with only 5 or 10 beans showing in the table.
    Does anyone know how to get Select All to work for a Drag Source?
    Thanks.
    -Ed

    Frank-
    OK, thanks for looking into that. I also submitted this service request, which includes a simple sample app to demonstrate the problem:
    SR #3-2387481211: ADF Drag and Drop does not work for rows in table using Select All
    Thanks again for the reply.
    -Ed

  • How do I set up my drag and drop questionaire to export to a XML file?

    How do I set up my drag and drop questionaire to export to a
    XML file?
    I have a 70 seperate SWF files that pose a question and
    contain a drag and drop rank order response of 1,2,3,4.How do I set
    up a XML file that receives the responses.I don't understand how to
    do the Actionscript
    and get my responses to connect to the XML.Please
    Help!Thanks!
    Here's an example of my XML.
    <assessment>
    <sessionid>ffae926ea290ee93c3f26669c6c04a92</sessionid>
    <request>save_progress</request>
    <question>
    <number>1</number>
    <slot_a>2</slot_a>
    <slot_b>1</slot_b>
    <slot_c>4</slot_c>
    <slot_d>3</slot_d>
    </question>
    <question>
    <number>2</number>
    <slot_a>4</slot_a>
    <slot_b>3</slot_b>
    <slot_c>2</slot_c>
    <slot_d>1</slot_d>
    </question>
    <question>
    <number>3</number>
    <slot_a>1</slot_a>
    <slot_b>2</slot_b>
    <slot_c>3</slot_c>
    <slot_d>4</slot_d>
    </question>
    </assessment>

    Use XML.sendAndLoad.
    http://livedocs.macromedia.com/flash/8/main/00002879.html
    You will need a server script to receive the XML structure
    and it depends on
    the server scripting language how you obtain that data. Then
    you can either
    populate a database or write to a static file or even email
    the XML data
    received from Flash.
    For a basic example, I have two links I use for students in
    my Flash
    courses:
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLASP/Ex01/XMLASPEchoEx01_D oc.php
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLPHP/EX01/XMLPHPEchoEx01_D oc.php
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "kenpoian" <[email protected]> wrote in
    message
    news:e5i9hp$cs6$[email protected]..
    How do I set up my drag and drop questionaire to export to a
    XML file?
    I have a 70 seperate SWF files that pose a question and
    contain a drag and
    drop rank order response of 1,2,3,4.How do I set up a XML
    file that receives
    the responses.I don't understand how to do the Actionscript
    and get my responses to connect to the XML.Please
    Help!Thanks!
    Here's an example of my XML.
    <assessment>
    <sessionid>ffae926ea290ee93c3f26669c6c04a92</sessionid>
    <request>save_progress</request>
    <question>
    <number>1</number>
    <slot_a>2</slot_a>
    <slot_b>1</slot_b>
    <slot_c>4</slot_c>
    <slot_d>3</slot_d>
    </question>
    <question>
    <number>2</number>
    <slot_a>4</slot_a>
    <slot_b>3</slot_b>
    <slot_c>2</slot_c>
    <slot_d>1</slot_d>
    </question>
    <question>
    <number>3</number>
    <slot_a>1</slot_a>
    <slot_b>2</slot_b>
    <slot_c>3</slot_c>
    <slot_d>4</slot_d>
    </question>
    </assessment>

  • Really stupid that you can't drag and drop photos from Finder into Events

    There is no way in iPhoto to do what I want and need to to, to wit, drag and drop photos from the Finder into existing iPhoto Events.
    It really doesn't make sense that you can't do this. First of all, calling these groups Events to begin with is not smart; in my case, a group of photos in a folder on the Finder is rarely all from one photo session or so-called "event"--- instead of Events they should just be called Groups or something, and you should be able to drop individual photos into them. I have thousands of family photos that were accumulated on my hard drives over the years, some scanned in from film negatives, slides, or prints, others from digital cameras, and when I have changed Macs and hard drives over the years, every time a folder of photos was moved from an old hard drive to a new one, or regrouped into various folders, the photos seem to have acquired new dates of origin, etc.
    Anyway, what I mean is, if Events are all time based, then somebody like me who has thousands of photos with all sorts of dates of origin, mostly unrelated to the date that the photo was actually shot, is screwed. I have old photos with new dates of origin and other mismatches between photos and the dates when they were actually shot or scanned.
    My gripe is, again, that when I find photos on my hard drives that belong in certain iPhoto Events that have already been created, I cannot just drag these photos from the Finder and drop them into the Events they belong in. Instead, the stupid program creates a new Event from each photo I try to drop into an existing Event. That means I have to chase these new photos all over the place inside of iPhoto, trying to figure out where each new photo (now called an "Event") has ended up, so that I can drag and merge it into the Event I wanted it to go into in the first place. A real pain in the neck. It simply takes too long to do this for each photo added.
    What this means is that iPhoto is not going to be a practical way to organize for a person like me until Apple makes it possible to simply drop any photo from the Finder into an existing Event. There should be an option to allow that. I'm really surprised there is not one. <edited out by Hosts>
    Tom

    Tom, iPhoto will not overwrite photos with the same name. I have plenty of photos with the same name in the same event. Each photo most likely has an internal handler that manages the photo, and not just the name of the file.
    I agree with you that this is sub-optimal, and (IMO) I think what happened is iPhoto 6 had rolls, and they came up with a really cool interface for mousing over those rolls, and decided it was more consumer friendly (and because film is a thing of the past) to call them events, rather than rolls. I think it was worth a shot, but they just slightly missed.
    Right now in iPhoto08, any serious organization is done in folders and albums. Personally, I think they need to combine the two concepts -- the great "mouse over" view of events with the organization abilities of folders and albums. I'd like an albums view where I can mouse over the albums. Actually, Aperture 2's interface for organization is more functional than iPhoto, so I am hoping some of that benefit creeps into the next iPhoto release.
    What I do is: I use events for high level grouping (like Winter 2007) and I organize folders and albums to break that down further ("trip to Montreal" "Christmas" etc.). But I do it backwards. I fill albums first, then I organize events.
    When I drag in pictures to iPhoto, first I make the target album in iPhoto that I want to populate, then I drag the photo directly to that album (not to events). iPhoto automatically puts the photo into the album I created and also into a new event. Later, I go into events, right-click on this new event to "open event in separate window" then I move around the events view, to drop in the pictures from the "import" event I just created. If I move all the pictures into other events, iPhoto automatically deletes the event I just emptied. You could skip the event organization all together if you wanted to, but you'd lose the cool mouse-over feature, which can be handy.
    One nice thing about having events AND albums is you can have the photo just once in iPhoto, in an event, but then have the photo appear in as many albums as you want (as well as projects and web galleries) all while only having one photo on your hard drive. So, there are benefits to events, but I think iPhoto is missing just a couple little bits of organizational ability to make it perfect. (and yes, I've submitted this all to Apple as feature requests)
    Just in case you don't know -- events don't have any hierarchy. That is, you can't nest events. But you can have folders with subfolders, and any folder can contain albums. Albums cannot have sub-albums, and folders don't hold photos. Only albums hold photos, and folders (or sub-folders) hold albums. Try create some folders and albums and you'll get the hang of it. One other issue that Apple needs to address. When you create a new folder or album, it doesn't put it right where you want it, but rather puts it at the bottom of the list, so you have to drag it up to where you want it. Try it out, and you'll see what I mean, then submit it as a feature request to improve that.
    I agree it's not perfect, but it's not too bad once you get used to it. And the benefits of working with the rest of the features of iPhoto is worth it. I'm just really hoping they do a few tweaks on the next release. They are near greatness here. They could just use a little nudge on the last bits. (in my opinion of course. Others may disagree, but I've talked to enough people who have the same issues you are having to know we are not alone on this).

  • Possible Bug with Drag-and-Drop Being Published via HTML5 - Getting "Undefined" Error When Dragging Object

    Hello,
    I came up with a way to use drag-and-drop interactions that will take advantage of file input so that I may create a drag-and-drop interaction that uses one draggable object over and over allowing multiple scoring/tracking possibilities.  Example use...is having the draggable object be dynamic in that it randomly changes its text so that a learner can drag a term it's possible classification.........thus allowing the possibility of having many terms easily loaded without having to redo a drag-and-drop interaction for each needed terms/classifications updates/changes.
    My Issue: When using a variable to represent the text for a draggable Smart Shape object, I'm getting the error message "undefined" when, clicking/pressing on the object, as well as during the drag of the object. This issue occurs when publishing the project in an HTML5 format.  Flash interestingly enough seems to work perfect...but we are not interested in publishing via Flash any longer.
    To better help you explore this error message, I've set up a test project so that you can see when and how the "undefined" message shows up during a drag-and-drop interaction.  I've also included the Captivate 8 project file used to make the exploration project I'm sharing in this post.
    Link to Captivate project I created for you all to explore "undefined" error message": http://iti.cscc.edu/drag_and_drop_bug/
    Link to this Captivate 8 Project file: http://iti.cscc.edu/drag_and_drop_bug.cptx
    It's pretty interesting how things react in this demo, please try the following actions to see some interesting happenings:
    Drag the Yellow (or variable drag box) to the drag target.
    Drag Black Hello square to Drag target and click undo or reset - watch the undefined message come up on the Yellow (or variable drag box).
    Drag the Yellow (or variable drag box) to the drag target and then use the undo or reset.
    Move both draggable boxes to the drag target and use the undo and reset buttons...
    Anyhow, I know you all are sharp and will run the demo through its paces.
    I'd really be very honored if anyone help me figure out how I could (when publishing out to HTML5) no longer have the "undefined" error message show up when using drag-and-drop with a variable for shape text. This technique has been well received at the college I work at...and I have many future project requests for using such an idea on a variety of similar interactions. I'd love see a solution or see if this might be a bug Adobe may be able to fix!
    I tried to find a solution to the issue documented here for quite some time, but I was not able to find anyone with this problem much less attempting the idea I'm sharing in the help request -  save the darn "undefined" message that comes up!
    Many thanks in advance for any help and/or direction that you all may be able to provide,
    Paul

    Hello,
    I just wanted to supply a minor update related to my drag-and-drop question/issue stated above:
    I did another test using Captivate 7, and found that the undefined error (publishing as HTML5) does not appear and the variable data remains visible - except the variable data turns very small and does not honor any font size related settings.
    I did go ahead and submit this to Adobe as a possible bug today.
    Thanks again for any help related to this issue.  If the issued documented above is solved, it will allow many amazing things to be done using Captivate's drag-and-drop for both regular type projects as well as interaction development for iBooks! 
    Matter of fact if this issue gets fixed, I'll publish a Blog entry (or video) on way's I've used Captivate's drag-and-drop to create dynamic learning activities for Higher Ed. and for use in iBooks.
    ~ Paul

  • Drag and drop not working on Shared Folder

    I created sub-folder in a document library and gave certain users edit permission on that folder. 
    Users were able to upload file using Upload Document from the ribbon. However, when they use drag and drop they get the following message :
    The documents cannot be uploaded because different permissions are needed. Request the necessary permissions.
    Thanks,
    Omran

    Hi Omran,
    Yes, this is known issue in SharePoint 2013 that you will receive error when
    Draging and Dropping to a folder under the security context who doesn't have the edit/contribute permission in the list\library.
    In your case, I assume user B have the edit permission on the folder but only read permission on the document library the folder resides in.
    It happens because of the userhaspermission() function in dragdrop.js.
    function UserHasPermission() {
    var hasPermission = false;
    if (typeof g_currentControl.checkPermissionFunc == 'function') {
    hasPermission = g_currentControl.checkPermissionFunc();
    else {
    var dctx = ctx;
    if (fIsNullOrUndefined(dctx) || fIsNullOrUndefined(dctx.ListSchema) && dctx.ListRight_AddListItems == null || !fIsNullOrUndefined(dctx.ListSchema) && dctx.ListSchema.ListRight_AddListItems == null) {
    hasPermission = false;
    else
    hasPermission = true;
    if (!hasPermission)
    ShowErrorDialog(Strings.STS.L_NoUploadPermission, null);
    return hasPermission;
    dctx.ListRight_AddListItems, it check the user's permission on the list\library instead of the folder. Therefore, the workaround need coding.
    Miles LI TechNet Community Support

  • How can I allow a learner to review a created Drag and Drop Quiz to show the learner their incorrect/correct answers?

    Captivate 8: I have created an assessment with two multiple choice question slides and eight drag and drop question slides. After the learner views their score, I would like them to be able to review all of their answers to see where errors were made. Currently, the review quiz only shows their answers and the correct answers for Multiple choice question slides. Ideally, I would like a review of the drag and drop question slides where the incorrect choices are outlined in red or something to this effect. I appreciate any insight and suggestions!

    Sorry, D&D is not a normal question slide and I can only recommend logging a feature request. I would really like to be able to choose whether an interaction is reset or not, because this problem doesn't exist only for D&D but for all learning interactions as well.

  • Drag and drop file into Outlook from AIR application

    I am hoping to see if this would be possible with the Adobe AIR API. We currently have a desktop AIR application that clients install in order to facilitate certain operations triggered via a web application (such as opening files directly from the web).
    One of the actions we are requested to support is the ability to drag and drop files from our web application directly into Outlook and have the file added as an attachment. I saw the documentation at Adobe Flash Platform * Dropping file promises and was wondering if this might be a possibility, or if there was some other method of performing this.
    We are trying to get around the fact that users now have to download a document to their desktop before being able to attach in Outlook.
    Thanks for any assistance.

    You just aren't calling the right NativeDragManager functions. See http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7d83.html

  • Drag and Drop in a quiz

    Hi,
    I have a quiz in Captivate 7 that is using Submit All. Every question now has a "Clear", "Back", "Next", Submit All" button. I have created a drag and drop question using the new drag and drop functionality and selcted to include the question in the quiz. The problem is that I don't get the back, next or submit all buttons. I can use the Reset button and rename it Clear but Captivate has only added a Submit button, not a submit all button and I can't see how to change that or add the others.
    This quiz was originally built in version 6 and I used the drag and drop question widget from eLearning Bros but it doesn't work in version 7 and I'll need to publish this quiz in version 7.
    Thanks

    Hi there,
    Presently, you cannot add a Drag and Drop question as part of ‘Submit All'. Please file a feature request for the same in http://www.adobe.com/go/wish
    To add Back , Next buttons on a Drag and Drop question, Please add two button object on stage, Change the button text as 'Next', 'Back' and set actions as 'Go to Next Slide', 'Go to Previous Slide' accordingly.
    Hope this resolves the Next and Back button issues.
    Thanks,
    Nimmy Sukumaran.

  • Reordering of rows - issue with drag and drop of editable columns in table

    JDeveloper: 11.1.1.6.0
    ADF Faces - Drag and Drop for reordering of rows within the same af:table
    I have a requirement for reordering rows in a table using drag and drop. This table is loaded using a list and I am able to programmatically do the reordering of the rows based on the events of drag and drop by manipulating the list. Reordering of rows is working fine if all the columns are read only. For all the input text and input date columns the values are not getting reordered. Anyone has any idea on what the issue may be with reordering of the rows for editable columns/rows (af:inputText and af:inputDate) in af:table. Below is what Iam doing on drop event which is a collection drop target.
    public DnDAction dropCollection(DropEvent dropEvent) {
    try
    Object dropSite = dropEvent.getDropSite();
    Transferable transferable = dropEvent.getTransferable();
    DataFlavor<RowKeySet> rowKeySetFlavor = DataFlavor.getDataFlavor(RowKeySet.class, "rowmove");
    RowKeySet rowKeySet = transferable.getData(rowKeySetFlavor);
    RichTable table = (RichTable) dropEvent.getDragComponent();
    if (rowKeySet != null)
    CollectionModel dragModel = transferable.getData(CollectionModel.class);
    Object dragM = dragModel.getRowData(0);
    Object currKey = rowKeySet.iterator().next();
    dragModel.setRowKey(currKey);
    table.setRowKey(currKey);
    OrderData orderData = (OrderData)this.prodReportTableData.get(Integer.parseInt(currKey.toString()));
    this.prodReportTableData.remove(Integer.parseInt(currKey.toString()));
    this.prodReportTableData.add(Integer.parseInt(dropSite.toString()), orderData);
    OrderData orderDataAdded = this.prodReportTableData.get(Integer.parseInt(dropSite.toString()));
    JSFUtils.addPartialTarget(this.getProdReportTableBinding());
    catch(Exception e)
    e.printStackTrace();
    return DnDAction.MOVE;
    Code snippet from UI:
    <af:table value="#{pageFlowScope.prodReportBackingBean.prodReportTableData}"
    var="row" styleClass="AFStretchWidth" rowBandingInterval="0"
    rows="40" emptyText="No data to display." id="t1"
    partialTriggers=":::cb1" columnStretching="column:c3"
    binding="#{pageFlowScope.prodReportBackingBean.prodReportTableBinding}" summary="PROD TABLE">
    <af:dragSource actions="MOVE" defaultAction="MOVE"
    discriminant="rowmove"
    dragDropEndListener="#{pageFlowScope.prodReportBackingBean.afterDragAndDrop}"/>
    <af:collectionDropTarget dropListener="#{pageFlowScope.prodReportBackingBean.dropCollection}"
    actions="MOVE"
    modelName="rowmove"/>

    Hi,
    not sure its the reason but you have huge bummer in your configuration.
    <af:table value="#{pageFlowScope.prodReportBackingBean.prodReportTableData}"
    var="row" styleClass="AFStretchWidth" rowBandingInterval="0"
    rows="40" emptyText="No data to display." id="t1"
    partialTriggers=":::cb1" columnStretching="column:c3"
    *binding="#{pageFlowScope.prodReportBackingBean.prodReportTableBinding}"* summary="PROD TABLE">
    JSF component bindings should not be to beans in a scope larger than request to avoid stale component instances.
    Frank

  • How to perform a Drag and Drop operation on JButton in a JPanel?

    Hi guys,
    There is a requirement to perform Drag and Drop operation on JButton component added to a JPanel Componet.
    I could not get a proper solition to move the JButton component inside a JPanel component by drag and drop.
    I request every one to provide some related information on moving a JButton component using Mouse operation.
    Rajashekar.T

    Here is some code for moving a window around the screen. The concept would be the same for moving a button around a panel:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=599181

  • Drag and Drop between two JTables

    I tried to implement drag and drop between two JTables using data transfer, but i did not get it to work, that dnd works in both directions. i have my own transferhandler, but if is use setTransferHandler(handler), i'm no longer able to start a drag from that table. i also tried to use a mouse listener to call exportAsDrag, but i only works in one direction. any ideas or examples?

    That is a rather large request, and indicates that you have likely not spent much time researching the subject before posting. Read up on Swing drag & drop here (http://java.sun.com/docs/books/tutorial/dnd/), then ask specific questions about something you don't understand, problems with your implementation, etc.
    Mike

  • Wacky Drag and Drop issue with JNLP

    I'm sure I'll have to be a bit more descriptive but I'll just throw this out and see if anyone has any suggestions.
    I've got a swing app which is an administration tool to a rules engine I have built. I distribute the app to users using JNLP 1.2.
    Here's the problem. When I launch the app using JNLP, a portion of the app does not work. There is a panel in which I allow users to drag items off of a tree and onto a panel. They can drag and drop one item but when they attempt to drag and drop a second item it doesn't drop. If I take that same code which is being distributed via JNLP, copy it to the local machine and run it, it works. I can drag and drop all day long.
    There are no exceptions, no errors or funny gooey state things going on. I start the drag, the mouse pointer changes, I hover of the drop zone and let go of the mouse and it appears to drop, but the component does not show. Wacky.
    Does this set off any bells to anyone?
    Thanks,
    - Jay
    App compiled using 1.4.1_01.

    Ah ha.. Yes this does seem to the issue. Thanks for the response. I've tested it on a couple of machines and it works on the one's with 1.4.1 and it doesn't seem to work on 1.4.0 jre machines.
    NEW Question though, if I set my .jnlp to:
    <j2se version="1.4.1+"/>
    I get the 'ol 'Error Code 11 (11 Could not locate requested version'
    Is there any way to get this guy to auto-install???
    I've installed JRE 1.4.1 manually and it doesn't seem to pick that up either.
    Thanks...

  • Drag and drop in CRM7?

    Dear Experts,
    We are exploring the drag and drop functionnality for our client in SAP CRM7 standalone.
    I have found this solution in the scn http://scn.sap.com/community/developer-center/netweaver-gateway/blog/2014/11/12/file-uploaddownload-in-crm-webui-using-net-weaver-gatewayodata-services .
    However, I am new to SAP CRM and would like to know if this is a potential solution?  Has already implemented it before?
    Thanks a lot for your feedback,
    Regards,
    Emilie

    Hi Hari,
    Thanks for your concern !
    Regarding the requirement:  I am refering to the assignement block 'Attachment' in Service Request.
    We are looking for a functionnality Drag and Drop to upload multiple files from a desktop to the CRM_UI in one shot.
    Concerning the link, it is a post in the scn: http://http://scn.sap.com/community/developer-center/netweaver-gateway/blog/2014/11/12/file-uploaddownload-in-crm-webui-using-net-weaver-gatewayodata-services  , below is an extract:
    Thanks a lot for your help.
    Create the project in SEGW Transaction Code and the Entity Type:
    In the Entity Type Properties select the check box: Media
    And the properties of Entity Type are:
    And then map the RFC function module for the Create Operation in the Entity Set.
    And do the mapping for Get Entity (Read) Operation in the Entity Set.
    Then Redefine the DEFINE method in the *MPC_EXT class and add the below logic:
      METHOD define.
    super->define( ).
    DATA: lo_entity   TYPE REF TO /iwbep/if_mgw_odata_entity_typ,
           lo_property TYPE REF TO /iwbep/if_mgw_odata_property.
    lo_entity = model->get_entity_type ( iv_entity_name = 'TerritoryFileAttachment' ).
      IF lo_entity IS BOUND.
       lo_property = lo_entity->get_property( iv_property_name = 'MIME_TYPE' ).
       IF lo_property IS BOUND.
         lo_property->set_as_content_type( ).
       ENDIF.
    ENDIF.
    ENDMETHOD.
    Then Redefine the CREATE_STREAM Method (/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_STREAM) in the *DPC_EXT class and implement the below logic to upload the file attachment into the CRM WebUI for a given Territory Plan.
    All input parameters/values we have to get into the SLUG parameter from the UI Side (If we have multiple input parameter values then with concatenation of multiple parameter values with delimiter we have to get the values in SLUG parameter).
      METHOD /iwbep/if_mgw_appl_srv_runtime~create_stream.
    DATA:  ls_file_attach               TYPE        ztp_s_file_attachment,
           lv_tp_guid                   TYPE        crm_mktpl_ib_mpl_guid,
           ls_key                       TYPE        /iwbep/s_mgw_tech_pair,
           lt_keys                      TYPE        /iwbep/t_mgw_tech_pairs,
           lv_entityset_name            TYPE        string,
           lv_entity_name               TYPE        string,
           lo_tech_read_request_context TYPE REF TO /iwbep/cl_sb_gen_read_aftr_crt,
           ls_entity                    TYPE REF TO data,
           ls_string                    TYPE        string.
    DATA:  ls_bo                  TYPE        sibflporb,
           lt_properties          TYPE        sdokproptys,
           ls_properties          TYPE        sdokpropty,
           lt_file_access         TYPE        sdokfilacis,
           ls_file_access         TYPE        sdokfilaci,
           lt_file_content_binary TYPE        sdokcntbins,
           ls_loio                TYPE        skwf_io,
           ls_phio                TYPE        skwf_io,
           ls_error               TYPE        skwf_error,
           lv_file_size           TYPE        i,
           lt_messages            TYPE        zif_zdmtp_service=>bapiret2_t,
           ls_messages            TYPE        bapiret2,
           lo_dp_facade           TYPE REF TO /iwbep/if_mgw_dp_facade,
           lv_destination         TYPE        rfcdest,
           lr_dmtp_service        TYPE REF TO zcl_dmtp_service,
           lv_tp_id               TYPE        crm_mktpl_campaignid.
    FIELD-SYMBOLS: <ls_data> TYPE any.
    CLEAR: ls_file_attach, lv_tp_guid, ls_bo, lt_properties, ls_properties,
            lt_file_access, ls_file_access, lt_file_content_binary,ls_loio,
            ls_phio, ls_error, lv_file_size.
    ***IV_SLUG parameter will be passed from the front-end side
    SPLIT iv_slug AT '/' INTO ls_file_attach-tp_id
                           ls_file_attach-filename
                           ls_file_attach-name
                           ls_file_attach-description.
    ****File Type(MIME TYPE)****
    ls_file_attach-mime_type  = is_media_resource-mime_type.
    ****File Content in XSTRING.*****
    ls_file_attach-file_value = is_media_resource-value.
    ****Convert the Territory Plan ID into GUID****
    CALL FUNCTION 'CONVERSION_EXIT_CGPLP_INPUT'
    EXPORTING
        input  = ls_file_attach-tp_id
    IMPORTING
        output = lv_tp_guid.
    ****Build Attachment Business Object****
    ls_bo-catid  = 'BO'.
    ls_bo-typeid = 'BUS2010010' .
    ls_bo-instid = lv_tp_guid.
    ****Build Attachment Properties****
    ls_properties-name  = 'KW_RELATIVE_URL'. "NAME
    ls_properties-value = ls_file_attach-name.
    APPEND ls_properties TO lt_properties.
    CLEAR ls_properties.
    ls_properties-name  = 'DESCRIPTION'. "DESCRIPTION
    ls_properties-value = ls_file_attach-description.
    APPEND ls_properties TO lt_properties.
    CLEAR ls_properties.
    ls_properties-name  = 'MIMETYPE'. "MIME TYPE
    ls_properties-value = ls_file_attach-mime_type.
    APPEND ls_properties TO lt_properties.
    CLEAR ls_properties.
    ****Convert the Attachment File Data from XSTRING to BINARY****
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
       buffer                    = ls_file_attach-file_value
    IMPORTING
       output_length = lv_file_size
    TABLES
       binary_tab    = lt_file_content_binary.
    ****Build File Access Information****
    ls_file_access-file_size  = lv_file_size.
    ls_file_access-binary_flg = abap_true.
    ls_file_access-file_name  = ls_file_attach-filename.
    ls_file_access-mimetype   = ls_file_attach-mime_type.
    APPEND ls_file_access TO lt_file_access.
    CLEAR ls_file_access.
    ****Upload the Attachment for Territory Plan in CRM WEBUI****
    CALL METHOD cl_crm_documents=>create_with_table
    EXPORTING
       business_object     = ls_bo
       properties          = lt_properties
       file_access_info    = lt_file_access
       file_content_binary = lt_file_content_binary
    IMPORTING
       loio                = ls_loio
       phio                = ls_phio
       error               = ls_error.
    IF ls_error IS INITIAL.
      ls_file_attach-file_loio_guid = ls_loio-objid.
    ELSE.
      ls_messages-id                   = ls_error-id.
      ls_messages-number           = ls_error-no.
      ls_messages-type                = ls_error-type .
      ls_messages-message_v1 = ls_error-v1 .
      ls_messages-message_v2 = ls_error-v2 .
      ls_messages-message_v3 = ls_error-v3 .
      ls_messages-message_v4 = ls_error-v4 .
      APPEND ls_messages TO lt_messages.
    me->/iwbep/if_sb_dpc_comm_services~rfc_save_log(
    EXPORTING
       iv_entity_type = iv_entity_name
       it_return      = lt_messages
       it_key_tab     = it_key_tab ).
    ****Call RFC commit work****
    me->/iwbep/if_sb_dpc_comm_services~commit_work(
    EXPORTING
    iv_rfc_dest = lv_destination) .
    RETURN.
    ENDIF.
    *             -****Read After Create -******
    CREATE OBJECT lo_tech_read_request_context.
    * Create key table for the read operation
    ls_key-name  = 'TP_ID'.
    ls_key-value    = ls_file_attach-tp_id.
    APPEND ls_key TO lt_keys.
    ls_key-name  = 'FILENAME'.
    ls_key-value    = ls_file_attach-filename.
    APPEND ls_key TO lt_keys.
    ls_key-name  = 'IV_OBJECT'.
    ls_key-value    = 'FILEATTACH'.
    APPEND ls_key TO lt_keys.
    ls_key-name  = 'FILE_LOIO_GUID'.
    ls_key-value    = ls_file_attach-file_loio_guid.
    APPEND ls_key TO lt_keys.
    ****Set into request context object the key table and the entity set name****
    lo_tech_read_request_context->set_keys( IMPORTING et_keys = lt_keys ).
    lv_entityset_name = io_tech_request_context->get_entity_set_name( ).
    lo_tech_read_request_context->set_entityset_name( IMPORTING ev_entityset_name = lv_entityset_name ).
    ****Call read after create****
    /iwbep/if_mgw_appl_srv_runtime~get_entity(
    EXPORTING
       iv_entity_name          = iv_entity_name
       iv_entity_set_name      = iv_entity_set_name
       iv_source_name          = iv_source_name
       it_key_tab              = it_key_tab
       io_tech_request_context = lo_tech_read_request_context
       it_navigation_path      = it_navigation_path
    IMPORTING
       er_entity               = ls_entity ).
    ****Send the read response to the caller interface****
    ASSIGN ls_entity->* TO <ls_data>.
    IF <ls_data> IS ASSIGNED.
       copy_data_to_ref(
            EXPORTING
                is_data = <ls_data>
        CHANGING 
                cr_data = er_entity ).
    ENDIF.
    ENDIF.
    ENDMETHOD.
    Once the CREATE_STREAM method redefines is done then we can test the service using the REST Client to upload the file attachment into CRM WebUI for Territory Plan.
    Please Note: Maximum file size 30 MB will allow to upload the file from CRM WebUI standard functionality.
    Test the service using the Rest-client.
    First get the CSRF-Token value while calling below service.
    Then in the response we will get the CSRF Token Value.
    Then give the CSRF Token value and SLUG parameter in the Headers and choose the file to upload it via OData Service. Once we click on send then file will be uploaded in CRM WebUI for a given Territory Plan.

Maybe you are looking for