File attachment transfer to FTP

Hi All,
We are on PT 8.45 & CRM 8.80. And mobile agent is being used for the FieldService.
Currently we are facing issue with the attachment while synchronizing mobile agent with online application. We are using PutAttachment function for transferring the file to the file server.
Below is the scenario:
Technician attaches the invoice, as a html file, to the ServiceOrder component on mobile.
He synchronize the ServiceOrder back to online application, and the invoice html file is uploaded to file server.
But, if two technicians synchronize the mobile agent at the same time then the invoice files gets mixedup.
For example:- Technician A tries to sync ServiceOrder 1, with invoice file name SO1.html. At the same time technician B tries to sync ServiceOrder 2, with invoice file name SO2.html.
Now what happens is the content of file SO1.html is replaced by SO2.html on file server, although the file name & link to FTP file doesn't change.
My doubt is that, for every file transferred from the WebServer/syncServer to AppServer is created as PSSYNC0.blob(as seen in the AppServer log). And before this blob file is transferred to FileServer it is replaced by the next file in the queue.
So my question is can we change the name of PSSYNC0.blob to some unique name for every file? Or do we have any other work around for this?
The AppServer trace follows:-----
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecuteGetAttachment:starting, ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS/FM17258102tmp.html, C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\PSFTP\CRM0120_33018\7151\FM17258102tmp.html
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecuteGetAttachment:filtered name = ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS/FM17258102tmp.html
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecuteGetAttachment:szTempDir = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecuteGetAttachment: Checking if C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp30674_6052_1351025679.txt exists.
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecuteGetAttachment: log file = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp30674_6052_1351025679.log
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecuteGetAttachment:starting, ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS/DM17250221tmp.html, C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\PSFTP\CRM0120_33018\10824\DM17250221tmp.html
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecuteGetAttachment:filtered name = ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS/DM17250221tmp.html
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecuteGetAttachment:szTempDir = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecuteGetAttachment: Checking if C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp30674_6152_1351025679.txt exists.
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecuteGetAttachment: log file = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp30674_6152_1351025679.log
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecuteGetAttachment: About to read log file C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp30674_6052_1351025679.log
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecuteGetAttachment: Log file indicates result = 9
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) EvalPutAttachment: starting
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) EvalPutAttachment: URL catalog entry: ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) EvalPutAttachment: szFullFtpUrl = ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS/FM17258102FM17258102tmp.html
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) EvalPutAttachment: pszLocalFilename = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp/PSSYNC0.blob
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) EvalPutAttachment: Local file = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\PSSYNC0.blob
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecutePutAttachment:starting, ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS/FM17258102FM17258102tmp.html, C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\PSSYNC0.blob
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecutePutAttachment:filtered name = ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS/FM17258102FM17258102tmp.html
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecutePutAttachment:szTempDir = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecutePutAttachment: Checking if C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp30674_6052_1351025679.txt exists.
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecutePutAttachment: C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp30674_6052_1351025679.txt exists, looking for next available #.
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecutePutAttachment: Checking if C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp12880_6052_1351025679.txt exists.
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecutePutAttachment: log file = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp12880_6052_1351025679.log
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecuteGetAttachment: About to read log file C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp30674_6152_1351025679.log
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecuteGetAttachment: Log file indicates result = 9
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) EvalPutAttachment: starting
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) EvalPutAttachment: URL catalog entry: ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) EvalPutAttachment: szFullFtpUrl = ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS/DM17250221DM17250221tmp.html
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) EvalPutAttachment: pszLocalFilename = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp/PSSYNC0.blob
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) EvalPutAttachment: Local file = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\PSSYNC0.blob
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecutePutAttachment:starting, ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS/DM17250221DM17250221tmp.html, C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\PSSYNC0.blob
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecutePutAttachment:filtered name = ftp://biz\SVC-FTP-SASPROD:FdAcs9KM@EUWS0117/crm/RF_ATTACHMENTS/DM17250221DM17250221tmp.html
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecutePutAttachment:szTempDir = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecutePutAttachment: Checking if C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp30674_6152_1351025679.txt exists.
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecutePutAttachment: C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp30674_6152_1351025679.txt exists, looking for next available #.
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecutePutAttachment: Checking if C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp12880_6152_1351025679.txt exists.
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecutePutAttachment: log file = C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp12880_6152_1351025679.log
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecutePutAttachment: About to read log file C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp12880_6152_1351025679.log
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecutePutAttachment: About to read log file C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp12880_6052_1351025679.log
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecutePutAttachment: Log file indicates result = 0
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecutePutAttachment: Successful transfer, deleting ftp log files
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecutePutAttachment: Successful transfer, deleting ftp log files
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) ExecutePutAttachment: Deleted ftp log files: C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp12880_6152_1351025679.log, C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp12880_6152_1351025679.txt
PSAPPSRV.6152 (169) [10/23/12 22:54:39 COMPEGUE@EUWS0123 PSSession](0) EvalPutAttachment:finishing, ret = 0
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) ExecutePutAttachment: Deleted ftp log files: C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp12880_6052_1351025679.log, C:\DOCUME~1\SVC-TU~1\LOCALS~1\Temp\ftp12880_6052_1351025679.txt
PSAPPSRV.6052 (751) [10/23/12 22:54:39 DOGANUGU@EUWS0123 PSSession](0) EvalPutAttachment:finishing, ret = 0
Regards,
Nav

