Use of flat files in distributed architecture probs.

Hi Guiess,
I am working in a module in distributed environment.
Its client is swing application.I have a one doubt and the doubt is -
I am making some flow chart sort of thing at client side and saving this work in
a flat file (java property file/xml file) at the server side.
Could n e 1 suggest me that saving flat file at the server side would work,
coz this file would share by multiple clients.And how locking facility j2e gives whilesomebody is modifing one file.
Thnax in advance -
Vikas Kumar

Hi,
side and saving this work in
a flat file (java property file/xml file) at the
server side.
Could n e 1 suggest me that saving flat file at the
server side would work,
coz this file would share by multiple clients.And how
locking facility j2e gives whilesomebody is modifing
one file.Does "server side" mean EJBs? Is so, from the EJB 2.1 specs document, section 25.1.2 :
"An enterprise bean must not use the java.io package to attempt to access files and directories in the file system.
The file system APIs are not well-suited for business components to access data. Business components should use a resource manager API, such as JDBC, to store data."
Just make sure you use a resource manager to access files.
Kexkey

Similar Messages

  • VLD-6328 error : Use a flat file as Source in a mapping in OWB 10.2

    Dear all,
    I have created a simple mapping using a flat file in a remote server as a source and a simple table as a target.
    When I try to validate the mapping I get the following warning:
    "VLD-2398: No data file specified. Generated code will use the sampled file name and the file location xxx"
    I use the version 10.2 and I cannot find "Sources" or "Targets" when I use the "Configure" options.
    Any help will be appreciated

    Hi all,
    If you want to validate correctly this mapping you must to :
    1. Right click on the mapping, then Configure
    2. Right click on Sql Loader Data Files, then Create
    3. Verify that the location name is correct and complete the Data File Name
    4. OK
    The validation is now OK.
    I hope it will be help you
    Best Regards
    Samy

  • Hierarchy using a flat file for a master data load.

    Can anyone please tell me the steps involved in creating a hierarchy in BI 7.0.  and loading the data using a flat file into the created hierarchy? I have seen some posts and weblogs but they were not helpful and i have been getting some errors which i dont know how to resolve.
    Can someone please give a clear steps and procedure for this?
    Thanks a lot in advance.
    Naveen

    Hi,
    The flat file is generated in application server by executing an ABAP program in SE38.
    This ABAP program contains the logic to generate hierarchy.
    In our case we used a DSO to store employee & supervisors.
    This program generated a flat file in tmp folder in application server
    In our case, To load this flat file we  created an Infosource on our master data using direct update using RSA1old Tcode
    after Infosource is created right click on the InfoSource and click on Assign DataSource.
    Give the Source System name
    When you open this Info source you can select data source as YHIEROBJ_HIER and then activate the InfoSource.
    create an Info Package to load the Hierarchy. Right click on the PC Files (Source System) and click on u201CCreate InfoPackage".
    Under Extraction tab give the flat file name which is generated by the ABAP program in AL11.
    Select the hierarchy which you want to load. Also, you can rename the Hierarchy after loading it. The update method is selected as u201CFull Updateu201D.
    Logic for Generation of flat file & ABAP Program:
    Flat file structure:
    Node ID     InfoObject     NodeName     Parent ID     Date To      Date From     Language
    u2022     u201CNode IDu201D indicates the unique number which defines the Node.
    u2022     u201CInfoObject u201Cgives the name of the InfoObject which is assigned to this Node ID.
    u2022     u201CNodeNameu201D is the name you specify to that Node.
    u2022     u201CParent IDu201D is the Node ID to which the Current Node ID reports to.
    u2022     u201CDate Tou201D and u201CDate Fromu201D are taken for time references (You can set them constant).
    u2022      u201CLanguageu201C is set to English (E).
    The program Logic can be :
    Declare the hierarchy structure
    Get the data from DSO into internal table
    Read all the EMP values into NodeName Field of the table
    Build lookup table for Parent Node ID
    Fill Parent Node ID field
    Append this data to work area & then to another internal table
    You need to declare the selection parameter as SSFILE1
    & use following code to write back the file
      OPEN DATASET SSFILE1 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
         MESSAGE MSG.
      IF SY-SUBRC NE 0.
        MESSAGE E008(ZBW1) WITH MSG.
      ENDIF
    Populate the output from that internal table into final work area.
    Transfer this final work area to the ssfile1 which is the desired output file.
    and   CLOSE DATASET SSFILE1.
    When this program is executed, selection screen asks for the name of file
    Enter the desired file name & execute
    flat file would be generated in the Application server now.
    To view the File, Go to Transaction AL11. Search the directory /tmp. Double click on this directory.
    This opens the list of flat files under this directory. Double click on the file name.
    Hope this helps.
    Thanks,
    Rashmi.

  • Use of Flat Files

    Hello Everyone !
    What is the use of Flat files, how to use and test the same.
    Is there documentation available ?
    Thanks.

    Hi,
    A flat file is a file containing records that have no structured interrelationship. may be simple text file.
    Following are documents:
    [Advanced Flat File to MII XML Document Custom Action Blocks(v12.0)|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30472799-604b-2b10-d4bf-d7498b027674?quicklink=index&overridelayout=true]
    [Flat File Parcer|http://help.sap.com/saphelp_mii121/helpdata/EN/44/710b219ea03abee10000000a155369/content.htm]
    Hope this helps !!
    Regards,
    Manoj Bilthare

  • Is use of flat file in SRM-MDM catalog search UI possible ?

    Hello,
    When user looks for materials inside SRM-MDM catalog (using search user interface), search is done manually with free form or drill down search.
    Then, among the search result, user has to select items he wants to add to his shopping cart and finally transfer those items from his shopping cart overview inside SRM.
    Is it possible to automate this user selection using for exemple a flat file uploading (or any other way you could know) ?
    This flat file will have material number (or service), supplier code and quantity (no more information).
    The aim of the request is to help requester to not have to select each item one by one (in the search result) knowing that :
    -  SC will have more than a hundred items,
    - delivery time and price (for example) must be checked in MDM, being the master data reference
    - materials (or service) to order are received by requester via a flat file without any information about prices, so i cannot upload my flat file directly into SRM because file missing data must come from MDM.
    With this process, user should have only to transfer items automatically selected.
    Could you please share your advises ?
    We use SAP MDM 5.5.
    Regards.
    Laurent.

    Hello Masa,
    Masayuki Sekihara wrote:
    A vendor look at buyer stock information like VMI and fill stock weekly base. So the vendor sends material number and quantity information as flat file to buyer. Buyer should create SC from flat file and price information should fetch from catalog.
    Yes, your are correct: example you gave corresponds to process for my SC uploading.
    Regards.
    Laurent.

  • How to load flat file in existing Architecture.

    Hi everyone!
    There is an existing architecture that I have to upload data into.  There is a cube on top, followed below by an ODS and its update rules to the cube, followed below by an Infosource and its corresponding update rule to the ODS above it, followed below by a datasource (it says PC FILES(PC_FILE)) and its accompanying transfer rules to the infosource....
    There is nothing in the ODS...  No data.  The Datasource says emmulated 3.x Datasource...  (What does this mean?)
    What I want to do is upload data via a flat file...  Good BI Masters, how do I do this?  How do I create a "dummy file" for upload?  What are the specific sequence of steps that I need to do to load this flat file data?
    Thank thank you so much!
    Philips

    emulated DS:
    http://help.sap.com/saphelp_nw04s/helpdata/en/8c/131e3b9f10b904e10000000a114084/frameset.htm
    I'm not sure what you are asking - is it how to load a file all the way to cube in 7.0?
    From the architecture desc you have given, you havent migrated ur dataflow to new 7.0 dataflow, as you still have the update rules and transfer rules. So though ur system is 7.0, ur backend is still on 3.x, so the way you load a file is the same when your system was 3.x(before upgrade)
    Or - are you asking the steps to load the file to a cube - no matter which environment you are in  (3.x or 7.0)? if so, let us know .. and do a search on the forum for steps to load flatfile

  • CR & LF characters at the end of records when using delimited flat file (CR is missing)

    Hi All,
    I have a requirement where data of SQL query needs to be loaded to a CSV file.
    The row delimiter of the CSV file has to be CR-LF.
    In the flat file connection manager, I have mentioned Header Row delimiter as "{CR}{LF}" and under columns section, row delimiter is specified as "{CR}{LF}".
    But when I open the detsnation CSV file using notepad++, I see only "LF" at the end of all rows.
    Can you please let me know how can I get both CR & LF at the end of each row
    Below is the screen shot of the flat file connection manager which I have used for CSV destination file:
    Raksha

    Hi Raksha,
    Just as Vaibhav said, I’m curious why you need use “CR & LF” as row delimiter in Flat File Connection Manage. Since you can use "CR" as row delimiter in Flat File Connection Manager and it worked fine, you can directly specify "CR"
    as row delimiter in Flat File Connection Manage.
    Besides, if you still want to replace “LF” with “CR & LF” in the text file, we can use Notepad++’s Find/Replace feature or Edit -> EOL Conversion to achieve the goal. Then we can specify "CR & LF" as row delimiter in Flat File
    Connection Manage.
    The following blog about conversion between “LF” and “CR & LF” row delimiter in Notepad++ is for your reference:
    http://sqlblog.com/blogs/jamie_thomson/archive/2012/08/07/replacing-crlf-with-lf-using-notepad.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Special Charecters handling using BODS flat file

    Hi All,
    I have 2 sets of data one with no special charecters and one with Special Charecters in source. I have generated flat files(with UTF-8 code page bot hdata special charescters and no special chars) thruogh BODS in to a perticular path,  when I am copying file from one path to another path file behaviour is changing it is saving as ANSI (it is only ith the file does not have special charecters, special charecters file if capoying with UTF-8 code page)
    And also I have faced the special chareter file with jumbling of data.
    Like :  ID| Number |Name|Country
              1 |103|TejaIndia
              2|104|Vini|India
    If observed above scenario, in th the 1st record country data concatenated with name.
    I really appriciate, If any one help me to slove this issue.
    Note: Special charecters are like: */„…Ÿ etc and also multilanguage data
    Thanks,
    Lavanya

    Post sample data from your source file, if possible attach it to the post and let us know the expected result.

  • Generate Sample data for the cube .- I don't want to use the flat file

    Hello BI Gurus,
    I know there is a sap sap standard program where you write records to the cube. I think first you change the cube from basisc to real time cube and then another program which displays a ALV layout- you can create,delete or change ther records.
    I don't want to create a flat file load for this. I want to create 5 records to check the layout.
    I forgot the program name.
    Can you please let me know the program name.
    Thanks
    Senthil

    A long time for a simple question, so here it is: the program name is CUBE_SAMPLE_CREATE.
    Please, mark this question as anweared.
    Regards,
    André

  • Program for uploading the PO data of known vendor in MM using the flat file

    hi friends,
                    I got problem while uploading PO data for a vendor.what are the possible ways of uploading data.
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Jan 11, 2011 11:37 AM

    hi friends,
                    I got problem while uploading PO data for a vendor.what are the possible ways of uploading data.
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Jan 11, 2011 11:37 AM

  • Object reference not set to an instance of an object error when generating a schema using flat file schema wizard.

    I have a csv file that I need to generate a schema for. I am trying to generate a schema using flat file schema wizard but I keep getting "Object reference not set to an instance of an object." error when I am clicking on the Next button after
    specifying properties of the child elements on the wizard. At the end I get schema file generated but it contains an empty root record with no child elements.
    I thought may be this is because I didn't have my project checked out from the Visual SourceSafe db first but I tried again with the project checked out and got the same error.
    I also tried creating a brand new project and generating a schema for it but got the same error.
    I am not sure what is causing Null Reference exception to be thrown and there is nothing in the Windows event log that would tell me more about the problem.
    I am using Visual Studio 2008 for my BizTalk development.
    I would appreciate if some has any insides on this issue.

    Hi,
    To test your environment, create a new BizTalk project outside of source control.
    Create a simple csv file on the file system.
    Name,City,State
    Bob,New York,NY
    Use the Flat file schema Wizard to create the flat file schema from your simple csv instance.
    Validate the schema.
    Test the schema using your csv instance.
    This will help you determine if everything is ok with you environment.
    Thanks,
    William

  • Deleting master data after loading transactional data using flat file

    Dear All,
    I have loaded transaction data  into an infocube using a flat file . While loading DTP i have checked the  option "load  transactional data with out master data exists" . So transactional data is loaded even if no master data is there in BW.
    While loading the flat file, I made a mistake for DIVISION Characteristic  where original master data value is '04000' , but i loaded the transactional data with value '4000' .Then i later realized after seeing the data from the infocube and deleted the request. then i reloaded data with value '04000'. Till now every thing is fine.
    But when I see the master data for DIVISION , i can see a new entry  with value '4000'.
    My question is how to delete the entry value '4000' from DIVISION. I tried deleting manually this entry from 'maintaining masterdata' , but it is not allowing me to do so .
    I have also checked if any transactional data exists for that value '4000' , as i said earlier I have deleted the transactional data with that values. even tried to delete the entries from the master data table, but i donot see a option to delete entries there.
    Please suggest me on this.
    Regards,
    Veera

    Hi,
    Goto RSA1 right click on the Info object and select Delete Master data. This will delete the master data unused existing in the table.
    If this master data is not used any where else just delete the master data completely with SID option.
    If even this doesnt work you can delete the complete table entire in SE14. But this will wipe out the entire table. Be sure if you wanna do this.
    Hope this helps
    Akhan.

  • MAPPING USING FLAT FILE SOURCE MODULE

    I created a mapping using a flat file as source and a dimension as target, I've already configure both modules and their locations.
    When I try to deploy this mapping in the deploy manager, it generates the script for the control file and when I hit the deploy button it says that the deploy was succesfull, but I really don�t know what it did.
    Does it put the file in my target schema?, what do I suposs to do next?

    Hi,
    So,i don't have to manually run the sql loader from the command prompt???
    All i have to do is Execute the map normally from the deployment manager and it will load the .ctl file itself.Ok great,i did so but i got the following error:
    Starting Execution BM_DEBIT_CARDS_DAT_MAP
    Starting Task BM_DEBIT_CARDS_DAT_MAP
    C:\Documents and Settings\CORAL 2000\Desktop\Flat filesBM_DEBIT_CARDS_DAT_MAP.ctl (The file access permissions do not allow the specified action.)
    RPE-01008: Recovery of this request is in progress.
    RPE-01009: Completion of this task could not be completed due to an earlier system failure.
    Completing Task BM_DEBIT_CARDS_DAT_MAP
    Completing Execution BM_DEBIT_CARDS_DAT_MAP
    So are there any permissions i should grant or what?
    Dina Nagia

  • Duplicate records in flat file extracted using openhub

    Hi folks
    I am extracting data from the cube to opnhub into a flat file, I see duplicate records in the file.
    I am doing a full load to a flat file
    I cannot have technical key because I am using a flat file.
    Poonam

    I am using aggregates(In DTP there is a option to use aggregates) and the aggregates are compressed and I am still facing thiis issue.
    Poonam

  • Loading international Character using Flat File

    Hi All,
    We have a requirement in which we want to load Japanese and German Characters using a Flat file. How can we go about it.
    When I change the file into CSV then only only ???? all displayed in place of the internatioanl character.
    Any help or document which tell that how we can load the internatioanl Characters would be appreciated and awarded in SDN.
    Regards,
    Samved

    Dear Samved Sinho,
    when u are creating the data source for  Flat file select the language dependent ..and in  the Text   table u have to include the corresponding language in SAP terminology
    Regards
    venu

Maybe you are looking for