CPICTRC File Generation from RFC Server application

My company has developed a Windows Service that acts as a RFC Server application and pings SAP for remote function calls every so often. We have been running into an issue with the generation of a trace file when the SAP client is shut down. We have tried multiple methods to stop the generation of the trace file but each time it is generated as soon as the connection to the SAP client is severed. Below are the three methods we have used:
1) Pass TraceLevel = 0 into the RegisterRFCServer method when we register our server application.
2) Set the CPIC_TRC and even CPIC_TRACE environment variables to 0.
3) Unchecked the 'Trace' checbox on the RFC destination in SAP.
Each time we have tried this, even after setting the environment variables and rebooting we see that a CPICTRC file is being generated in the System32 folder with the contents similar to below:
trc file: "CPICTRC1968", trc level: 1, release: "711"
[Thr 5836] Sat Sep 19 17:06:15 2009
[Thr 5836] opened by SAP_CMACCPTP (version=711.2008.04.28)
[Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
[Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
[Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
[Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
[Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
[Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
[Thr 5836] *** ERROR => NiSockToHdl: sock 620 not found [nixx.c       1629]
Does anyone have any idea why this file is being generated even though we are setting the trace level to 0 and, more importantly, how we can go about preventing this file from being generated?

Hello Rob,
I assume the gateway trace level is "propagated" from the SAP system to the external server program.
Can you please check SM59, "Special Options"? There should be a section headed "Send Trace".
If here the option "Default Gateway Value" is activated, try switching it to  "Do Not Send Trace".
(Or alternatively you can turn off the gateway trace in transaction SMGW: Menu entry "Goto --> Trace
--> Gateway --> Reduce Level")
Best Regards, Ulrich

Similar Messages

  • DQM with CRM: message from RFC server to DS

    Hi,
    Is there a way to capture the message sent from RFC server to DS? I'm interested in the message format.
    Thanks.

    I believe this information is included in the detailed log files from the RFC Server. Look under Chapter 4 of the user guide for the section, "Configuring through flrfcsrv.xml". Find the log_level parameter and set it to 4 for the most detailed logging and restart the RFC server.

  • Is it possible to load a dump file collected from sql server to orcle 10gR2

    Hi..
    As a part of data migration from legacy systems , we need to migrate only required tables from Sql server to Oracle 10gr2 .
    At present client is telling that he will give it as dump file.
    My question is , Is it possible to load the dump file collected from sql server to oracle 10gR2?
    Thanks in advance ..

    yes, it is.
    Using for example SQL Developer Migration Workbench even allows you to create unload scripts for the desired SQL Server tables and it also creates the DDL scripts for you to create the Oracle tables similar to the SQL Server table AND it alows creates the SQL*Loader scripts that allow you to load the SQL Server generated dump file into the Oracle db.
    Here the link:
    http://www.oracle.com/technology/tech/migration/workbench/index_sqldev_omwb.html
    If you do not want to use this utility, you can also use SQL*Loader to load the content of the SQL Server dump file into the Oracle database; but in this case you have to write the whole SQL*Loader control scripts on your own.
    Edited by: kgronau on Sep 16, 2009 1:54 PM

  • File Attributes from App Server by RFC (GET_FILE_ATTRIBUTES does not work )

    Hello,
    We have an Objects application that is started through an RFC BAPI call from a Java app. The Java app. passes a file to the BAPI. We want to test, as efficiently as possible, if the file is 0 bytes long. We have tried /epsf/get_file_attributes but there is a problem with it being called remotely. We have Remote Enabled the function module. Local tests work fine (GUI User), but when it is called by the Bapi(Technical User) we receive sy-subrc = 2. I think it is referring to a 'Communication Error'.
    I found a nice class, CL_GUI_FRONTEND_SERVICES for the workstation server, but nothing comparable for the application server.
    Help is greatly appreciated as I am pulling my hair out.
    Best Regards,
    Mark Lengel

    Hello Andreas,
    The GET_FILE_ATTRIBUTES fm is also from the EPS Function Group and provides the file size, it just does not work when called from Rfc/Bapi. Won't the GET_DIRECTORY_LISTING fm just return directory info ?
    I am afraid I will have to resort to the OPEN, READ, CLOSE DATASET steps in order to check for a zero length file.
    Regards,
    Mark

  • How to file data from sap server to third party-tibco using EDI-Idoc?

    Hi all,
    I need to send data from sap server to third party system in th form of file.
    Please guide me how to send data file from sap server to third party-tibco using edi-idoc?
    Also guide the configuration ti be done for EDI.
    Thank you.

    1)create file port
    2)TCP-IP RFC destination with a program RFCEXEC to be executed on application server
    3)Dummy distribution model
    4)Partner pofile of type other han LS

  • File download from the server

    I have this page(in a distributive application) that checks the status of files on the server. These are hyperlinked and I am trying to allow the users to download the files. I can see the files, and the links but can't download a file or "save target as.." option.
    I have added an .xml file in the configuration directory of my application server(JBoss). I can download the files on the same computer, but if I can't do that from other computer. I got this .xml file from online search, someone suggested to use this in order to allow for download option.
    <?xml version='1.0' encoding='utf-8'?>
    <Context debug="99" docBase="/home/jboss-4.0.5.GA/bin/Fastran" path="/Fastran" reloadable="true">
    </Context>Can I get some help in this regard ? The files are created in the application server folder, should I change the destination for resultant files outside of the server folder ?
    Thanks.

    <%
            String userFolder = applicationId.getUserEmail() + applicationId.getSessionId() ;
            for (int i = 0 ; i < Integer.parseInt(applicationId.getSpecValue()) ; i ++)
                int j = i + 1 ;
                File spec = new File("C:\\jboss-4.0.5.GA\\bin\\Fastran\\" + userFolder + "\\ftn07_" + (i+1)) ;
                if (spec.exists() == true)
                    //out.println("") ;
                %>
                <a href = "<%= destFile %><%= j %>"><% out.println("ftn07_" + j); %></a><br>
                <%
                else
                    out.println("File not found") ;
        %>
    and here is how i get to the destFile:
    <%
         String destFile = "C:\\jboss-4.0.5.GA\\bin\\Fastran\\" + applicationId.getUserEmail() + applicationId.getSessionId() + "\\ftn07_" ;
            String destSum = "C:\\jboss-4.0.5.GA\\bin\\Fastran\\" + applicationId.getUserEmail() + applicationId.getSessionId() + "\\DamageSummary.txt" ;
        %>

  • EAR file download from PI server

    Hi Experts,
    we have deployed a adapter module in our Quality system sometime back directly from NWDS using SDM.
    As I didnt had the backup of my EAR file and my system got crashed, i lost the code.
    Please let me know where can i download(Folder location on server)  the same EAR file or jar file from PI server
    We are using PI7.0 on Unix
    Thanks in advance

    Dear all -Thanks for the replies.
    We downloaded the EAR file from the server, but when i was trying to deploy the same EAR on to our sandbox, its throwing error as below:
    The reason is: Error occurred, trying to collect module archives with ws clients. .
    ine.services.webservices.server.deploy.wsclient.WSClientsDeployManager.collectWSClientsModuleArchives(WSClientsDeployManager.java:374)     at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsDeployManager.deploy(WSClientsDeployManager.java:56)     at com.sap.engine.services.webservices.server.deploy.WSDeployer.deploy(WSDeployer.java:158)     at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606)     at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:321)     at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:307)     at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)     at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)     at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3186)     at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:554)     at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)     at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)     at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)     at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)     at java.security.AccessController.doPrivileged(AccessController.java:219)     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)Caused by: java.util.zip.ZipException: Error opening zip file /usr/sap/XIS/DVEBMGS00/j2ee/cluster/server0/./temp/deploy/work/deploying/reader1307647455780/sapxmltoolkit.jar     at java.util.zip.ZipFile.open(Native Method)     at java.util.zip.ZipFile.<init>(ZipFile.java:140)     at java.util.jar.JarFile.<init>(JarFile.java:160)     at java.util.jar.JarFile.<init>(JarFile.java:125)     at com.sap.engine.services.webservices.server.deploy.util.jar.JarUtil.hasEntry(JarUtil.java:68)     at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsFactory.containsWSClientsSingleMode(WSClientsFactory.java:797)     at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsFactory.containsWSClients(WSClientsFactory.java:782)     at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsDeployManager.collectWSClientsModuleArchives(WSClientsDeployManager.java:366)     ... 19 more (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment of FileModuleEAR finished with Error (Duration 9982 ms)
    Does this  error means that the EAR is being used by other component , i mean as we downloaded this EAR from our quality box, does this has some depencies/references created on the EAR and thus erroring out when trying to deploy the same in sandbox?
    We are using SDM for deployment.
    Thanks in advance,

  • 11g issue in handling file datastore from different server

    Hi All,
    In ODI 11g we have standalone agent as well as weblogic server agent. In our case master/workrep and weblogic server agent is installed in one of the linux server Say (A).
    We have a scenario to pick the file from one of the different linux box SAY (B). We have child agent running on that box and it is associated with the main weblogic agent under load balancing.
    While setting the topology information for file datastore it just need the driver name and path. At run time how odi will pick the respective file from that server
    Eg:File in location: /app/soa/uo1/testfile/test.txt(B)
    File path:/app/soa/uo1/testfile/test.txt(B)
    ODI Client will start the execution using the Server A weblogic agent. How ODI will route the control to child agent and try to find the file in ServerB and not in server A.
    in my case it is going to server A and saying file doesnot exist......
    Is it really possible to assign the proper server detail, so that we can make sure that execution will happen properly. I am not sure about the weblogic agent and how it control the execution. I think in my case its weblogic agent which is trying to look for the file in server A, where it is installed and thus failing.
    Control is not passing to the proper child agent as expected?
    Any idea?

    There is a difference in your understanding of the load balancing and the way it is implemented in ODI agents.
    In your case, the weblogic agent exists on Server A and hence it expects that the file also be visible to the agent and be local to server A.
    Load balancing comes into picture when there are too many connections for Agent A and it shares its load with other agents. This logic of passing control is within the agent and when file systems come into picture, the filesystem should be visible to all the agents.
    There is no concept of parent-child agents. The agents are simply load-share agents.
    So, Load balancing is not going to give you what you want.
    In your case, you should execute the job using Agent on server B so that appropriate filesystem can be accessed.

  • File transfer from UNIX server to Windows server path

    Hello Experts, (Gud Even Gud Aft & Gud Mor)
    Is there a way to transfer file from UNIX server(Oracle database), to Windows server? All I know if Windows path. I am able to read the file as it is on server, however it does not recognize Windows directory at all.
    If you can share some documents around this to study, I will be grateful.
    Regards,

    34MCA2K2 wrote:
    Is there a way to transfer file from UNIX server(Oracle database), to Windows server? All I know if Windows path. I am able to read the file as it is on server, however it does not recognize Windows directory at all.Yes it is possible. Samba on Unix sharing the directory containing the file. NFS on the Unix server sharing the directory containing the file. FTP server on Unix allowing the file to be read and copied. OpenSSH on the Unix allowing the file to be read and copied via scp (secure copy).
    But seeing as this is an Oracle database forum (not an operating system forum), and the subject matter is the database server languages SQL and PL/SQL, here is a PL/SQL solution.
    Create a table using the BFILE data type for referencing the files on the Unix o/s. Provide a web enabled procedure for downloading the files via HTTP using a web browser. This procedure will look something as follows:
    --// URL example: http://my-server.my-domain.com/MyDAD/MySchemaName.StreamFile?fileID=1234
    create or replace procedure StreamFile( fileID number ) AUTHID DEFINER is
            mimeType        varchar2(48);
            fileName        varchar2(400);
            lobContent      BLOB;
    begin
            --// read the LOB from a table (this example uses the
            --// Apex file uploads table - change it to your own files table)
            select
                    f.filename,
                    f.mime_type,
                    f.blob_content
                            into
                    fileName,
                    mimeType,
                    lobContent
            from    FLOWS_FILES.WWV_FLOW_FILE_OBJECTS$ f
            where   f.id = fileID;
            --// format a basic HTTP header that describes the file stream send
            OWA_UTIL.mime_header( mimeType, FALSE );        -- e.g. text/csv text/plain text/html image/gif
            HTP.p( 'Content-Disposition: attachment; filename='||fileName );
            HTP.p( 'Content-Length: ' || DBMS_LOB.GetLength(lobContent) );
            OWA_UTIL.http_header_close;
            --// now write the BLOB as a mime stream using the Web Procedural Gateway's
            --// doc load API
            WPG_DOCLOAD.download_file( lobContent );
    exception when OTHERS then
            --// Decide what HTML to generate (if at all) if there is a failure
            --// (usually not a good idea to show database errors to the
            --// web browser client as that can provide technical details
            --// that could be useful for exploiting the database)
            HTP.prn( 'StreamFile() failed with '||SQLERRM(SQLCODE) );
    end;
    / On Windows, IE can be used interactively to copy the file across. For automation (via PowerShell or console jobs), use a command like tool like wget* to download the file.
    If you do not want to use SQL or PL/SQL as the file copy mechanism, then please close this thread (mark as answered) and take your question to an appropriate forum.
    <i>* - see http://gnuwin32.sourceforge.net/packages/wget.htm</i>

  • File Transfer From Unix server to Windows Client System Using WebUtil

    Hi all,
    I want to Transfer a File from Unix Server to Window Client System using Webutil. But below mention code is not working.
    DECLARE
         V_Server_Path VARCHAR2(500) := Null;
         V_Client_Path VARCHAR2(500) := Null;
    BEGIN
         V_Server_Path := '/proj/oraapps/viper/dev/reports/cache/Saveauftr.txt';
         V_Client_Path := 'C:\Migration\EU_Applications\Lima\OAS_WorkArea\Client\Saveauftr.txt';
         IF WebUtil_File_Transfer.Is_AS_Readable(V_Server_Path) THEN
         IF WebUtil_File_Transfer.AS_To_Client(V_Client_Path,V_Server_Path) THEN
              Message('Downloading the File ..... .... ... .. .');
              Message('Downloading Was Successfull ...');
              Message('File Transfer from Server Was Successfull ...');
         END IF;
    END IF;
    END;
    Can anyone suggest me,Why the above code is not working and what to do for solve the Problem.
    Regards
    Gany

    Hello,
    You have more chances to get an answer in the Oracle Forms OTN Forum :
    Forms
    Regards

  • Cant do a file get from external server using file sender adapter with ftp

    Hi all,
    Up until now our company has only used the file sender adapter with ftp protocol to get a file from our XI server for processing and input the file into an integration process
    I have a requirement to do an ftp file get from an external server
    From our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...).  So all firewall issues and communications are fine
    Unfortunately I cannot currently pull files from the external server using the XI file adapter with ftp protocol from the XI development server AWB017
    FTP Connection Parameters: External server name using port 21, Data Connection is Passive, No security, I supply a userid and password
    Processing Parameters: Processing Mode is Archive (I tried test but this did not work either)
    No messages appear in the RWB
    Is there something else that I need to set up in order for the external ftp get to work via the XI file adapter?
    Regards,
    Mike

    Thanks for your responses.
    I have found the error messages in the File Adapter Monitor
    Scenario 1
    When I prefix the source directory with a forward slash, eg <b>/Folder/Subfolder</b> the error message is as follows
    <b>EST: Error: Error connecting to ftp server 'ip address': FTPEx: /Folder/Subfolder: The system cannot find the path specified</b>
    Scenario 2
    When I DO NOT prefix the source directory with a forward slash, eg <b>Folder/Subfolder</b> a different error message is returned
    <b>Error: Retrieving file 'FILENAME.XML' failed unexpectedly: FTPEx: Folder/Subfolder: The system cannot find the path specified</b>
    At least in this scenario the adapter has been able to identify the file on the external FTP site but cannot retrieve it
    Questions
    I thought that the backslash prefix for the source directory was mandatory but I am receiving an error in each scenario
    I receive the same error message whether the Processing Mode is 'Archive' or 'Test'
    The logs on the external ftp server seem to indicate that I am simply connecting, sending username and password then quiting straight away. I am not issuing any commands that they can see
    I thought that being a Sender adapter it would inherently execute a Pull or Get command
    To recap, from our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...). So all firewall issues, communications, userid and password are fine
    Has anyone experienced these issues?
    Please advise on next course of action?
    Regards,
    Mike

  • How to extract original file contents from content server

    Hi,
    1)How can we extract original file contents from the content server (which in our case is SAP database itself)...
    2)What exactly is PHIO_ID and LOIO_ID?
    Thanks and regards,
    Santhosh Kumar U.P

    Hi,
    concerning your first question - please decribe, what you are trying to do.
    Question 2:
    LOIO_ID is the ID of the Logical Information Object. A LOIO is not a real document, but kind of a virtual document, a containerfor all "real" versions of a document. A PHIO (physical info object) is a real document.
    you can read more at http://sercie.sap.com/Kpro
    Kind regards,
    Carl

  • Files Transfer from Windows Server 2008 R2 on Mac

    Hi,
    How can I transfer files from "Windows Server 2008 R2" on Mac? as now I am using 2 App (Microsoft Remote Desktop & Fast Remote Desktop) which allowed me everything but not transfer files on Mac, so any other recommendation or salutation?
    Thanks

    Hi,
    You need to configure folder redirection.
    Folder redirection enables access local folders during the remote session. Click the + button at the bottom of the dialog and choose a folder you want to have
    redirected.
    Configure Folder Redirection:
    1. Click the + button.
    2. In the Add Local Folder window, enter the following information:

    Name: Set a name for the folder to be available during the remote session.

    Path: Select the path to the folder to be available during the remote session.
    3. Click the close button to save the remote desktop.
    Getting Started with Remote Desktop Client on Mac
    http://technet.microsoft.com/library/dn473012
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • File name from RFC

    Hello,
    I have scenario from RFC to File(CSV).
    The RFC structure is:
    <Z_PORTAL_PURCH>
         <LAND></LAND>
         <PURCH_PRICE>
              <item>
                   <a></a>
                   <b></b>
                   <c></c>
              </item>     
         </PURCH_PRICE>
    </Z_PORTAL_PURCH>
    The target is:
    <ECC_PURCH_PORTAL>
              <item>
                   <a></a>
                   <b></b>
                   <c></c>
              </item>     
    </ECC_PURCH_PORTAL>
    I able to create the file with correct stracture
    Now I try to change the file name and take the paramer from <LAND> field in the RFC
    How can I do this?
    Elad

    Hello,
    When Itried to use with the UDF.
    I received this error message:
    14:25:50 Start of test
    Source code has syntax error: L:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map4b141341503111de99ce001635c5b25f/source/com/sap/xi/tf/_ecc_purch_price_MM_.java:64: ';' expected DynamicConfigurationKey DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); ^ 1 error Source code has syntax error: L:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map4b141341503111de99ce001635c5b25f/source/com/sap/xi/tf/_ecc_purch_price_MM_.java:64: ';' expected DynamicConfigurationKey DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); ^ 1 error
    14:25:51 End of test
    Elad
    Hi,
    It seems that you are testing this UDF from Test tab. If yes, it wont work.
    You need to run the whole scenario.
    Regards,
    Chandra

  • File generation from Report 3.0

    Hi,
    I have Developer 2.1 and I tried to run a report from a Form (RunProduct). It works, but when (from the prewiewer) I generate a file (for example a HTML file) this file has no data in. That is it has all the headings (constant data)but no data base data.
    Example :
    the previewer shows something like this
    empno employee name
    113 Scott
    114 Red
    the Html file shows something like this :
    empno employee name
    Another thing: if I run R30RUN32 the file generation works correctly.
    Anyone has faced such a problem ?
    Thanks in advance.
    Dino Pesce
    null

    Now I am using reports 6.0..
    still that problem is there in 6.0 also
    what you can do to solve this problem is
    you accept parameters in form for
    destination type , dest format and dest name
    (DESTYPE,DESFORMAT,DESNAME)
    Pass this parameters to report using parameter list..
    you can disable "generate to file" menu item
    in previewer menu by passing following parameter
    DISABLEFILE..
    Add_Parameter(pl_id,'DISABLEFILE',TEXT_PARAMETER,'YES');
    PS: you need not create all these parameters as user parameters in reports

