How can I download from R/3 to flat file?

Hi
My requirement is to download Material and Supplier data from R/3 to flat file...
These are the fields I have to bring it from SAP R/3 but I don not want to DOWNLOAD FM. I want to Concatenate from Internal Table and put it on application server.
There are my following fields...
Material and Supplier
   1. Selection criteria
         - Based on plant
         - Hubs and FSL/Hubs
         - Hubs can pull both Repair and NewBuy vendor
         - FSL/Hubs pull only Repair vendor
   2. Material – EORD-MATNR
   3. Region – Determined by 9* plants
   4. Site
         1. plant-(W) and plant-(C) for FSL/Hubs
         2. plant-(S) for DCs
   5. Supplier
         1. Menlo/Repair for DC
         2. Repair only for hub/fsl
   6. Supplier-type – PURCHASE or REPAIR
   7. Leadtime - (The number of days between placing an order and receiving an order)
   8. Order Horizon – “2”
   9. Minimum OQ – “3”
  10. Order cost – “50”
  11. Supplier part number – EORD-MATNR
Waiting for some help and (or) sample code for this...
Thanks in advance.

Here is an example program showing how to write a tab-delimited file to the application server.  All you need to do is get all your data into an internal table, then loop at it, concatenate all fields into a string and then transfer that string.
report zrich_0001.
parameters: d1 type localfile default '/usr/sap/TST/SYS/Test.txt'.
data: begin of itab occurs 0,
      field1(20) type c,
      field2(20) type c,
      field3(20) type c,
      end of itab.
data: str type string.
constants: con_tab type x value '09'.
* if you have a newer version, then you can use this instead.
*constants:
*    con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
start-of-selection.
itab-field1 = 'ABC'.
itab-field2 = 'DEF'.
itab-field3 = 'GHI'.
append itab.
itab-field1 = '123'.
itab-field2 = '456'.
itab-field3 = '789'.
append itab.
  open dataset d1 for output in text mode.
  loop at itab.
    concatenate itab-field1 itab-field2 itab-field2 into str
                  separated by con_tab.
    transfer str to d1.
  endloop.
  close dataset d1.
Regards,
Rich Heilman

