Method upload report to SAP Server

Dear experts!
Now I'm getting some issue.
The first, I set up BO on my server. But I don't know to build report with BO.
Second, I want to give the report to Screen SAP easy access menu.
What do I have to do?
Help me, please!
Best regards, Huy.

I don't believe you are using Crystal Reports which is what this forum is all about. Try one of the SAP product forums.

Similar Messages

  • Can't upload reports to crystal server

    Hello guys,
    First is the system info:
    Crystal Server XI R2 with SP3
    OS: Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
    Database: Oracle DB 10g
    This issue shall be divided into two parts.
    Parts one:
    Before the server is reinstalled we can upload some reports. But there is some limitation. When one report is changed, we can't upload it to the server directly. This report should be renamed to a different name then it can be uploaded. If we don't do so it fails with an error message says 'An unexpected error has occurred'. So every time we need to rename reports and then upload them. This workaround is OK for some reports but not all of them. No matter how we reboot the machine or restart the crystal server.
    Part two:
    One day the machine crashed and we reinstalled the crystal server. But this time it won't accept any report at all. Still it accepts other file such as *.Doc, *.PDF Etc. Every time we try to upload a report and we get an error message says 'An unexpected error has occurred'. If we use CMC to upload a report we get something more detail says 'There was an error while retrieving data from the server: Unknown exception occurred when calling into the plugin'.
    BTW, all reports are tested in report designer. They are 100% OK. All services of the crystal server are up and running.
    And one more thing, how can I attach file in this forum. I want to give dear you the log files to refer to.
    Thanks a lot.

    Hi
    It would be easier if you would keep this all in the same topic.
    As suggested in you other thread ([Can't upload reports to crystal |Can't upload reports to crystal server]), this is very likely to be a permission problem.
    Caroline

  • SAP Crystal Report using SQL Server Authentication and Windows Authenticati

    I'm a SAP Crystal Report, version for Visual Studio 2010 Beginner
    my ingredients are
    1.windows 7 ultimate service pack1
    2.sql server 2008 standard edition
    3.visual studio 2010 pro
    4.SAP Crystal Report, version for visual studio.net
    I was created a report named customersByCity.rpt using OLE DB (ADO) -> Microsoft OLE DB Provider for SQL Server -> I'm supply Server, User ID, Password and Database. I assume me using SQL Server Authentication for my report
    Then, my ASP.NET files as following
    //ASP.NET
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="viewCustomersByCity.aspx.cs" Inherits="viewCustomersByCity" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div><asp:Label ID="lblMsg" runat="server" BackColor="Yellow" ForeColor="Black"></asp:Label>
     <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true"></CR:CrystalReportViewer>
        </div>
        </form>
    </body>
    </html>
    //code-behind
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Collections;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    public partial class viewCustomersByCity : System.Web.UI.Page
        private const string PARAMETER_FIELD_NAME = "city";   
        private ReportDocument customersByCityReport;
        private void ConfigureCrystalReports()
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo.ServerName = @"WKM1925-PCWKM1925";
            connectionInfo.DatabaseName = "Northwind";
            connectionInfo.UserID = "sa";
            connectionInfo.Password = "sysadmin25";
            SetDBLogonForReport(connectionInfo);
        private void SetDBLogonForReport(ConnectionInfo connectionInfo)
            TableLogOnInfos tableLogOnInfos = CrystalReportViewer1.LogOnInfo;
            foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
                tableLogOnInfo.ConnectionInfo = connectionInfo;
        private void SetCurrentValuesForParameterField(ReportDocument reportDocument, ArrayList arrayList)
            ParameterValues currentParameterValues = new ParameterValues();
            foreach (object submittedValue in arrayList)
                ParameterDiscreteValue parameterDiscreteValue = new ParameterDiscreteValue();
                parameterDiscreteValue.Value = submittedValue.ToString();
                currentParameterValues.Add(parameterDiscreteValue);
            ParameterFieldDefinitions parameterFieldDefinitions = reportDocument.DataDefinition.ParameterFields;
            ParameterFieldDefinition parameterFieldDefinition = parameterFieldDefinitions[PARAMETER_FIELD_NAME];
            parameterFieldDefinition.ApplyCurrentValues(currentParameterValues);
        protected void Page_Load(object sender, EventArgs e)
            customersByCityReport = new ReportDocument();
            string reportPath = Server.MapPath("customersByCity.rpt");
            customersByCityReport.Load(reportPath);
            ConfigureCrystalReports();
            ArrayList arrayList = new ArrayList();
            arrayList.Add("paris");
            arrayList.Add("Madrid");
            arrayList.Add("Marseille");
            arrayList.Add("Buenos Aires");
            arrayList.Add("Sao Paulo");
            ParameterFields parameterFields = CrystalReportViewer1.ParameterFieldInfo;
            SetCurrentValuesForParameterField(customersByCityReport, arrayList);
            CrystalReportViewer1.ReportSource = customersByCityReport;
    1st scenario
    When in a runtime, it's keep appear a dialog box. This dialog box ask me to suppy Server, User ID, Password and Database. Once all information is supplied, my report display the data as expected
    2nd scenario
    I change my report using OLE DB (ADO) -> Microsoft OLE DB Provider for SQL Server -> checked on Integrated Security. I just choose Server, and Database. I assume me using Windows Authentication
    When in a runtime, there's no dialog box as above. My report display the data as expected. really cool
    Look's like, when report using SQL Server Authentication there's some problem. but, when report using Windows Authentication, it's fine.
    I'm looking for comment. Please help me

    Hello,
    MS SQL Server 2008 requires you to install the MS Client Tools for 2008.
    Once install then update all of your reports to use the SQL Native 10 as the OLE DB driver.
    The try again, if it still fails search, lots of sample log on code in this forum.
    Don

  • XL Reporter in Sap 8.8 PL 16running On Server 2008 R2  and SQL 2008 R2

    Within the above environment (XL Reporter in Sap 8.8  PL 16 running On Server 2008 R2  and SQL 2008 R2)
    Xl reporter is loading and appears to work fine until you look at the spreadsheet result
    It is completely blank except for the titles
    Yet Excel Macros and the attachment paths are defined correctly
    As can be seen when we export any report to Excel successfully
    I've had another consultant look at my setup carefully just to be sure
    He can't figure out why
    Anyone with similar results
    I would appreciate any comments
    Georges Ostiguy

    Even something as simple as a list of BP 's and phone number gives a blank report
    When my friend who knows xl reporter much more than I do tried, he managed to get the
    BP numbers but nothing further
    I then brought him to another server with the same configuration , same result
    He then tried it on one of his own servers with similar config = same result
    Server 2008 Standard R2 64bit
    MSSQL 2008 R2
    SAP 8.8 PL 16
    Sample demo database
    I don't get it

  • How to upload an excel template file to SAP server

    Dear Experts,
    I am develpoing a program to generate the Excel file with a fixed template and save it to user's local drive, the excel template is stored in SAP server. I use the function module C13Z_FILE_DOWNLOAD_BINARY to do this is. But now my problem is I do not know how to upload the excel template to our SAP server. Do any friends can kindly tell me how to upload the excel template to SAP server?? Thanks.
    Best Regards
    Joe

    Hi Joe,
    Please refer following sample program:
    http://abapcode.blogspot.com/2007/06/sample-program-to-upload-excel-document.html
    Best regards,
    Prashant

  • Finding the folder on the SAP server

    My requirement is about finding the physical folders and files on SAP server. If any body could give me any input for that, i would appreciate it!!
    I need to copy the files from my C: drive to SAP Office Shared Folder. Actually I have three folders on SAP Office Shared Folder (Customer, Vendor and Personnel). the documents are being scanned and sent to my PC. from here I have a program that runs nightly and copies those pdf scanned files to application server. I need to ascertain the path of those Customer, Vendor and Personnel folder on SAP Application server.
    any input is appreciated. Thanks, Abhishek

    Here's my report:
    REPORT  YTESTRM2                                .
    DATA: gd_COUNT type I.
    DATA: D_PATH(50) value '
    R3sever\ADR100\'.
    DATA: gd_Source TYPE string ,
          gd_dest type String ,
          gd_rc type I.
    DATA: gd_directory type String value '
    Bismark\Projects\ADMIN\'.
    DATA: gd_file_table type standard table of file_info.
    data: wa_file_table type file_info.
    CALL METHOD cl_gui_frontend_services=>DIRECTORY_LIST_FILES
      EXPORTING
        DIRECTORY = gd_directory
      CHANGING
        FILE_TABLE = gd_file_table
        COUNT = gd_count.
    LOOP AT gd_file_table into wa_file_table.
      CONCATENATE D_PATH wa_file_table-filename INTO gd_dest.
      concatenate gd_directory wa_file_table-filename INTO gd_Source.
      CALL METHOD cl_gui_frontend_services=>File_Copy
        EXPORTING
          Source = gd_Source
          Destination = gd_dest
        EXCEPTIONS
          OTHERS   = 1.
    ENDLOOP.
    R3Server is our production server name. the ADR100 folder is a shared folder.
    All i want to know is that whether the folders that i created in SHARED FOLDERS in SAP BUSINESS WORKPLACE........are they created physically in this R3Server or in some KPro or CMS.. if i could give the name of that instead of my
    R3sever\ADR100\........then my work is done.

  • Error while uploading images to SAP Mobile Documents from iPad application using ObjectiveCMIS.

    Hi,
    I am getting the error while uploading images to SAP Mobile Documents from custom iOS(iPad )application using ObjectiveCMIS library.
    My Custom method is as follows:
    - (void)createSalesOrderRouteMapImageInFolder:(NSString*)salesOrderRouteMapFolderId routeMapImageTitle:(NSString *)imageTitle routeMapContent:(NSData *)imageData
        NSInputStream *inputStream = [NSInputStream inputStreamWithData:imageData];
        NSMutableDictionary *properties = [NSMutableDictionary dictionary];
        [properties setObject:[NSString stringByAppendingFileExtension:imageTitle] forKey:@"cmis:name"];
        [properties setObject:@"cmis:document" forKey:@"cmis:objectTypeId"];
        [self.session createDocumentFromInputStream:inputStream
                                           mimeType:@"image/png"
                                         properties:properties
                                           inFolder:salesOrderRouteMapFolderId
                                      bytesExpected:[imageData length]
                                    completionBlock:^(NSString *objectId, NSError *error) {
                                        NSLog(@"Object id is %@",objectId);
                                        if(error == nil) {
                                            [inputStream close];
                                            NSLog(@"Uploading Sales order route map successfully.");
                                            [[NSNotificationCenter defaultCenter] postNotificationName:SaveOrderSuccessNotification object:nil];
                                        } else {
                                            [inputStream close];
                                            NSLog(@"Uploading sales order route map failed.");
                                            [[NSNotificationCenter defaultCenter] postNotificationName:SaveOrderFailedNotification object:error];
                                    } progressBlock:^(unsigned long long bytesUploaded, unsigned long long bytesTotal) {
                                        NSLog(@"uploading... (%llu/%llu)", bytesUploaded, bytesTotal);
    OBjectiveCMIS Method in which i am getting error during upload:
    - (void)sendAtomEntryXmlToLink:(NSString *)link
                 httpRequestMethod:(CMISHttpRequestMethod)httpRequestMethod
                        properties:(CMISProperties *)properties
                contentInputStream:(NSInputStream *)contentInputStream
                   contentMimeType:(NSString *)contentMimeType
                     bytesExpected:(unsigned long long)bytesExpected
                       cmisRequest:(CMISRequest*)request
                   completionBlock:(void (^)(CMISObjectData *objectData, NSError *error))completionBlock
                     progressBlock:(void (^)(unsigned long long bytesUploaded, unsigned long long bytesTotal))progressBlock
        // Validate param
        if (link == nil) {
            CMISLogError(@"Must provide link to send atom entry");
            if (completionBlock) {
                completionBlock(nil, [CMISErrors createCMISErrorWithCode:kCMISErrorCodeInvalidArgument detailedDescription:nil]);
            return;
        // generate start and end XML
        CMISAtomEntryWriter *writer = [[CMISAtomEntryWriter alloc] init];
        writer.cmisProperties = properties;
        writer.mimeType = contentMimeType;
        NSString *xmlStart = [writer xmlStartElement];
        NSString *xmlContentStart = [writer xmlContentStartElement];
        NSString *start = [NSString stringWithFormat:@"%@%@", xmlStart, xmlContentStart];
        NSData *startData = [NSMutableData dataWithData:[start dataUsingEncoding:NSUTF8StringEncoding]];
        NSString *xmlContentEnd = [writer xmlContentEndElement];
        NSString *xmlProperties = [writer xmlPropertiesElements];
        NSString *end = [NSString stringWithFormat:@"%@%@", xmlContentEnd, xmlProperties];
        NSData *endData = [end dataUsingEncoding:NSUTF8StringEncoding];
        // The underlying CMISHttpUploadRequest object generates the atom entry. The base64 encoded content is generated on
        // the fly to support very large files.
        [self.bindingSession.networkProvider invoke:[NSURL URLWithString:link]
                                         httpMethod:httpRequestMethod
                                            session:self.bindingSession
                                        inputStream:contentInputStream
                                            headers:[NSDictionary dictionaryWithObject:kCMISMediaTypeEntry forKey:@"Content-type"]
                                      bytesExpected:bytesExpected
                                        cmisRequest:request
                                          startData:startData
                                            endData:endData
                                  useBase64Encoding:YES
                                    completionBlock:^(CMISHttpResponse *response, NSError *error) {
                                        if (error) {
                                            CMISLogError(@"HTTP error when sending atom entry: %@", error.userInfo.description);
                                            if (completionBlock) {
                                                completionBlock(nil, error);
                                        } else if (response.statusCode == 200 || response.statusCode == 201 || response.statusCode == 204) {
                                            if (completionBlock) {
                                                NSError *parseError = nil;
                                                CMISAtomEntryParser *atomEntryParser = [[CMISAtomEntryParser alloc] initWithData:response.data];
                                                [atomEntryParser parseAndReturnError:&parseError];
                                                if (parseError == nil) {
                                                    completionBlock(atomEntryParser.objectData, nil);
                                                } else {
                                                    CMISLogError(@"Error while parsing response: %@", [parseError description]);
                                                    completionBlock(nil, [CMISErrors cmisError:parseError cmisErrorCode:kCMISErrorCodeRuntime]);
                                        } else {
                                            CMISLogError(@"Invalid http response status code when sending atom entry: %d", (int)response.statusCode);
                                            CMISLogError(@"Error content: %@", [[NSString alloc] initWithData:response.data encoding:NSUTF8StringEncoding]);
                                            if (completionBlock) {
                                                completionBlock(nil, [CMISErrors createCMISErrorWithCode:kCMISErrorCodeRuntime
                                                                                     detailedDescription:[NSString stringWithFormat:@"Failed to send atom entry: http status code %li", (long)response.statusCode]]);
                                      progressBlock:progressBlock];
    Attaching the logs:
    ERROR [CMISAtomPubBaseService sendAtomEntryXmlToLink:httpRequestMethod:properties:contentInputStream:contentMimeType:bytesExpected:cmisRequest:completionBlock:progressBlock:] HTTP error when sending atom entry: Error Domain=org.apache.chemistry.objectivecmis Code=260 "Runtime Error" UserInfo=0x156acfa0 {NSLocalizedDescription=Runtime Error, NSLocalizedFailureReason=ASJ.ejb.005044 (Failed in component: sap.com/com.sap.mcm.server.nw) Exception raised from invocation of public void com.sap.mcm.server.service.AbstractChangeLogService.updateChangeLog(java.lang.String,boolean) throws com.sap.mcm.server.api.exception.MCMException method on bean instance com.sap.mcm.server.nw.service.NwChangeLogService@4e7989f3 for bean sap.com/com.sap.mcm.server.nw*annotation|com.sap.mcm.server.nw.ejb.jar*annotation|NwChangeLogService in application sap.com/com.sap.mcm.server.nw.; nested exception is: javax.ejb.EJBTransactionRolledbackException: ASJ.ejb.005044 (Failed in component: sap.com/com.sap.mcm.server.nw) Exception raised from invocation of public com.sap.mcm.server.model.ChangeLog com.sap.mcm.server.dao.impl.ChangeLogDaoImpl.findByUserId(java.lang.String) method on bean instance com.sap.mcm.server.dao.impl.ChangeLogDaoImpl@2852b733 for bean sap.com/com.sap.mcm.server.nw*annotation|com.sap.mcm.server.nw.ejb.jar*annotation|ChangeLogDaoImpl in application sap.com/com.sap.mcm.server.nw.; nested exception is: javax.persistence.NonUniqueResultException: More than 1 objects of type ChangeLog found with userId=25f8928e-8ba0-4edd-b08e-43bf6fb78f1a; nested exception is: javax.ejb.EJBException: ASJ.ejb.005044 (Failed in component: sap.com/com.sap.mcm.server.nw) Exception raised from invocation of public com.sap.mcm.server.model.ChangeLog com.sap.mcm.server.dao.impl.ChangeLogDaoImpl.findByUserId(java.lang.String) method on bean instance com.sap.mcm.server.dao.impl.ChangeLogDaoImpl@2852b733 for bean sap.com/com.sap.mcm.server.nw*annotation|com.sap.mcm.server.nw.ejb.jar*annotation|ChangeLogDaoImpl in application sap.com/com.sap.mcm.server.nw.; nested exception is: javax.persistence.NonUniqueResultException: More than 1 objects of type ChangeLog found with userId=25f8928e-8ba0-4edd-b08e-43bf6fb78f1a}
    2015-03-12 04:08:31.634 Saudi Ceramics[4867:351095] Uploading sales order route map failed.

    Hi Sukalyan,
    Have you checked the below links?
    These will give you step by step implementation procedure.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/WDJava/KmuploadusingWebdynproapplication
    Regards,
    Sandip

  • Integrating Reports from SQL Server Reporting Services

    Dear Experts,
    I am given the URL to a report from SQL Server Reporting Services. The URL looks like
    [http://<report_server_host>/ReportServer/Pages/ReportViewer.aspx?/<category>/<report>&<list_of_parameter_value_pairs>]
    When this URL is executed, the user will be prompted for user name and password.
    And I am given the following requirements:
    - Integrate the report into SAP NetWeaver Portal
    - The report has to be passed parameters with values generated at runtime and which must be hidden (because it is sensitive data)
    Initially, I have been working on two options:
    1. using Application Integrator (portal application: com.sap.portal.appintegrator.sap, portal component: Generic)
    2. using URL iView
    With the Application Integrator, however, I got the following error:
    The operation you are attempting on item "/" is not allowed for this item type. (rsWrongItemType)
    I cannot find the solution to this. It looks like the URL which contain "/" after "?" is not appropriate for the Application Integrator.
    So I turn my focus away from the Application Integrator, but to using the URL iView instead. And in order to hide the parameters passed, I make the following settings in the URL iView:
    Request Method = POST
    Fetch Mode = Server-Side
    But then I got the following error:
    Failed to fetch the content. The response status was 401.
    Message:
    (I have defined an HTTP system and used it in the URL iView.)
    Does anyone know how to fix the errors (either with the Application Integrator or the URL iView)?
    Your answers will be much appreciated!
    Regards
    Sakprasat Sum

    Hi
    Was a solution for this found?
    I am trying to achieve the same thing, create an iView that links to an existing SQL Reporting Services report.
    Cheers,
    Andrew

  • Cannot upload report to report manager 2008R2 : The underlying connection was closed: An unexpected error occurred on a receive

    Hi all,
    I cannot upload a report to our report manager. The message returned in report manager is: The underlying connection was closed: An unexpected error occurred on a receive
    I have checked the report server log file and found the below...
    Any assistance greatly appreciated.
    Thanks, Clay
    -------Details--------
    System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. --->
    System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
       at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       --- End of inner exception stack trace ---
       at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
       --- End of inner exception stack trace ---
       at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
       at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
       at Microsoft.ReportingServices.UI.Global.RSWebServiceWrapper.GetWebResponse(WebRequest request)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.SqlServer.ReportingServices2005.ReportingService2005.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties)
       at Microsoft.SqlServer.ReportingServices2005.RSConnection.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties)
       at Microsoft.ReportingServices.UI.ImportPageCtrl.ApplyChanges()
       at Microsoft.ReportingServices.UI.BaseApplyPage.ApplyBtn_Click(Object sender, EventArgs e)
       at Microsoft.ReportingServices.UI.ScriptButton.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Hi clay,
    Per my understanding that you got some error when you upload reports in the report manager, right?
    I have checked the log and the issue can be caused by many factors.
    It can be caused by the size of the report is too big which will sent the request in its entirety and got a TCP ACK-FIN or RST from server to close the connection, without a response from server when uploading the reports. We can follow these steps
    to increase the request size to resolve the issue:
    Add the following registry key with the following value:
     Key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters
     Value: DWORD "MaxRequestBytes"  set it to a value of 5242880 (5MB). (This number is alterable).
    Stop the SRS Windows Service.
    From a cmd prompt run "net stop http" then "net start http".
    Try and upload your report.
    Details information please reference to this similar thread:
    http://stackoverflow.com/questions/2238494/cant-deploy-or-upload-large-ssrs-2008-report-from-vs-or-ie
    If the above didn't help, please also check below information: 
    configure the rsreportserver.config file and make the SecureConnectionLevel value set to 0 to solve the problem. By default, the file is under the path:
    C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer
    You can refer to the code below:
    < Add Key="SecureConnectionLevel" Value="0"/>
    The SecureConnectionLevel property allows values of 0,1,2,3, with 0 indicating that Secure Socket Layer is not required for any of the Web service methods. And a positive integer indicates Secure Socket Layer is required for all the Web service methods.
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Insert document attached located in sap server(=legacy syst)

    Hello,
    I wish to program an interface to insert document attached (in particular : the pictures) in the Crm product in a specified repertory. (transaction : “COMMPR01”, tab : « Document »)
    I found and tested methods CL_CRM_DOCUMENTS-CREATE_WITH_FILE
    To create, the picture (if there is located in my computer = presentation server) is well inserted into the article (parameter business object)in the repertory desired (parameter: parent_folder) but I have a problem.
    => I want to insert pictures which are located in MY SAP SERVER. (in MY LEGACY SYSTEM) (/usr/sap/filein..)
    I have the same problem with the function FM : COM_PROD_MATERIAL_MAINTAIN_API
    By advance, thank you for your assistance.
    Kind regards,
    Greetings,
    Servane Coppalle

    Hi Coppalle,
    I am trying to use CL_CRM_DOCUMENTS-CREATE_WITH_FILE to upload the image from presentation server, Can you please suggest me what all parameter and what value i have to pass to execute this method.
    I am trying to get it done but i am not getting the result.
    Thanks in Advance.
    Regards,
    Manoj Tiwari

  • FTP Transport Method in Data Services SAP Applications Datastore

    Hi,
    We have SAP ECC and we are trying to install Rapidmarts for SD and Finance.When we try to run the Rapidmart Job.. We are getting the error
    Error opening the file  c:\temp\billingblock.daa
    We are using FTP transport method as our SAP servers are Unix and DSE server is on Windows. we have an FTP server which is on Linux.
    Here are the parameters iam trying to give.
    Data Transfer MEthod : FTP
    Working Directory on SAP Server  : /DEV/Test/                   -- Directory on FTP server on Linux
    Local Directory                                : C:\temp
    Global directory                               : C:\temp
    FTP relative path to SAP working directory :  /DEV/Test/
    FTP  HOST Name                                          :  IP Address(FTP IP Address)
    User ID:                                                         :testftp
    Password :                                                   : XXXXXX
    When i try to run the job it's throwing an error. UserID and Password for FTP which iam using has all rights on the FTP Server.
    let me know if i have to look something else.
    Thanks,
    Vinod

    Hi Vinod,
    Did you find a way to make it work ?
    We have the same issue here...
    Server #1 - Unix ECC
    Server #2 - FTP Server
    Server #3 - DataService server.  (WINDOWS)
    The .dat file are created on ECC server in the working directory, and a third party tool detect that directory content change and start upload the file to the FTP server. 
    The problem is when ECC server is done creating the .dat, I think it send the answer to DataService that the job is done.  Then DS try to go to the FTP but the file is not there yet...
    Can ECC do the FTP upload and then send the command to DS tha the job is done ?
    Best regards,
    David

  • How to upload graphic to SAP througth the program?

    Hi everyone,
         Please help me. My point as subject. Because the graphics is different by delivery's batch no.. Whether has any method to be upload graphic to SAP,
    but does not need to each time used SE78 to upload graphic.
         Thanks a lot. My version is ECC 6.0.
    Nicole

    HI Nicole,
                  I think there is also a another way for uploading a graphic but u can use it only for ALV in SAP  u can use the transaction OAER and fill the class name like u can give PICTURES and in class type OT or as per your requirment and then execute (F8) then goto the create->standard doc. types->screen then you will get a pop-up window and select your graphics.In your report you call the fuction
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = I_LISTHEADER
    I_LOGO = 'OBJECT KEY'.
    Do this if it's use full for you and also....
    Plzz give reward point.
    Thanks n Regard
    Anirudh Saini

  • Can the SAP uses the pictures which located on SAP server itself?

    Hi all,
    Please help me to figure out the solution.
    Can i use the picture which located on a shared place? The pictures are already existing and used by other software, e.g., Peoplesoft. then i want to attach the pictures on report output (SapScriupt/Smartform). In this case, can i use those pictures directly from other places/servers? I mean, can the SAP uses the pictures which not upload to SAP server? if yes, what criteria the pictures are e.g., tiff, jpeg, or size.
    Thanks in advance,
    Peerasit

    Use the following FM's to do the Upload of Pictures from the Server to your SAP System
    1) SAPSCRIPT_IMPORT_GRAPHIC - this will import graphic as a Text
    2) SAPSCRIPT_IMPORT_GRAPHIC_BDS - this will import graphic as a BDS element and can be viewable in SE78.
    Hope That Helps
    Anirban M.

  • Post PDF to the SAP server and ftp it

    I got requirements regarding:  (Based on SAP Script)
    1) Convert OTF to PDF file
    2) Post this PDF file into the SAP Server
    3) FTP it to another server
    Is there anyone provide me an example source code of the step 2 and 3?

    Hi,
    Try this Funciton Module <b>/SAPDMC/LSM_F4_FRONTEND_FILE</b>,
    also Please try this Function Module, <b>C13Z_UPLOAD</b>. Might be helpful. Feel free to revert back.
    Here is a sample program.
    report zrich_0002 .
    parameters: source type localfile,
                destin type localfile.
    at selection-screen on value-request for source.
      call function 'KD_GET_FILENAME_ON_F4'
           exporting
                static    = 'X'
           changing
                file_name = source.
    at selection-screen on value-request for destin.
      call function 'KD_GET_FILENAME_ON_F4'
           exporting
                static    = 'X'
           changing
                file_name = destin.
    start-of-selection.
      data: xsource type string.
      data: xdestin type string.
      xsource = source.
      xdestin = destin.
      call method cl_gui_frontend_services=>file_copy
        exporting
          source             = xsource
          destination        = xdestin
       OVERWRITE          = SPACE
        exceptions
          cntl_error         = 1
          error_no_gui       = 2
          wrong_parameter    = 3
          disk_full          = 4
          access_denied      = 5
          file_not_found     = 6
          destination_exists = 7
          unknown_error      = 8
          path_not_found     = 9
          disk_write_protect = 10
          drive_not_ready    = 11
          others             = 12.
    Feel free to revert back.
    --Ragu

  • Calling/starting a report from Sql Server

    Hello.
    I have to get a storage movement starting from a Sql Server Platform.
    I found out the function BAPI_GOODSMVT_CREATE which, getting the main data from an internal
    table, could create a movement in MSEG/MKPF (I suppose, I haven’t used it yet).
    But if I create a report using BAPI_GOODSMVT_CREATE which gets the data from an internal table
    (filled by a Sql Server table), how can I tell to Sap to execute it?
    Is it the only way to schedule this report in SAP every (i.e.) 5 minutes reading if there are
    data in Sql Server?
    Isn’t there a “trigger” to start a report in SAP from Sql Server/Windows?

    Hello,
    It depends on what method you use to read data i.e. Data Context class, Entity Framework for SQL-Server we can get data directly from the database easily.
    The following has two very simply examples using data context classes and the same came be done with Entity Framework which has an even more powerful version of data context implementation under 6 and above
    Dim db As New DataClasses1DataContext
    Dim theCustomer As Customer = db.Customers.Where(Function(c) c.CustomerID = 999).FirstOrDefault
    If theCustomer IsNot Nothing Then
    ' use theCustomer which contains all columns
    Else
    ' do not use, customer not located
    End If
    Dim theCustomer1 As Customer =
    From c In db.Customers
    Where c.CustomerID = 999
    Select New Customer With
    .CompanyName = c.CompanyName,
    .ContactName = c.ContactName,
    .Orders = c.Orders
    ).FirstOrDefault
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

Maybe you are looking for

  • Apple TV (1st gen) will not connect to iTunes

    I am at wit's end. Until a couple of days ago, my 1st gen Apple TV connected fine to iTunes. Now, it will not connect no matter what. I have tried the following: 1) restart both ATV and my machine (Win 7 running iTunes 10.7) 2) restored ATV factory s

  • ORA-00942 Error during unicode export of BI 7.0

    Hello Everyone, I am doing an export of a non-unicode BI 7.0 system to convert and import it into a Unicode database. All the jobs have passed except one and I see the following error in the log file (SAPAPPL0_3.log) /usr/sap/ABD/SYS/exe/run/R3load:

  • Edit Selection Indicator For Template Buttons

    Hello, I have been searching for an answer to my question but have not been able to find an answer. Perhaps because I'm not searching for the proper terminology. I applied the Apple template "Wedding Classical Index" to a menu, and am now trying to c

  • Which pci card to choose

    i am wanting to buy a pci graphics card for my p3 system, as it has no agp, i already have gf2mx200 pci card, but i want something that will run new games the best chipset ive come across for pci slot is either FX5200 or the ati radeon 9200, i think

  • Custom Search portlet : how to sort the result in sequence (Portal 10.1.4)

    With a Custom Search portlet how to Sort the Result By Sequence. i.e. by respecting arrangements of the items in the page of contents? Actually the Results Options "Order By" are : Create Date, Author, Creator, Date Updated, Display Name, Last Update