Upload Originals using "BAPI_DOCUMENT_CHECKIN2"
Hi Friends
Here is scenario.
This DIR is created for the reports that are created in SAP EHS which uses SAP DMS framework to store the reports for Specifications in SAP DMS
The Document Type is "SBR" and originals are stored in SAP_SYSTEM" as shown below.
Presently there is requirement of uploading files to this DIR. In screenshot you are seeing file uploaded. But we are creating DIR without original.
SO we are trying to use "BAPI_DOCUMENT_CHECKIN2" for this purpose.
We are facing issues as we are not able to upload the original. I am maintaining the following parameters in BAPI.
Am I missing here something. Also do we have to use the "BAPI_DOCUMENT_SETCOMMITMODE" to uplaod the original.
I tried but this is not helping. Can anyone help us.
With Warm Regards
Mangesh Pande
Hi Mangesh,
Seems, you missed Data Carrier. Please check with Data Carrier value.
And You may have to maintain the Data Carrier as "S1 (SAP SYSTEM)" and Workstation application config in DMS.
Please maintain your settings like below screen shot:
Workstation application config:
There is an SAP note for the same. Will send you the note once get it.
Hope it will resolve your issue.
Thanks,
Ravi
Similar Messages
-
Previewing an image before uploading it using the FileReference class
Previewing an image before uploading it using the FileReference class in flash player 3 not in SDK4
Previewing an image before uploading it using the FileReference class in flash player 3 not in SDK4
-
Previewing an image before uploading it using the FileReference class in flex 3
Previewing an image before uploading it using the FileReference class in flex 3 ?
hai,
when this code is used in my application ,i got the name of image and new frame is added each time .But image is not displayed.....
The code starts like this
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" initialize="init()" backgroundColor="white" width="100%" height="100%">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.messaging.Channel;
import mx.messaging.ChannelSet;
import mx.messaging.channels.AMFChannel;
import mx.rpc.events.ResultEvent;
import mx.controls.Image;
import spark.events.IndexChangeEvent;
import mx.managers.DragManager;
<mx:DataGridColumn headerText="Dimension Value" width="10" dataField="dimensionValue"/>
<mx:DataGridColumn headerText="Unit Nmae" width="10" dataField="dimensionUnitName"/>
</mx:columns>
</mx:DataGrid>
<mx:Spacer width="2%"/>
</mx:HDividedBox>
</mx:VBox>
<mx:Spacer height="0"/>
<mx:VBox width="100%">
<s:HGroup height="90" top="0" left="0" right="0" verticalAlign="justify" gap="10" paddingLeft="5" paddingRight="5" paddingTop="5" paddingBottom="5">
<s:Button id="btn_loader" top="5" bottom="24" width="100" label="load" click="loadImages()"/>
<s:Group width="100%">
<s:Group name="cl" top="0" left="0" bottom="0" width="20" mouseOver="//scroll_on(event)" mouseOut="//scroll_off(event)">
<s:BitmapImage source="@Embed('../assets/left.jpg')" top="0" left="0" bottom="0" right="0" fillMode="scale"/>
</s:Group>
<s:List id="imgList" skinClass="skins.ListSkin" top="-3" left="27" right="28" bottom="10"
dataProvider="{ImageCollection}" itemRenderer="Image_Render">
<s:layout>
<s:HorizontalLayout gap="0"/>
</s:layout>
</s:List>
<s:Group name="cr" top="0" right="0" bottom="0" width="20" mouseOver="//scroll_on(event)" mouseOut="//scroll_off(event)">
<s:BitmapImage source="@Embed('../assets/right.jpg')" top="-1" left="0" bottom="0" right="0" fillMode="scale"/>
</s:Group>
</s:Group>
</s:HGroup>
<s:SkinnableContainer id="dropCanvas" top="100" left="5" right="5" bottom="5" backgroundAlpha="1.0" alpha="1.0"
dragEnter="dropCanvas_dragEnterHandler(event)"
dragDrop="dropCanvas_dragDropHandler(event)" contentBackgroundColor="#914E4E" backgroundColor="#F7F7F7">
</s:SkinnableContainer>
</mx:VBox>
<mx:Spacer height="5"/>
</mx:VDividedBox>
</mx:Panel>
</mx:Canvas> -
I am uploading receipts using the PURCHASE_ORDER_RECEIPT EIP. When I upload serialized assets each one is processed as a separate receipt (receiver_id). How can I have these all aggregated on the same receipt?
Is there a parameter I should be using in the XML or is there a setting in Peoplesoft that will accomplish this?
Jimsundy.liu wrote:
Unfortunately however, even with the TCP tweaks enabled, I still only get a little over 1 Gb/s through the two aggregated Gig ports. It seems as though the aggregation is only using one port, though MRTG graphs of the two switch ports do in fact show that they are both being utilized equally, essentially splitting the 1 Gb/s speed between
the two ports.
Problem with the server? switch? Aggregation software? All the above? At any rate, I seem to be missing something.. Any help regarding this issue would be greatly appreciated!If you're only running a single stream, that's all you'll see. Teaming/aggregating doesn't make one stream go faster.
If you ran two streams simultaneously, then you should see a difference between a single 1G interface and an aggregate of two 1G interfaces.
Darren -
Error while uploading stock using Mb1c and migo
Hi
Following error is showing,while uploading stock using Mb1c and migo
Return code 8 is not permitted with BAdI 'FAGL_PERIOD_CHECK'
Can anyone help me?/
ThanksHi
You will need the help of an abaper in solving this , as a BAdi FAGL_PERIOD_CHECK - Posting Period Check has been activated.
Please check the implementation of the BAdi , i feel that it has not been implemented properly.
This Business Add-In (BAdI) enables you to extend the existing check of open posting periods.
The result of the period check is provided to you as a parameter (CH_SUBRC). In your implementation, you can derive this parameter again (for example, if a posting is rejected under a certain condition).
The following values are allowed for parameter CH_SUBRC:
0 Posting allowed
4 Period & is not open for account type & and general ledger &
6 No authorization for posting period & &
This is a custome developemnt , so only the ABAper present at your end will be able to resolve it.
Thanks & Regards
Kishore -
How to upload file using *cl_gui_frontend_services* method
hi
i want to upload an image file using this method
and i want to save it in MIME Repository (/SAP/BC/BSP/SAP/PRASHANT)
DATA:
itab TYPE TABLE OF sflight.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = 'C:\temp\winter.jpg'
filetype = 'ASC'
has_field_separator = '|'
CHANGING
data_tab = itab
IF sy-subrc = 0.
WRITE:/ 'success'.
ENDIF.
So plz tel me how i set given path to upload file using this method .Hi Prashant,
Go through the [Link|https://forums.sdn.sap.com/click.jspa?searchID=24477690&messageID=6684222].
Hope this is helpful.
Regards,
Abhinav -
File upload, download using ADF UIX and not JSP
I have examples for the file upload, download using JSP
But I want to use ADF UIX. Look and feel in this is impressing and I want to use this. Any one have example for this.
Users will select a file from their desktop
This will be stored into the database (Any document. Word, Excel)
When they query the records then the UIX column need to give a hyperlink. Clicking on the link should prompt to download the file to the local systemSure, I use the Apache Commons File Upload package, so that is what I will discuss here ( [Commons File Upload|http://commons.apache.org/fileupload/] ).
The Commons File Upload uses instances of ProgressListener to receive upload progress status. So first create a simple class that implements ProgressListener:
public class ProgressListenerImpl implements ProgressListener {
private int percent = 0;
public int getPercentComplete() {
return percent;
public void update(long pBytesRead, long pContentLength, int pItems) {
if (pContentLength > -1) { //content length is known;
percent = (new Long((pBytesRead / pContentLength) * 100)).intValue();
}So in your Servlet that handles file upload you will need to create an instance of this ProgressListenerImpl, register it as a listener and store it in the session:
ServletFileUpload upload = new ServletFileUpload();
ProgressListenerImpl listener = new ProgressListenerImpl();
upload.setProgressListener(listener);
request.getSession().setAttribute("ProgressListener", listener);
...Now create another servlet that will retrieve the ProgressListenerImpl, get the percent complete and write it back (how you actually write it back is up to you, could be text, an XML file, a JSON object, up to you):
ProgressListenerImpl listener = (ProgressListenerImpl) request.getSession().getAttribute("ProgressListener");
response.getWriter().println("" + listener.getPercentComplete());
...Then your XMLHttpRequest object will call this second servlet and read the string returned as the percent complete.
HTH -
I have a field of File Type in my Entity. How can I upload file using WCF API?
I tried to create a new Entity Member and added the following attribute in the member attributes collection
Attribute att = new Attribute();
att.Identifier = new Identifier();
att.Identifier.Name = "Image";
att.Value = bytes;
In attribute value I tried to pass the bytes array of an image, also tried Encoding.ASCII.GetString(bytes); as attribute value, but none of them works.
With byte array i get the following exception "Conversion failed when converting the nvarchar value 'System.Byte[]' to data type int." and in case of ASCII string i get "A database error has occurred. Contact your system administrator." error.
There is lack of documentation and samples.
Please let me know if someone tried it out.
Thanks!You need to use the EntityMemberAttributesGet operation to retrieve the contents of a file attribute. EntityMembersGet is designed to retrieve a collection of many members and therefore it would not make sense to retrieve every file for every row retrieved.
In contrast, EntityMemberAttributesGet is designed to work with a single member and specific attributes of that member, and it was designed to retrieve the file content.
Val Lovicz
http://www.profisee.com
[email protected]
As the original creators of Microsoft MDS, Profisee's Master Data Maestro provides a range of enterprise-grade functionality to ensure MDS project success. -
Restart while trying to upload anything using wimax modem
Hi, i've the same question. i used mac book pro last 4 months. but recently it takes restart often.
my macbook pro take restart often especially when i try to upload anything using my wimax modem.
what's the error??? what should i do???
plz let me know if there any solutions.Hi, i've the same question. i used mac book pro last 4 months. but recently it takes restart often.
my macbook pro take restart often especially when i try to upload anything using my wimax modem.
what's the error??? what should i do???
plz let me know if there any solutions. -
Can anyone list problems/errors when uploading data using BDC's and BAPI's?
Can anyone list the problems/errors when uploading data using BDC's and BAPI's?
Hi,
If you are actually creating a BDC to load data pls be more specific.
Data format incorrect. Tab delimited/ etc
Dates in wrong formats
Currency incorrect formats
Missing screens
Wrong transaction code
File not found,
Missing Mandatory fields,
Screen resoultion.
You should always use refresh for your Bdcdata table.
Loop at internal table.
refresh Bdcdata.
regards,
sowjanya. -
Upload material using idoc in lsmw
hi ,
i m trying to upload material using idoc inbound processing in lsmw. but whnever i m giving partner name as lsmw & port name as lsmw (even i tried with different name also ). it gives error like port does not exits.
regards,
swapnilHi ,
Please foloow Link:[Check|http://****************/Tutorials/LSMW/IDocMethod/IDocMethod1.htm]
Regrads
Jana -
Uploading documents using CFFile
I am using CFFile for uploading documents using Cold Fusion 8
in my Intranet environment. Each record has a limit of 20 documents
that can be uploaded into MySQL database. It seems if I upload
mulitple documents at around 1mb it takes less than a minute to
complete. The problem seems to be when I upload muliptle documents
that are bigger.
If I attempt to upload 2 documents each over 25mb it takes
around 10 minutes.
Anyone have suggestions on alternatitve way to do this or
should I just limit size of each upload to 4mb and less?Isn't this just a product of your internet speed and the size
of the upload? -
Help!!! Upload Files using Applet.
I've built an upload application using html tag <input type="file" ...>. Both client and server's programs have been finished for a long time. However, my boss want to use applet replace html tag(due to some reasons). I want to build an applet which allow user to select multiple files and then upload. But I don't want to modify the server side program. May anyone teach me on how to upload the files which generate the page which is the same as the HTTP request? Thanks a lot.
No. You could sign the applet for granting the permission. Could anyone tell me how to generate the http request with contents and file inside?
-
Best approach for uploading document using custom web part-Client OM or REST API
Hi,
Am using my custom upload Visual web part for uploading documents in my document library with a lot of metadata.
This columns contain single line of text, dropdownlist, lookup columns and managed metadata columns[taxonomy] also.
so, would like to know which is the best approach for uploading.
curretnly I am trying to use the traditional SSOM, server oject model.Would like to know which is the best approach for uploading files into doclibs.
I am having hundreds of sub sites with 30+ doc libs within those sub sites. Currently its taking few minutes to upload the files in my dev env. am just wondering, what would happen if the no of subsites reaches hundred!
am looking from the performance perspective.
my thought process is :
1) Implement Client OM
2) REST API
Has anyone tried these approaches before, and which approach provides better performance.
if anyone has sample source code or links, pls provide the same
and if there any restrictions on the size of the file uploaded?
any suggestions are appreciated!Try below:
http://blogs.msdn.com/b/sridhara/archive/2010/03/12/uploading-files-using-client-object-model-in-sharepoint-2010.aspx
http://stackoverflow.com/questions/9847935/upload-a-document-to-a-sharepoint-list-from-client-side-object-model
http://www.codeproject.com/Articles/103503/How-to-upload-download-a-document-in-SharePoint
public void UploadDocument(string siteURL, string documentListName,
string documentListURL, string documentName,
byte[] documentStream)
using (ClientContext clientContext = new ClientContext(siteURL))
//Get Document List
List documentsList = clientContext.Web.Lists.GetByTitle(documentListName);
var fileCreationInformation = new FileCreationInformation();
//Assign to content byte[] i.e. documentStream
fileCreationInformation.Content = documentStream;
//Allow owerwrite of document
fileCreationInformation.Overwrite = true;
//Upload URL
fileCreationInformation.Url = siteURL + documentListURL + documentName;
Microsoft.SharePoint.Client.File uploadFile = documentsList.RootFolder.Files.Add(
fileCreationInformation);
//Update the metadata for a field having name "DocType"
uploadFile.ListItemAllFields["DocType"] = "Favourites";
uploadFile.ListItemAllFields.Update();
clientContext.ExecuteQuery();
If this helped you resolve your issue, please mark it Answered -
How to Upload documents using Gateway Service in SAP UI5?
Hi Team,
How to upload documents using Gateway Service in UI5 app.
This is Attachment Functionality.using Gateway Service in Controller.JS/View.JS.
Thanks in Advance.
Regards,
SatyaHi,
I suggest you use the search function on scn/google...
Anyways, here are some usefull links:
How To Upload and Download Files Using SAP NW Gateway SP06
Uploading files to SAP using HTML5 /AJAX/Gateway media links with real-time progress bar
Kind regards,
RW
Maybe you are looking for
-
as listed in the title, my phone just flashes on me no start up just flashes from the apple logo to shutting off and back and forth i did the update this afternoon (9-26-2012) and it still wont start up!!!
-
Mapping from a list of variables to the only one variable. Is it possible?
Good day! I have a WebService which returns a list of some data. For example: EmployeeList with [0..*] cardinality. It has text() variable. In my process context I need to map the first text() variable of EmployeeList to the EmployeeName with cardina
-
My internet provide says I may have a virus. How can I tell?
How can I determine if I have a virus. I think a may as my Yahoo account spammed my contacts Wednesday night.
-
Several artists are not showing in the artist list on the Ipod.
Ok. As the title implies on my Ipod there are several artists that are not showing in the artist list. However, in Itunes an artist is clearly defined. I even changed the artist name and still had no outcome. The album is there....but I have to sort
-
Viewing Source Message from a failed orchestration BTS 2013
Hello How does one access the source message which entered a running orchestration which has failed? I have a scenario where an IDOC message is passed from SAP and is mapped to a SQL stored proc insert. The insert fails and i would like to see the or