Manipulating objects in WebDAV repository via BSP
Hi community,
I need to publish my documents uploaded from BSP page to a Unix machine running Slide as WebDAV repository.
I found an ABAP interface (IF_HTTP_WEBDAV_RESOURCE ) that seems to do the job, but no example is supplied.
Did someone already deal with this problem?
Thank in advance,
Stefano
Hi
<b>There are several references to the Interface - IF_HTTP_WEBDAV_RESOURCE
Look for the following Classes where this interface is used -></b>
CL_HWR_SKWF_LOIO
CL_HWR_SKWF_RESOURCE
CL_O2_HTTP_WEBDAV
CL_RCM_WEBDAV_RESOURCE
CL_RCM_WEBDAV_RESOURCE_CONT
CL_RCM_WEBDAV_RESOURCE_GSP
CL_RR_RESOURCE
CL_SRM_WEBDAV_RESOURCE_BDV
CL_HTTP_EXT_BSP_MIME
CL_HTTP_EXT_WEBDAV_PUBLIC
CL_HWR_SKWF_APP
CL_HTTP_EXT_WEBDAV_SKWF
CL_HTTP_WEBDAV
CL_HTTP_WEBDAV_RSOD_TMPL
CL_HTTP_WEBDAV_SKWF
CL_HTTP_WEBDAV_SKWF_FS
<u>Using SE24 transaction, you can find the code of all the relevant details in this case.</u>
Hope this will defintely help.
Regards
- Atul
Similar Messages
-
Supplying username and password to repository via code
Hi There,
Is there a way to supply the username and password to the webdav repository via code or in the address line? We have an ActiveX object accessing files and would like to avoid the repository prompting.
ThanksWith Script I can do it as follows.. See VerifyConnection
Option Explicit
Const iTimeOutInSecs = 60
Const ForWriting = 2
Rem ************** MAIN *****************
main
Wscript.quit
Sub Main
Dim WShell, FileSystem
Dim davControl
Dim objArgs, targetPath, serverURL, username, password, rootFolder, filter
Dim fileUploadList, result
Dim folderList, filelist
Dim status
Dim spoolFile
Set wShell = WScript.CreateObject("WScript.Shell")
Set fileSystem = WScript.CreateObject("Scripting.FileSystemObject")
Set spoolFile = fileSystem.OpenTextFile("httpUploadLoad.log", ForWriting, True)
Set objArgs = WScript.Arguments
targetPath = objArgs(0)
serverUrl = objArgs(1)
username = objArgs(2)
password = objArgs(3)
rootFolder = objArgs(4)
If objArgs.length = 6 Then
filter = objArgs(5)
Else
filter = Empty
End If
Set fileUploadList = CreateObject("Msxml2.DOMDocument.4.0")
fileUploadList.async = False
result = fileUploadList.load(targetPath)
If (result = False) Then
MsgBox "Failure while loading or parsing file : " & targetPath,vbCritical
Wscript.quit
End If
Set davControl = new DavControlClass
davControl.setServer serverURL, username, password
davControl.setSpoofile(spoolfile)
status = verifyHttpConnection(davControl, username)
Set folderList = fileUploadList.documentElement.selectNodes("/Upload/directories/directory")
createFolders davControl, rootFolder, folderList, username, password, filter
Set fileList = fileUploadList.documentElement.selectNodes("/Upload/files/file")
uploadFiles davControl, rootFolder, fileList, username, password, filter
spoolfile.close()
End Sub
Function verifyHttpConnection(davControl,username)
Dim status, targetFolder
targetFolder = "/home/" & username
status = davControl.verifyConnection(targetFolder)
verifyHttpConnection = status
End Function
Sub createFolders(davControl, rootFolder, folderList, username, password, filter)
Dim i, targetFolder, targetFolderPath
For i = 0 to folderList.length - 1
Set targetFolder = folderList.item(i)
targetFolderPath = rootFolder & targetFolder.text
If IsNull(filter) or (InStr(targetFolder.text,filter) = 1) Then
'wscript.echo "Making " & targetFolderPath
davControl.makeDir targetFolderPath,true
End If
Next
End Sub
Sub uploadFiles(davControl, rootFolder, fileList, username, password, filter)
Dim i, targetFile, targetFilename, localFilename
For i = 0 to fileList.length - 1
Set targetFile = fileList.item(i)
targetFilename = rootFolder & targetFile.text
localFilename = Right(replace(targetFile.text,"/","\"),Len(targetFile.text)-1)
If IsNull(filter) or (InStr(targetFile.text,filter) = 1) Then
'wscript.echo "Uploading " &localFilename & " as " & targetFilename
davControl.uploadFile localFIlename, targetFileName, "FORCE"
End If
Next
End Sub
Class DavControlClass
Private HTTPUser
Private HTTPPassword
Private HTTPServer
Private installParameters
Private windowsShell
Private XMLHTTP_CLASS_ID
Private HttpObject
Private spoolFile
Dim folderStatusList
Private Sub Class_Initialize()
XMLHTTP_CLASS_ID = "Msxml2.XMLHTTP.6.0"
Set HttpObject = CreateObject(XMLHTTP_CLASS_ID)
folderStatusList = Empty
End Sub
Public Sub setSpoofile(file)
Set spoolFile = file
End Sub
Public Sub setParameters(wshell, params)
Set installParameters = params
Set windowsShell = wShell
setServer params.getServerURL(), params.getUser(), params.getPassword()
End Sub
Public Sub setServer(serverURL,serverUser,serverPassword)
HTTPServer = serverURL
HTTPUser = serverUser
HTTPPassword = serverPassword
End Sub
Public Function getServerURL
getServerURL= HTTPServer
End Function
Public Function verifyConnection(target)
On Error Resume Next
HttpObject.Open "HEAD", HTTPServer & target, false, HTTPUser, HTTPPassword
If Err.Number <> 0 Then
WScript.echo "verifyConnection() - Fatal Error encountered accessing : " & HTTPServer & target & ". Status (" & Hex(Err.number) & ") " & Err.Description
Wscript.quit
End If
On Error GoTo 0
HttpObject.setRequestHeader "Content-type", "text/xml"
HttpObject.setRequestHeader "Depth", "1"
On Error Resume Next
HttpObject.send ("")
If Err.Number <> 0 Then
WScript.echo "resetConnection() - Fatal Error encountered accessing : " & HTTPServer & target & ". Status (" & Hex(Err.number) & ") " & Err.Description
Wscript.quit
End If
On Error GoTo 0
If HTTPObject.status <> 200 Then
MsgBox "Unable to access " & getServerURL() & target & ". HTTP Status = " & HTTPObject.status & ". Please correct installParameters.xml and restart Installation",vbCritical
Wscript.quit
End If
spoolfile.writeline "HTTP Successfully Connected to '" & getServerURL() & target
verifyConnection = HTTPObject.status
End Function
Public Function uploadFile (local, remote, mode)
Dim returnCode, rc
returnCode = doHead(remote)
If returnCode = 401 Then
MsgBox "uploadFile() - Unauthorized (Status (" & returnCode & "). Unable to upload '" & local & "' into '" & remote & "'. Please check installParameters.xml and log files.",vbCritical
Wscript.quit
End If
If returnCode = 200 Then
If mode = "ERROR" Then
MsgBox "uploadFile() - Installation Failed. Resource Exists : '" & remote & "'. Please check installParameters.xml and restart Installation",vbCritical
Wscript.quit
End If
If mode = "SKIP" Then
uploadFile = returnCode
Exit Function
End If
If mode = "FORCE" Then
rc = doDelete(remote)
End If
End If
uploadFile = doPut (local, remote, null)
If uploadFile = 500 Then
MsgBox "UploadFile() - Upload Failed (Status (" & uploadFile & "). Unable to upload '" & local & "' into '" & remote & "'. Retry in Progress.",vbCritical
uploadFile = doPut (local, remote, null, user, password)
If uploadFile = 500 Then
MsgBox "UploadFile() - Installation Failed (Status (" & uploadFile & "). Unable to upload '" & local & "' into '" & remote & "'. Please check installParameters.xml and log files.",vbCritical
Wscript.quit
End If
End If
If uploadFile = 401 Then
MsgBox "UploadFile() - Unauthorized (Status (" & uploadFile & "). Unable to upload '" & local & "' into '" & remote & "'. Please check installParameters.xml and log files.",vbCritical
Wscript.quit
End If
End Function
Public Function makeDir(targetFolder,force)
Dim Status, ParentFolder
status = doHEAD(targetFolder)
If not IsEmpty(folderStatusList) Then
folderStatusList.add targetFolder, status
End If
If (status = 404 or status = 409) and force Then
parentFolder = Mid(targetFolder,1,InStrRev(targetFolder,"/")-1)
makeDir parentFolder,true
status = doMKCOL(targetFolder)
End If
makeDir = status
If status = 401 Then
MsgBox "doMKCOL() - Unauthorized (Status (" & status & "). Unable to create '" & targetFolder & "'. Please check installParameters.xml and log files.",vbCritical
Wscript.quit
End If
End Function
Public Function doHEAD(remote)
' Dim HttpObject
' Set HttpObject = CreateObject(XMLHTTP_CLASS_ID)
' HttpObject.Open "HEAD", HTTPServer & remote, false, user, password
HttpObject.Open "HEAD", HTTPServer & remote, false
HttpObject.setRequestHeader "Content-type", "text/xml"
HttpObject.setRequestHeader "Depth", "1"
On Error Resume Next
HttpObject.send ("")
If Err.Number <> 0 Then
WScript.echo "doHEAD() - Fatal Error encountered accessing : " & HTTPServer & remote & ". Status (" & Hex(Err.number) & ") " & Err.Description
Wscript.quit
End If
On Error GoTo 0
doHead = HttpObject.status
End Function
Public Function doPUT(local,remote,contentType)
Dim tmStart
Dim tmCurr
Dim iTimeTaken
Dim currentStatus
Dim ado_stream
Dim uploadCount, uploadStatus
Set ado_stream = CreateObject("ADODB.Stream")
ado_stream.Type = 1
ado_stream.Open()
On Error Resume Next
ado_stream.LoadFromFile(local)
If Err.Number <> 0 Then
WScript.echo "doPUT() - Fatal Error encountered reading File : " & local & ". Status (" & Hex(Err.number) & ") " & Err.Description
Wscript.quit
End If
On Error GoTo 0
HttpObject.Open "PUT", HTTPServer & remote, false
If not IsNull(contentType) Then
HttpObject.setRequestHeader "Content-type", contentType
End If
tmStart = Now
On Error Resume Next
HTTPObject.send(ado_stream.Read(-1))
If Err.number <> 0 Then
' Unexpected errors can occur as a result of the HTTP request being passed to wrong database instance
' when multiple databases are using the same listener.
WScript.echo "doPUT() - Fatal Error encountered uploading File : " & local & ". Status (" & Hex(Err.number) & ") " & Err.Description
WScript.quit
Else
currentStatus = HTTPObject.status
End If
On Error GoTo 0
uploadCount = 1
uploadStatus = doHead(remote)
Do While uploadStatus <> 200 and uploadCount < 6
' Unexpected errors can occur as a result of the HTTP request being passed to wrong database instance
' when multiple databases are using the same listener.
spoolfile.writeline "Http Error encountered uploading " & local & " to " & HTTPServer & remote &". Status=" & currentStatus
currentStatus = retryPUT(local,remote,contentType)
uploadCount = uploadCount + 1
uploadStatus = doHead(remote)
Loop
If uploadStatus = 200 Then
tmCurr = Now
spoolFile.writeLine "Uploaded File " & local & ". Elapsed Time = " & CInt(DateDiff("s", tmStart, tmCurr)) & " seconds."
Else
WScript.echo "doPUT - Fatal Error uploading file (" & HTTPServer & remote & ") : Status=" & HTTPObject.status
WScript.quit
End If
doPut = currentStatus
ado_stream.Close()
End Function
Public Function retryPUT(local,remote,contentType)
Dim ado_stream
Set ado_stream = CreateObject("ADODB.Stream")
ado_stream.Type = 1
ado_stream.Open()
On Error Resume Next
ado_stream.LoadFromFile(local)
If Err.number <> 0 Then
WScript.echo "doPUT() - Fatal Error encountered reading File : " & local & ". Status (" & Hex(Err.number) & ") " & Err.Description
Wscript.quit
End If
On Error GoTo 0
HttpObject.Open "PUT", HTTPServer & remote, true
If not IsNull(contentType) Then
HttpObject.setRequestHeader "Content-type", contentType
End If
On Error Resume Next
HTTPObject.send(ado_stream.Read(-1))
If Err.Number <> 0 Then
ado_stream.Close()
WScript.echo "doPUT() - Fatal Error encountered sending File : " & local & " to " & HTTPServer & remote &". Status (" & Hex(Err.number) & ") " & Err.Description & ". Retrying ...."
Wscript.quit
Else
Do While HTTPObject.readyState <> 4
WScript.Sleep(1000)
Loop
End If
On Error GoTo 0
ado_stream.Close()
retryPut = HTTPObject.status
End Function
Public Function doMKCOL(remote)
' wscript.echo "doMKCOL (" & HTTPServer & remote & ")"
Dim currentStatus
HttpObject.Open "MKCOL", HTTPServer & remote, false
HttpObject.setRequestHeader "Content-type", "text/xml"
On Error Resume Next
HttpObject.send("")
If Err.Number <> 0 Then
WScript.echo "doMKCOL() - Fatal Error encountered making Folder : " & HTTPServer & remote &". Status (" & Hex(Err.number) & ") " & Err.Description
Wscript.quit
End If
On Error GoTo 0
If HTTPObject.status <> 201 Then
WScript.echo "doMKCOL() - Fatal Error encountered making Folder : " & HTTPServer & remote &". Status (" & HTTPObject.status & ")."
Wscript.quit
End If
doMKCOL = HTTPObject.status
End Function
Public Function doDELETE(remote)
HttpObject.Open "DELETE", HTTPServer & remote, false
HttpObject.setRequestHeader "Content-type", "text/xml"
On Error Resume Next
HttpObject.send("")
If Err.Number <> 0 Then
WScript.echo "doMKCOL() - Fatal Error deleting : " & HTTPServer & remote &". Status (" & Hex(Err.number) & ") " & Err.Description
Wscript.quit
End If
On Error GoTo 0
doDELETE = HTTPObject.status
If HTTPObject.status <> 201 and HTTPObject.status <> 204 and HTTPObject.status <> 207 and HTTPObject.status <> 404 Then
wscript.echo "doDELETE (" & HTTPServer & remote & ") : Status=" & HTTPObject.status
End If
End Function
End Class -
How can i connect Microsoft Frontpage 2003 to CQ5 Repository via WebDav ?
Hi,
i have a little problem.
I need to connect Microsoft Frontpage 2003 to CQ5 Repository via WebDav keeping the functions of competitive access (check-in, check-out, file lock).
Someone have any idea?Hi,
Check configuration
http://help.sap.com/saphelp_45B/helpdata/en/04/81dd57bf2811d2897f0000e8216438/frameset.htm -
Error while loading the runtime repository via HTTP
Hi Experts,
I am trying to delete an enhancement and when I enter the component name and the enhancement set in BSP_WD_CMPWB. I get the following error when right click the enhanced view and select delete : Error while loading the runtime repository via HTTP. How do I delete this enhancement?
Regards
Abdullah Ismail.if for some reason the runtime repository is not coherent, you get an error each time you try to read it (and this is the case when you open a component using the transaction BSP_WD_CMPWB)
this is because the XML file is interpreted by a CALL TRANSFORMATION statement, and any incorrect node will raise an uncaught exception
solution:
enhanced view is contained into BSP application you have created the first time you enhanced the component
go to SE80 and enter the BSP application where your objects are stored (the name you provided the first time)
there you can modify directly the objects, including the runtime repository which is stored under node "Pages with flow Logic"
once the correction is done, you can access again your component through transaction BSP_WD_CMPWB (and delete it properly if this is what you want to do) -
WebDav Repository Manager Disappears???
Hello,
I am seeing some strange behavior with an IIS WebDAV based KM WebDAV repository manager I created. I used the following as a basis for my setup.
http://help.sap.com/saphelp_nw04/helpdata/en/4a/217fb6c33c6748a1715a161ac942cd/frameset.htm
I created the memory cache, CM HTTP System, a portal system aliased with the same ID as the CM system, and finally the WebDAV Repository manager. If further setting detail is needed I can send that. The repository worked on Friday. It is not there today. This has happened twice. When I drill down into Content Administration > KM Content>root > runtime > Repository Managers... > IISWD > servers I am presented with "hostname". When I select Details>Properties>Miscellaneous tab I see failures.
Example:
last-failure-1: 2007-07-16T20:12:14Z: PROPFIND /ExternalPortal: com.sapportals.wcm.WcmException: sending request to: http://hostname/ request uri: /ExternalPortal unable to connect to hostname: unknown host: hostname (java.net.UnknownHostException: hostname)
All of the required KM objects mentioned before are still present and configured as they were a few days ago. Is my repository loosing it's reference to the CM HTTP System.? Has anyone seen this before?
Thanks,
DougHi Doug
I believe the problem is that your HTTP System in the portal cannot see the share you are trying to integrate into the potal. Is it a webdav-share set up using an IIS?
I have tried to implement the WebDAV/SSO solution where we got the same error for no reason. But after installing some different hotfixes (http://support.microsoft.com/default.aspx?scid=kb;en-us;893246, eg) and changing server to a standalone IIS, the error didn't occur any more.
Hope that can give you some ideas.
Kind regards,
Martin -
Got error message when store XML documents into XML DB repository, via WebD
Hi experts,
I am in I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
I got error message when store XML documents into XML DB repository, via WebDAV.
I have successfully registered 5 related schemas and generated 1 table.
I have inserted 40 .xml files into this auto generated table.
using these data I created relational view successfully.
but since I couldn't store XML documents into XML DB repository, via WebDAV
when I query using below code:
SELECT rv.res.getClobVal()
FROM resource_view rv
WHERE rv.any_path = '/home/DEV/messages/4fe1-865d-da0db9212f34.xml';
I got nothing.
My ftp code is listed below:
ftp> open localhost 2100
Connected to I0025B368E2F9.
220- C0025B368E2F9
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 I0025B368E2F9 FTP Server (Oracle XML DB/Oracle Database) ready.
User (I0025B368E2F9:(none)): fda_xml
331 pass required for FDA_XML
Password:
230 FDA_XML logged in
ftp> cd /home/DEV/message
250 CWD Command successful
ftp> pwd
257 "/home/DEV/message" is current directory.
ftp> ls -la
200 PORT Command successful
150 ASCII Data Connection
drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 .
drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 ..
226 ASCII Transfer Complete
ftp: 115 bytes received in 0.00Seconds 115000.00Kbytes/sec.
250 SET_CHARSET Command Successful
ftp> put C:\ED\SPL\E_Reon_Data\loaded\4fe1-865d-da0db9212f34.xml
200 PORT Command successful
150 ASCII Data Connection
550- Error Response
ORA-00600: internal error code, arguments: [qmxConvUnkType], [], [], [], [], [], [], [], [], [], [], []
550 End Error Response
ftp: 3394 bytes sent in 0.00Seconds 3394000.00Kbytes/sec.
I have tried all suggestion from another thread such as:
alter system set events ='31150 trace name context forever, level 0x4000'
SQL> alter system set shared_servers = 1;
but failed.
is there anyone can help?
Thanks.
Edited by: Cow on Mar 29, 2011 12:58 AMHi experts,
I am in I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
I got error message when store XML documents into XML DB repository, via WebDAV.
I have successfully registered 5 related schemas and generated 1 table.
I have inserted 40 .xml files into this auto generated table.
using these data I created relational view successfully.
but since I couldn't store XML documents into XML DB repository, via WebDAV
when I query using below code:
SELECT rv.res.getClobVal()
FROM resource_view rv
WHERE rv.any_path = '/home/DEV/messages/4fe1-865d-da0db9212f34.xml';
I got nothing.
My ftp code is listed below:
ftp> open localhost 2100
Connected to I0025B368E2F9.
220- C0025B368E2F9
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 I0025B368E2F9 FTP Server (Oracle XML DB/Oracle Database) ready.
User (I0025B368E2F9:(none)): fda_xml
331 pass required for FDA_XML
Password:
230 FDA_XML logged in
ftp> cd /home/DEV/message
250 CWD Command successful
ftp> pwd
257 "/home/DEV/message" is current directory.
ftp> ls -la
200 PORT Command successful
150 ASCII Data Connection
drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 .
drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 ..
226 ASCII Transfer Complete
ftp: 115 bytes received in 0.00Seconds 115000.00Kbytes/sec.
250 SET_CHARSET Command Successful
ftp> put C:\ED\SPL\E_Reon_Data\loaded\4fe1-865d-da0db9212f34.xml
200 PORT Command successful
150 ASCII Data Connection
550- Error Response
ORA-00600: internal error code, arguments: [qmxConvUnkType], [], [], [], [], [], [], [], [], [], [], []
550 End Error Response
ftp: 3394 bytes sent in 0.00Seconds 3394000.00Kbytes/sec.
I have tried all suggestion from another thread such as:
alter system set events ='31150 trace name context forever, level 0x4000'
SQL> alter system set shared_servers = 1;
but failed.
is there anyone can help?
Thanks.
Edited by: Cow on Mar 29, 2011 12:58 AM -
Hello,
i have create a webdav-repository with follow configuration:
Prefix: /ad_cp
System_Path: reference to the root directory in the target system (/irj/servlet/prt/portal/prtroot/com.rs.pct.ep.km._._.parf.webdav.docs)
Now in the source system the webdav repository not indicated as "/ad_cp" but as "root".
which configuration must I make thereby repository is correctly indicated.
Thanks for your help!Hi Martina,
The portal UI does not display the actual resource names, but instead it does show the value of the displayName property. At least, if this is present.
And the WebDav RM, naturally, does reflect all properties of the referenced remote resources locally.
So in your situation the remote target has the displayName property "root" and this overlaps the configured prefix name.
Note: This only applies to the portal html UI. If you access your portal via WebDav then you'll see the expected prefixes.
Best regards,
Michael -
WebDAV repository to Content Server
Hi all,
I have a problem. We have some data in a content server, and would like to create a repository to allow users to read the file on this content server. SAP says it is posible to technically posible to connect to the content server via webdav, but I can't find how to do it. If I make a connection to the IIS I only get the files in the home directory of the content server website, that is som dlls. If I make a webdav connection to the database I only get a connection to a system webdav table that have nothing, and can't configure the table to use the content server tables.
Any idea on how to solve this? Can't use the DMS connector in this case, because we use archivelink.
Thanks in advance,
Gregori Coll Ingles.Hi Gregori
You can configure your content server data as file repository. You can refer this link for the
configuration of file repository.
http://help.sap.com/saphelp_nw04/helpdata/en/4c/9d953fc405330ee10000000a114084/frameset.htm
Or if you want to do it using IIS Server. You have to
1) Creat one virtula directory under your default website.
2) Apply your data folder as the Web Site Content Directory for that virtual directory.
For eg. you have created the virtual directory named 'Content' then you can access your web site as
http://website/Content.( website= yours website ip or name)
3) Give the same path as above in 'http system' which you have created for the WebDAV repository.
Hope this will help you.
Prasad -
Eliminating logon when calling R/3 transaction via BSP
Is it possible to eliminate logon when calling SAP R/3 tcode via BSP. I run
http://<FQDN>:<port>/sap/bc/gui/sap/its/webgui/!?client=%3c100%3e&transaction=SE80
but have to login each time. I could embed my username/pwd on the url string, but is there another method?
I also thought about using the URL iView parameters (Mapped User, Mapped Password) within Property Editor, but content admins will be able to see username and password when opening the iview. Any suggestions?
Regards,
JamesI figured this one out.
Regards,
James -
Save a PDF document with password via BSP
Hello,
I am using the code following code to show a PDF via BSP:
response->set_header_field( name = 'content-type'
value = 'application/pdf' ).
some Browsers have caching probs when loading PDF
response->set_header_field(
name = 'cache-control'
value = 'max-age=0' ).
l_pdf_xstring contains PDF data
l_pdf_len = XSTRLEN( l_pdf_xstring ).
response->set_data( data = l_pdf_xstring
length = l_pdf_len ).
navigation->response_complete( ).
Now I need that a password will be required before to show the PDF.
At the same time, this PDF should be saved with a password.
Thanks in advance for your help.Hi David,
The reason for the numerous implementations of 3rd-party tools to encrypt PDF (that is to say, add a user password) is that Adobe publishes the documentation.
If you want to implement it yourself in your BSP application, I would greatly advise having a look at this : http://partners.adobe.com/public/developer/en/pdf/PDFReference16.pdf
In particular, section 3.5
Hope it helps !
Best regards,
Guillaume
Message was edited by: Guillaume Garcia -
KM links not functioning through Webdav repository view
Hi All,
I have a somewhat complicated setup here which is causing some strange issues.
We have an EP instance and a BI portal instance setup. Currently we broadcast reports to our BI portal KM instance, and use ICE to replicate the data from BI portal KM to EP KM. This is not the desired end result.
According to SAP, the end result should consist of using a Webdav repository solution. When users hit the EP KM, specifically the content that is being replicated over currently, they would hit a Webdav repository which points to the BI portal KM, which has an identical KM folder structure. So far this works fine. The problem happens when we create links within the BI portal KM.
Near the root of the KM structure, we have the main content. We link back to this main content with different permissions on each link. This is done for business reasons.
When I try to access this linked content from the BI portal KM it works fine. From the EP KM it throws a HTTP 403 not authorized error. I have tried opening up the permissions to everyone on both KM's with no success. When I access the content directly (ie not linked) it works fine (same permissions). Any ideas why the linked content through a webdav repository would throw HTTP 403 errors?
Kind Regards,
Richard
Edit: I should add that we are currently using EP 7.0 EHP1 SP3 highest current patch level and BI 7.0 EHP1 SP3 highest current patch level.
Edited by: Richard de Gonzague on May 5, 2009 4:33 PMHi,
I have a similar requirement where in we need to integrate CRM Content Management with SAP KM.Can you please let me know -
1. How do I connect it using the Web Dav repository manager. Can you point me to the document.
2. If you were to resolve the error that is mentioned below. I will have a similar requirement once the WebDav repository manager is configured.
Thanks,
Vivek -
How to delete object in Integration Repository SAP PI 7.0
how to delete object in Integration Repository SAP PI 7.0
Hi Rashmi,
Right click on the object, you would find the option to delete--> select it. Goto Changelist Tab and activate the changes.
Ref: /people/siva.maranani/blog/2005/05/22/how-to-delete-software-component-from-integration-builder
Re: How to delete/remove the software component from integration repository
Thanks, -
How to UnLock the object in Integration Repository of XI.
Hi Experts, when i try to edit the object in IR, i am getting following message.
Object Message Mapping EmpResponce_MM | urn:pas.com/neh currently being edited by user 9SGRANDHI.
Note: it is saying my ID itself, i logged off and logged in, still its showing same mesage, how to unlock the object in Integration Repository of XI.
please help me out.
thanks
sivaHi,
Go to Home page of XI,there u will have Administrator,select it and click on localobjects.There u will have IR and ID in that select lockoverview and remove ur lock.
this authorization will be given to basis guys check u have it or not.
Regards,
Phani
Reward points if helpful -
WebDav Repository - MS Sharepoint Integration
Hi Everybody,
I'm trying to apply the things I read in the article "Interoperability between SAP Enterprise Portal 6.0 and Windows SharePoint Services" (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e891378-0601-0010-5386-a3387f1b161b).
It's about configuring WebDav repositories to access HTTP Systems. I'm trying to acces documents stored in MS Sharepoint.
I'm having a problem with security.
The IViews I use to access the WebDav repository I defined are working well and showing the content stored in MS Sharepoint.
My problem is that those IViews are showing the info with the privileges granted to the user I've used to define the HTTP System.
In that config screen, there's a checkbox that says "Same user domain". Its hint says that if it is checked, the credentials of the logged user would be forwarded to the http server, but this is not happening.
I'm logging on to SAP Portal with an user that has no permissions in Sharepoint and i'm still seeing the documents and I can even upload new documents.
Can anybody help me?
Thanks in advance, Fede.Hi all,
the WSS WebDAV Connector (aka "SharePoint WebDAV Connector, SWC) was released some days ago and a new Interoperability Section on Microsoft-sap.com is now live.
See http://www.microsoft-sap.com/technology.aspx --> SAP Enterprise Portal (EP) for the WSS WebDAV Connector.
In the SWC documentation there are some hints for the configuration of the security requirements / authentication types which should be helpful for your problem.
Kind regards,
Robert Draken, Comma Soft AG. -
Problem in getting the function template object from the repository.
Hi all,
I have created a par file. I have a JCO connection in that. I am facing problems in getting the function template object from the repository. This thing is running successfully when i try to deploy it in Tomcat. But i am facing problems when i try to deploy it in SAP EP 6.0.
Below is statement which is giving error after being deployed to SAP EP6.
This is executing fine when executed in Tomcat Server.
// getting the object of function template
IFunctionTemplate functionTemplate =
aRepository.getFunctionTemplate("YADDNEWUSER");
Note : YADDNEWUSER is the name of the RFC which I am calling from my JAVA Code.
Thanks in advance,
DivijaThis sounds like a bug in the smart upload code. I have used this stuff before, but it's probably an older version, so maybe they broke something. Enumerations aren't usually guaranteed to keep things in any particular order. I would say for now, make a method to take the enumeration and a param name to find the value. And write to the JSPSmart people.
Maybe you are looking for
-
Milestone Billing with DownPayment Clearing
Hi folks, I have a problem that the Downpayment made by the customer and posted through transaction F-29 is not being shown as the second line item (below the actual billing item). Actually as per the SAP documentation "those payments already made ar
-
How to create a service to UPLOAD / DOWNLOAD and send emails with files?
Good afternoon! I need to create a service that sends files via email or FTP, and a service to upload / download files on a server. I see on the internet does not have much aid to make it in the ADF. Could someone send me some links, documentation, s
-
SYNCHRONIZATION WITH OULOOK CALENDAR
hi everyone I'm new with Iphone...it is really nice...but I have a probleme to syncrhronize my agenda with outlook problem : the agenda fixed in outlook goes to Iphone agenda (sync with iphone) not the reverse : means : an agenda fixed into iphone
-
Value disappears when performing Update
Hello. Please advice about the following: I am running Update statement for 2 columns, for one of them I am giving the value by myself: update Table1 f set (f.Value_Field, f.name1) = (select '1', k.name from Table2 k where k.field1=f.field1 and k.fie
-
Why is there no trackpad at login?
@ login the trackpad is disabled. Are there login keys to select the user? Or a quick key to re-enable the T-pad. I have a feeling it has something to do with Universal Access, as reinstall dies @ "loading additional speech voices".