Error while File downloading
hi all,
i am using LinktoURL to download file, i am reading from the filesystem like d:\files from the server system.
File was read sussfully and also url genaration.
but when downloading the file a error window is opening like resource not found or requested website is not available...
what is the problem?
Thanks
Siva Sankar
Hi Silva,
It seems to me that it is not possible to get to that fil eon the server from your frontend. The user does not have rights (and probably shouldn't have) to read this file from the server by using the directory structure.
Better try another way to do this. Like (for example) letting the webdynpro read the file into memory and letting the user download the file using FileDownload or better still, but the file in a database and read it from there.
J
Similar Messages
-
Error while file download to excel
Hi all,
I have a requirement where i need to download the final output table data into excel sheet.
I tried with the below logic. I am getting the pop up to open or save the excel sheet at desired location.
But when I open the excel sheet,its showing the corrupted data.
PFB the sample code and suggest me a way out.
DATA:button_event TYPE REF TO cl_htmlb_event_button,
event TYPE REF TO if_htmlb_data.
DATA:gs_report LIKE LINE OF gt_report.
*DATA:cl_bsp_utility.
DATA:gv_xstring TYPE xstring,
app_type TYPE string,
output TYPE string.
event = cl_htmlb_manager=>get_event( request ).
IF event IS NOT INITIAL AND event->event_name = htmlb_events=>button.
button_event ?= event.
CASE event->event_server_name.
WHEN 'test' .
IF gt_report[] IS NOT INITIAL.
LOOP AT gt_report INTO gs_report.
CONCATENATE
output
gs_report-compuid
cl_abap_char_utilities=>horizontal_tab
gs_report-infocube
cl_abap_char_utilities=>horizontal_tab
gs_report-compid
cl_abap_char_utilities=>horizontal_tab
gs_report-rname
cl_abap_char_utilities=>cr_lf
INTO output SEPARATED BY space.
ENDLOOP.
app_type = 'APPLICATION/MSEXCEL;charset=utf-161e'.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = output
mimetype = 'APPLICATION/MSEXCEL;charset=utf-161e'
ENCODING =
IMPORTING
buffer = gv_xstring
EXCEPTIONS
FAILED = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CONCATENATE
cl_abap_char_utilities=>byte_order_mark_little gv_xstring
INTO gv_xstring
IN BYTE MODE.
CALL METHOD cl_bsp_utility=>download
EXPORTING
object_s = gv_xstring
content_type = app_type
content_disposition = 'attachment;Filename=ReportDetails.xls'
response = mresponse
navigation = navigation.
ENDIF.
WHEN OTHERS.
ENDCASE.
ENDIF.
Thanks & Regards,
Lavanya.Hi Lavanaya,
Try Changing
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = output
mimetype = 'APPLICATION/MSEXCEL;charset=utf-161e'
* ENCODING =
IMPORTING
buffer = gv_xstring
* EXCEPTIONS
* FAILED = 1
* OTHERS = 2
to this
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = output
mimetype = 'APPLICATION/MSEXCEL' <----Remove charset
* ENCODING =
IMPORTING
buffer = gv_xstring
* EXCEPTIONS
* FAILED = 1
* OTHERS = 2
Regards,
Anubhav -
I am getting this error while file uploading
Hi!
I am getting this error while file uploading,I can't find any solution.
SRVE0026E: [Servlet Error]-[org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found]: javax.servlet.ServletException: org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found
at com.honeywell.sdm.base.controller.SDMActionServlet.service(SDMActionServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Please help me.I have attached the bean,action ,jsp pages
uploadInfo.jsp
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<HEAD>
<script>
function submitting(){
document.uploadForm.operation.value = "uploadOrgAdj";
document.uploadForm.action = "/uploadRecAction.do";
document.uploadForm.submit();
</script>
</HEAD>
<body>
<html:form action="/uploadRecAction" method="post" enctype="multipart/form-data">
Select the .xls File to upload data
<html:file property="fileName"></html:file>
<html:hidden property="operation" value=""/>
<html:button property="btn" value="Submit" onclick="submitting()"></html:button>
</html:form>
</body>
</html:html>
uploadAdjForm :
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
public class uploadAdjForm extends ActionForm{
private FormFile fileName;
* @return
public FormFile getFileName() {
System.out.println("getFileName"+fileName);
return fileName;
* @param string
public void setFileName(FormFile string) {
System.out.println("setileNmame"+string);
fileName = string;
Action:
public class uploadFinancialAdjAction extends DispatchAction{
public org.apache.struts.action.ActionForward uploadOrgAdj(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
String sForward = "UploadInfo";
HttpSession session = request.getSession();
String sStartIndex = null;
String sEndIndex = null;
try
uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
System.out.println(UploadForm.getFileName().getContentType().toString());
String file=UploadForm.getFileName().toString();
uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
ArrayList fileName = new ArrayList(); fileName = businessManager.getOrgAdjDetails(file);
boolean isMultipart = FileUpload.isMultipartContent(request);
if(isMultipart){
// Create a new file upload handler
DiskFileUpload upload = new DiskFileUpload();
// Parse the request
List items = upload.parseRequest(request);
//Process the uploaded items
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
//processFormField(item);
if(item.getFieldName().equalsIgnoreCase("txtStartIndex")){
sStartIndex = item.getString();
else if(item.getFieldName().equalsIgnoreCase("txtEndIndex")){
sEndIndex = item.getString();
uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
String file=UploadForm.getFileName().toString();
uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
ArrayList fileName = new ArrayList();
fileName = businessManager.getOrgAdjDetails(file);
}else{
if(item.getName()!=null && !item.getName().toUpperCase().endsWith(".XLS")){
throw new Exception("Please browse an excel file and Upload");
session.setAttribute("fileItem",item);
}//end of while
session.setAttribute("startIndex",sStartIndex);
session.setAttribute("endIndex",sEndIndex);
request.setAttribute("FileUploadStatus","true");
else{
throw new Exception("Error:Form is not multipart");
catch(Exception e)
System.out.println(e);
return mapping.findForward(sForward);
}Plz answer for my question
-
Getting error while file uploading in struts
Hi!
I am getting this error while file uploading,I can't find any solution.
SRVE0026E: [Servlet Error]-[org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found]: javax.servlet.ServletException: org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found
at com.honeywell.sdm.base.controller.SDMActionServlet.service(SDMActionServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Please help me.I have attached the bean,action ,jsp pages
uploadInfo.jsp
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<HEAD>
<script>
function submitting(){
document.uploadForm.operation.value = "uploadOrgAdj";
document.uploadForm.action = "/uploadRecAction.do";
document.uploadForm.submit();
</script>
</HEAD>
<body>
<html:form action="/uploadRecAction" method="post" enctype="multipart/form-data">
<b>Select the .xls File to upload data </b>
<html:file property="fileName"></html:file>
<html:hidden property="operation" value=""/>
<html:button property="btn" value="Submit" onclick="submitting()"></html:button>
</html:form>
</body>
</html:html>
uploadAdjForm :
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
public class uploadAdjForm extends ActionForm{
private FormFile fileName;
* @return
public FormFile getFileName() {
System.out.println("getFileName"+fileName);
return fileName;
* @param string
public void setFileName(FormFile string) {
System.out.println("setileNmame"+string);
fileName = string;
Action:
public class uploadFinancialAdjAction extends DispatchAction{
public org.apache.struts.action.ActionForward uploadOrgAdj(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
String sForward = "UploadInfo";
HttpSession session = request.getSession();
String sStartIndex = null;
String sEndIndex = null;
try
uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
System.out.println(UploadForm.getFileName().getContentType().toString());
String file=UploadForm.getFileName().toString();
uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
ArrayList fileName = new ArrayList(); fileName = businessManager.getOrgAdjDetails(file);
boolean isMultipart = FileUpload.isMultipartContent(request);
if(isMultipart){
// Create a new file upload handler
DiskFileUpload upload = new DiskFileUpload();
// Parse the request
List items = upload.parseRequest(request);
//Process the uploaded items
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
//processFormField(item);
if(item.getFieldName().equalsIgnoreCase("txtStartIndex")){
sStartIndex = item.getString();
else if(item.getFieldName().equalsIgnoreCase("txtEndIndex")){
sEndIndex = item.getString();
uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
String file=UploadForm.getFileName().toString();
uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
ArrayList fileName = new ArrayList();
fileName = businessManager.getOrgAdjDetails(file);
}else{
if(item.getName()!=null && !item.getName().toUpperCase().endsWith(".XLS")){
throw new Exception("Please browse an excel file and Upload");
session.setAttribute("fileItem",item);
}//end of while
session.setAttribute("startIndex",sStartIndex);
session.setAttribute("endIndex",sEndIndex);
request.setAttribute("FileUploadStatus","true");
else{
throw new Exception("Error:Form is not multipart");
catch(Exception e)
System.out.println(e);
return mapping.findForward(sForward);
}ORA-06512: at "PREPRD.OIM_SP_RECONARCHIVAL", line 722
ORA-00942: table or view does not exist
ORA-01031: insufficient privileges
(1) Check whether the OIM_SP_RECONARCHIVAL table or view exists or not...
(2) If it exists, check whether the DEV_OIM user has enough privilege to view this table or not...
If not, give it all privilege by login as sys as sysdba
GRANT ALL PRIVILEGES TO DEV_OIM;
COMMIT; -
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 ? -
Java error while trying download jar file into SYS Schema
Hi,
I am trying to use UTL_DBWS package for Consuming Web Services in Oracle 10.2.0.4
I donwloaded latest copy of the dbwsclient.jar file from the below link.
http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html
I chose the below option for downloading the jar file since i use 10.2.0.4 oracle version.
10.1.3.1 Callout Utility for 10g and 11g RDBMS (ZIP, ~13MB)
I tried to download the jar file into SYS schema using the below command.
loadjava -u sys/password -r -v -f -genmissing -s -grant public D:\oracle\Product\10.2.0\DB_1\sqlj\lib\dbwsclientws.jar D:\oracle\Product\10.2.0\DB_1\sqlj\lib\dbwsclientdb102.jar
But i keep getting the below error.
class oracle/security/wss/interceptors/ClientSecurityDescriptor: resolution
existing : Failures occurred during processing
Can you please advice how do i resolve this error.
Regards,
MSPI suspect that there is more to the error message than what you are reporting.
If so please post the entire message. -
Error while calculating download files automatically
Hello All,
I have configured Maintenance Optimizer for Solution Manager 7.0 Ehp1. When i created a new Maintenance Transaction, it is displaying an error "System is not assigned to a host, There are no operating system/database-dependent files for your selection." after choosing the stack level.
Can anyone say what might be the problem?
Thanks,
Regards,
HasanHi
as per the workarround this error got resolved after the proper maintaining Java technical system details for Java product instance and the port details.
hence please check and enter the dispatcher, port number, & database schema on the Header tab, and the J2EE-Server on the Instances tab,
check the sap notes
Note 1176842 - Maintenance optimizer reports missing host assignment
Note 1121045 - Missing host assignment in Maintenance Optimizer
and the thread
[MOPZ - System is not assigned to a host|MOPZ - System is not assigned to a host]
Thanks,
Jansi -
Javascript error on file download
I have a file browsing portlet (5.0.3 .NET) that allows users to download files. I link the displayed files to a download aspx page that just uses the C# Response.WriteFile(filepath); action. The only problem is that when the browser Save/Open dialog pops up, I get a javascript error as well on line 473. Now my page has no javascript so I think the page is getting gatewayed and causing it to error. So is there a way to prevent this one page from getting gatewayed.
Here is the code for the Page_Load event. The filepath var is grabbed from the URL. I set the ContentType, so I wouldn't think it would see it as HTML. I'm not using any web controls on the download page, just this code-behind:
String FileName = Path.GetFileName(filepath);
Response.Clear();
Response.ContentType = "application/octet-stream";
String Header = "attachment; filename=" + FileName;
Response.AddHeader("Content-Disposition", Header);
Response.Flush();
Response.WriteFile(filepath); -
Error in file download in ECC 6.0
Hi guys,
I have problem while creating txt file on ECC 6.0 (we use unicode...).
I use function GUI_DOWNLOAD in my program and as result I get text with
spaces between each character. For example in file I got:
E X A M P L E T E X T,
but it should be like this:
EXAMPLETEXT.
In 4.6c everything works correctly. Do u have any idea how to solve this??
Thanks,
Nihad
Edited by: nihad omerbegovic on Jun 22, 2009 9:23 AMHi, I have same mistake with
perform SET_TRAIL_BLANKS(saplgrap) using 'X'. +"new line+
call function 'GUI_DOWNLOAD'
exporting
* bin_filesize = fsize_uo
filename = fsname
* filetype = 'BIN'
filetype = 'ASC'
APPEND = 'X'
tables
data_tab = tab_zap3
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. -
Getting no data found error while CSV download
Hi,
I have a report generated from the PL/SQL returning the query and I enabled the CSV Download option. But, when I try downloading the report contents using CSV download option, the excel sheet contains message "no data found". I enabled sorting and sum on few columns. Is it anywhere related to CSV download? Any solution would be really helpful..
Thanks,
PrabhakarThanks for the help!! yep, it is indeed the wrong session state value. In the report, I was modifying the value to display the report, hence when CSV download is given, it was taking wrong session state value. So, giving "no data found" error. Probably, this may help some people.
Regards,
Prabhakar -
Errors while transaction download from ECC- CRM
we are trying to download transactions from ECC 5.0 to CRM 5.0.
the initial download has stopped in between and we get an error "SysFail" in the Inbound queue (SMQ2). Information on this error is "The current application triggered a termination with a short dump"
when we try to analyze the short dump, it says the termination occured in the ABAP program :SAPLCRM_DOWNLOAD_MAP - in "FILL_BTM_PARTNER". In the source code you have the termination point in line 254 of the include program "LCRM_DOWNLOAD_MAPF37".
please provide pointers to resolve this issue .
thanks
RHfollowing is the place where the error is being triggered in the program, any suggestions?
Information on where terminated |
Termination occurred in the ABAP program "SAPLCRM_DOWNLOAD_MAP" - in
"FILL_BTM_PARTNER". |
The main program was "SAPMSSY1 ". |
In the source code you have the termination point in line 254 of the (Include) program "LCRM_DOWNLOAD_MAPF37
Source Code Extract
Line
SourceCde
number_int = <ls_bapisdpart>-itm_number. |
if sy-subrc eq 0. |
ls_btm_partner-ref_guid = ls_item_keys-guid. |
ls_btm_partner-ref_kind = gc_object_ref_kind-orderadm_i. |
endif. |
endif. |
*orderadm_h_guid
ls_btm_partner-orderadm_h_guid = ls_orderadm_h-orderadm_h_guid. |
*bp_partner_guid |
if lv_nrart = gc_partner_r3_types-customer. |
*-----AG, WE, RE, RG, etc. |
call function 'CRM_BUPA_MAP_CUSTOMER_TO_BP' |
exporting |
iv_customer = <ls_bapisdpart>-customer |
importing |
ev_partner = ls_btm_partner-bp_partner_guid |
exceptions |
partner_not_found = 1 |
others = 2. |
if sy-subrc eq 0. |
display_type |
s_btm_partner-display_type = |
gc_partner_no_type-business_partner_no. |
no_type |
ls_btm_partner-no_type = |
gc_partner_no_type-business_partner_no. |
else. |
if ls_btm_partner-partner_fct = '00000001'. |
>>>>>
message x020(crm_order_misc) with gv_logsys_r3.
endif. |
endif. |
if ls_btm_partner-task eq gc_bdoc_task-delete and |
ls_btm_partner-ref_kind eq gc_object_ref_kind-orderadm_i. |
special handling for deleting item partner. In this case the item |
partner must not be deleted but updated with the header partner |
insert ls_orderadm_h-orderadm_h_guid into table lt_header_guid. |
insert gc_object_name-partner into table lt_requested_objects. |
call function 'CRM_ORDER_READ' |
exporting |
it_header_guid = lt_header_guid |
iv_only_spec_items = true |
it_requested_objects = lt_requested_objects |
importing |
et_partner = lt_partner_header |
exceptions |
others = 1. | -
10.1.3.4 - FTP adapter error while file get
I created an esb service that reads from a remote server and processes the file locally. It works fine in dev. When I migrated my esb flow to a test environment it is now throwing some error.
<AdapterFramework::Inbound> Adapter Framework instance: OraESB - successfully completed endpointActivation for portType=Get_ptt, operation=Get
<FTP Adapter::Inbound> Connection Created
<FTP Adapter::Inbound> Unable to list files from '/apps/EDI/Archive/OutBound/Customer' directory on 'corpapp10' server; FTP command[NLST] returned unexpected reply code : 550
<FTP Adapter::Inbound> Poller raising Alert for exception : ORABPEL-11430
Error in listing files in the remote directory.
Unable to list file in remote directory.
Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
The dev remote server and the test remote server are different. I have done the obvious checks about server name, permissions, directory names etc. I can login to the server using windows ftp however when I go the inbound directory and type in ls, i get the following error - 550 Arguments too long. I have some 37000 files in the directory. ls -l works fine.
I switched the ftp adapter to poll a different directory which only has 1 file, but it still gives the same error. However in this case, the windows ftp is able to list the files using ls command.
any idea how i can make this work ?i undeployed the esb project and deploying it again. Now even worse, nothing happens now. It has stopped polling at all. I just see the following message in the opmn.log, but none of the files get picked up.
<FTP Adapter::Inbound> Connection Created
<FTP Adapter::Inbound> Connection Created
<FTP Adapter::Inbound> Connection Created
To be sure, I deployed it to another environment (DEV) and it works ok there. -
Error while file upload by FM "TEXT_CONVERT_XLS_TO_SAP"
HI all,
I need to upload an excel file to SAP system ,for the same i am using the FM TEXT_CONVERT_XLS_TO_SAP in following way.
TYPE-POOLS truxs.
DATA: lv_raw TYPE truxs_t_text_data.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_field_seperator = 'X' "is an .xls file
i_line_header = 'X' "has a header line
i_tab_raw_data = lv_raw
i_filename = v_file
TABLES
i_tab_converted_data = etd_itab
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
But i get sy-subrc = 1,which is conversion error.
The structure of the etd_itab is same as the excel file ,even the field names are same ,still i wonder why should the conversion error been encountered .
Am i missing on anything ?
Please comment.
Thanks,
SwatiHi ,
The structure of my excel file and the data is as follows
PO_NO Item Div Material Vend PO_Date PO Bal.
4400000001 10 C SVC-PART-01 BCCS 2006.10.29 12
4500000348 10 L BA41-00383A BCCS 0
Following is the program flow
TYPES : BEGIN OF gt_etd ,
po_no LIKE ekpo-ebeln,
item LIKE ekpo-ebelp,
div LIKE mara-spart,
material LIKE kondd-smatn,
vend LIKE ekko-lifnr,
po_date LIKE ekpo-aedat,
po_bal LIKE ekpo-menge,
delivery_date LIKE ekes-eindt,
END OF gt_etd.
DATA: etd_itab TYPE STANDARD TABLE OF gt_etd WITH HEADER LINE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pcfile.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_filename = '.xls'
def_path = 'C:\'
mask = ',.txt;.xls,.txt;.xls.'
mode = 'O'
title = ' '
IMPORTING
filename = pcfile
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
IF pcfile IS INITIAL.
WRITE: / 'SELECT UPLOAD FILE !'.
ELSE.
MOVE pcfile TO v_file.
ENDIF.
*ETD file upload
CLEAR: lv_raw, etd_itab[].
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_field_seperator = ' ' "is an .xls file
i_line_header = ' ' "has a header line
i_tab_raw_data = lv_raw
i_filename = v_file
TABLES
i_tab_converted_data = etd_itab
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
Please advice ,why am i getting conversion error.
Thanks a lot . -
HI ,
i am generating a flat file from oracle database.
i am facing a strange issue, thoug my file is getting populated with the data the instance is operator is showing failure status
when i digged and looked for the executed query it is giving me the select
select EXCEPTIONS EXCEPTIONS,
PRACT_MGT_REV PRACT_MGT_REV
from PIN."C$_LN_BRM_BILLING_Datastore"
where (1=1) below
LN_BRM_BILLING_Datastore is my target. and exceptions is the alias name..
actual query must be
select
TEM_T.DUE*2 EXCEPTIONS_REV,
ITEM_T.DUE*2 PRACT_MGT_REV,
from PIN.ITEM_T ITEM_T, PIN.ACCOUNT_T ACCOUNT_T
where (1=1)
why my query is formed wrongly..what u r doing actually?
-
Error while uploading text file....
Halo Friends,
I am uploading 4 text files which contain three columns separated by a tab, but when i am trying to upload those files using WS_UPLOAD Function Module i am getting a runtime error saying 'error while uploading/downloading'.
Please solve this problem as soon as possible.
Thanks in Advance,
ramaHalo again,
Now that i am able to upload the files, i need to update the database table the update statement is executing correctly but when i debug i see that the sy-subrc value is 4 but not 0.
and hence the it is not committed.
Any suggestions. i am pasting my code here for your reference:
Tables: qmfe.
data: begin of gt1_qmfe occurs 0,
qmnum like qmfe-qmnum,
fenum like qmfe-fenum,
/itml/usr20 like qmfe-/itml/usr20,
end of gt1_qmfe.
data: begin of gt2_qmfe occurs 0,
qmnum like qmfe-qmnum,
fenum like qmfe-fenum,
/itml/usr21 like qmfe-/itml/usr21,
end of gt2_qmfe.
data: begin of gt3_qmfe occurs 0,
qmnum like qmfe-qmnum,
fenum like qmfe-fenum,
/itml/usr19 like qmfe-/itml/usr19,
end of gt3_qmfe.
data: begin of gt4_qmfe occurs 0,
qmnum like qmfe-qmnum,
fenum like qmfe-fenum,
/itml/usr07 like qmfe-/itml/usr07,
end of gt4_qmfe.
data: gs1_qmfe like line of gt1_qmfe,
gs2_qmfe like line of gt2_qmfe,
gs3_qmfe like line of gt3_qmfe,
gs4_qmfe like line of gt4_qmfe.
data: ls_lines1 type i,
ls_lines2 type i,
ls_lines3 type i,
ls_lines4 type i.
parameters: ip_file1 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\StoDt.txt' obligatory,
ip_file2 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\RcDtCust.txt' obligatory,
ip_file3 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\DockDate.txt' obligatory,
ip_file4 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\AWB.txt' obligatory.
field-symbols: <fs1> like gs1_qmfe,
<fs2> like gs2_qmfe,
<fs3> like gs3_qmfe,
<fs4> like gs4_qmfe.
perform upload_gt1_qmfe.
perform upload_gt2_qmfe.
perform upload_gt3_qmfe.
perform upload_gt4_qmfe.
perform update_qmfe.
*& Form upload_gt1_qmfe
text
--> p1 text
<-- p2 text
FORM upload_gt1_qmfe .
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = ip_file1
FILETYPE = 'DAT'
TABLES
DATA_TAB = gt1_qmfe.
describe table gt1_qmfe lines ls_lines1.
write: / ls_lines1.
ENDFORM. " upload_gt1_qmfe
*& Form upload_gt2_qmfe
text
--> p1 text
<-- p2 text
FORM upload_gt2_qmfe .
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = ip_file2
FILETYPE = 'DAT'
TABLES
DATA_TAB = gt2_qmfe.
describe table gt2_qmfe lines ls_lines2.
write: / ls_lines2.
ENDFORM. " upload_gt2_qmfe
*& Form upload_gt3_qmfe
text
--> p1 text
<-- p2 text
FORM upload_gt3_qmfe .
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = ip_file3
FILETYPE = 'DAT'
TABLES
DATA_TAB = gt3_qmfe.
describe table gt3_qmfe lines ls_lines3.
write: / ls_lines3.
ENDFORM. " upload_gt3_qmfe
*& Form upload_gt4_qmfe
text
--> p1 text
<-- p2 text
FORM upload_gt4_qmfe .
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = ip_file4
FILETYPE = 'DAT'
TABLES
DATA_TAB = gt4_qmfe.
describe table gt4_qmfe lines ls_lines4.
write: / ls_lines4.
ENDFORM. " upload_gt4_qmfe
*& Form update_qmfe
text
--> p1 text
<-- p2 text
FORM update_qmfe .
data ls_cnt type i.
loop at gt1_qmfe assigning <fs1>.
update qmfe set /itml/usr20 = <fs1>-/itml/usr20
where qmnum = <fs1>-qmnum
and fenum = <fs1>-fenum.
if sy-subrc = 0.
commit work.
add 1 to ls_cnt.
endif.
endloop.
write: / ls_cnt.
ENDFORM. " update_qmfe
Maybe you are looking for
-
When ı try to set up my project to other computer , my project takes error on build. I m using eclipse Juno .I looked my weblogic.jar i didn't find weblogic.jws.jaxws.client.async.AsyncTransportProvider class in it. What should i do ? Stacktrace : <
-
How to install an autofill forms extension to a tool bar
I want to place a link to my autofill extension on a toolbar. I had it and somehow lost it and have forgotten how to do it. The extension is on my list of add-ons. Any help?
-
Java APIs to execute external execute file or command
I would like to enquire about the 'program statement' to execute an external program or dos command (e.g 'cls' to clear the screen) in a java source program. Is there any built-in API s which like 'execute' or something else so as to execute an exter
-
Unable to install iTunes 8 or to uninstall old version of iTunes
I have an old version of iTunes (more than two years) and wish to install iTunes 8. However, I am neiher able to install the latest version of iTunes or uninstall the old one. When I try the windows uninstall program, I get the error message that the
-
When will the other releases will out adobe !?
hello guys here am asking any one who know about those release Adobe Creative Suite 5 for Middle Eastern, and Greek users i need help for the release date plz guys if any one know it will be nice see u below