OS command  in Communication channel to change property of file...

Hi All
Can anybody let me know the OS command (to be written in command line prompt in receiver file channel) to change the property of a file written on Application server.
A file is getting written on PI application server by a communication channel. Now how can we direct that channel to change the file's property of Read/Write/modify(777) while writing it to the location.
Thanks in advance.

Hi
If you want it dynamically, use a post processing srcipt
For unix Application system command is
chmod <file name> 777
For Windows Application system command is
ATTRIB [+ R|-R] [A|-A] [ H|-H] [+ S|-S] [d:][path]filename [/S]

Similar Messages

  • Problem with  communication channel on receiver side with file adapter

    Hi all,
    I m doing a scenario of collection of multiple idocs into a file.When i m testing this scenario,i m getting a flag successfully executed in SXMB_MONI.But,my file isn't created in my directory.When i monitor the communication channel in Runtime workbench,it's showing error :<b>Channel has not been correctly initialized and cannot process messages</b> for my receiver file adapter?I am not able to figure out the error.Anybody having idea about this problem.
    Regards,
    Anoop

    Hi Anoop
    Check it - File adapter is active ? try to Re-activate the same.
    Also do CPACache Refresh.
    Still problem, tyr out by restarting the Adapter Engine
    Cheers..
    Vasu
    <i>
    Reward Points if found useful **</i>

  • Sender file communication channel polling only when the file is written

    Hi guys,
    I have the following scenario:
    I have developed an XI interface that takes a .txt file from SAP R/3's file system, usr/sap/trans/ and delivers it into another ftp location. The problem that we face is that the file is written into source directory from an ABAP program. As a result, XI go and polls into source directory when the file is not completely written, or when it is empty, which blocks the process.
    Is there a way to force XI in order to poll the source directory only when the file is complete?
    We have thought of exporting the file into a name that XI does not expect and as soon as the file is complete to rename the file from inside ABAP program into what XI expects.
    However, the command inside ABAP changed the Code page of the file and we cannot see some special characters in the file that is delivered to the ftp location.
    Any ideas??

    Hi Evaggelos,
    from <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm">SAP help: Configuring the Sender File/FTP Adapter</a>:
    Advanced Mode
    To specify additional parameters in the adapter configuration, set the Advanced Mode indicator.
    &#9679;      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
    Regards,
    Udo

  • PI Directory API - Communication Channel Change

    Building an application using SAP PI Directory API to read existing communication channel(s) and to update them to change the Status (Active / Inactive).  I'm able to change the status but not able to retain the password in the channel; For example, JDBC channel has DB user id and password.  After successfully changing the status, Channel is loosing password.
    Here is the logic that I'm following to change the communication channel.
    Using Communication Channel Service
      - Read method to get communication channel object
      - Change method to change the status
          - In change method, I'm creating CommunicationChalleRestricted object based on the CommunicationChannel object received in Read method.  (using get and set methods)
    Also, I'm dynamically creating and activate/reverting the Change list while performing the change operation.
    Please note that the communication channel service in WSNavigator is not showing the password when executing READ method.  I've also tried OpenForChange method, but the same issue.
    How can I make password retained while changing the existing communication channel? 
    Any help is greatly appreciated.
    Thanks
    Sat

    Hi Sat,
    I had implemented a tool to make mass channel active or inactive using a simple excel-sheet interface. I had faced the password issue when i was implementing this. But i came to know that password are not stored as plain text but instead they are stored as encrypted text with some complex encryption algorithm and key. And also due to security reasons the web-services in PI do not return password(not even the encrypted string).
    So to update,save and activate any channel in PI you simply need to skip the AdapterSpecificAttribute which has "password" as the name. Below is the pseudo code(java) for this
    ArrayList<GenericProperty> ASA = new ArrayList<GenericProperty>();
    Loop all AdapterSpecificAttributes:
    if(Name.tolowercase().contains("password"))
         // skip
    else
         GenericProperty attr = new GenericProperty();
         attr.setName(Name);
         attr.setValue(Value);
         ASA.add(attr);
    Loop End:
    //set ASA to the CommunicationChannel object AdapterSpecificAttribute
    Note: Not tested the above code so make changes accordingly(as required). I have implemented this same logic and it worked.
    Hope it helps,
    Thanks,
    Anand

  • Corrupt communication channel (FILE/JDBC) still polling "without success"

    Hi all here are a lot of questions with high priority:
    We have problems with adapter engine XI7.0SPS11.
    It looks that if there is a short connection error some of our channels are still polling (status green) but they do not get the data.
    After restart J2EE engine it works. But this is not good.
    I refreshed all caches and restarted the file and jdbc service in NWA without success.
    If I create a new communication channel and change the sender agreement it works.
    But this is only a workaround.
    Does anybody know this issue?
    Is there a way to solve it (without daily restart of J2EE engine)?
    We will patch our system to SPS18 but can we ensure that the bug is fixed?
    Currently one FTP channel get the error u201CCould not process dues to error: com.sap.aii.adapter.file.ftp.FTPEx:550 150722_ No such file or directoryu201D
    How can I refresh the channel u201Ccacheu201D so that he looses the history of polled files?
    Thanks Daniel

    Hi,
    Check  it..
    >>>>I had made some changes to the communication channel - made it active, inactive, changed the polling interval.
    After the Changes  activate  your  changes.
    Regards
    Agasthuri Doss

  • About PI communication channel problem

    Hi Expert:
    anyone known  why my  communication channel  do not work smooth. the problem is that i stop the communication when communication channel  pull the date from database and not finished.(communication channel   is pulling  the data  when i stop the channel  ) . when i restart the communication channel .  Channel Monitoring log  show that Processing started   ,but not any data was pulled.
                best regard

    Hi Kevin,
    Have you made sure that the data is still available for your communication channel to process?
    If there is data and issue still persist, it could be due to some buffering issue. Why not try to do 'dummy' change to your communication channel like changing the description part, and try to reactivate it again?
    Regards,
    Lim...

  • Editing iFlow communication channel using Directory API

    Hi All,
    I have a few queries/observations regarding use of directory API to edit communication channels:
    1) Is it possible to change an inline communication channel within iFlow using directory API? I tried to use this by calling directory API web service and here is my observation:
    Communication channel was changed and activated using the web service calls to channel and changelistAPIs using SOAPUI.
    I could see those changes in ID.
    Same changes however were not reflected in the iFlow object. Please note that I did not execute the iFlow after this change to see if there was a change in runtime behavior or not.
    Next, when I deployed the iFlow from NWDS, as expected changes to the channel in ID were over-written with the value retained in the iFlow version.
    My understanding from above is that inline comm channels cannot be edited directly using directory API. Is that correct? I am still to test the referenced channels, to see if we can access their values and change them directly using API.
    2) Is there an API for iFlow object? I could not find any documentation on this. Also noticed that there was no folder for this in namespace ( http://sap.com/xi/BASIS) within SAP BASIS 7.40. Wanted to confirm that am not missing something.
    Regards,
    Sanjeev.

    Any thoughts experts?
    Regards,
    Sanjeev.

  • File Overwriting in File Receiver Communication Channel

    Hi,
    I have an IDoc to File scenario.
    My file receiver communication channel has the following parameters :
    - File name scheme = %timestamp%_AOBSD4RL.MES
      (I'm using variable substition and the variable "timestamp" is initialized at mapping time with the current time in format yyyyMMddHHmmss).
    - File Construction Mode = Create
    - Option "Overwrite Existing File" not activated
    When two inbound messages result in the same target file name, the second one overwrites the first one although the "Overwirte Existing File" setting is not active in the receiver channel.  Is this a bug in XI ? (I'm on 7.00 SP11)
    And is it possible to say to the receiver channel to process only 1 message per second so there will no more target file with same name ?
    Thanks in advance,
    Laurence

    Hi Laurence,
    There is no such facility with Receiver File Adapter to process single message in one step.
    I want to suggest you a may possible way to overcome( it's just an idea), though I never worked with them I think it will work.
    As you the file name is assigned to message with timestamp at receiver communication channel step you can schedule the outbound queue in such a way that it will transfer the message in delay.
    Try to investigate further more, But i m not sure that Queue Scheduling is supported by SP11 or not.
    Regards,
    Shri
    Reward point if it helps you

  • 2 files in 1 communication channel

    Hello,
    I transfer file from FTP to info cubes.
    The process work correctly and with out problem.
    Now I try to add 2 files with same structure from same folder to same info cubes.
    I try to use with same communication  channel to transfer this 2 files.
    I looking for advise to this problem.
    Regards
    Elad

    Hi Elad,
    Here's the solution than you want:
    In your sender CC, make parameters like that:
    1. Filename = <A_text_will_be_NOT_used>
    2. Choose option "Advanced Selection for SourceFile", a table appears
    3. Create two lines, fill them like that:
        Line 1: Directory = your_directory
                File Name Mask = aa*.text
        Line 2: Directory = your_directory
                File Name Mask = bb*.text
    If you have a "xx*.text" file, then it will be NOT processed.
    Note: If your are patient, I will create Weblog this evening with some pictures...
    Mickael
    <i>>> Because of SDN, pictures will be available in only one week (time needed to become a Webloger!)</i>
    Message was edited by: Mickael Huchet

  • Communication channels not shown in adapter monitoring

    Hello everybody,
    we got several communication channels running on the same file-adapter.
    But in adapter monitoring only ONE communication channels is shown.
    The other communication channels are not shown although we expected them at least with an error.
    Any ideas?
    Thanks a lot
    Regards Mario

    Hi,
    I think, you have chosen the selection criteria only for the Correct one in the Page.. Check with All information in adapter monitoring screen.
    Following will be looked once you don't have any adapters are visible..
    Check SAP BASIS Content is imported in the IR or not.
    Check this thread also-
    Problems in adapter monitoring
    Regards,
    Moorthy
    Message was edited by: Krishna Moorthy P
    Message was edited by: Krishna Moorthy P

  • Adapter Engine Name is not displayed in Communication channel

    Hi All,
    In Integration Directory -- Service without party -- Business system -- communication channel -- when we create new communication channel  then go ahead selecting File , JDBC, Mail adapter. ADAPTER ENGINE IS DISPLAYED BLANK.
    Please let me know your valuable inputs.
    Regards
    Shiva

    I have performed all the above given instructions, but the issue is still pending.
    Steps followed :
    1. Performed all the steps in RZ70 as instructed.
    2.Downloaded the TPZ file and assigned it in the required path
    3.Adapter Engine is already assigned in the SLD.
    Can you let me know, whether to assign hostname, IPaddress or fully qualified domain name in the exchange profile( where exactly in JAVA stack and ABAP stack)
    Kindly request you to provide further inputs.
    Thanks for your valuable inputs
    Regards
    Shiva

  • Reg SFTP Communication channel

    Hello Fellow Consultants,
    I have a situation here where in a folder there are 2 different file names Eg: v110-prod- chennai1PS & v110-prod-chennai9PS, now i want to know if can pick these 2 files with One SFTP sender communication channel.
    I know this can be done with FTP with masking and stuff but i want to know if there is anyother way to do with Single sender SFTP Cc else i have to configure with Two Sftp channels
    Regards
    Vijay

    Hi,
    From single file adapter(1 communication channel) you can read multiple files.
    Just use special charater in the file name scheme and activate the adapter specific parameters
    Note: The internal structure of the files should be same
    Regards,
    Shradha

  • Sender File Communication Channel Configuration

    Hi guys,
    We are trying to develop a file-to-Idoc scenario and we are facing some problems in the configuration of the sender file communication channel as far as the file format is concerned. The file, which is a material master file has the following structure:
    00.00 FileHeader
    30.00 Material n° 1
    30.01 Material n° 1
    30.00 Material n° 2
    30.01 Material n° 2
    30.00 Material n° n
    30.01 Material n° n
    99.00 FileFooter
    Initially, I developed 4 datatypes, FileHeader, Record1, Record2 and FileFooter, and 1 datatype to incorporate all of these, but I faced trouble in 'Recordset Structure' attribute in communication channel, where "FileHeader,1,Record1,,Record2,,FileFooter,1" did not work.
    After that I thought of creating one more datatype, called Record, with 0..* cardinality, that incorporates Record1 and Record2 with 1 cardinality.
    Although I have declared them correctly as "FileHeader,1,Record,*,FileFooter,1" in 'Recordset Structure', I face trouble in the table with the attributes. What shall I use: I have Record1.fieldNames and Record2.fieldNames and fieldFixedLengths, but XI requires Record...
    What you suggest?
    Evaggelos

    Hi,
    I understand your problem....
    I actually didn't look at the key fields...properly..
    You have said that when you had tried taking Record1 and Record2 in your structure you had problems...
    I  think the second way which you are trying would not work..!
    Can you try this..I am not sure if it will work..
    Have your structure as
    MT
    +Record
    ++Header
    ++Record1
    ++Record2
    ++Trailer
    So your Recordset name would be :Record
    RecordsetStructure would be Header,1,Record1,,Record2,,Trailer,1
    and then all the other parameters like fieldNames,fixedFieldLength,keyFieldValue...for Header,Record1,Record2,Trailer
    U might just try out with this
    Regards,
    Manjusha.

  • Validate source data at communication channel level only....

    Hello Experts
       I want to validate the source data just after picking the file i.e at communication channel level. The error file or record has to moved to the archive folder. This is my thought correct me if  i am wrong.
    Thanks in advance

    Hi Arjun,
    Communication channel only pick up the data,its does not have capability to check the content,if you want to implement this logic for communication channel,writing adapter module is the right option.
    You need to write a logic in EJB Module  to validate the content ,its purely depending on Logic how you are going to write in JAVA.
    if you are using PI7.1 you can validate your payload before picking up the message.
    search in sdn you will find some usefull documents how to write adapter module.
    Regards,
    Raj

  • Xcopy command in the file communication channels

    Hi all
    we are using xcopy commmand in the Run OS command in the receiver communication channels. 
    xcopy %F destination folder -y
    this is actually working fine.
    we actually want to use the copy command instead of xcopy
    we have tried to give
    copy %F destination folder -y , but it not working . DId anyone know the exact format of the copy to use in the communication channel please.
    Any help is highly appreciated
    Thanks

    Dear XI Starter,
    I think now is the moment to ask this question: since xcopy worked fine, why do you want to switch to copy?
    If you insist on that change, try debugging the OS command just like Michal has described in one of his blogs here:
    XI: Operation system command - error catching
    So simply you add > "somelogfile.txt" to the initial statement. The final command to execute:
    cmd.exe /C "copy %F destination /Y > log.txt"
    Hope this helps,
    Greg

Maybe you are looking for

  • 2LIS_03_BX  &  2LIS_03_BF Data Not loaded

    Hi guys i have follow the steps for use the stock infocube 0IC_C03 i initialize the actual stock and initialize the material movements y made a data load of initial stock...next i made a load of historic movements....but in the monitor i foun that th

  • In webdynpro abap , the ui layout is not visible. please read query fully

    hi , in webdynpro abap , the UI Layout is not visible.  I did some settings . 1) in SICF  t-code , i actvate the all services realted to http . i dont know which services properly need to webdynpro ui layout.         after activating those services,

  • How to access data structures in C dll from java thru JNI?

    We have been given API's( collection of C Functions) from some vendor. SDK from vendor consist of: Libpga.DLL, Libpga.h,Libpga.lib, Along with that sample program Receiver.h (i don't know its written in C or C++), I guess .C stnads for C files? Consi

  • Airport 3.0.4 for Mac os X

    I have been looking for a airport update for my computer. currently I have Airport 2.1.1 I think. I found this link: http://docs.info.apple.com/article.html?artnum=120200 but that is mac os x 10.1.5 Then I found this link: http://docs.info.apple.com/

  • Photoshop CS5  Save as JPEG format  ( is not possible)

    Photoshop CS5 : Hoe kan ik een foto dat ik bewerkt heb in photoshop opslaan als een JPEG ????????? In de vorige versies van Photoshop kon dit zonder problemen.. Dank U