there is no WebService running on PI server, this will always be running on the sending system?
We do not have a WS specificallly running on the PI server.....we just create the WSDL file and send it to the source system.
If you want to store the PI web-services in a central repository, then you can make use of the Services registry which is available from SAP PI7.1
the WSDL file generated by PI will be used by the sending system to create an web service?
The sending system will treat this WSDL file as a web-service. The WSDL file that you generate in PI has the message structure and also a URL (at the end of the WSDL) file. Using these two details the sender systems knows what should be the message structure and to which address (URL) should the message be sent.
Regards,
Abhishek.

Similar Messages

  • Steps for File Transfer through FTPS...!!!

    Hi ,
    Can anyone please tell the steps for file transfer with FTPS.
    Does PI file adapter has bulilt in feauture to handle this? or
    Do we need to deploy anything to handle this?
    Do we need to install any certificates by requesting from partner or It will do the encryptions/authentications on its own?
    Any additional Steps we need to mention in File receiver adapter while we send the file through FTPS?
    File is going through port 1090(unsecure connection) but it is not going through port (990) which is a secure connection.
    Please suggest me.
    Thanks
    Krupakar

    Hi Shabarish,
    We got the certificate from the partner and loaded into the trusted CA's. I tried running by giving
    Connectivity Security as "FTPS for Control and Data Connection" and Command Order as "AUTH TLS,USER,PASS,PBSZ,PROT"
    Ip: XXX.YY.YY.ZZZ
    Port: 990
    User and pwd.
    and I am getting the same below error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier
    I tried by selecting different options like
    1. Without selecting the X509 certificate for client authentication.
    2.  Keystore as TRUSTED\view\entry-cert
       X509 certificate and private key as TRUSTED\view\entry-cert
    3. Keystore as TRUSTED\view
      X509 certificate and private key as TRUSTED\entry-cert
    4.Keystore as "view"
      X509 certificate and private key as "entry-cert"
    Please help me in this.
    Thanks
    Krupakar

  • File attachment in OSB

    Hello,
    I need your help in dealing with File attachments in OSB using JCA integration.
    My requirement is Read file as attachment with File Adapter and write to a remote location with FTP adapter.
    I successfully created the business and proxy services to do so and it can transfer the file to new location too. But in the remote server I see the attachment reference instead of original file contents.
    InputFile:
    customer_1234.txt
    asldfkjsadf
    akdshfksajdh
    aksjdfafasdf
    output file in remote server:
    cust_1234.txt
    <?xml version="1.0" encoding="UTF-8" ?><attachmentElement href="-1172596423/cust_12345.csv_1351025265000" xmlns="http://xmlns.oracle.com/pcbpel/adapter/file/attachment/"/>
    so my question is how to get the contents of the file in the remote location instead of its reference when file attachment option is used. what could be in either business or proxy service to get it correctly.
    Thanks,
    Nex.

    Hi,
    You need an assign to extract the content of the attachment into a variable before passing it to the business service.
    http://docs.oracle.com/cd/E23943_01/admin.1111/e15867/context.htm#i1103309
    As an alternative, see if this sample can help you... It's a totally different approach though...
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#BABJBIAD
    Cheers,
    Vlad

  • How to send multiple files in parallel using ftp with single connection

    Hi.
    i have written code for file upload manager using ftp..
    it perfectly working with sequence file uploading in single connection..
    And i tried to upload multiple files with parallel processing in a single connection.... but it is not working properly.. i also used thread concept
    but single file only transfered and connection refused...
    my code here...
    //////////////////// main class //////////////////////////////////////////
    ftp.connect();
    ftp.login();
    String [] archivos = new  String[100];
                                      File dir = new File("C:\\Files Uploading\\");
                                       archivos = dir.list();
                                       for (int s=0; s<archivos.length;s++)
         //Start Data Transfer Here
         new DataTransfer(archivos[s]).start();
                                       Thread.sleep(1000);
    /////////////////////// thread class ////////////////////////////////
    class DataTransfer extends Thread
          String FileName="";
          String LocalPath="",RemotePath="";
           public DataTransfer(String fname)
         FileName = fname;
         LocalPath = "C:\\Files Uploading\\" + FileName;
         RemotePath = FileName;
         System.out.println(LocalPath);          
            public void run()
                        System.out.println("DataTransfer Started");
         /File Transfer Here
         try
               FileInputStream input = new FileInputStream(LocalPath);
                               Ftp_Client.storeFile(RemotePath,input);
         System.out.println("Successfully sent : " + RemotePath);
         catch (Exception exc)
              System.out.println(exc.getMessage());
              System.out.println("DataTransfer Ended");
         }otherwise tell me any other alternate way

    And i tried to upload multiple files with
    parallel processing in a single connection....
    but it is not working properly.FTP isn't a multiplexing protocol. How could it work at all?

  • How do I get an email file attachment, any extension, off of my phone?

    All I want to do is get an email file attachment off of my phone and on to my computer so I can use it.  I don't want to open it on my phone, it could be an AutoCAD file, a programming langauge file, etc.  I want the option to save the attachment to local memory on my phone and then transfer it to my PC via USB.   This worked all the time with my Blackberry, but it seems impossible or extremely difficult with the Apple IOS. The available phone memory would look like a USB stick drive to my PC.  I am at job sites all the time where I do not have internet access from my PC, but I am within the cell network area of coverage so this would be an option.
    I spent almost an hour with Apple Tech support today and they must have thought that I was on drugs asking for such a simple thing.  Apparently, the available phone memory is protected by the IOS so that the PC can't see it or use it.  They said this feature would be all App based.  The key then is finding an App that would allow the email client on the phone to give the user the option to open or save the file to a location that my PC can see. Does anyone know of such an App?   If I can't find a workable solution I may have to go to an Android device.  Thanks.

    So I understand where you are coming from. The best way is to use the cloud. What you need to do is download a program like dropbox, box.net or sugar sync; there are tons of these apps but those 3 are the most widely supported. Once you download it on your device you can then download it onto your computer by going to their respective sites. These will automatically sync your documents over the air when both your computer and phone are connected to the internet. But if you have no internet service on your computer here is what you do; go to itunes and plug in your phone> go over to the APPS tab on the top> scroll to the bottom of the page and it will say file transfer. This will allow you to pull files from those cloud apps even without service and voila you have your files on your computer even without Wi-Fi or hotspots. I hope this helps!
    EDIT; the best app to use file transfer with is good reader because the cloud apps won't sync directly with iTUnes. You will have to pay for it but it will allow you to connect all your cloud services to it and it can edit and view most files. I use it constantly for my work and I wouldn't be able to live without it even if I wasn't using it for file transfer. Sorry I forgot that in my post, this is an necessity to use the file transfer in iTunes.
    Message was edited by: MFS APPLE PRO

  • XML File Creation Problem in FTP Server

    Hi.. Experts
    My Internal Table is as follows
    Types: Begin of ty_xmlfile,
             xmlline(60000)        type C,
           End of ty_xmlfile.
    Data: it_xmlfile type standard table of ty_xmlfile,
            wa_xmlfile type ty_xmlfile.
    When I download the file to my desktop using  GUI_DOWNLOAD. It works fine
    CALL FUNCTION 'GUI_DOWNLOAD'
              EXPORTING
                BIN_FILESIZE = lv_size
                FILENAME     = lv_file_name
                FILETYPE     = 'ASC'
              TABLES
                DATA_TAB     = it_xmlfile
              EXCEPTIONS
                OTHERS       = 10.
            IF SY-SUBRC <> 0.
              MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    In the debug mode when I download the internal table(IT_XMLFILE) into an excel file it doesn't open and it says tag is missinig(/basic_material_text) and also when I create the file in Application Server and transfer it to FTP Server it doesn't open there..and also in debug mode I find the length until  DIMENSION AN.. for that row when I double click on that line in debug mode it shows all the text until </baisc_material_Text>
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0&quot; LG.(F)                      (A)ASTM A276 CONDITION &quot;A&quot; 317LTYPICAL MILL CERTS REQ&apos;D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AN*
    The above statement is incomplete when the file is open in FTP Server.
    But when the file is created on to my desktop. It displays all the text....
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0" LG.(F) (A)ASTM A276 CONDITION "A" 317LTYPICAL MILL CERTS REQ'D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AND WILL BE USED AS RECEIVED(T) = TO FINISH TO THIS DIMENSION FOR FORGING AND BILLET MATERIAL ONLYVENDOR TO SUPPLY THE FOLLOWING ENGINEERING/QUALITY ASSURANCE DATATYPICAL MILL TEST CERTIFICATES/CERTIFICATES MUST ACCOMPANY THE MATERIAL.* COPIES REQUIRED:(2)ALL CERTIFICATES MUST HAVE LIGHTNIN PART NO.CLEARLY MARKED ON THEM.* COPIES REQUIRED:(2)</basic_material_text> *
    I could not understand why it takes only until DIMENSION AN
    Any suggestions would be very helpful...
    Thanks,
    Chaitanya
    -Points will be awarded for helpful answers.

    Hi...
    I think each XML Line will be of length 256. So I have to split the String into 256 of each Line.
    XML DOM Processing in ABAP part I -  Convert an ABAP table into XML file using SAP DOM Approach.
    Hope  it works out....I will try for that and Close the Post...
    Thanks,
    chaitanya K

  • DMS - File attached for FI posted document

    Hi All,
    I am new for DMS .
    My requirement is - we have web application in .net  . Vendor update entry in web application , attached some file with that page and go to submit .
    It comes in SAP through proxy and posting in FI has been done .
    But the file attached in .net application is stored in .net application server .
    So now requirement is when we open posted document in SAP we need that file attached with posted document (available in GOS for that t-Code) .
    My question is -
    1 - how we create entry in DMS dynamically ( we got posting confirmation in SAP through proxy and we got that file in SAP application server through file transfer ) . But how to entry maintain in DMS (we have multiple document for single posted document ). Even I know how to create document type for DMS n basic thing of DMS .But I need algo . 
    2-  How that entry link maintain to that FI T-Code . 
    Thanks to all .
    Regards,
    Alter

    Hi Ravi,
    you need to customize in OAC3 the Documenttyp link to FI Object.
    e.g
    ObjectType      Doc.type   Status Cont. Rep. Link  Doc.class      Ret.per.
    BKPF               #ZXYDOC#      X      C1    TOA01      PDF              180
    From your Server you need to call am FM (something like ALINK_CREATE_ASYNCHRON_META" on your SAP System via RFC to save the File after you created the Object.
    regards
    Kim

  • File Sender Adapter with FTP protocol

    Hi,
    I implementet a file sender adapter with FTP protocol. There is a problem: the sender processes the files even if they're in use by another application.
    I.E. If another application put files (via ftp) in the sender work directory (that is on ftp), the sender processes those files before their transfer is completed.
    I don't want that this sender in a communication channel in PI 7.1, imports files in the system when they aren't completed yet.
    There are some ways to block sender before it processes incompleted files (in an ftp)?
    Thanks
    Matteo

    Hi,
    File sender adapter provides a check for NFS mode
    +Check this
    To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.
    ●      Msecs to Wait Before Modification Check
    Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.
    This parameter is not available if you have selected File Content Conversion as the Message Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.
    This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.+
    Other approach can be to apply OS level checks
    Regards
    Suraj

  • Problem while sending file attachment

    <strong>Hi,
    I am using java mail api to send mail from a standalone java application. The mail has one html file attachment. I am using the below java program.</strong>
    import java.io.File;
    import java.util.Properties;
    import javax.activation.DataHandler;
    import javax.activation.DataSource;
    import javax.activation.FileDataSource;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.Multipart;
    import javax.mail.Part;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    public class AttachExample {
    public static void main(String args[]) throws Exception {
    String host = "smtp.gmail.com";
    String from = "[email protected]";
    String to = "[email protected]";
    String fileAttachment = "javamail.html";
    // Get system properties
    Properties props = System.getProperties();
    // Setup mail server
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.starttls.enable", "true");
    props.put("mail.smtp.host", host);
    props.put("mail.smtp.auth", "true");
    Authenticator authenticator = new Authenticator() {
    public PasswordAuthentication getPasswordAuthentication() {
    String username = "[email protected]";
    String password = "password";
    return new PasswordAuthentication(username, password);
    // Get session
    Session session = Session.getInstance(props, authenticator);
    // Define message
    MimeMessage message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(
    "[email protected]"));
    message.addRecipient(Message.RecipientType.TO,
    new InternetAddress(from));
    message.setSubject("Hello JavaMail Attachment");
    // create the mail root multipart
    MimeMultipart mpRoot = new MimeMultipart("mixed");
    // Create a body part to house the multipart/alternative Part
    MimeBodyPart contentPartRoot = new MimeBodyPart();
    // Create the content multipart (for text and HTML)
    MimeMultipart mpContent = new MimeMultipart("alternative");
    // Add text
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText("Hello World");
    mpContent.addBodyPart(mbp1);
    // Add html
    MimeBodyPart mbp2 = new MimeBodyPart();
    mbp2.setContent("<P>Hello World</P>", "text/html");
    mpContent.addBodyPart(mbp2);
    contentPartRoot.setContent(mpContent);
    // Add the root body part to the root multipart
    mpRoot.addBodyPart(contentPartRoot);
    // Add an attachment
    MimeBodyPart mbp3 = new MimeBodyPart();
    DataSource source = new FileDataSource("javamail.html");
    mbp3.setDisposition(Part.ATTACHMENT);
    mbp3.setDataHandler(new DataHandler(source));
    mbp3.setFileName("javamail.html");
    mbp3.setHeader("Content-Type", "text/html");
    mpRoot.addBodyPart(mbp3);
    message.setContent(mpRoot);
    message.saveChanges();
    session.setDebug(true);
    // Send the message
    Transport.send(message);
    <strong>
    In my web mail I am not able to find the attachment in inbox/sent item. However I can see the mail is present there.</strong>
    Here is the mail....
    ------=_Part_0_5439109.
    <div class="ii gt">
    1276373943170
    Content-Type: multipart/alternative; boundary="----=_Part_1_14410104.1276373943174"
    ------=_Part_1_14410104.1276373943174
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    Hello World
    ------=_Part_1_14410104.1276373943174
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    <P>Hello World</P>
    ------=_Part_1_14410104.1276373943174--
    ------=_Part_0_5439109.1276373943170
    Content-Type: text/html
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: attachment; filename=javamail.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "<a href="http://www.w3/" target="_blank">http://www.w3</a>=<br />
    .org/TR/REC-html40/loose.dtd">
    <html><head>
    <meta http-equiv=3D"content-type" content=3D"text/html;
    charset=3DISO-8859-1=<br />
    <<.....more html code....>><br />
    </div>
    <hr><br />
    =A9 Vipan Singla 2001<br />
    </body></html><br />
    ------=_Part_0_5439109.
    <div class="ii gt">
    1276373943170--<br />
    <br />
    <br />
    <strong>I think I am missing something. Please suggest if you have any idea.<br />
    Thanks In Advance.</strong><br />
    <br />
    <br />
    </div>

    Your posting is full of html markup that this forum doesn't understand, which makes
    it really hard to see what you were trying to say...
    Also, I can't tell whether you're showing us the entire message that was sent,
    or whether you're just showing us part of it. For example, I don't see any From
    or To headers in the message. If they're really missing, something else is wrong.
    If they actually are present in the message, then the rest of what you showed
    looks fine.
    Possibly your web mail isn't able to handle a message that has both a
    multipart/alternative and an attachment? Try a simple plain text message
    with an attachment and see if that works better.

  • Getting the File Path of file attached to Document(CV03N)

    Hi,
    We are migrating DOCUMENTS(Document Info Record)data from SAP 3.1i Version to SAP ECC6.0 Version. Here i want to transfer file path of file attached in 3.1i(From DRAW-FILEP) but, i can not able to find complete path of that particular file in FILEP field, it holds only the file name.
    Please help me getting that complete file path.
    JMP

    Hi Maruthi,
    If you want access or see the file name in the document you need to supply three fields.
    FILEP, DTTRG, DAPPL in DRAW table.
    I have used the LSMW with IDOC method and assigned the fields DOCFILE1, DATACARRIER1 and WSAPPLICATION1.
    Thanks,
    Satheesh

  • Automation of file attachment in VA41 transaction (case managemnt)

    Hi Experts,
    We are facing problem in attaching file to the sales scheduling agreement, as we have to do mass attachment without manual intervation. We are migrating our data to to a new system, where we have tio attach file to all sales scheduling agreement documents.
    In standard, system provides a dynamic screen where if you choose to transfer from file from the alv  toolbar button click, system provides a popup to get the file path and it attach the file to the document. SRM_START_FRAMEWORK_RFC is reponsible for provding the UI for uploading the file. I tried to use the sam logic, but as it it is in abap objects, i am unable to understand complete flow.     
    As after the migration, there will be huge data to be update with file attachment, it would be difficult to attach file manualy.
    If anybody has undergone with this kind of issue, please let me know.
    Regards,
    Nitin

    Hi ,
    you start from here  and let me know if you have any issues...you also search in SDN/WIKI for more sample codes.....
    [GOS|http://wiki.sdn.sap.com/wiki/display/ABAP/GOS-AttachmentstoSAP+Documents/]
    regards
    Prabhu

  • File size when doing ftp via proxy

    Hi ALL,
    I can not see file size when doing ftp download through proxy.
    Why?

    Welcome to the Apple Discussions.
    There’s a second setting in the New Message Window in Mail that only appears if you have a JPEG attached:
    Uploaded with plasq's Skitch!
    Regards
    TD

  • Secure the file/data transfer between XI and any third-party system

    Hi All,,
    I would like to use to "secure" SSH on OS Level the file/data transfer between XI and any third-party system Run OS Command before processing and OS command After processing. right now my XI server installed on iSeries OS.
    with ISeries we can't call the Unix commands hope we need to go for AS400 (CL) Programming. If we created the AS400 programm how i can call that in XI.
    If any one have idea pls let me know weather it will work or not.
    Thanks in adavance.
    Venkat

    Hi,
    Thanks for your reply.
    I have red some blogs like /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi to call the Unix Shell script in XI.
    But as i know in iSeries OS we can write the shell script we need to go for AS400 programe. If we go with AS400 how we need to call that programe and it will work or not i am not sure there i need some help please.
    Thanks,
    Venkat

  • File attachment for Purchase Requistion Number

    HI
    I want to attach the file to the Purchase requisition Number generated in CJ20N.
    Does the PR BADI change will have the attachment transfer function?
    or is there any way i could attach the file in Header level or item level in PR
    Regards
    Chandra

    Hi,
    Did you resolved this?
    I have same requirement. Can I know what is the BADI/FM/BAPI?
    Thanks,
    Ireme

  • (SOAP)File Attachment

    Hi All,
    I am currently working on SOAP Attachments. My requirement is to send a file as an attachment ( SOAP req containing an attachment),BPEL when receicves the Input should process it to a file adapter which will write the file (attached file) to a particular location.
    can any one help me out out of this
    Thanks
    Surya
    Edited by: 944642 on Jul 30, 2012 4:51 AM

    Ex:-
    Send a SOAP Request having file attached to it ( ex:- a text file) . BPEL or Mediator should be able to process the request (request containing an attachment , in our case a text file)
    , route to a file adapter.
    -The File Adapter should write the file to some location on the file system.
    -For schemas I referred to [http://www.w3.org/TR/2004/WD-xml-media-types-20041102/].
    -Sample SOAP request having Image attached to it should look like :-
    The following example shows a SOAP 1.1 message with an attached facsimile image of the signed claim form (claim061400a.tiff):
    MIME-Version: 1.0
    Content-Type: Multipart/Related; boundary=MIME_boundary; type=text/xml;
    start="<[email protected]>"
    Content-Description: This is the optional message description.
    --MIME_boundary+
    Content-Type: text/xml; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Content-ID: <[email protected]>
    +<?xml version='1.0' ?>+
    +<SOAP-ENV:Envelope+
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    +<SOAP-ENV:Body>+
    +..+
    +<theSignedForm href="cid:[email protected]"/>+
    +..+
    +</SOAP-ENV:Body>+
    +</SOAP-ENV:Envelope>+
    --MIME_boundary+
    Content-Type: image/tiff
    Content-Transfer-Encoding: binary
    Content-ID: <[email protected]>
    +...binary TIFF image...+
    MIME_boundary+
    But My SOAP request having image attached to it looks like
    POST http://localhost:7001/soa-infra/services/default/bpel-111-soap-attachments/Mediator1_ep HTTP/1.1
    Accept-Encoding: gzip,deflate
    Content-Type: multipart/related; type="application/xop+xml"; start="<[email protected]>"; start-info="text/xml"; boundary="----=_Part_33_1143898358.1343888133522"
    SOAPAction: "execute"
    MIME-Version: 1.0
    Content-Length: 2124
    Host: localhost:7001
    Proxy-Connection: Keep-Alive
    User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
    ------=_Part_33_1143898358.1343888133522
    Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
    Content-Transfer-Encoding: 8bit
    Content-ID: <[email protected]>
    *<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ct="http://example.com/ct-required">*
    *<soapenv:Header/>*
    *<soapenv:Body>*
    *<ct:MyBinaryData ct:contentType="image/jpeg"><inc:Include href="cid:1236481897083" xmlns:inc="http://www.w3.org/2004/08/xop/include"/></ct:MyBinaryData>*
    *</soapenv:Body>*
    *</soapenv:Envelope>*
    ------=_Part_33_1143898358.1343888133522
    Content-Type: image/jpeg; name=javaicon32.jpeg
    Content-Transfer-Encoding: binary
    Content-ID: <javaicon32.jpeg>
    Content-Disposition: attachment; name="javaicon32.jpeg"; filename="javaicon32.jpeg"
    *<*** Here I am able to see the encoded image*****>*
    Kindly guide me in this regard.
    Hope the above mentioned Information describes my requirement clearly.
    Thanks

Maybe you are looking for

  • I can no longer access facebook, yahoo, even firefox support from the webbrowser!

    I do not have any problem connecting to these websites from IE. What is going on with firefox? YAHOO - "This Connection is Untrusted - You have asked Firefox to connect securely to www.yahoo.com, but we can't confirm that your connection is secure. N

  • Podcasts not downloading after upgrading to iOS 8.3.

    Ever since I upgraded my iPhone 6 to iOS 8.3, the Podcasts app is no longer downloading the apps. If I just play the podcasts, then it will do an "on demand" download, so I can listen to them, but I would like to have them downloaded while at home so

  • External displays on IP Hardphones.

    Hi, recently I have had Cisco Call Manager with Unity and IPCC installed in our Head Office. We have over 100 remote sites with various telephone systems. I have imported all sites in our Call Manager Corporate Directory as users to allow the Head Of

  • Can I get total number of page in 'After Report' Trigger?

    Currently, I use the format trigger of a field in Margin. In the trigger, I use srw.get_page_num(page_num) to get the current page number and call a package procedure to update a record. For example, if the report has 10 pages, it will update 10 time

  • Calling a BAPI in Webdynpro which takes no parameter

    Hi all,       I am new to WebDynpro, I am trying to implement data access to R/3 with a BAPI. The bapi takes no imports, it consists of a method(Zbapicon) which retrieves the table data, the table data is to be displayed dynamically. And how to chang