While opening BSP File download popup opens
HI Experts,
While opening BSP application(appraisal) in UWL work items a popup window opens.
this happens on particular PC of the user only,we are able to open the same on our PC.
this must be because of browser setting,but not sure
please suggest,points will be awarded accordingly
With Regards,
Dayakar.
Hi Dayakar ,
Comapre your browser settings with his and see if there is any discrepency . What is the message in Pop up window?
Try adding portal's and the application's URL to trusted sites and then see .
Regards
Mayank
Similar Messages
-
JavaScript error After cancel the file download popup window
Hi , I am trying to show Document download links in my ADF page. First time it is working file means i able to download linked document. But when I click again on same link to download page then i see only 0 byte file download and when i open the documen then it's showing
This page uses JavaScript and requires a JavaScript enabled browser.Your browser is not JavaScript enabled.I checked my browser setting and script in enabled...
Below is the ADF page and backing bean code....
<af:panelBox text="Pension FAQ's" id="pb1">
<af:table value="#{bindings.faqsTypeDocumentView1.collectionModel}"
var="row" contentDelivery="immediate" inlineStyle="height:300px;"
binding="#{fileDownloadBean.faqTable}"
rowSelection="single"
rows="#{bindings.faqsTypeDocumentView1.rangeSize}"
emptyText="#{bindings.faqsTypeDocumentView1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.faqsTypeDocumentView1.rangeSize}"
rowBandingInterval="0" id="t1">
<af:column
headerText="Document Name"
id="c1">
<af:commandLink text="#{row.DocName}" id="cl1" >
<af:fileDownloadActionListener filename="#{row.DocName}"
contentType="#{row.ContentType}"
method="#{fileDownloadBean.downloadFaq}"/>
</af:commandLink>
</af:column>
</af:table>
</af:panelBox>
public void downloadFaq(FacesContext context,
OutputStream out) throws IOException {
System.out.println(" file download clicked ................");
oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding rwData = (oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding)faqTable.getSelectedRowData();
Row row = rwData.getRow();
System.out.println(" Doc Id : "+ row.getAttribute("DocId"));
BlobDomain blob= (BlobDomain)row.getAttribute("Document");
long size= blob.getLength();
try{
InputStream is = blob.getInputStream();
byte[] buffer = new byte[(int)size];
int nread;
while ((nread = is.read(buffer)) != -1)
out.write(buffer, 0, nread);
}catch(IOException ioExp){
context.addMessage(null, new FacesMessage(" Not able to download file."));
ioExp.printStackTrace();
}If I download the files from database then it do not allow me download same file more than one.. After Downloading the document If i click again to download then i get 0 size file...
If i download the files from server relative path then it works fine...i was able to download same file more than one time..
below is the error on console ....
<JUApplicationDefImpl> <logDefaultDynamicPageMapPattern> The definition at fdny.pension.portal.eupsPortal.DataBindings.cpx, uses a pagemap pattern match that hides other cpx files.
<SkinFactoryImpl> <getSkin> Cannot find a skin that matches family portal and version v1.1. We will use the skin portal.desktop.
<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
java.lang.NullPointerException
at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormRenderer.getAutoComplete(FormRenderer.java:1152)
at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormRenderer.encodeBegin(FormRenderer.java:237)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:311)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:734)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
Thanks for helping me here.. -
Accessing BSP File Download using HTTPS URL
Hi,
I'm struggling with a problem of downloading a file from a https url. I wrote a BSP App for downloading a file from a unix server.. It works fine when I use a http URL with port 8080 and does not work when I use https.!!
Example:
https://comms.gmsanet.co.za/supplier [ download does not work ]
http://comms.gmsanet.co.za:8080/supplier [ download works ]
When I try to download using https.. it does not pull the file name and path
see code below and suggest me if anything to be chnaged.
In the Form Initialization method:
event handler fr data retrieval
DATA: i_file type string,
s_fields TYPE tihttpnvp,
s_fields_line TYPE ihttpnvp,
multipart_form type ref to if_http_entity,
file_upload type xstring,
lv_backend type string,
success type string,
entity type ref to if_http_entity,
file type xstring,
content_type type string,
content_filename type string,
content_length type string,
content_disposition type string,
num_multiparts type i,
i type i value 1,
doEcho type string value 'X',
value type string,
filename type ZFILETAB-fileinfo,
ext1 type string,
ext2 type string,
dsn type string,
bptype like sy-uname,
itab TYPE ZFILETAB,
itab_line TYPE ZFILETABLINE,
file_ext type ZFILETABLINE,
fileinfo type c,
zcount type i.
filename = '/NewMessge.doc'.
content_filename = filename.
Check the extension and assign the content type
split filename at '.' into ext1 ext2.
case ext2.
when 'zip'.
content_type = 'application/x-zip-compressed'.
when 'doc'.
content_type = 'application/msword'.
when 'txt'.
content_type = 'text/plain'.
when 'ppt' or 'pps'.
content_type = 'application/vnd.ms-powerpoint'.
when 'xls' or 'exe'.
content_type = 'application/octet-stream'.
when 'gif'.
content_type = 'image/gif'.
when 'jpg' or 'jpeg'.
content_type = 'image/pjpeg'.
when 'htm' or 'html'.
content_type = 'text/html'.
endcase.
dsn = filename.
OPEN DATASET dsn FOR INPUT IN BINARY MODE.
IF sy-subrc NE 0.
zmessage = 'Error opening file'.
navigation->set_parameter( name = 'zmessage' value = zmessage ).
navigation->goto_page( 'downloaderror.htm' ).
exit.
ENDIF.
DO.
READ DATASET dsn INTO <b>file</b>.
EXIT.
ENDDO.
CLOSE DATASET dsn.
set response data to be the file content
runtime->server->response->set_data( <b>file</b> ).
runtime->server->response->set_header_field(
name = 'Content-Type'
value = content_type ).
concatenate 'attachment; filename=' filename into content_disposition.
runtime->server->response->set_header_field(
name = 'Content-Disposition'
value = content_disposition ).
set the file size in the response
content_length = xstrlen( file ).
runtime->server->response->set_header_field(
name = 'Content-Length'
value = content_length ).
runtime->server->response->delete_header_field(
name = 'Cache-Control' ).
runtime->server->response->delete_header_field(
name = 'Expires' ).
navigation->response_complete( ).
Thanks
AjayHi Brian,
I have the same problem as Ajay Yeluguri. In http mode I can generate a download of an Excel document but when we use the portal in https it doesn't work.
When I try to download using https it does not pull the file name and path and when I choose download I have a error message : "Internet Explorer cannot download from ..."
I've test the point 3.2 "... including file up/download" of the BSP application IT00 and it works fine in http and https mode. My problem is not the upload but the download. And in this application the uploaded document is opened in the Internet Explorer window but I want to generate a Save as... window to download the file.
Have you an idea what i can do to solve my problem.
Thanks
Yann -
BSP File Download - .TIF problems
Dear all!
I haven't been able to fix this problem,
please see my post for further information. I am using SAP.help coding to display files in BSPs (6.20, "BSP with flow logic" pages used). See the coding below.
Somehow .tif files can not be displayed. Every other mime type works fine.
Thanks,
Chris
Dear all!
In a quite complex file upload and download scenario which works fine we use the following coding to display files received from the backend in our page.
OnInitialization: receives file backend data such as filesize, content(xstring) and mimetype.
This works all fine. Mimetype is delivered correctly.
OnInputProcessing:
This has been taken from the help.sap.com documentation -
runtime->server->response->set_data( mycontent ).
runtime->server->response->set_header_field(
name = 'Content-Disposition'
value = lv_downname ).
runtime->server->response->set_header_field( name = 'Content-Type' value = mymimetype ).
runtime->server->response->set_header_field( name = 'Content-Length' value = myfilesize ).
runtime->server->response->delete_header_field( name = 'Cache-Control' ).
runtime->server->response->delete_header_field( name = 'Expires' ).
navigation->response_complete( ).
RESULT:
the file is displayed fine. When trying to save the displayed file locally on the hard disc, the mimetype is not available. The system (Windows XP) provides only .bmp as file type. Also the context menu entry "Properties" of the displayed file shows NOT AVAILABLE as mimetype.
Is this a common problem? How can I achieve to have the mimetype information available for a save?
Thankx,
Christoph
Message was edited by: Christoph Aschauer
Message was edited by: Christoph Aschauer
Message was edited by: Christoph Aschauer
Message was edited by: Christoph AschauerHi,
I am getting an error, when I try to download the document from the bsp-page.
I have uploaded the document to the server-cache as mentioned above. If I test it on the standalone machine, everything works fine. But when I have to connect to the BSP-Application through an EP I am getting the error:
BSP Exception: Das Objekt test.doc in der URL /sap(bD1kZSZjPTEwMCZwPTM1MjUwJnY9NiUyZTQmaT0xJnM9U0lEJTNhQU5PTiUzYWR0aXRtZXpfVE1FXzA3JTNhLUVVb2Y3MHRUN2JnMGFYMUNLeUVPakRRWmZBTTJVVE5aS21Lc0FRQi1BVFQ=)/bc/bsp/sap/zportal_rueckme/test.doc?sap-syscmd=nocookie ist nicht gültig.
Test.doc is the name of the document I wish to download.
Here comes the sample code.
DATA: cached_response TYPE REF TO if_http_response.
CREATE OBJECT cached_response
TYPE
CL_HTTP_RESPONSE
EXPORTING
add_c_msg = 1.
cached_response->set_data( l_document_x ). " l_document_x is a xstring
cached_response->set_header_field( name =
if_http_header_fields=>content_type
value = l_mime_type ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
CONCATENATE
RUNTIME->application_url
'/' l_file_name INTO e_url.
cl_http_server=>server_cache_upload( url = e_url
response = cached_response ).
Later I navigate to that URL:
NAVIGATION->GOTO_PAGE( URL = e_url ).
Any suggestions are appreaciated!
Regards,
Max -
PDF Report file download problem
Hi,
I am using ApEx 3.1 and Oracle 10g and XSL-FO
I have a problem in downloading a PDF file:
(1) I have a report query (produced an xml file), report template, and report layout.
After I linked the new PDF report into my application, when I click on the button, the PDF “File Download” popup shows only two buttons (“save” and “cancel”) with a warning message “The file you are downloading cannot be opened by the default program. It is either corrupted or it has an incorrect file type. As a security precaution, it is recommended that you cancel the download”, and the file name shows up as “f.pdf”. I am able to open the saved file (f.pdf) in Adobe Acrobat and it looks fine.
(2) In “Home>Application Builder>Application xxx >Shared Components>Report Queries>Edit Report Query”, when I click on the “Test Report” button, the “File Download” popup shows with all three buttons, (“open”, “save”, “cancel”) --- it shows the correct name of the file, and, no warning message! At this point, the file can be opened with the “open” button”, or, be saved to the disk. The saved file opens with Adobe Acrobat and the contents are identical to that of the file “f.pdf”.
(3) I created another application (within the same workspace) with just one page, linked the PDF report in this application, and clicked on the button, and got the same response as in (2).
It looks like I could try to create a new application by copying page by page from the application quoted in (1), and see if that would solve the problem. It is time consuming, the outcome is uncertain, and also could create some other problems
What could be the cause of this problem? Any alternatives? I would appreciate any help.
Thanks
VasanWe experienced the exact same problem as the OP (including corrupt files named "f.pdf" and the browser dialog box he documented). Don't know if his environment is similar, but here is how we fixed our issue:
Our app uses an Authentication Scheme that includes under "Page Session Management" a "Session Verify Function" called like this: "return timeout_pkg.check_timeout;". This timeout_pkg I think came from code originally posted here, it works well so thanks to the original coder. However it does present a small issue in that it rewrites the mime headers in the server response in one use case. Since it is rewriting the headers to "text/html" even though we are sending back a report where the mime header should be "application/pdf", the client gets confused and the result is the symptoms the OP posted.
So if we change the timeout package and body so the signature is like this: "function check_timeout (p_request IN VARCHAR2 DEFAULT null) return boolean;"
And change the call in the "Session Verify Function" to pass the request as a parameter like: "return timeout_pkg.check_timeout(:REQUEST);"
And change the body of the timeout_pkg.check_timeout function to use the correct mime type when calling a report:
elsif not g_cookie_already_sent then
if (p_request is not null and INSTR(p_request, 'PRINT_REPORT') != 0) then
owa_util.mime_header('application/pdf', FALSE);
else
owa_util.mime_header('text/html', FALSE);
end if;
then we solve our particular problem... I hope this saves somebody else some time, remember this was our specific solution to the exact symptoms documented by the OP, however as a general rule I would say if you are experiencing problems with pdf printing from Apex, watch out for anything your app might be doing with the owa_util pkg in particular and mime headers in the server response in general.
Edited by: cmcneil on Sep 5, 2008 11:45 AM
Edited by: cmcneil on Sep 5, 2008 11:59 AM -
About "File Download" pupup message.
Hi Everyone,
I face a symptom about file download popup message.
1706024 - WebIntelligence Java Report Panel "save to my computer as/Excel" workflow has different behavior after FixPack3.6 or Service Pack 4 is installed
In the KBA, it is noted that [An "Open, Save, Cancel" window will appear, similar to pre-Fixpack3.6/Service Pack 4 patches, however this window will be sent by the Java Report Panel and not the browser as it was previously.]
I kown in prior of FP3.6, the popup message is send by browser, and after the version of FP4.3, the popup message is send by java report panel.
Is thereany method that can set the popup message display or not by borwser or cmc settings.
Thanks and Best Regards,
ZhouHongHello,
As per KBA 1706024 - WebIntelligence Java Report Panel "save to my computer
as/Excel" workflow has different behavior after FixPack3.6 or Service Pack 4 is
installed which reports that this new behavior is declared by product group as by design
and introduced in later patches. You still be able to request for integrating the old behavior
and even have a preference setting to switch between the two behaviors by logging an Enhancement
request at idea place portal( See the KBA 1515837 - How To: Enhancement Request Process - "Idea Place" ).
Thanks and Regards,
Akram. -
APEX 4.0: error while opening a XLS file downloaded from interactive report
Hi,
I'm getting below error while opening a XLS file downloaded from an interactive report (APEX 4.0).
"The file you trying to open, 'customer_2.xls', is in a different format than specified by the file extension.
Verify that the is not corrupted and is from a trusted source before opening file. Do you want to open file."
Yes No Help
May be this one Apex 4.0 issue.
please help me.
Thanks
MukeshHi,
is the next part of the code correct.
What i mean is packing of the attachment, finding out the size of pdf file and doc type as PDF.
You can also try below link..
Link: [http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES]
Hope this helps.
Regards,
-Sandeep -
Error while opening PDF file downloaded from database Blob column
Hi All,
I am working on jdev 11.1.1.4.0.
In my use-case I am using filedownload Actionlistner on a link to get the PDF file stored in the database in blob field. These files are being uploaded from other use-case in adf only.
After getting the dialog box to open/save/cancel for the PDF file when i click on open then i am getting an error *'Adobe Reader could not open 'abc.pdf' because it is either not a supported file type*
or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly docoded)' for some files , and to my surprise I am able to open some files.
When I open these PDF files separately from desktop I am able to view the content of each and every file in adobe reader.
I dont know where the problem exactly lies , while uploading/downloading the file . Any ideas/thoughts to resolve this issue?
Thanks
KanikaThanks a lot Timo...!!!
I checked the PDF file downloaded directly from the blob column in DB, there only it is corrupted so must be the problem in uploading the file. I am checking the code line by line,, but no problem in setting the file content type,size etc.
Here is the code snippet ..
byte[] buff;
buff = new byte[(int)length]; -- Length is the file size
int bytesRead = is.read(buff);
for (int i = 0; bytesRead < buff.length; i++) {
// int b = is.read();
int b = is.read();
if (b == -1)
break;
buff[i] = (byte)b;
BlobDomain blobDomian = new BlobDomain((buff));
TestVORow = (TestVORow Impl)TestVO.createRow();
if(blobDomian != null) {
TestVORow.setAttachment(blobDomian);
am.getTransaction().commit();
This seems to be Ok to me..the same issue, file is still corrupting.
Any thoughts from your side ???
Thanks
Kanika
The problem is resolved.
Changes made are instead of
InputStream is;
used ... BufferedInputStream bis ;
and after
for (int i = 0; bytesRead < buff.length; i++) {
// int b = bis.read();
int b = bis.read();
if (b == -1)
break;
buff[i] = (byte)b;
bis.close(); // use this close bufferedInput Stream.
Able to open each and every file now..Thanks for your suggestions Timo and Frank.
Edited by: Kanika on Mar 6, 2012 3:15 AM -
Error while opening downloaded excle file.
Hi,
I have an interesting issue.
In my scenario I am downloading characteristics value from COID.
Through background job we are getting that report in our Out look mail box. Report format is XLS.
While opening the attached XLS file we are getting one message.
The message is as follows
The file is not in a recognizable format
If you know the file is from another program which is incompatible with Microsoft excel click cancel, then open this file in its original application. If you want to open the file later in Microsoft excel. Save it in a format that is compatible, such as text format.
If you suspect the file is damaged, click help for more information about solving the problem.
If you still want to see what text is contained in the file, click OK. Then click finish in the text import wizard
if we ok it the file is opening properly
So My question is Can we avoid this message ?Hi,
I have an interesting issue.
In my scenario I am downloading characteristics value from COID.
Through background job we are getting that report in our Out look mail box. Report format is XLS.
While opening the attached XLS file we are getting one message.
The message is as follows
The file is not in a recognizable format
If you know the file is from another program which is incompatible with Microsoft excel click cancel, then open this file in its original application. If you want to open the file later in Microsoft excel. Save it in a format that is compatible, such as text format.
If you suspect the file is damaged, click help for more information about solving the problem.
If you still want to see what text is contained in the file, click OK. Then click finish in the text import wizard
if we ok it the file is opening properly
So My question is Can we avoid this message ? -
I am doing a small project on dedicated web client where in user automatically logs in non-root user and Firefox automatically starts.
I am using Fedora 14 kernel 2.6.35.12-88.fc14.i686 and Firefox 3.6.16.
I have installed only Gnome in my computer with no Nautilus or other file browser on it.
I want to edit properties of the interface windows opened while "Open File", "Save Page As" and interface opened during Downloading of any file.
Please guide me for this.First, I sent an email to the author of PhotoME to inform him of the serious issues his addon caused with Firefox latest versions.
Now, for those of you who do not have the PhotoME addon and yet experience the same problem that I had and that I described above, I suggest the following strategy.
As PhotoME did cause these problems with Firefox latest versions, I am pretty covinved other addons probably might cause these problems too. Therefore, adopt the following method.
Test one addon at a time to see if this particular addon is behind your Firefox issues like the ones I had.
So, disable one addon only at a time. Then close your Firefox and restart it from scratch and see if you still have your Firefox problems. You must restart the Firefox browser from scratch. If you still have these Firefox problems, re-enable the disabled addon, restart your Firefox (again!) and repeat the same method for every single addon that you have.
Try to be selective by choosing first addons that are more likely to cause your Firefox problems such as not very well-known or not very popular addons (like it was the case for the PhotoME addon).
If this method works or if it does not work, report it on this web page so that others can be helped with your comments.
I hope this method will help you because I was really upset that I had these Firefox problems and I first thought it was the fault of Firefox, only to discover later that this PhotoME addon was the culprit and had caused me such upset. -
Can we avoid the message while opening downloaded excel file.
Hi,
I have an interesting issue.
In my scenario I am downloading characteristics value from COID.
Through background job we are getting that report in our Out look mail box. Report format is XLS.
While opening the attached XLS file we are getting one message.
The message is as follows
The file is not in a recognizable format
If you know the file is from another program which is incompatible with Microsoft excel click cancel, then open this file in its original application. If you want to open the file later in Microsoft excel. Save it in a format that is compatible, such as text format.
If you suspect the file is damaged, click help for more information about solving the problem.
If you still want to see what text is contained in the file, click OK. Then click finish in the text import wizard
if we ok it the file is opening properly
So My question is Can we avoid this message ?
Edited by: amit kulkarni on Apr 10, 2008 9:01 AMHi,
can you check with your ABAPer on this or post this thread to ABAP Developement forum
Regards,
Sankaran -
Open file-download window from servlet
Hi all,
This is the scenario I'm trying to achieve:
- Display html page with a button or href "download csv file"
- the user clicks
- the file-download pop-up window should appear,so the user can save the
file at any location
This is how far I get:
- when the user clicks a servlet gets activated
- Servlet:
- creates the csv file and write it to disk
- now I want the servlet to do something so that the file-download window
opens
- I've tried with forward the request to the url (which only displays the
content in the browser)
- I write to HttpServletResponse it opens the file in excel which I don't
want
Any ideas ?
Thanks in advance
Per
Thanks Mettu,
that worked fine.
This is what the code looked like:
...Per
==========================================================================
if (nextPage.getType()== Page.TYPE_CSV)
String filePath = (String) req.getAttribute(Attribute.CSV_FILE_PATH);
String fileName = (String)
req.getAttribute(Attribute.CSV_FILE_NAME);
file://Writing text file like this enforces fileDownload popup
window
res.setContentType("application/RFC822");
res.setHeader("Content-Disposition", "attachment; filename=\"" +
fileName);
writeFileToOutStream(res,filePath,fileName);
private void writeFileToOutStream(HttpServletResponse res,String
filePath,String fileName) throws IOException
OutputStream out1 = res.getOutputStream();
FileInputStream fin = new FileInputStream(filePath + fileName);
byte [] b = new byte[1024];
int size = 0;
while((size = fin.read(b, 0, 1024)) > 0)
out1.write(b, 0, size);
fin.close();
out1.flush();
out1.close();
==========================================================================
"Mettu Kumar" <[email protected]> wrote in message
news:[email protected]...
> Per,
>
> For this to work in both Netscape and IE, You need You need to set
content
> Type and Also a header information.
>
> Set Content Type As : Content-type: application/RFC822
> set the Header "Content-Disposition" to "attachment; filename=\"" +
> youfilename + "\""
> Where youfilename is the name of the file you display to
user.
>
> If you want the exact java code use the following two lines of code in
your
> servlet:
> res.setContentType("Content-type: application/RFC822");
> res.setHeader("Content-Disposition", "attachment; filename=\"" +
youfilename
> + "\"");
>
>
> This should solve your problem.
>
>
> Kumar.
>
> Per Lovdinger wrote:
>
> > Hi all,
> >
> > This is the scenario I'm trying to achieve:
> >
> > - Display html page with a button or href "download csv file"
> > - the user clicks
> > - the file-download pop-up window should appear,so the user can save
the
> > file at any location
> >
> > This is how far I get:
> > - when the user clicks a servlet gets activated
> > - Servlet:
> > - creates the csv file and write it to disk
> > - now I want the servlet to do something so that the file-download
window
> > opens
> >
> > - I've tried with forward the request to the url (which only displays
the
> > content in the browser)
> > - I write to HttpServletResponse it opens the file in excel which I
don't
> > want
> >
> > Any ideas ?
> > Thanks in advance
> > Per
>
-
Error while opening UWL configuration file
Hello SDN,
I am customizing UWL config file. I have download file and saved it to desktop. But while opening that file i am getting following error.
The system cannot locate the resource specified. Error processing resource 'uwl_configuration.dtd'. Can you please tell me how to download and customize file.
regards,
Sree.Hi Sushil,
I have followed the same procedure what you have explained. But when i am opening XML file with XML editor , it is not opening and not giving any error. But when open with word it is saying "file must contain one root element".
When open with notepad below is the content.
<?xml version="1.0" encoding="UTF-8"?>
<!-- UWL Configuration can have 0 or 1 Item types and views tag -->
<!ELEMENT UWLConfiguration (Principals?, DescriptionBundles?, Actions?, ItemTypes?, Views?, GlobalDisplayAttributes?, NavigationNode?)>
<!ATTLIST UWLConfiguration
version CDATA "1.0"
>
<!-- Role-Based Navigation Feature i036159 -->
<!-- If the UWL Configuration has Principals tag the configuration will be valid only for the principals indicated in one of the Principal tags -->
<!-- Principal UniqueID should be used as id-->
<!-- Principals? added to UWLConfiguration elements list-->
<!ELEMENT Principals (Principal+)>
<!ELEMENT Principal EMPTY>
<!ATTLIST Principal uniqueID CDATA #REQUIRED>
<!-- RBV Feature 200801111300 -->
<!ELEMENT ItemTypes (ItemType*)>
<!ELEMENT Views (View*)>
<!-- Item type has 0 or 1 of other tags. since it could be inherited there is no need to specify all -->
<!ELEMENT ItemType (Caching?, ItemTypeCriteria?, CustomAttributes?, Actions?, Menu?)>
<!ATTLIST ItemType
name NMTOKEN #REQUIRED
connector CDATA #REQUIRED
defaultView NMTOKEN #REQUIRED
defaultAction NMTOKEN #IMPLIED
executionMode (optimistic|pessimistic|default) "default"
> following file like this........
when i copy the content directly from portal below is the format....
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
>
<UWLConfiguration version="1.0">
<ItemTypes>
<ItemType name="uwl.task.webflow.TS01000096.ESS_Webdynpro" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchSAPAction" executionMode="default">
<ItemTypeCriteria systemId="ESS_Webdynpro" externalType="TS01000096" connector="WebFlowConnector"/>
<Actions>
<Action name="launchSAPAction" groupAction="" handler="SAPIACLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
<Properties>
<Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
<Property name="openInNewWindow" value="yes"/>
<Property name="display_order_priority" value="5"/>
<Property name="IAC" value="WS01000060"/>
</Properties>
<Descriptions default=""/>
</Action>
</Actions>
</ItemType>
<ItemType name="uwl.task.webflow.TS01000097.ESS_Webdynpro" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchSAPAction" executionMode="default">
<ItemTypeCriteria systemId="ESS_Webdynpro" externalType="TS01000097" connector="WebFlowConnector"/>
<Actions>
Can you please check and let me know if anything is missing.
regards,
Sree. -
After Downloading, Error while opening PDF : PDF has no pages
After Downloading, Error while opening PDF : PDF has no pages
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = L_SPOOLNO
NO_DIALOG = SPACE
DST_DEVICE = MSTR_PRINT_PARMS-PDEST
IMPORTING
PDF_BYTECOUNT = MI_BYTECOUNT
TABLES
PDF = MTAB_PDF
EXCEPTIONS
ERR_NO_ABAP_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DESTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
Thanks in advance
Monika
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11
OTHERS = 12.
Transfer the 132-long strings to 255-long strings
LOOP AT MTAB_PDF.
TRANSLATE MTAB_PDF USING '~'.
CONCATENATE WA_BUFFER MTAB_PDF INTO WA_BUFFER.
ENDLOOP.
TRANSLATE WA_BUFFER USING '~'.
DO.
it_attach = WA_BUFFER.
APPEND it_attach.
SHIFT WA_BUFFER LEFT BY 255 PLACES.
IF WA_BUFFER IS INITIAL.
EXIT.
ENDIF.
ENDDO.
****GET THE FILE NAME TO STORE....................
v_path = 'C:\PD Form\' .
CONCATENATE v_path p_pernr-low '.pdf' into v_name.
create object v_guiobj.
call method v_guiobj->file_save_dialog
EXPORTING
default_extension = 'pdf'
default_file_name = v_name
file_filter = v_filter
CHANGING
filename = v_name
path = v_path
fullpath = v_fullpath
user_action = v_uact.
if v_uact = v_guiobj->action_cancel.
leave to current transaction.
endif.
..................................DOWNLOAD AS FILE....................
move v_fullpath to v_filename.
call function 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = MI_BYTECOUNT
filename = v_filename
filetype = 'BIN'
TABLES
data_tab = it_ATTACH
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
others = 22.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.My Generated Spool request is PDF Spool. It contains Adobe Forms data. To Download Adobe form
Spool (PDF Spool) into PDF format,
First,
A) Read PDF Spool data by using u2018FPCOMP_CREATE_PDF_FROM_SPOOLu2019 Function module.
B) Assign the Output Data to XSTRING format
C) Convert that XSTRING data to Binary Format using 'SCMS_XSTRING_TO_BINARY' Function module.
D) Save File on Application server using OPEN DATASET , TRANSFER , CLOSE DATASET.You can see your
downloaded file in Transaction AL11 in specified directory.
You can save your file on Presentation server also using GUI_DOWNLOAD.
First three steps are necessary if your spool is PDF Spool.
Basically we need this when we are downloading Adodbe forms ( which is not a SAPScript or smartforms)
Example :
DATA :
e_pdf1 TYPE fpcontent,
e_renderpagecount1 TYPE i.
CALL FUNCTION 'FPCOMP_CREATE_PDF_FROM_SPOOL'
EXPORTING
i_spoolid = l_spoolno
i_partnum = '1'
IMPORTING
e_pdf = e_pdf1
e_renderpagecount = e_renderpagecount1
* E_PDF_FILE = E_PDF_FILE1
* EXCEPTIONS
* ADS_ERROR = 1
* USAGE_ERROR = 2
* SYSTEM_ERROR = 3
* INTERNAL_ERROR = 4
* OTHERS = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA : buffer TYPE xstring,
append_to_table TYPE c.
DATA : output_length TYPE i.
TYPES : BEGIN OF ty_binary,
binary_field(1000) TYPE c,
END OF ty_binary.
DATA : lt_binary TYPE TABLE OF ty_binary WITH HEADER LINE.
DATA : lv_xstring TYPE xstring.
lv_xstring = e_pdf1.
* Convert xstring to binary.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lv_xstring
append_to_table = ' '
* IMPORTING
* OUTPUT_LENGTH =
TABLES
binary_tab = lt_binary.
DATA : wa_binary LIKE lt_binary.
DATA: BEGIN OF itab OCCURS 0,
field(256),
END OF itab.
DATA: dsn(50000) VALUE '/usr/sap/tmp/',
length LIKE sy-tabix,
lengthn LIKE sy-tabix.
CONCATENATE '/usr/sap/tmp/' lv_pernr '.pdf' INTO dsn.
******* Save file on Application server
OPEN DATASET dsn FOR OUTPUT IN BINARY MODE.
LOOP AT lt_binary.
TRANSFER lt_binary-binary_field TO dsn.
ENDLOOP.
CLOSE DATASET dsn.
CLEAR lt_binary.
REFRESH lt_binary.
cheers -
Hi Techys,
can you give me the suugestions for below error in sharepoint 2010.
Error: "The server is unavailable this is offline copy of the server workbook" error while opening the sharepoint library file.
User having the contribute permission.
as a admin i can open the document without any error.
user wants to open the document via online and VPN connection.
while the user seeing the document info the below error is indicationg .
Offline Copy, Work book is readonly Mode.
The server is unavailable this is offline copy of the server workbook" error while opening the sharepoint library file which was upto date.
Many Thanks,
MadhuMake sure that the user is able to access workstream from the site collection through VPN. If the user is able to access already, try to download the file locally and see if the data is getting loaded and upload again.
--Cheers
Maybe you are looking for
-
Internet Connection Keeps Dropping
So for a couple of months now my internet connection has been randomly dropping out. It happens sometimes a couple of times a night, sometimes not at all. When the connection drops out the router seems to power off (all lights turn off, power light t
-
How to upgrade from Vista to Windows 7?
I recently bought the upgrade version of Windows 7 utimate for my laptop, my laptop is new and Windows Vista pre-installed. I would like to know if I upgrade Windows 7 from this "Fresh", pre-installed vista, would this Windows 7 operate as good as th
-
Dear Gurus, Im using SD to create services billing documents. This services does not work with ship to party so i deactivate the partner function SH (Ship-to party) in the following options: Spro >> Sales and distribution >> Basic function >> Partner
-
How to install Tuning Pack [9i]
Hello! I need to use Expert or SQL Analyze, but there were no such programms in our system. After installing the software and configuring it, i tried to run Expert. I received the following message: XP-21185: The repository for user, oem_dev_oemrep,
-
hi, i have a query which is having three fields. i want to display values of these three fields in the ticker so i added one form and selected ticker. now how how to assign this query to the ticker so that i can display all the three fields data exam