UPLOAD_FILE check in Documents in the Document Managment System
Dear Experts,
i must upload a different File in the Document Managment System.
For Example .doc, .xls, .pdf.......
Have somebody a symple for me
Thanks
Frank
Hi Frank,
If you used File upload UI element means the read contents should be in Xstring format.
For convert the Xstring to string have a look on following code :
CALL METHOD cl_abap_conv_in_ce=>create
EXPORTING
input = item_filecontent
encoding = 'UTF-8'
replacement = '?'
ignore_cerr = abap_true
RECEIVING
conv = loc_conv.
*Read the file contents
TRY.
CALL METHOD loc_conv->read
IMPORTING
data = var_string.
CATCH cx_sy_conversion_codepage.
Here item_filecontent is the type of xstring and var_string is the type of string.
Thanks.
Similar Messages
-
How can I cut and paste from a webpage to a Word document without the document taking me to the web address when I click on a word in the document?
You are trying to copy a link, it is most likely in a different color such as the words "Microsoft's own forums" in his post. In Word highlight the word or words, control click on them, select Hyperlink, then Edit Hyperlink, then delete the link from the top box. It will then have a button asking if you want to "Remove Link", click on it.
-
I recently upgraded to a new Macbook Air running Lion, from my 2007 white Macbook running Snow Leopard. I had Office for Mac 2004 on the 2007, but had to upgrade to Office for Mac 2011 to be compatible with Lion on the Air. Now when I try to open my documents on the Air that were saved under Office 2004 on the old computer, I get the following message: Word cannot open this document. The document might be in use, the document might not be a valid Word document, or the file name might contain invalid characters (for example,\ /).
Any suggestions? Thank you.Ha,ha,ha.....I figured it out. But for anyone else who's having this problem, it seems that while Office 2004 allowed dates in this format: 00/00/00, Office 2011 doesn't like it at all. I just changed the format in the document names to 00-00-00 and all is well. Documents are opening beautifully!
-
Hi - am trying to prind pdf documents, but the document keeps hanging and I can't print -
hi - am trying to prind pdf documents, but the document keeps hanging and I can't print
What operating system? Reader version?
-
System RQ1 is unknown in the Transport Management System
<b>Hi
Please assist I am getting this screen dumbs on st22 about my TMS running this function "TMS_CI_CHECK_ACCESSTOKEN". the problem is that my RP2 is checking RQ1 which is no longer on my systems land it is now replaced by RQ2.
below is the error and suggested procedure but it's not working.
Please provide any suggestions.
</b>
Diagnosis
An error occurred in the TMS communication layer.
System: RP2.DOMAIN_RD2(000)
Function: TMS_CI_CHECK_ACCESSTOKEN
Error: UNKNOWN_SYSTEM (RQ1)
System Response
The function terminates.
Procedure
Log this system on to the Transport Management System.
If this error occurs in the function TMS_CI_CHECK_ACCESSTOKEN, then the TMS configuration was deleted in the R/3 System RP2.DOMAIN_RD2(000).So, just in case someone need more feedback, the help on error message is::
System XYZ is unknown in the system landscape
Message no. AI_SOLAR11080
Procedure
Create system XYZ in the System Landscape transaction .
- the system is created in SMSY.
Generate RFC destinations from the local system into the system XYZ in the Clients tab in the transaction Setup System Landscapes.
- RFC destinations generated (and tested successfuly) but not in SMSY_SETUP. This tx is named "System Landscape Maint. Settings" in SAP Easy Access, but once entered, it has a "Setup System Landscapes - SAP Solution Manager" title. However, this tx is dedicated to define an Automatic Data Transfer type:
TMS/ RFC (this one is my case), or
SLD
So, the RFC's are generated in SMSY also, well - some of them. I used SM59 and SMT1 and SMT2 to finish it propertly.
Alternatively, you can assign an existing system to the logical components, in the System Landscape/Systems tab in the Project Administration.
+- The (existing) system is assigned to the logical components, it can be seen on "System Lanscape - System" tab in SOLAR_PROJECT_ADMIN
However, when I try the "System Lanscape Check" button in the same transaction, I get this very message as well...+
You can suppress this message by putting the system in the exception table in the Plug-In List, but you should only do so in exceptional circumstances.
I am not quite sure how this could be a solution to my problem. I suppose it would just suppress the message, and not solve the problem...
Now, what confuses me is that I have done it once with no problem with other system in this very project, and now I can't find a solution...
Any help is highly apreciated.
Thank you in advance,
Nenad -
Define Service Desk Destination in the Solution Manager System (Dump creen)
hi,
in SPRO when i click on Define Service Desk Destination in the Solution Manager System
i got dump screen with the error below
any help?
Runtime Errors SAPSQL_EMPTY_TABNAME
Except. CX_SY_DYNAMIC_OSQL_SYNTAX
Date and Time 13.07.2008 14:05:57
Short text
A dynamically specified FROM clause has an unexpected format.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLSHI2" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SYNTAX', was not
caught in
procedure "STREE_READ_NODE_GENER" "(FUNCTION)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The running ABAP program attempted to execute an Open SQL statement in
which a FROM clause was specified dynamically in the field "TABLE_NAME". In
this
FROM clause, either a table name after a join operator is missing, or an
alias name after the key name "AS". The field "TABLE_NAME" could be empty as
well.
regardsHi,
I am facing the same problem. What is SP15 ?
Is there any SAP Note that can be applied to correct this ?
Thanks. -
Can the Policy Management System be enabled by using CLI/Script?
Hi,
I know you can enable the Policy Management System in OER Console by selecting True for Enable Asset Policies in the Functional Settings. But I need to automate an OER configuration, so I am wondering if this can be done using CLI.
Thanks in advance,
IrisHi,
I know you can enable the Policy Management System in OER Console by selecting True for Enable Asset Policies in the Functional Settings. But I need to automate an OER configuration, so I am wondering if this can be done using CLI.
Thanks in advance,
Iris -
Can you please explain about the vehicle management system?
Hi ,
i want to know about the module (vehicle management system) .please explain any one in details .
Regards
Venkata .Hi Venkata,
The Vehicle Management system (VMS) is part of SAP IS - Auto. Generally it is said that it is used by importers, however I would rather put it like this – It can be used for an importer or a distributor’s business functions. So if an OEM is also performing a distributor’s business, he can also use VMS and get benefited out of it.
The VMS facilitates to see a Vehicle like a Vehicle in the system.
Following are the few high level features -
It allows to capture all the attributes of a particular vehicle as an unique object in the system
All the transaction on a vehicle (sales, purchase etc.) can be carried out keeping vehicle as a central object, provides ease of operation to users. All business and technical data of the vehicle is available here.
Strong configuration based vehicle search and vehicle history (transactions) helps in tracking the vehicle easily for any purpose in the distribution chain of OEMà Distributorà Dealerà End Customer.
This is in brief about VMS.
Regards,
Aseem Baruaole
Mahindra Satyam -
How to download the document in the document management system
HI,ALL
I tried to download the document to PC with ABAP,but I do not know which Function to using.
The document save in the menu paths:Logistics->Central Functions->Document Management System->Document->CV03N-Display. The Document Type is PM1 and the document save in the Document Data->Originals.
Thanks
xinjun jiHi Xinjun,
If u want to download mass documents, then u have to go with the function module BAPI_DOCUMENT_CHECKOUTVIEW2.
Kindly check this with your ABAP consultant.
Regards
Bhanu -
Styling a document as the document is written
Hi all
is it possible to style a styleddocument as i write text to the document,
i know how to style a document that has text already in it, ie find a string then style it, but i want to see if i can have a toString method that provides a formatted styleddocument (something like toStyledString)
so this is my toString code
StyledDocument doc;
JTextPane jTPHolder=new JTextPane();
doc = jTPHolder.getStyledDocument();
something here rather than add to a string to say doc.setText(name) then style name, perhaps find name in the doc then style that?
result=name+"\n";
result=result+"{"+"\n";
for (Enumeration e = atrib.keys(); e.hasMoreElements(); )
String key = (String)e.nextElement();
result=result+key+":";
result=result+atrib.get(key)+";"+"\n";
result=result+"}"+"\n";in the bold is my ideas on possible styling.
is this something that is possible to do or am i approaching it wrong?First off i made a simple object that i will pass my jtextpane to, for it to do my looping and styling within a thread
import javax.swing.text.*;
import javax.swing.*;
import java.awt.*;
public class CssSyntax implements Runnable
//this is the jtextpane holder
private JTextPane jTPHolder;
//these are my attributes i want to be coloured
private String[] formatAtribs={"font-size", "color", "background-color","background-image","height","width","border-width","border-top-width","border-left-width","border-right-width","border-bottom-width","border-color","border-top-color","border-left-color","border-right-color","border-bottom-color","padding","padding-top","padding-left","padding-right","padding-bottom","margin","margin-top","margin-left","margin-right","margin-bottom","font-family", "font-weight", "font-style","background-repeat","background-attachment","background-position","text-align","vertical-align","text-transform","overflow","white-space","cursor","display","border-style","border-top-style","border-left-style","border-right-style","border-bottom-style","text-decoration","position","top","left","right","bottom","list-style-type","list-style-position"};
//i want to colour brackets too sooooo
private String[] formatBracket={"{","}"};
//ill be passing in names dynamically
private String[] formatNames;
private StyledDocument doc;
private Thread animator;
/** Creates a new instance of CssSyntax */
public CssSyntax(JTextPane t, String[] tag)
jTPHolder=t;
formatNames=tag;
doc = jTPHolder.getStyledDocument();
//make my styles for each required colour
Style style = jTPHolder.addStyle("Tag", null);
StyleConstants.setForeground(style, Color.blue);
Color myGreen=new Color(0,128,0);
style = jTPHolder.addStyle("Bracket", null);
StyleConstants.setForeground(style, myGreen);
Color myBrown=new Color(160,0,0);
style = jTPHolder.addStyle("Atrib", null);
StyleConstants.setForeground(style, myBrown);
//this is a standard black to prevent the document from being recoloured
style = jTPHolder.addStyle("Value", null);
StyleConstants.setForeground(style, Color.black);
//my style document loop
private void styleDoc()
//colour everything to black to start with to stop any niggling bugs from colouring things blue
doc.setCharacterAttributes(0, jTPHolder.getText().length(), jTPHolder.getStyle("Value"), true);
//loop through my atributes and colour them
for (int i=0;i<formatAtribs.length;i++)
int pos=0;
while ((pos = jTPHolder.getText().indexOf(formatAtribs, pos)) >= 0)
doc.setCharacterAttributes(pos, formatAtribs[i].length(), jTPHolder.getStyle("Atrib"), true);
pos += formatAtribs[i].length();
//loop through my brackets and colour them
for (int i=0;i<formatBracket.length;i++)
int pos=0;
while ((pos = jTPHolder.getText().indexOf(formatBracket[i], pos)) >= 0)
doc.setCharacterAttributes(pos, formatBracket[i].length(), jTPHolder.getStyle("Bracket"), true);
pos += formatBracket[i].length();
//loop through my names and colour them
for(int i=0;i<formatNames.length-1;i++)
int pos=0;
while ((pos = jTPHolder.getText().indexOf(formatNames[i], pos)) >= 0)
doc.setCharacterAttributes(pos, formatNames[i].length(), jTPHolder.getStyle("Tag"), true);
pos += formatNames[i].length();
//stop the thread when ive done my colouring, if this is removed then the syntax is constantly checked and coloured, but my logic sucks and the whole thing flashes as i colour everything black at the start, maybe i should double buffer or something, but for now i just stop and colour on a save event
stop();
//start my thread so it doesnt hog up my ap
public void start()
animator = new Thread(this);
animator.start();
//dunno if this is totally right to be honest, i just nicked it from a thread example :)
public void run()
while (Thread.currentThread() == animator)
styleDoc();
//apparently this has been deprecated but its here anyway
public void stop()
animator=null;
now in my code i just do this
CssSyntax colMe=new CssSyntax(jTPCode,workSheet.getTags());
colMe.start();it works for my syntax highlighting and i hope is easy enough for others to grasp a quick and messy way of syntax highlighting.
To all the super brains out there, id be happy for improvements to my code (as im sure there are many!) i know its far far far from efficent, but im learning along the way :) and i hope it helps others work on syntax highlighting without having to resort to those complicated syntax highlighters that are already out there ;) -
Create a one level approval workflow for a document in the document library
hi,
Can anyone pls provide me how to create a workflow in SP 2013.
I am having the scenario
Document uploaded into the document library. it will trigger the workflow and it will reach the approver's inbox and if the approver approves the document, i need to do peform few tasks on the dcoument and document
library in which it resides.
So, would like to know whether this is possible without using the new features in SP 2013. like Workflow Manager , etc.
Heard that, workflow manager is a new software installable and need to go through separate learning curve.but i am having custom columns which are taxonomy columns, single line of text, choice field, people picker field etc.
how can i show these metadat columns in a approver form using the OOB workflows, does sharepint provides us to display the form whcih will be used by the approver and once approved the document will be moved into a new doc lib
and if rejected it will be deleted from the current doc lib.
also a email would be sent to requestor who uploads the document.
I think these customizations were not available in the OOTB workflows.
pls let me know any other approaches!
help is appreciated! -
Transfer changes from Document to the Document Set [Sharepoint bug?]
I I have Document Set, 1 Document inside and, for example,
1 general field.
Task: when I change Document I need to copy value of the general field to the Document Set.
Problem: I made Workflow on Document that calls when I change it, this Workflow copies data to the Document Set.
But it doesn't work, because when I change Document inside Document Set there are 2 events: "Document was changed" and "Document Set was changed". And the event "Document Set was changed" called first and it copies all general
fields to all documents inside. That's why when my Workflow starts, field in Document has value from Document Set not the one that user typed.
Any solutions to solve the task or problem (e.g. to increase the priority for Workflow on documents inside)?Hi ,
According to your description, my understanding is that you want to copy the value of a field for a document inside a document set to the associated column for document set.
How did you design your workflow?
I did a test based on your description, and I used the ID (in my testing, the ID of the document set is 2)to find the associated document set, and the testAA is the column.
My workflow is:
In my testing, everything was ok. Please have a try as the above workflow, compare the result.
Best Regards,
Wendy
Wendy Li
TechNet Community Support -
function Recurse($RootFolder,$List) {
$Context.Load($RootFolder)
$Context.Load($RootFolder.Folders)
$Context.ExecuteQuery()
foreach($folder in $RootFolder.Folders)
if($Folder.Name -ne "Forms")
$Context.Load($folder)
$Context.Load($folder.Files)
$Context.ExecuteQuery()
foreach($file in $folder.Files)
$FileCollection +=
$file
Recurse $folder $List
Recurse $folder.ParentFolder $List
Return $FileCollection
I am trying to traverse through SharePoint Online Site collection using Powershell CSOM. I am able to go to the last folder from the root folder which is 2-3 levels down. But I could not search through all the document libraries as it gets struck to one
of the last document library.Below script is working for me. I can now traverse through all the folders and subfolders including the root folders to fetch all the files using Powershell and CSOM.
#function begins
function Recurse($RootFolder) {
$Context.Load($RootFolder)
$Context.Load($RootFolder.Folders)
$Context.ExecuteQuery()
$Context.Load($RootFolder.Files)
$Context.ExecuteQuery()
$resultCollection = @()
foreach($file in $RootFolder.Files)
$resultCollection += $file
foreach($folder in $RootFolder.Folders)
if($Folder.Name -ne "Forms")
Recurse $folder
Return $resultCollection
# Function ends -
Able to attach documents when the document in closed status
Hi,
I have a issue related to attchments in Service Request.
I have user status =closed ands set Chnage Document=Forbidden for that staus.
Now after setting this Status, system is not allowing me to do any chnages in the document and that is fine.
But system still allows to add the attchments and I want to stop it if the status is closed.
What I need to do.
Regards
babu.Disable the Add Attachment button based on this document status.This way no body would be allowed to attach document.
Regards
Kavindra -
How do I save opened documents in the Documents or Recent folders for future use?
I open several PDFs from my emails but would like to access them through adobe at a later date. None of them remain in the Documents or Recent folders for me to review the next day. Can anything be done about this?
Use the methods described in this document to bring PDF files into Adobe Reader. They should stay in the Documents folder:
http://forums.adobe.com/docs/DOC-2532
Maybe you are looking for
-
Two apple ID's, one has purchased additional storage
I have two apple ID's--one on my iPhone and one on my iPad. I only want ONE. I realize they can't be combined. I have bought storage on my iPad that NOTHING has been synced to, it needs to be purchased on my iPhone instead. I want to have just ONE ap
-
Tables/Joins for logical tables being combined
I have 2 logical tables set up that have multiple physical table sources (using map to these tables). Some of the physical sources are the same in each logical table. It seems that when I make selections from Answers and look at the SQL, it is pickin
-
Why did PP 26-2009 not generate a Month End Accrual?
Our pay period 26 2009 covered 12/4/09 - 12/17/09. We posted this pay period on 12/23/09. There was not an accrual in the posting. Our Pay Period 01-2010 covers 12/1809 - 12/31/09. We posted pp 01 2010 on 01/07/2010 and no month end accrual. In the I
-
Add Fields in S_ALR_87013570
Hi All, I want to add fields in ALV in transaction S_ALR_87013570. The way i find is to copy the program but it seems very complicated because of 2 things: First one, there are a lot of programs to copy and if a update comes, the copy will not be upd
-
Mac OSX 10.5.8 Freezed - a way to do it
Hi. This is not really a call for help, I only want to share this with you. Sometimes I use my cell phone to an emergency connection to Internet - when the official way is down. I call for it at preferences panel by bluetooth, and MacMini call my cel