Flat file via JMS - how to (most easy)?

Hi experts
My scenaio is R/3 -> XI (technology not decided) -> legacy system (via flat file structure and JMS)
I would like to find the best way to do this. The receiving system only takes a flat file with 150 char length in each line.
Until now i have tried to do this using test message to XI and then do a pseudo mapping to a XML structure. This XML is then parsed to a flat file in the JMS adtapter using module localejbs/AF_Modules/MessageTransformBean. This "parsing" is a rather time consuming solution and im not sure it is the best solution.
I just saw a how to guide explaning how to make a flat file from a IDOC-XML using ABAP mapping. I could use this by just making sure my IDOC segments was 150 char length. The downside of this is that XI is reduced to a IDOX-XML transformer and hides no complexity for the R/3 system.
What do you think is the rigth way to go? Is there an even better solution?
Kind regards
Martin

The mention HOW TO guide is:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
And I sould mention I would like to also receive data from the legacy system (wich also sends files with 150 char lines)

Similar Messages

  • Can we handle content convertion for TabDelimiter flat file in JMS

    Hi,
    Is it possible to handle content conversion for TabDelimiter flat file in JMS (Not in FILE adapter).
    If possible .. can you please explain.
    Regards,
    Siva.

    Hi, Siva:
    Yes, this is possible.
    The way that JMS adapter to handle content cnversion is similar to the way file adapter does.
    Different from file adapter, you do not have to specify "Content Conversion" as transport protocol, you need to use transformation bean (localejbs/AF_Modules/MessageTransformBean) in Module tab.
    Check page 23 of the following link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a05b2347-01e7-2910-ceac-c45577e574e0
    Liang

  • How o place Flat file Using JMS Adapter.

    Hi Frnds,
    I have one scenario ,
    Sender side i am having IDOC, i want convet the IDOC into Flat file. But my receiver side i have to use only JMS Adapter,
    Flat file i have to place in FTP Server using JMS Adapter.
    Can ne share your thoughts..
    Regards,
    raj

    Raj,
    The below Link will help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
    Surya,
    Welcome Back to SDN.
    Regards
    Agasthuri Doss

  • Viewing the flat file in JMS Receiver???

    How can i see the Flat file generated  after content conversion by JMS Receiver channel in a in a  ECC->PI->JMS scenario.
    I have a JMS Receiver channel connecting to WMS system , how can i see the flat file produced just after the JMS adapter's content conversion. its like
    ECC ---> PI----->JMS----> (intermediate client MQ file cannot be viwed here it forwards the file to WMS MQ)------>(MQ)WMS
    i need to see the flat file produced just after the JMS channel content conversion..is there some logging option there should be. Please help

    Hello,
    I don't think there is any standard way to achieve ur req.
    But what u can do is, write a custom AM module to either write a file on PI file system (for ur monitoring) or display the text file in ur audit logs.
    Send File to Two Different Locations using Adapter Module
    Thanks
    Amit Srivastava

  • Errors in flat file records? how can i handle them?

    Hi All,
    I am new for BDC. I am uploading customer(XD01) records using BDC caltransaction method.my problem is when i am running the program, some times my program is not updating the records because of my flat file errors. after i correcting the error records and if i run the same program already updated records not processing. my program not running. what i need to do? how can i handle the flat file for reprocessing the error records?
    i have around 50,000 records in my flat file.

    your program accepts a flat file say the structure of it is structure_load and you create another structure similar to structure_load and name it structure_error.
    loop at itab_load.
    call transactions...
    if success..
    commit work and wait X sec.
    else.
    move-corresponding field to structure_error
    append structure_error.
    endif.
    endloop.
    write the file stru_error to PC or app server and make the changes  to the data and use the str_error as input to your code again..

  • BPS Flat file load ABAP objects migration error.

    Hello
    We are trying to load a flat file via the SAP-GUI and BPS and everything works well in DEV based on the HOw-TO guide. When trying to move the ABAP objects to QA, we get a migration error on the type /1sem/_yth_data_260ZBYAPEPL. Of course the 260ZBYAPEP is relevant to our configuration and in QA we do have the equivalent structure /1sem/_yth_data_614ZBYAPEPL.
    How come the type in DEV does not translate to the equivalent type in QA just like any objects we transport to QA? 
    Thank you all.
    YB.

    Dear YB,
    the element /1sem/_yth_data_260ZBYAPEPL has to be changed according to the QA manually only. Sytem can't change the clent no. automaticaaly when u transport to the QA.
    so in /1sem/_yth_data_260ZBYAPEPL replce 260 with ur QA Client no.
    Narendra Reddy

  • Loading data from flat file into 0EMPLOYEE

    Dear,
    I want to see the <b>'monthly change of numbers of employees'</b> of my company in a BW report.
    i want to do this by loading data from a dummy flat file into 0EMPLOYEE and afterwards into cube 0PAPA_C02.
    i've searched the whole 'help and service sap' websites but nowhere, i could find a usefull user guide.
    Could you explain me how this job needs to be done, are there certain steps that need to be taken?
    here are a few of my questions:
    1: what fields and data do i have to fill in my flat file?
    2: how does the time-dependency of master data of employee work?
    3: why do you only have to map 0calday and 0employee from infosource 0HR_PA_PA_1 to the corresponding fields of cube 0PAPA_C02?
    4: how is the key figure 0HDCNT_VC filled automathically?
    (the activation of cube 0PAPA_C02  and its flow is already done.)
    or maybe you know a user guide which explains the whole picture and could you send me its link?
    thanks a lot in advance,
    Julie de Meyer

    Hi,
    Employee is master data : You need to extarct data every month.Once the extraction is done , you need rto activate to see the results. Otherwise it will display old result.
    You can extract data for 0HR_PA_0 and 0HR_PA_1 cubes also. After that  you can do the reporting based on this.
    You can try some sap standard BI reports .
    Headcount is calculated based on employement percentage which is maintained in infotype 0007 (Planned Working Time). If it is 100 then it is considerd as headcount 1.
    you can check .
    http://help.sap.com/saphelp_nw2004s/helpdata/en/63/351e3c6a2fc036e10000000a114084/frameset.htm
    Regards
    Nilesh

  • Logical flat file in SAP

    Can anybody help me with documents regarding logical flat file in SAP?
    I want to create a logical flat file . Moreover I want to load data which is stored in logical flat file path .Lastly if I want to make changes in that flat file ..
    How should I proceed?
    please help me as soon as possible with blogs or documents..

    Hi,
    ask your basis huys to define logical/physical path and assigments, use tcode FILE to create your logical filenames and definitions
    /manfred

  • Adapter Module for Sender File Adapter to access a Flat file

    Hi,
    We have a scenario where the source is a flat file.I want to develop an Adapter Module to make a small change to every line in the Flat file.
    Now how do we read a flat file in the Adapter Module?Coz the flat file will be converted to XML file by the Standard Adapter Module of the File adapter.
    Please help me out with this.
    Thank you,
    Anu.

    Hi Anu,
    If you are not using Content Conversion option Standard Adapter Module does not convert the Flat file to XML .
    You can directly access the payload as it is in flat file in the Adapter Module and make changes.
    Use the Standard classes ModuleData & moduleContext to fetch the Payload.
    chk this :
    Customized Sender Adapter Module
    XI: Read data from PDF file in Sender Adapter
    regards
    Ganga

  • Conditional Interface Determination with Flat Files

    Hello,
    I have one sender interface (dummy) which could either hold a flat file or an XML file. On receiver side there is one system with two receiver interfaces, one should be used for the XML structure and one for the flat structure.
    My requirement is to have a conditional interface determination with an (exclusive) OR logic. Pseudo code:
    The XML structure has "submission" as root node. So I use the condition (/submissioin) EX to determine whether it is an XML file and I check with not(/submission) EX to determine whether it is a flat file. However the condition does not work using a flat file ("Unable to find an inbound interface"). Could it be, that the conditional expression never is true in case a flat file arrives? How can I achieve this requirement?
    What I additionally do with the flat file is just calling a Java Mapping that sets dynamic attributes for a file receiver, the flatfile itself is dumped on a file system without any addtional conversion logic.
    Thank you for your advice.

    How can I ingnore a message in case a condition applies? I am just aware of the fact that you can ignore messages in case NO condition applies.
    Couldn't you simply reverse the logic and use "not equals"? Or perhaps you can use the EX operator to alter your conditions... here is more info on the EX (exists) operator
    Re: ConditionEditor: Check if element is empty
    What is best practice in this case? Should I use a "dummy receiver"? However if I use a dummy receiver I think I would receive a "interface determination not found" error. How would you do that?
    I've never found the need to work with dummy receivers so I cannot comment there.

  • Decimal point separator in flat file load

    Hi all
    In BI 7.0 I'm stuck trying to load a csv flat file via DTP  (without extracting from PSA). The file I have to load has an euro amount field in this format:
    143565,56
    but the load fails. The only way to load it's to open the csv with notepad and to "find and replace" the commas with dots before starting to load, in order to have:
    143565.56
    I tried to modify the su01 settings for decimals separator, but without success, and I cant find any setting in the DTP. There is a way to load amounts whit the comma as decimal separator, avoiding to "find & replace" the file?
    Thank you in advance
    Francesco

    Sorry but your hints dont work for me.
    I checked in the Datasource Extraction tab and I specified the comma separator for decimal in User Select Entry, but without success (I tried both extracting from PSA and not).
    I tried the su01 user setting for decimal separator, but it was already right (with comma), I think in the su01 you can set only visualization of amounts, for example in the Bex.
    Before the upgrade at 7.0, the right decimal separator was the comma and we have a lot of excel macros that create csv with that decimal separator, so it's becoming a serious problem...
    Just a question: where can I check, if exists a transaction code, the BW system setting for decimal and thousand separators (not the user's ones)?
    Thank you all
    Francesco

  • Not able to edit Flat File Location path

    Hi,
    We are using OWB 11gr2. We have two control centers cc1 and cc2 along with the Default Control Center. There are two flat file locations ff1 and ff2. ff1 is registered to cc1 and ff2 is registered with cc2 . We are able to unregister ff1 and register again after changing the path. But for ff2, we found the parameter PATH is not editable during registration after unregistering from cc2.
    During the investigation, we have found the If we edit the Control Center cc2, the check box of all the data locations , available at right side ( Selected Location) are disabled and it is not possible also to detach the location, i.e. to move the location at left side ( Available Locations) . But for cc1, the check box are editable and we can move it to detach the location from control center. Please advise how to enable the path of Flat File location and how to enable the check box of available locations of the cc2.
    Thanks

    Worked out n found the solution

  • XI 7.0 Flat File FTP Transfer

    We have an ERP 2005-NetWeaver system installed and in process.  In the XI(now called PI) we have it set up properly checked x3 by 2 different people and the SM and SLD up and configured.  Our first Business Scenario was to pull an iDoc from ERP 2005 and deliver it to the PO for a Legacy non-SAP system.  It eventually worked, the problem turned out to be "rights".
       Scenario 2 is to pull a Flat File via adapter FTP:// from the FTP Server to the ERP 2005 system. It dosn't work, log below, it appears to just disappear somewhere between the FTP:// server and the XI box integration engine or before.  We have tested the FTP Transfer from each machine using the MS Srvr FTP service and it works there just fine (even used the exact same sub-directories and user/attributes. We have also changed OS rights on the:
      .../XIREPOSITORY/* and all sub-directories to: Group;Everyone, Role: Full Control.  We have done numerous other things I'm too embarrassed to even mention, yet we still get the same response:
    <u><b>HOCFTP2MAIL_Sender</b></u>
    Sender Adapter v2703 for Party 'Holly_DataStream', Service 'HOC_Read DataStreamFile.'
    Configured at 2006-06-13  10:53:03  CDT
    History:
    -2006-06-13 13:11:03:09 CDT: Processing started
    -2006-06-13 13:11:02:09 CDT: Error: Retrieving file 'LOADPAYABLE1.xml' failed unexpectedly:  FTPEx: Directory does not exists
    -2006-06-13 13:11:02:08 CDT: Processing started
    -2006-06-13 13:11:02:08 CDT: Error: Retrieving file 'LOADPAYABLE1.xml' failed unexpectedly:  FTPEx: Directory does not exists
    -2006-06-13 13:11:02:07 CDT: Processing started
    HOC READFile is set to 'inactive' as it never yeiled any information of use at this problem just one mamonth file.

    Pat
    It clearly says that it dont have the directory. Also eventhough it is there might be you would have given wrong credentials. So can you please once again give and check? After this go to sxmb_moni and check whether you find any error?
    In the last try to check the message display tool so that you can know till where your message has flown? You can log into the message display tool from http://<hostname>:<portno>/MessagingSystem/monitor/auditlog.jsp
    Regards,
    ---Satish

  • Flat file name

    Hi Experts,
    I am working with BDC
    I want to get the flat file name also .
    how to get that
    Regards,

    Hi above all
    Thanks for your reply,
    I want only flat file name .
    for ex:If  i am working with this file
    C:\Documents and Settings\pri\Desktop\INPUT.xls
    i have to populate only The name of Flat file(INPUT) In Ztable
    like that how many flat files i work with my program
    all the names should be populated in ztable
    I am successfully populating the data of flat file into ztable
    I need only the FLAT FILE NAME
    Regards,
    Edited by: abap learner on Jul 8, 2008 11:35 AM

  • Transfer data from Result Set (Execute SQL Task) into Flat File

    Hi to all,
    My problem is this:
     -) I have a stored procedure which use a temporary table in join with another "real" table in select statement. In particular the stored procedure look like this:
    create table #tmp
    col1 varchar(20),
    col2 varchar(50)
    --PUT SOME VALUE IN #TMP
    insert into #tmp
    values ('abc','xyz')
    --SELECT SOME VALUE
    select rt.*
    from realTable rt, #tmp
    where rt.col1 = #tmp.col1
    -) I cannot modify the stored procedure because I'm not admin of database.
    -) I HAVE THE REQUIREMENT OF TRANSFER DATA OF SELECT STATEMENT OF SOTRED PROCEDURE INTO FLAT FILE
    -) THE PROBLEM is that if I use an OLEDB source Task within a Data Flow Task I'm not be able of mapping column from OLEDB source to flat file destination. The reason for this, is that in the "Column page" of OLEDB source task, SSIS do not retrieves
    any column when we using a temporary table. The reason for this, is that SSIS is not be able to retrieve metadata related to temporary table. 
    -) One possible solution to this problem is to use an Execute SQL Task to invoke the stored procedure, store the result returned from stored procedure in a Result Set through a Object type user variable.
    -) The problem now is: How to transfer data from result set to flat file?
    -) Reading here on this forum the solution look be like to use a Script task to transfer data from result set to flat file.
    QUESTIONS: How to transfer data from result set to flat file using a script task?? (I'm not an expert of vb .net) Is it really possible?? P.S.: The number of row returned of stored procedure is very high!
    thanks in advance.

    Hi  Visakh16<abbr
    class="affil"></abbr>
    thanks for the response.
    Your is a good Idea, but I do not have permission to use DDL statement on the database in production environment.

Maybe you are looking for

  • Have just downloaded an app to my iphone 4s but can't find it

    Have just downloaded an app from itunes - can't find it on my iphone 4s - any help please

  • How do I add an autoSize function to a Tooltip (AS 2)?

    Hi, I downloaded an Interactive Map from Active Den ... it came with an XML file that allows me to change some parts, but the part thatI need to change is not covered in the XML ... it needs to be changed in the Action Script. You can see the map her

  • GPIB Control of Spectrum analyser

    Hi There I have a HP 8591 EM spectrum analyser and EMC receiver I wish to control this via GPIB. I would basically like to control everything from my PC if possible which covers everything on the front panel and to pull of all the data for analysis m

  • Info about CIDX adapter with a scenario

    Hi all, Can any one help me out by giving ino about *CIDX* adapter: Where its used and how its used with an example scenario In a nutshell complete info about CIDX I would be very gartefull Thanx in advance

  • Excess Noise in Garageband on my Macbook.

    On my iMac G5 I used to plug my guitar straight into the line in port with Garageband. I could record with minimal noise even with distortion effects. But on my Macbook it is a different story, with exactly the same settings the Macbook is getting a