Physical path and Logical name in File adapter

Hi All-
I am using a file adapter, in which i need to specify the physical path or logical path.
In dev environment my file adapter's input path is /c01/interface/dev/input, but in my test environment it is /u01/interface/test/input.
So everytime I have to change the path and deploy it in two different environment.
I am using unix environment, is there any way i can use some environmental variable $INPUT_DIR and use it in logical name so that in logical name i can use as $INPUT_DIR/input, where in dev $INPUT_DIR will be /c01/interface/dev and in test environment it is /u01/interface/test.
I have tried this but there is still some probelm, I want to know is the approach I am using is correct? or is there any other solution for it?
Regards,
Sreejit

Hi,
1. physical name: use a specific directory (e.g. /u01/....
2. logical name: use a LogicalDirectory like "InputFileDir" and rewrite this inside the bpel.xml
http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CACDEBBH
and
http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/appx_deploydesc.htm#CHDBDIIF
But what about creating a softlink like this on your testsystem:
ln -s /u01 /c01

Similar Messages

  • Regarding assignment of physical path to logical file name

    Hi All,
    We have created one logical file name and assigned physical path to it in FILE tcode.
    IN PATH table also these details got updated with correct logical file name & physical path.
    But in my program when i have used FILE_GET_NAME F.M to retrieve physical path from logical file.
    Here this F.M is not returning anything.
    What is the issue over here.
    We are working in ECC 6.0
    Can anybody resolve this issue!
    Thanks,
    Deep.

    do one thing i give my report so according to do this
    *& Report ZMIO_MANU_VENDOR_EXTR
    report zmio_manu_vendor_extr.
    DATA BASE TABLES
    tables: lfa1 ,eina, lfm1 .
    STRUCTURES
    *---structure for the vendor details.
    data: begin of ws_lfa1 ,
    lifnr type lfa1-lifnr,
    name1 type lfa1-name1,
    end of ws_lfa1 .
    *---structure for the pur org details.
    data: begin of ws_lfm1 ,
    lifnr type lfm1-lifnr,
    kalsk type lfm1-kalsk,
    minbw type lfm1-minbw,
    end of ws_lfm1 .
    *---structure for the pur inf rec.
    data: begin of ws_eina,
    lifnr type eina-lifnr,
    relif type eina-relif,
    end of ws_eina .
    *--structure for the output file
    data: begin of ws_final,
    lifnr(10) type c,
    name1(35) type c,
    kalsk(1) type c,
    minbw(13) type c,
    eoln(1) type c,
    end of ws_final .
    INTERNAL TABLES
    *---internal table for vendor details
    data:i_lfa1 like ws_lfa1 occurs 0.
    *---internal table for pur org details
    data:i_lfm1 like ws_lfm1 occurs 0.
    *---internal table for pur inf details
    data:i_eina like ws_eina occurs 0.
    *---internal table for final file output
    data:i_final like ws_final occurs 0.
    *DATA : P_FLAG(1) TYPE C.
    CONSTANTS
    *-- Default file name
    constants: c_filename_default(40) type c
    value 'VOLSAP/MAXVRLIB/manu_retail_vendor',
    c_kalsk(2) type c value '05'.
    SELECTION SCREEN
    selection-screen begin of block b1 with frame.
    selection-screen: begin of block b2 with frame title text-001 .
    select-options:s$lifnr for lfa1-lifnr .
    parameters:p$relif as checkbox.
    selection-screen end of block b2.
    selection-screen: begin of block b3 with frame title text-002 .
    parameters: p$file(128) obligatory default c_filename_default.
    selection-screen end of block b3.
    selection-screen end of block b1 .
    START OF SELECTION
    start-of-selection.
    if not s$lifnr is initial.
    perform get_vendor_data .
    endif.
    perform build_file .
    perform display_file .
    END OF SELECTION
    end-of-selection .
    *& Form GET_VENDOR_DATA
    form get_vendor_data .
    select lifnr
    name1
    from lfa1
    into table i_lfa1
    where lifnr in s$lifnr .
    if not i_lfa1[] is initial.
    sort i_lfa1 by lifnr .
    select lifnr
    kalsk
    minbw
    from lfm1
    into table i_lfm1
    for all entries in i_lfa1
    where lifnr = i_lfa1-lifnr .
    select lifnr
    relif
    from eina
    into table i_eina
    for all entries in i_lfa1
    where lifnr = i_lfa1-lifnr
    and relif = 'X'.
    endif.
    endform. " GET_VENDOR_DATA
    *& Form BUILD_FILE
    form build_file .
    loop at i_lfa1 into ws_lfa1 .
    ws_final-lifnr = ws_lfa1-lifnr .
    ws_final-name1 = ws_lfa1-name1 .
    read table i_lfm1 into ws_lfm1 with key lifnr = ws_lfa1-lifnr .
    if ws_lfm1-kalsk = c_kalsk .
    ws_final-kalsk = 'X'.
    endif.
    ws_final-minbw = ws_lfm1-minbw .
    ws_final-eoln = 'X'.
    if p$relif = 'X'.
    CLEAR P_FLAG.
    LOOP AT I_EINA INTO WS_EINA
    WHERE LIFNR = WS_LFA1-LIFNR
    AND RELIF = 'X'.
    P_FLAG = 'X'.
    EXIT.
    ENDLOOP.
    IF P_FLAG = 'X'.
    APPEND WS_FINAL TO I_FINAL .
    CLEAR WS_FINAL.
    ENDIF
    read table i_eina into ws_eina with key lifnr = ws_lfa1-lifnr
    relif = 'X'.
    if sy-subrc = 0.
    append ws_final to i_final .
    clear ws_final.
    endif.
    else.
    append ws_final to i_final .
    clear ws_final.
    endif.
    endloop .
    endform. " BUILD_FILE
    *& Form DISPLAY_FILE
    form display_file .
    data: l_lines type i.
    describe table i_final lines l_lines.
    if l_lines > 0.
    perform open_file using p$file.
    loop at i_final into ws_final.
    transfer ws_final to p$file.
    endloop.
    close dataset p$file.
    else.
    write: / 'no data found'.
    endif.
    endform. " DISPLAY_FILE
    *& Form open_file
    Open an output file, customizing default name to include
    vendor number and job completion timestamp.
    form open_file using file_nm.
    data: l_vendor like eina-lifnr,
    l_timestamp(12) type c.
    Get correct path/filename for the system we're running on
    call function 'FILE_GET_NAME'
    exporting
    logical_filename = 'ZVOL'
    parameter_1 = file_nm
    importing
    file_name = file_nm.
    Open file for output
    open dataset file_nm for output in text mode encoding default.
    if sy-subrc ne 0.
    message e368(00) with 'Error opening output file:' file_nm.
    endif.
    endform. "open_file
    All definitions needed for the platform-independent assignment of file names are maintained client-independently with transaction FILE. Logical file names (but not logical file paths) can also be defined specifically for the current client with transaction SF01. Transaction SF07 generates a list of current definitions.
    Edited by: krupa jani on Aug 20, 2008 6:55 AM

  • Specify the output file path and print name when printing pages

    hi,
    how can i Specify the output pdf file path and print name when i am using the function PrintPagesSilent from AcroAVDoc Object.
    My Code :-
    Acrobat.AcroAVDoc doc = new Acrobat.AcroAVDoc();doc.Open(path,
    "temp");

    Dear Irosenth,
    i try with different format (doc, docx,  xls, jpg, bmp and txt) and it working successfully, but it give an random name for the file which saved in default folder for Adobe PDF print.
    you can use the following function:
    private void PrintPDF(string[] inputfilepath){
    foreach (string path in inputfilepath){
    Acrobat.
    AcroAVDoc doc = new Acrobat.AcroAVDoc();doc.Open(path,
    "temp"); 
    Boolean v = doc.PrintPagesSilent(0, ((Acrobat.AcroPDDoc)(doc.GetPDDoc())).GetNumPages() - 1, 0, 0, 1);doc.Close(1);
    and calling it by the following code:
    PrintPDF(System.IO.Directory.GetFiles("c:\\t\\printjob"));
    copy all files that you want to convert in side the mentioned path and run it program, then check the defualt print path for Adobe PDF printer.
    test it and reply me. thanks again

  • Manipulations with physical and logical names

    Hello ppl,
    Is there any way to see/change phisical and logical names of object in one place/screen? I mean I want to set them to different values and see that change, but without fuzzu, complex way of changing naming and propagate modes.
    TIA,
    Alex

    Mark,
    Under project, preferences (from the main console) you can set the naming and also the propagation method. That's what I hate to do :) However, thinking deeper I find it ok - first finish with modelling and physical names, than correct logical names as needed without propaation to physical.
    Alex

  • How to retrieve the path and the name of the destination file in a link annotation

    Hi,
    In C++:
    How to retrieve the path and the name of the destination file in a link annotation and a Launch action.
    Sample of my code:
    //Determine if the annotation is a Link annotation
    if (PDAnnotGetSubtype(annot) == ASAtomFromString("Link")) {
    //Determine if the action is a Launch action
    if (PDActionGetSubtype(action) == ASAtomFromString("Launch")) {
    // What is the method ?
    Regards
    David G

    In general, get the annotation as a Cos object and examine it, in
    accordance with the PDF Reference.
    Aandi Inston

  • Physical directory and logical directory

    What is the difference between physical directory and logical directory in BPEL

    Hi,
    Physical : We need to Specify the complete directory.
    Example: <Drive name>:\Temp\data
    Logical: We need to specify a logical name for directory. It is defined as a property in the 'bpel.xml' file.
    Example: if you specify 'READ' as the logical name, the following property is added to the bpel.xml file: <property name="READ"></property>
    After this, u must have define the directory path.
    For example, <Drive name>:\Temp\data for the file adapter: <property name="MyDirectory"><Drive name>:\Temp\data </property>
    cheers,
    Abhi

  • Find physical reads and logical reads ?

    Hi,
    how will find out physical reads and logical reads ?

    Well I would suggest you read the report from statspack/awr.They as suggested by Amit,have a load profile section.That would be helpful for you in finding the details of this thing. Also which version you are? If you are in 10g than the EM is able to give you a compare period report where you can compare 2 different days's periods information and can check which particular part has changed.
    In addition to this , look for the information of the metrics in the documentation.As the physical read and logical reads are statistics which are happening in the system.So from 10g onwards, oracle is keeping a track in the deflectionin the statistics. So if you see that than it willbe easy for you to manage and monitor it.
    I shall try to findthe name of some views related to it and post.
    Aman....

  • What are the physical topology and logical topology in sharepoint

    Hi
    what are the physical topology  and logical topology in sharepoint
    how to define  the physical topology  and logical topology in
    sharepoint
    adil

    Here are the example topologies for SharePoint:
    Traditional - 
    http://www.microsoft.com/en-us/download/details.aspx?id=30377
    Streamlined - 
    http://www.microsoft.com/en-us/download/details.aspx?id=37000
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Dynamic File name in File Adapter

    Hi,
    I have a requirement to pass dynamic file name in File Adapter.
    Is there any way to pass a variable for the file name attribut in file adapter.
    I am looking for some options apart from %yyMMddHHmmss%,%SEQ%...etc
    Please suggest if any of you have information on how to put values from a variable to file name attribute in file adapter
    regards
    Saiju

    Hi Saiju,
    Yes there is.
    Assign your file name to a variable, let's say 'fileName'.
    Now go to your invoke activity(for the specific fileadapter) -> Property tab-> find a property call jca.file.FileName -> in the value field assign 'fileName' variable.
    That's it... (assuming you are using 11g)
    Arik
    Edited by: Arik on Jun 27, 2012 3:12 PM

  • What are advantage and disadvantage for Physical Standy and Logical Standby

    HI,
    What are advantage and disadvantage for Physical Standy and Logical Standby configuration?
    Thanks
    Ken

    Logical standby database
    The key advantage for logical standby databases is that they're opened read/write, even while they're in
    applied mode. That is, they can be used to generate reports and the like. It is indeed a fully functional
    database. Also, additional indexes, materialized views and so on can be created.
    However (this being a disadvantage) not all datatypes are supported.
    Oracle (or more exactly the log apply services) uses the primary database's redo log, transforms them into
    SQL statements and replays them on the logical standby database.
    Physical standby database
    A physical standby database is a byte for byte exact copy of the primary database. This also means that
    rowids stay the same in a physical standby database environment.
    Oracle (or more exactly the log apply services) uses the primary database's redo log to recover the
    physical database.
    A physical standby database might be opened read only; however, the received logs are in this case not
    applied. When the logs are applied, the database is not accessible (it is then in a managed recovery state).
    Regards,

  • Difference between physical join and logical join

    Hi Gurus,
    Can anyone tell me what is the difference between physical join and logical join
    Thanks,
    Chandra

    Hi,
    A physical join is at the physical layer and defines the join between two physical tables. Logical joins live at the BMM (logical) layer and define a join between two logical tables.
    The important differentiation is that at the BMM layer you do not tell the OBIEE server how to do the join, you just tell it that there is a relationship between these two logical entities. When the server comes to this logical join it will use the information in the physical joins and decides how the two logical tables are joined together.
    In BMM you use complex joins to establish which logical tables are joined which another, the OBI EE server will go to the physical level to search the physical join to make the query. You can also use physical joins in the BMM to override the join in the physical layer but only in very specific conditions.
    If you also set complex join in the physical layer OBI EE won't be able to construct the physical query.
    Hope this answers your question.
    Award points if helpful.
    Thanks,
    -Amith.

  • Need to get file name and directory back from file adapter - WRITE

    I am using the file adapter to write a file. I want to log the file name of the file we just created. Since we use a precise timestamp in the file name, I can't accurately guess.
    I have an invoke in my BPEL process to the file adapter. My first try was to assign the jca.file.FileName property to a variable, but it never comes back. I looked around and saw plenty of ways to SET the file name for a write and GET the file name for a read, but no GET file name for WRITE.
    Anyone have a solution?
    Thanks in advance!

    I think I got your point... You can tell FileAdapter the filename to write, but if you don't then FileAdapter can not tell you the filename that it wrote... I think it is pretty possible Oracle didn't implement the latter, as the write operation is probably asynchronous and the filename is calculated later on...
    If what you want is just log, you may achieve your requirement by increasing verbosity on Adapter logs... Have a look at the link bellow...
    http://docs.oracle.com/cd/E15586_01/integration.1111/e10226/ad_mon.htm#CJHHBBID
    Otherwise, the solution for you will be to calculate filename yourself, and that will be a little bit of reinventing the wheel... But at least you will know the filename...
    Cheers,
    Vlad

  • Getting physical path from logical path

    Hi,
    I am using the FM FILE_GET_NAME  to get the physical path for a given logical path which I have specified within the FILE transaction.
    The code works fine when I run the program in foreground but it doesn't work when I run it in background.
    Can anyone advise on why this is and how I can get this to work correctly in background aswell as foregroud.
    The ultimate goal is to be able to poll a directory on the SAP server (which could be windows or unix) and to process the files in there.
    Thanks,
    Ruby

    Thank-you.
    I would prefer to to use a default path if possible. The reason I defined a logical path was so that this could be defined outside the program.
    Are you saying I cannot use this FM in background at all?
    Is there another FM which will do the same thing but will work in background?
    What I am trying to do is create a program which will run in the background polling a particular directory and then process the files in this directory if it finds any.
    Do you know how I could achieve this using logical paths rather than using hardcoded paths?

  • How to get the File name that File Adapter is giong to write to a directory

    Hi,
    I am really stuck at one pint while working with File Adapter/FTP Adapter.
    My requirement is I need to read a message from the Queue and write it to a directory as a physical file using a File/FTP adapter and the name that adapter will give to the file at runtime need to find and inset into the database for audit.
    Is any body could help me to know the file name at run time that generated by the adapter?
    Thanks,
    --Khaleel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    I got the answer, I am posint this reply here that someone get the answer for this.
    I have tested like this...
    Create an empty BPEL process
    Create two File Adapters (one for Read, one fro Write) operations.
    Create a variable of type OutboundHeader_msg ( this message is chosen from the fileAdapterOutboundHeader.wsdl).
    Create a receive active and link it to the read operation then create a variable. Make sure this is the first activity so you check the create instance checkbox.
    Create invoke activity and link it to write adapter link.
    Place the assign activity in between the receive and invoke.
    In the assign activity create a copy operation and give your own name to the file name element inside the variable you created above.
    Now double click on invoke activity go to the adapter tab and choose the above variable as the Input Header Variable.
    This will generate the your own named file in the output file directory.
    Thanks,
    Khaleel

  • Getting File Name (Sender File Adapter )

    Hi EveryBody,
    I need to capture only the the FileName in to the outbound xml that is present in the filepath of XI server.
    I checked:
    Adapter Specific Message Attributes:
    Checked box on --> 1)Set Adapter Specific Message Attributes
                                 2) File Name
    And my dt IS OF TYPE :
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_DMS_FINAL>
       <Header>
          <FileName/>
       </Header>
    </MT_DMS_FINAL>
    Now i put the File into the path , i donot need any content of file in XML , only needed the file name.
    i tried above config and it says mapping error, but i test it"s running good with the test tab.
    i guess file picked up by Sender file Adapter is not matching witj the outbound interface ?? is it so ?
    advice. i see in the sxmb_moni that only the content not in xml structure is displayed.
    srini

    Refer to the blog that i asked you to go thru. It has no input fields. It accesses the file name through the Dynamic Configuration. Provides the same as output. Its just a java function without any input parameter. Create an UDF and deleted all the arguments(even "a").
    Code:-
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Oops sorry, i guess i forgot to provide the blog link. Anyway its here:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Regadrs,
    Sanjeev.
    Edited by: Sanjeev Shekhar Singh on May 30, 2008 2:12 PM

Maybe you are looking for

  • I have an itunes account, and log in ok, but when buying an apps it asked for security answers to questions for which I have tried but cannot remember

    can anyone help I can log in to itunes, successfully, but when I try to buy anse app on ipod via itunes etc and it asks security questions I cannot remember what they are , have tried but no joy... help.. I cannot call support as I am deaf.

  • Retaining the Color of the row when it is refreshed in Javascript

    Hi, I have a checkbox when it is checked it will highlight the row with the color. When it is unchecked the color will go off. This is happening fine. But the problem i have is that when i refresh the page or goes to some other page and come back the

  • A syntaxic question...

    Hi guys, I've posted about this on this very forum before, but I can't find my own question... and the answers that you people provided, so I'll do it again: what's wrong with the following, knowing that I have Developer Tools installed and that I cl

  • Struts formbean question

    I have a simple form, with a field, say, number, of type Integer, and a search button. when the user clicks on search, the request first goes to the formbean, to set the number, with method, setNumber. In the user input form, if the user did not spec

  • Parallel valuation area in CFM

    HI FSCM Gurus, Can anyone tell me what all settings are required activate the Parallel Valuation area in CFM. Thanx in advance... Useful answers would be definitely rewarded. Cheers Megha