Maybe you are looking for

  • Sound skips in Safari and Chrome

    I have a problem with sound skipping in Safari and Google Chrome.  Whenever I am playing music or watching a movie in these browsers the sound is fine, but if I open another application, select another application, or if the computer goes to screensa

  • Time Machine keeps running out of space

    This is really annoying. Starting about 2-3 months ago, my Time Machine suddenly keeps running out of space. I have a MacBook Pro bought in 2009 summer with 500 GB Hard Drive. My Time Machine drive is als 500 GB. I currently have 117 GB left in my Ma

  • Problem working with deployed View Object

    Hi everyone, I have developed and deployed the BC4J project. And now I'm writting the client code. Connecting to deployed components and then to the database is successfull. calling method ViewObject vb = applicationModule.findViewObject("ViewObject"

  • Change documents for P.Req. (BUS2009)

    Hi Folks, I need to raise an event for BUS2009 (Item release) P.req item. However, the Change Doc. Object (BANF) in t-code SWEC, is not compatible with BUS2009. Do any of you guys know af another Change Doc. object that kan be used or another solutio

  • Adf page state problem

    I am using jDeveloper 11.1.1.3g. I have a simple jsp page which has few inputText and commandButton. When i click on the command button i have a logic to add a user in LDAP. Till this is fine. If i click on my the command button the respective method