How to get ownership of webdav documents?
I am using xdb to allow users to upload text files to the database using webdav. I then pick up the content of the files, parse them and insert into various table using PL/SQL.
Is there any way to find out who uploaded the files? getAclDocument() doesn't give the the information I need.
TIA
You can also look at the XDBResource XML Schema
Eg
SQL > select schema from all_xml_schemas where schema_url = 'http://xmlns.oracle.com/xdb/XDBResource.xsd';
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:schemaURL="http://xmlns.oracle.com/xdb/XDBResource.xsd" targetNamespace="http://xmlns.oracle.com/xdb/XDBResource.xsd" version="1.0" xdb:numProps="45" elementFormDefault="qualified" xdb:flags="23" xdb:mapStringToNCHAR="false" xdb:mapUnboundedStringToLob="false" xdb:storeVarrayAsTable="false" xdb:schemaOwner="XDB">
<simpleType name="OracleUserName">
<restriction base="string">
<minLength value="1" fixed="false"/>
<maxLength value="4000" fixed="false"/>
</restriction>
</simpleType>
<simpleType name="ResMetaStr">
<restriction base="string">
<minLength value="1" fixed="false"/>
<maxLength value="128" fixed="false"/>
</restriction>
</simpleType>
<simpleType name="SchElemType">
<restriction base="string">
<minLength value="1" fixed="false"/>
<maxLength value="4000" fixed="false"/>
</restriction>
</simpleType>
<simpleType name="GUID">
<restriction base="hexBinary">
<minLength value="8" fixed="false"/>
<maxLength value="32" fixed="false"/>
</restriction>
</simpleType>
<simpleType name="LocksRaw">
<restriction base="hexBinary">
<minLength value="0" fixed="false"/>
<maxLength value="2000" fixed="false"/>
</restriction>
</simpleType>
<simpleType name="LockScopeType">
<restriction base="string">
<enumeration value="Exclusive" fixed="false"/>
<enumeration value="Shared" fixed="false"/>
</restriction>
</simpleType>
<complexType name="LockType" abstract="false" mixed="false">
<sequence minOccurs="1" maxOccurs="1">
<element xdb:propNumber="702" name="owner" type="string" xdb:memType="1" xdb:system="false" xdb:mutable="false" xdb:SQLName="OWNER" xdb:SQLType="VARCHAR2" xdb:JavaType="String" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="703" name="expires" type="dateTime" xdb:memType="180" xdb:system="false" xdb:mutable="false" xdb:SQLName="EXPIRES" xdb:SQLType="TIMESTAMP" xdb:JavaType="TimeStamp" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="true" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="704" name="lockToken" type="hexBinary" xdb:memType="23" xdb:system="false" xdb:mutable="false" xdb:SQLName="LOCKTOKEN" xdb:SQLType="RAW" xdb:JavaType="byteArray" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
</sequence>
<attribute xdb:propNumber="701" name="LockScope" type="xdb:LockScopeType" xdb:memByteLength="1" xdb:memType="259" xdb:system="false" xdb:mutable="false" xdb:SQLName="LOCKSCOPE" xdb:SQLType="XDB$LOCKSCOPE_T" xdb:SQLSchema="XDB" xdb:JavaType="Enum"/>
</complexType>
<complexType name="ResContentsType" abstract="false" mixed="false">
<sequence minOccurs="1" maxOccurs="1">
<any xdb:propNumber="736" name="ContentsAny" xdb:memType="258" xdb:system="false" xdb:mutable="false" xdb:JavaType="XMLType" minOccurs="0" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="ResAclType" abstract="false" mixed="false">
<sequence minOccurs="1" maxOccurs="1">
<any xdb:propNumber="737" name="ACLAny" xdb:memType="258" xdb:system="false" xdb:mutable="false" xdb:JavaType="XMLType" minOccurs="0" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="ResourceType" abstract="false" mixed="false">
<sequence minOccurs="1" maxOccurs="1">
<element xdb:propNumber="709" name="CreationDate" type="dateTime" xdb:memType="180" xdb:system="false" xdb:mutable="false" xdb:SQLName="CREATIONDATE" xdb:SQLType="TIMESTAMP" xdb:JavaType="TimeStamp" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="true" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="710" name="ModificationDate" type="dateTime" xdb:memType="180" xdb:system="false" xdb:mutable="false" xdb:SQLName="MODIFICATIONDATE" xdb:SQLType="TIMESTAMP" xdb:JavaType="TimeStamp" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="true" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="711" name="Author" type="xdb:ResMetaStr" xdb:memType="1" xdb:system="false" xdb:mutable="false" xdb:SQLName="AUTHOR" xdb:SQLType="VARCHAR2" xdb:JavaType="String" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="712" name="DisplayName" type="xdb:ResMetaStr" xdb:memType="1" xdb:system="false" xdb:mutable="false" xdb:SQLName="DISPNAME" xdb:SQLType="VARCHAR2" xdb:JavaType="String" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="713" name="Comment" type="xdb:ResMetaStr" xdb:memType="1" xdb:system="false" xdb:mutable="false" xdb:SQLName="RESCOMMENT" xdb:SQLType="VARCHAR2" xdb:JavaType="String" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="714" name="Language" type="xdb:ResMetaStr" xdb:memType="1" xdb:system="false" xdb:mutable="false" xdb:SQLName="LANGUAGE" xdb:SQLType="VARCHAR2" xdb:JavaType="String" default="en" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="715" name="CharacterSet" type="xdb:ResMetaStr" xdb:memType="1" xdb:system="false" xdb:mutable="false" xdb:SQLName="CHARSET" xdb:SQLType="VARCHAR2" xdb:JavaType="String" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="716" name="ContentType" type="xdb:ResMetaStr" xdb:memType="1" xdb:system="false" xdb:mutable="false" xdb:SQLName="CONTYPE" xdb:SQLType="VARCHAR2" xdb:JavaType="String" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="717" name="RefCount" type="nonNegativeInteger" xdb:memByteLength="4" xdb:memType="68" xdb:system="false" xdb:mutable="true" xdb:SQLName="REFCOUNT" xdb:SQLType="RAW" xdb:JavaType="long" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="true" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="718" name="Lock" type="xdb:LocksRaw" xdb:memType="23" xdb:system="false" xdb:mutable="true" xdb:SQLName="LOCKS" xdb:SQLType="RAW" xdb:JavaType="byteArray" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="732" name="ACL" type="xdb:ResAclType" xdb:memType="258" xdb:system="false" xdb:mutable="false" xdb:JavaType="XMLType" xdb:global="false" xdb:hidden="false" xdb:transient="generated" xdb:baseProp="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:JavaClassname="oracle.xdb.ResAclTypeBean" xdb:beanClassname="oracle.xdb.ResAclTypeBean" xdb:numCols="0" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="719" name="ACLOID" type="hexBinary" xdb:memType="23" xdb:system="false" xdb:mutable="false" xdb:SQLName="ACLOID" xdb:SQLType="RAW" xdb:JavaType="byteArray" xdb:global="false" xdb:hidden="true" xdb:baseProp="true" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="true" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="720" name="Owner" type="xdb:OracleUserName" xdb:memType="1" xdb:system="false" xdb:mutable="false" xdb:JavaType="String" xdb:global="false" xdb:hidden="false" xdb:transient="generated" xdb:baseProp="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="0" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="721" name="OwnerID" type="xdb:GUID" xdb:memType="23" xdb:system="false" xdb:mutable="false" xdb:SQLName="OWNERID" xdb:SQLType="RAW" xdb:JavaType="byteArray" xdb:global="false" xdb:hidden="true" xdb:baseProp="true" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="true" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="722" name="Creator" type="xdb:OracleUserName" xdb:memType="1" xdb:system="false" xdb:mutable="false" xdb:JavaType="String" xdb:global="false" xdb:hidden="false" xdb:transient="generated" xdb:baseProp="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="0" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="723" name="CreatorID" type="xdb:GUID" xdb:memType="23" xdb:system="false" xdb:mutable="false" xdb:SQLName="CREATORID" xdb:SQLType="RAW" xdb:JavaType="byteArray" xdb:global="false" xdb:hidden="true" xdb:baseProp="true" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="true" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="724" name="LastModifier" type="xdb:OracleUserName" xdb:memType="1" xdb:system="false" xdb:mutable="false" xdb:JavaType="String" xdb:global="false" xdb:hidden="false" xdb:transient="generated" xdb:baseProp="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="0" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="725" name="LastModifierID" type="xdb:GUID" xdb:memType="23" xdb:system="false" xdb:mutable="false" xdb:SQLName="LASTMODIFIERID" xdb:SQLType="RAW" xdb:JavaType="byteArray" xdb:global="false" xdb:hidden="true" xdb:baseProp="true" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="true" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="726" name="SchemaElement" type="xdb:SchElemType" xdb:memType="1" xdb:system="false" xdb:mutable="false" xdb:JavaType="String" xdb:global="false" xdb:hidden="false" xdb:transient="generated" xdb:baseProp="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="0" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="727" name="ElNum" type="nonNegativeInteger" xdb:memByteLength="4" xdb:memType="3" xdb:system="false" xdb:mutable="false" xdb:SQLName="ELNUM" xdb:SQLType="INTEGER" xdb:JavaType="long" xdb:global="false" xdb:hidden="true" xdb:baseProp="true" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="true" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="728" name="SchOID" type="hexBinary" xdb:memType="23" xdb:system="false" xdb:mutable="false" xdb:SQLName="SCHOID" xdb:SQLType="RAW" xdb:JavaType="byteArray" xdb:global="false" xdb:hidden="true" xdb:baseProp="true" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="true" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="733" name="Contents" type="xdb:ResContentsType" xdb:memType="258" xdb:system="false" xdb:mutable="false" xdb:JavaType="XMLType" xdb:global="false" xdb:hidden="false" xdb:transient="manifested" xdb:baseProp="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:JavaClassname="oracle.xdb.ResContentsTypeBean" xdb:beanClassname="oracle.xdb.ResContentsTypeBean" xdb:numCols="0" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="729" name="XMLRef" type="REF" xdb:memType="110" xdb:system="false" xdb:mutable="true" xdb:SQLName="XMLREF" xdb:SQLType="REF" xdb:JavaType="Reference" xdb:global="false" xdb:hidden="true" xdb:baseProp="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="730" name="XMLLob" type="hexBinary" xdb:memType="113" xdb:system="false" xdb:mutable="true" xdb:SQLName="XMLLOB" xdb:SQLType="BLOB" xdb:JavaType="String" xdb:global="false" xdb:hidden="true" xdb:baseProp="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="0" maxOccurs="1"/>
<element xdb:propNumber="731" name="Flags" type="nonNegativeInteger" xdb:memByteLength="4" xdb:memType="3" xdb:system="false" xdb:mutable="true" xdb:SQLName="FLAGS" xdb:SQLType="RAW" xdb:JavaType="long" xdb:global="false" xdb:hidden="true" xdb:baseProp="true" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="true" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="740" name="VCRUID" type="xdb:GUID" xdb:memType="23" xdb:system="false" xdb:mutable="false" xdb:SQLName="VCRUID" xdb:SQLType="RAW" xdb:JavaType="byteArray" xdb:global="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="1" maxOccurs="1"/>
<element xdb:propNumber="741" name="Parents" type="hexBinary" xdb:memType="23" xdb:system="false" xdb:mutable="false" xdb:SQLName="PARENTS" xdb:SQLType="RAW" xdb:JavaType="Reference" xdb:global="false" xdb:SQLCollType="XDB$PREDECESSOR_LIST_T" xdb:SQLCollSchema="XDB" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="0" minOccurs="0" maxOccurs="1000"/>
<element xdb:propNumber="745" name="SBResExtra" type="REF" xdb:memType="110" xdb:system="false" xdb:mutable="true" xdb:SQLName="SBRESEXTRA" xdb:SQLType="REF" xdb:JavaType="Reference" xdb:global="false" xdb:SQLCollType="XDB$XMLTYPE_REF_LIST_T" xdb:SQLCollSchema="XDB" xdb:hidden="true" xdb:baseProp="false" nillable="false" abstract="false" xdb:SQLInline="true" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTableSchema="XDB" xdb:numCols="1" minOccurs="0" maxOccurs="2147483647"/>
<any xdb:propNumber="735" name="ResExtra" xdb:memType="258" xdb:system="false" xdb:mutable="false" xdb:SQLName="RESEXTRA" xdb:SQLType="CLOB" xdb:JavaType="XMLType" namespace="##other" minOccurs="0" maxOccurs="65535"/>
</sequence>
<attribute xdb:propNumber="705" name="Hidden" type="boolean" xdb:memByteLength="1" xdb:memType="252" xdb:system="false" xdb:mutable="false" xdb:JavaType="boolean" default="false" xdb:hidden="false" xdb:transient="generated" xdb:baseProp="false"/>
<attribute xdb:propNumber="706" name="Invalid" type="boolean" xdb:memByteLength="1" xdb:memType="252" xdb:system="false" xdb:mutable="false" xdb:JavaType="boolean" default="false" xdb:hidden="false" xdb:transient="generated" xdb:baseProp="false"/>
<attribute xdb:propNumber="707" name="VersionID" type="integer" xdb:memByteLength="4" xdb:memType="3" xdb:system="false" xdb:mutable="false" xdb:SQLName="VERSIONID" xdb:SQLType="INTEGER" xdb:JavaType="long"/>
<attribute xdb:propNumber="708" name="ActivityID" type="integer" xdb:memByteLength="4" xdb:memType="3" xdb:system="false" xdb:mutable="false" xdb:SQLName="ACTIVITYID" xdb:SQLType="INTEGER" xdb:JavaType="long"/>
<attribute xdb:propNumber="738" name="Container" type="boolean" xdb:memByteLength="1" xdb:memType="252" xdb:system="false" xdb:mutable="false" xdb:JavaType="boolean" default="false" xdb:hidden="false" xdb:transient="generated" xdb:baseProp="false"/>
<attribute xdb:propNumber="739" name="CustomRslv" type="boolean" xdb:memByteLength="1" xdb:memType="252" xdb:system="false" xdb:mutable="false" xdb:JavaType="boolean" default="false" xdb:hidden="false" xdb:transient="generated" xdb:baseProp="false"/>
<attribute xdb:propNumber="742" name="VersionHistory" type="boolean" xdb:memByteLength="1" xdb:memType="252" xdb:system="false" xdb:mutable="false" xdb:JavaType="boolean" default="false" xdb:hidden="false" xdb:transient="generated" xdb:baseProp="false"/>
<attribute xdb:propNumber="743" name="StickyRef" type="boolean" xdb:memByteLength="1" xdb:memType="252" xdb:system="false" xdb:mutable="false" xdb:JavaType="boolean" default="false" xdb:hidden="false" xdb:transient="generated" xdb:baseProp="false"/>
<attribute xdb:propNumber="744" name="HierSchmResource" type="boolean" xdb:memByteLength="1" xdb:memType="252" xdb:system="false" xdb:mutable="false" xdb:JavaType="boolean" default="false" xdb:hidden="true" xdb:transient="generated" xdb:baseProp="false"/>
</complexType>
<element xdb:propNumber="734" name="Resource" type="xdb:ResourceType" xdb:memType="258" xdb:system="false" xdb:mutable="false" xdb:SQLName="RESOURCE" xdb:SQLType="XDB$RESOURCE_T" xdb:SQLSchema="XDB" xdb:JavaType="XMLType" xdb:global="true" nillable="false" abstract="false" xdb:SQLInline="false" xdb:JavaInline="false" xdb:MemInline="false" xdb:maintainDOM="false" xdb:defaultTable="XDB$RESOURCE" xdb:defaultTableSchema="XDB" xdb:JavaClassname="oracle.xdb.ResourceBean" xdb:beanClassname="oracle.xdb.ResourceBean" xdb:numCols="25" minOccurs="1" maxOccurs="1"/>
</schema>
Similar Messages
-
How to get the list of documents
Hi everyone
Can anyone help me How to get the list of documents residing in a folder of KM repository of SAP Netweaver using a simple java program
Thanks in ADV.
Rupesh KhemkaHi Rupesh,
I have written the code for you and it works with WebDynpro, no seperate java program is required.
Just try to paste it in your application code and run it.
try{
// Will check the user athentication for EP
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
IUser sapUser = wdClientUser.getSAPUser();
com.sapportals.portal.security.usermanagement.IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);
ResourceContext context = new ResourceContext(ep5User);
// The path in which your folder resides
RID rid1 =RID.getRID("/documents/Public Documents/SCAP/");
IResourceFactory factory1 = ResourceFactory.getInstance();
ICollection icollection = (ICollection)factory1.getResource(rid1, context);
IResourceList resourcelist = icollection.getChildren();
int size1 = resourcelist.size();
for(int s=0; s<listOfDocuments.getLength(); s++){
IResource resource = resourcelist.get(i);
InputStream input = new InputStream();
input = resource.getContent().getInputStream();
}catch(Exception e){
e.getMessage();
Once you get the InputStream everything else is possible....
This will surely help you in reading the documents from KM.
Regards,
Rekha Malavathu -
How to get invoice via material document
HI,
How to get invoice via material document is there any table or any inderect way?
thanks
panduHi Lakshimipathi,
thanks for your reply.
i have checked in vbfa but it's not showing anything.
my client is providing below information and asking that invoice number.
material,
plat,
material doc,
movement type,
posting date.
i have ran the mb59 by giving material , plant , movement type and Archive info struct as Z_MM_MATBE. here i got the material doc and same doc i have checked at table levle but it's showing.
and how can i get invoice number by using this information..
please letme know if you have any idea.
thanks in advance.
pandu. -
How to get the Next Material Document Number
Hi,
Please let me know How to get the next Material Document Number using Functional Module,
Material Document number are in MSEG table.
Regards,
GaneshHi Ganesh,
if you want the next matrial number then first of all you have to define it as a number range in transaction snro.After creating the number range you have to define the interval.
now you can use your number range by calling the function module
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01' " here you have to give the number range number which you have defined in number range
object = 'ZPRODLOG' " Number Range
IMPORTING
number = wa_prod_error_log-seqnr " sequence number generated,in your case material number field
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
OTHERS = 8.
each and every time next number will get generated .
i hope this will help you.
Thanks,
Tanmaya -
How to Get PO from Material Document by MB1B!
Hi,
I created a PO for subcontracting. When I send
the goods to vendor with trx MB1B and mvt type 541, Material Document Number will be generated (option: to Purchase Order) . When print out this Material Document Number by MB90, I want to get this PO number. Please let me know how to get the relation bw this PO and Material Document.(I have checked in MKPF-XBLNR, but it is blank).
Thanks in advance.there's no relation. the process how you have implemented it leaves no relation between PO and GM except for your doing so 'artificially' by filling field XABLN (for example) or any other.
if you would adjust the process to use deliveries (tx. ME2O) the prospect would not be much better but there would at least be a chance to find the relation.
as it is, SAP designed this to be a 'transfer posting' - to do it entering a PO-number is only in order to make typing easier but does not mean, items, quantities or anything else has to be entered as it is in the PO. you can add as many line items as you like ... as long as there's available stock you get your movement. -
How to get rid of old documents and emails?
hi,
how do i get rid of old documents and emails from my computer? i know they are there because when i type something in my search bar, i get documents and emails i got years ago. what do i do to get rid of these things?
thank you,
yellow_lamp
what i meant to say, if i didn't say it clear enough, was how do i get rid of old documents and emails that are not currently in my document folder or in my email inbox.Select the email/s you want to get rid of and then select delete. When all the emails are deleted, select your Trash mailbox, select all the emails and then select delete.
Documents you can drag to the trash (lower right side of Dock). Then empty the trash.
Then stop down to your local bookstore and get some books on Mac OS X. -
How to get back the standard document file on my dock
I accidentally moved the standard document file off my Dock and it "puffed" away. I found all the documents in the finder and got them to my desktop in one file, but when I tried to put it back on the Dock, it also remained on my desktop. When I threw that one away, and began to work with a document in my file on the Dock, it would not let me save--saying the original file was in the trash. I pulled it out of the trash and it remains on my desktop. Now I'm wondering how can I get that standard document file back on my Dock so that I can work with it properly. Thankfully nothing is lost--it's just not working as easily. Any thoughts?
Put the original back in your home folder where it should be.
Then drag it directly to the Dock being very careful not to release the mouse until the other icons move out of the way for it and the placeholder line appears.
That will create an alias in the Dock and your original will still be in your home folder. -
How to get the filename of document that opened my app
Hope that makes sense. I'm relatively new to OS X programming and have built a small Cocoa app (not a document-based app). I've associated a file type (.myFileType) with my application. If I double-click a file with that file type, it opens my app automatically as expected. From within my app, how do I get the full pathname of the document that opened my app?
I know what you're saying. IB is made to seem easy, but when you start asking "What's this?", and "What does that do when the nib is loaded??", the pretty pictures suddenly aren't as clear as they seemed. Been there!
The File's Owner never causes the creation of an object. It's always a "proxy" (a stand-in) for an object that's created elsewhere. The actual object may be defined in another xib, or it may be created in code. In MainMenu.xib. the File's Owner is a proxy for the Application object. The Application object isn't created because of that nib, it's created by the startup code before the nib is loaded. But the "proxy" allows you to make connections to the Application object in the xib.
I know this is clear as mud so far, but it will start to make sense after you grok a few more pieces of the puzzle. A good place to start might be Anatomy of a Nib File in the +Resource Programming Guide+.
Nib proxies are actually easier to understand when building an iPhone app. In that case, the SDK makes it much easier to associate proxies with the objects they represent. The concept is still the same, but for example, bridging two iPhone xibs with a proxy only takes a couple mouse clicks in IB.
Hope that helps!
\- Ray -
How to get the web of document from the URL
Hi All,
Need small help here,
I have SharePoint doc URL as below:
http://sharepoint.com/sub1/sub2/sub3/documents/TestFile.docx
Here, TestFile existed in document library of Subsite i.e. sub3.
If I give above URL as input, I should be able to get "sub3" web.
How can achieve this programmatically. Overall we should get the leaf web from the URL.
Thanks in advance.
KrishnasandeepHi Sanny521,
The SPSite constructor does not care when you pass in the document library and filename as part of the url. you can use the following code:
string myFileUrl = "http://sharepoint.com/sub1/sub2/sub3/documents/TestFile.docx";
using (SPSite site = new SPSite(myFileUrl))
using (SPWeb web = site.OpenWeb())
SPFile file = web.GetFile(myFileUrl);
string webUrl = web.ServerRelativeUrl;
You pass the full url into the SPSIte constructor, it will retrieve the site collection, then the OpenWeb call will retrieve the proper web from the already passed full url, then you can retrieve the file and the url of the SPWeb.
Mathieu Desmarais http://www.matdesmarais.com/ -
How to get File object from Document Object . ?
In conventional Dom Parsing we pass file to DocumentBuilder to get Document Object .
File file = new File("c:\\MyXMLFile.xml");
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(file); // gOT Document here . My problem is how do i get File object back from Document . If i have Document object with mi.
Please consider above code as example i dont have File object in my code . i am using Xhive DB API where i get Document directly from API method .
I need to convert this Document to File to get size of file
Please suggest solution on this
Edited by: AmitChalwade123456 on Dec 5, 2008 6:10 AMHello Guys any views on this topic
-
How To Get A Custom WebDAV To Run in Windows Server 2008 R2 with IIS 7.0
I am trying to create a WebDAV application using the below link as my starting point.
http://sourceforge.net/projects/webdav/
I got it working just fine in IIS6 but can't seem to get it to work in IIS7. Does anybody know if there are any unique configuration settings that need to be made to make it work in IIS7?
The problem appears to be with the authentication. When I attempt to connect via Network Folder using http I get a 401 challenge dialog and it won't accept any credentials.
The website is running under a yy service account and has no problem accessing the database, but once it attempts to access the file using http it throws the 401 error.
Below is the web.config that is attaching the http handler to process all the verbs
<system.webServer>
<modules>
<add name="FileWebDAVModule" type="Sphorium.WebDAV.Examples.FileServer.FileWebDAVModule, Sphorium.WebDAV.Examples.FileServer" />
</modules>
<handlers>
<clear/>
<add name=".NET Runtime" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness64" />
</handlers>
</system.webServer>Try here: http://forums.iis.net/1042.aspx/1?Extensibility
Visual C++ MVP -
How to get the times a document has been opened
Does somebody know if exists any kind of property attached to documents that can tell who many times a document has been opened? Or there is a way to know this in a different way?
Thank you in advanced.Hi Pablo,
To obtain such statistical information wecan implement KM apis.. in the sense create repository services That can count the actual number of times a document is accessed
see this link for repository services
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to develop with the repository framework apis.pdf
Also refer to the following forum Looking for way to count a specific document hits(Not with Activity Report) for further assistance.
Hope this helps,
Regards,
Uma. -
How to get to the archived documents in KM?
I am trying to implement a feature that will retrieve (and then delete) archived documents in KM.
Any idea where the documents are stored?
Thanks
SidHi Sid,
for sure there will be such a way... but this is really something you shouldn't do. The whole database storing is totally undocumented and should be totally transparent for the developer. Just don't care about the fact that it exists!
(And that says someone who loves to wade through undocumented code and who wants to get behind the secrects no one wants to tell...)
Really, the way you have started is the way it should work. As said in another thread here, try to reduce the not working example to a minimum of code etc and if the problem still exists, open an OSS message.
If you get a super-small example being built, expand this line by line, if needed char by char , until you see what causes the problem. By this way you would also see if it's a problem of your coding of whatever or a problem of the wizard etc. (again the chance to open an OSS message).
Hope it helps
Detlev -
How to get relationship between material document no and accounting documen
Hi Experts !!
I want to create a report displaying accounting document no and GL account no buy providing PO No and material document no (MIGO No).
I want a database table from where I can get material document no (MIGO No)(MBLNR/BELNR) and accounting document(BELNR) no both.Currently I am using
BSEG for getting HKONT,EBELN,BELNR
MSEG for getting MBLNR by using EBELN (P.O. NO)
BKPF for getting BUDAT.
the problem came with EBELN (P.O. NO) as repeated entries are there.
I am unable to write query for getting MBLNR and BELNR for same EBELN (P.O. NO).
Is there any table where MBLNR and BELNR are related to each other??????
Thanks in advance !!!!Check this thread, if this helps.
[url] Link between MKPF table and EKKO or RBKP table [url]
I've done this as well earlier to create a custom document flow for archived documents where from the EBELN i've found all the related documents. Hope this helps. -
Office Suite - how to get Downloads into 'my documents'?
Whenever I download any file e.g. from an e-mail - Word, PDF etc - the file goes into 'Recent files' - it will NOT go into 'My documents' - even though this is supposed to be the 'default folder' for downloaded files. Can anyone please help? I do not want all my documents in 'recent files' as I am worried that once they are not 'recent' any more, or I have not looked at the for a while they may get deleted, yet these are files I want to keep. I have looked in all the settings but there seems to be no way of changing this. I have version 6.5.1010
Thank you.I suggest that you check with concerned app developer support.
http://www.mobisystems.com/
- Community Manager Sony Xperia Support Forum
If you're new to our forums make sure that you have read our Discussion guidelines.
If you want to get in touch with the local support team for your country please visit our contact page.
Maybe you are looking for
-
How do you send more than one photo in an email?
As above.....can you attach more than one photo to an email?
-
How to format external harddrive for mac use!
Should I use My new external hard drive right out of the box for back-ups, or re-format it? Its a 1 (TB) drive?
-
HT3529 How do you get your imessages back once you deleted them
I deleted my icloud messages and messages how do i get them back.
-
How to detect DataGridColumn's width
Hi, When I resize DataGridColumn, may I know if existing any methods to detect DataGridColumn's width after mouse release? Thanks,
-
Where do I get Leopard 10.5?
Hi, I just bought a Powerbook G4 on Ebay and it seems to be working fine - however I need to upgrade to Leopard 10.5 and can't seem to find it. Anyone have any suggestions or have one I can buy? Any help is much appreciated. PS I am in Melbourne Aust