Similar Messages

  • I do not have credit card, how can I download from store.

    I do not have credit card, how can I download from store. it does not allow to enter without Credit card info.
    plzzzzzzz help

    Step 1 to 8 with pictures attached:
    1. Select any free app
    http://i1224.photobucket.com/albums/ee374/Diavonex/5622c304.jpg
    2. Tap install App
    http://i1224.photobucket.com/albums/ee374/Diavonex/9c71cbba.jpg
    3. Just tap Create New Apple ID
    http://i1224.photobucket.com/albums/ee374/Diavonex/3564262e.jpg
    4. Confirm your country; fill in your country's name
    http://i1224.photobucket.com/albums/ee374/Diavonex/15af6726.jpg
    5. Agree with Term and Condition
    http://i1224.photobucket.com/albums/ee374/Diavonex/a50cb07a.jpg
    6. Fill in your Apple ID and Password
    http://i1224.photobucket.com/albums/ee374/Diavonex/f942f7f5.jpg
    7. Create and answer secret question
    http://i1224.photobucket.com/albums/ee374/Diavonex/774b1991.jpg
    8. Select NONE for billing information
    http://i1224.photobucket.com/albums/ee374/Diavonex/6f6e54ff.jpg

  • Hi how can i download from a different apple id without waiting 90 days

    hi how can i download from a different apple id on the same computer without waiting the 90 days

    Basically, you can't - please see this thread:
    https://discussions.apple.com/message/20734386#20734386

  • How to extract data From Hyperion Essbase to Flat Files

    Hi ,
    Can anyone tell me how to extract data from Hyperion essbase to Flat file(e.g. .csv , .txt ,...) or Oracle Table using ODI.
    Regards,
    Avneet

    Hi sutirtha,
    I have make one column as key column now i am getting this error,
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 1, in ?
    com.hyperion.odi.essbase.ODIEssbaseException: The number of columns returned by script [10] is less than the source data columns exposed [12]
    at com.hyperion.odi.essbase.ODIEssbaseDataReader.getAppData(Unknown Source)
    at com.hyperion.odi.essbase.AbstractEssbaseReader.extract(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyInstance.invoke(PyInstance.java)
    at org.python.pycode._pyx7.f$0(<string>:1)
    at org.python.pycode._pyx7.call_function(<string>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyCode.call(PyCode.java)
    at org.python.core.Py.runCode(Py.java)
    at org.python.core.Py.exec(Py.java)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
    at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.k(e.java)
    at com.sunopsis.dwg.cmd.g.A(g.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Unknown Source)
    Caused by: com.hyperion.odi.essbase.ODIEssbaseException: The number of columns returned by script [10] is less than the source data columns exposed [12]
    at com.hyperion.odi.essbase.wrapper.EssbaseReportDataIterator.validateColumns(Unknown Source)
    at com.hyperion.odi.essbase.wrapper.EssbaseReportDataIterator.init(Unknown Source)
    ... 33 more
    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: The number of columns returned by script [10] is less than the source data columns exposed [12]
    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.k(e.java)
    at com.sunopsis.dwg.cmd.g.A(g.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Unknown Source)

  • How can I download from digital voice recorder (DS-2000) into itunes?

    I would like to download recordings from my Olympus DS-2000 into itunes so I can then burn a cd for use elsewhere. However, when I connect the DS-2000 to my G5 the recorder goes into remote mode and doesn't show up on the desktop as an unidentified icon. It seems the only way I am able to download from the recorder is to open the Olympus software and download into it. When I do that I can't seem to move the files to itunes or the desktop. Olympus support told me they don't support the "pro" digital recorders, but said their software is not compatible with Apple.
    Has anybody experienced this problem? Any suggestions on how I would be able to accomplish this task? I'd appreciate all input. Thanks.
    G5   Mac OS X (10.4.4)  

    hello popfaux,
    how is it set-up? perhaps you need to double check it's connected right?

  • HT201272 How can I download from another countries iTunes store?

    I'm not from America, I'm Canadian and I can't download a specific album.  When I transfer to the American store it tells me I'm not authorized to download from there. 
    Anyone know how I can gain authorization?
    Thanks,
    -Krazy

    You must be within the Country with a Valid Billing Address and Credit Card for that Country to use the iTunes Store of that Country...

  • Hi, how can I download from other itune stores?, Hi, how can I download from other itune stores?

    Hi, I would like to download NCIS but do not have them in SA sore. How can I change stores and download from them?

    Welcome to the Apple Support Communities
    I'm sorry, but you can only purchase from the stores of the country you've registered the Apple ID

  • How can I download from other countries iTunes Stores?

    I want to download from other countries iTunes stores but I have of course not a credit card for each of these countries and I can use my e-mail address only once (logically )to register. Any chance that I can download from i.E. the French store when I live in the UK?
    Thanks for helping me if possible
    HP pavilion ze 4900   Windows XP Pro  

    Unless you can show some form of residency you cannot buy from another country's store. The question on cross store purchasing is asked frequently so I'll just quote the most complete answer (courtesy of Dave Sawyer) from the many given:
    In order to buy from any given country's iTunes Music Store, you must have either:
    a) a credit card with a billing address in that country, or
    b) a mailing address in that country and a gift certificate or a prepaid card that was bought in that country.
    If you cannot fulfill one of these two sets of conditions, you will not be able to purchase from any given country's iTMS.
    .......this is due to restrictions placed on Apple by the record companies and other rights holders (who are often completely different from country to country and so all require their own individual negotiations and contracts), not by Apple's choice. And this also applies to all the legal download stores that carry major-label content, not just the iTMS.

  • HT1364 how can i download from my itunes list to my ipod nano 6th gen ?

    hi can anyone out there help me i purcheased a song from  itunes  it down loaded to my itunes list on laptop but i cant download that song onto my ipod nano 6th gen even thoe it reconises my ipod as before i use to just plug my ipod into the laptop and select down load and it would atomaticly down load song onto my ipod now it wont do that have anyone got any idea why please ?

    It works the same way it has always worked.
    Connect the device to the computer.
    Select the content desired to sync.
    Sync.
    There is no "download" option when an iDevice is connected as content does not get downloaded to devices.  Content gets downloaded from iTunes to the computer.
    Try using the correct terminology and possibly reading the User's Guide... that may allow you to figure this out on your own or ask an intelligent question to get a resolution.

  • HT201272 How can i download from two different accounts without the 90 day rule?

    I have two Apple IDs because I had lost the other one and made a new one. I recently bought a new computer and went I also found my old password for my first ID. I downloaded my purchased from the first one and now it is telling me I have to wait 90 days to download from a different account. What do I do?

    Wait 90 days
    Why would you start a new account?  Why not just correct the original account?

  • How can I download from youtube?? , it always worked before, now it doesnt

    had to update , icon is there, BUT NOT COLORED OR ACTIVE!!!, I want to download from you tube with dhlp , never had this problem b4

    Youtube makes many changes to prevent users from downloading videos (as it is aganist Youtube/Google's Terms of Service), it will likely be fixed with a update. Also note addons are made by third party developers, not Mozilla.

  • How can I download from JVC GZ-HD3EK?

    I am using Final Cut Express 4.0 on a new iMac 2.5Ghz and Mac OS X 10.7.3 and am trying to download from a JVC GZ-HD3EK camcorder using a firewire cable. Without success. Is this camcorder not supported by this version of Final Cut? I use the HD 1080 setup to try and dowload.
    Help please.
    John Quinton

    This particular camera uses a format not supported by most pro editing apps.
    Until a decade ago most manufacturers tended to stick to recognised standard formats but since the boom in cheap camcorders they have started messing around with their own formats, many of which are useless to anyone other than a person who simply wants to plug his camera into the TV and watch the unedited footage.
    I know a number of users who don't even do that  .  .  .  showing their videos to unsuspecting friends only on the camera's LCD screen!

  • HT2534 How can i download from two different store with the same account?

    I live in both countries but my credit card is registered in a french bank, therefore it is not recognised by the Aussie store on itunes. There are apps or music i want to get form the Aussie store as well as music and other apps from the french one...
    Is it possible to have two stores under the same account????? I wish apple could fix this, which could result in more spending as you can buy from different store!

    Wait 90 days
    Why would you start a new account?  Why not just correct the original account?

  • How can I download from CS2 Adobe Acrobat 7.0 Pro when I don't live in the United States?

    I am using XP Virtual machine and need to create PDFs from Word 2003 for a client but I can't activate after installation as the Activation server has been taken down.  Same issue with Adobe Digital Editions.

    What country do you live/work in? Not all countries are allowed to use Acrobat software for several reasons especially the encryption features.

  • How can I download from the cloud the latest version of an app?

    GGot a new iPad. When I download my level 105 game it starts me over at level 1. I've triEd a number of times thinking I needed to let cloud backup process. But it's been 3 days now and it still starts me over.

    Make a Virtual Copy and reset it. This is your before-version. Take this and the original to the print module. This works for a bunch of photos, too.
    After printing, delete the VCs.

Maybe you are looking for

  • No more access to my iMac

    Hi there, a few days before everything worked fine, but since then there's no more possibility to get an access to my iMac from the Wi-Fi Network. The applications in use are EyeTV and AppleTV. It is not possible to get access from the iPhone to EyeT

  • CIN configuration for capital goods

    Dear All, I have to configure CIN for capital goods purchase. Please let me know the important configuration required for the same. where we can set 50% on hold conditions ? Regards, Umesh

  • How do I changer the print size

    How do I change the print size

  • How do I find my mac os x password

    Have no idea what my "Mac OS X password is, and am being asked for it to download an 1Password update

  • CONNECTING TWO SUN SYSTEMS

    I am new to sun sytems, I recently purchase two systems ultra 60 and sparc 20 I installed both solaris 7, I also have 8port hub, what I would like to know is how do connect these two systems, I don't want go to the outside world yet just home network