Hi,I want  ABAP program to create an file of this data and to upload in app

Hi Sir/Madam,
           I want  ABAP program to create an file of this data and to upload in application server.this is urgent requirement.plz reply soon. i'll b thankful to u.
Regards,
Vishali

Hi ,
Use this abap code .this will create a file in AL11 that you can use .
data: d_msg_text(50),
      v_string(20000) type c,
      v_filename type rlgrap-filename,
******Create a file on app server
concatenate '<directory name present in AL11 case sensitive>' ' filename.CSV' into v_filename .
condense v_filename no-gaps .
open dataset v_filename for output in text mode
encoding default message d_msg_text.
if sy-subrc ne 0.
  write: 'File cannot be opened. Reason:', d_msg_text.
  exit.
endif.
****Header for file
concatenate 'information you want to write in file like header etc ' into v_string separated by '|'.
transfer v_string to v_filename.
*****Write data into file by looping an internal table
loop at  <internal table > assigning <work area>.
  concatenate      <work area>-field name1   <work area>-field name2    into v_string separated by '|' .
  transfer v_string to v_filename.
endloop.
close dataset v_filename.
Hope this will solve your purpose.
Regards,
Jaya Tiwari

Similar Messages

  • Sample abap program to create XML files

    Hi friends,
    IS there is a sample abap program to create an XML file.
    regards
    kaushik

    Hope the below code is helpfull.....
    *& Report  ZSAN_XML                                                    *
    REPORT  ZSAN_XML                                .
    * Report ZPRUEBA_MML_13 *
    * Export an internal table to XML document *
    * NO BORRAR ESTE CODIGO *
    *REPORT ZPRUEBA_MML_13.
    * PANTALLA SELECCION *
    PARAMETERS: GK_RUTA TYPE RLGRAP-FILENAME.
    * PANTALLA SELECCION *
    * TYPE TURNOS *
    TYPES: BEGIN OF TURNOS,
    LU LIKE T552A-TPR01,
    MA LIKE T552A-TPR01,
    MI LIKE T552A-TPR01,
    JU LIKE T552A-TPR01,
    VI LIKE T552A-TPR01,
    SA LIKE T552A-TPR01,
    DO LIKE T552A-TPR01,
    END OF TURNOS.
    * TYPE TURNOS *
    * TYPE SOCIO *
    TYPES: BEGIN OF SOCIO,
    NUMERO LIKE PERNR-PERNR,
    REPOSICION LIKE PA0050-ZAUVE,
    NOMBRE LIKE PA0002-VORNA,
    TURNOS TYPE TURNOS,
    END OF SOCIO.
    * TYPE SOCIO *
    * ESTRUCTURA ACCESOS *
    DATA: BEGIN OF ACCESOS OCCURS 0,
    SOCIO TYPE SOCIO,
    END OF ACCESOS.
    * ESTRUCTURA ACCESOS *
    * START OF SELECTION *
    START-OF-SELECTION.
    PERFORM LLENA_ACCESOS.
    PERFORM DESCARGA_XML.
    END-OF-SELECTION.
    * END OF SELECTION *
    * FORM LLENA_ACCESOS *
    FORM LLENA_ACCESOS.
    REFRESH ACCESOS.
    CLEAR ACCESOS.
    MOVE: '45050' TO ACCESOS-SOCIO-NUMERO,
    'MOISES MORENO' TO ACCESOS-SOCIO-NOMBRE,
    '0' TO ACCESOS-SOCIO-REPOSICION,
    'T1' TO ACCESOS-SOCIO-TURNOS-LU,
    'T2' TO ACCESOS-SOCIO-TURNOS-MA,
    'T3' TO ACCESOS-SOCIO-TURNOS-MI,
    'T4' TO ACCESOS-SOCIO-TURNOS-JU,
    'T5' TO ACCESOS-SOCIO-TURNOS-VI,
    'T6' TO ACCESOS-SOCIO-TURNOS-SA,
    'T7' TO ACCESOS-SOCIO-TURNOS-DO.
    APPEND ACCESOS.
    CLEAR ACCESOS.
    MOVE: '45051' TO ACCESOS-SOCIO-NUMERO,
    'RUTH PEÑA' TO ACCESOS-SOCIO-NOMBRE,
    '0' TO ACCESOS-SOCIO-REPOSICION,
    'T1' TO ACCESOS-SOCIO-TURNOS-LU,
    'T2' TO ACCESOS-SOCIO-TURNOS-MA,
    'T3' TO ACCESOS-SOCIO-TURNOS-MI,
    'T4' TO ACCESOS-SOCIO-TURNOS-JU,
    'T5' TO ACCESOS-SOCIO-TURNOS-VI,
    'T6' TO ACCESOS-SOCIO-TURNOS-SA,
    'T7' TO ACCESOS-SOCIO-TURNOS-DO.
    APPEND ACCESOS.
    ENDFORM.
    * FORM LLENA_ACCESOS *
    * FORM DESCARGA_XML *
    FORM DESCARGA_XML.
    DATA: L_DOM TYPE REF TO IF_IXML_ELEMENT,
    M_DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,
    G_IXML TYPE REF TO IF_IXML,
    W_STRING TYPE XSTRING,
    W_SIZE TYPE I,
    W_RESULT TYPE I,
    W_LINE TYPE STRING,
    IT_XML TYPE DCXMLLINES,
    S_XML LIKE LINE OF IT_XML,
    W_RC LIKE SY-SUBRC.
    DATA: XML TYPE DCXMLLINES.
    DATA: RC TYPE SY-SUBRC,
    BEGIN OF XML_TAB OCCURS 0,
    D LIKE LINE OF XML,
    END OF XML_TAB.
    CLASS CL_IXML DEFINITION LOAD.
    G_IXML = CL_IXML=>CREATE( ).
    CHECK NOT G_IXML IS INITIAL.
    M_DOCUMENT = G_IXML->CREATE_DOCUMENT( ).
    CHECK NOT M_DOCUMENT IS INITIAL.
    WRITE: / 'Converting DATA TO DOM 1:'.
    CALL FUNCTION 'SDIXML_DATA_TO_DOM'
    EXPORTING
    NAME = 'ACCESOS'
    DATAOBJECT = ACCESOS[]
    IMPORTING
    DATA_AS_DOM = L_DOM
    CHANGING
    DOCUMENT = M_DOCUMENT
    EXCEPTIONS
    ILLEGAL_NAME = 1
    OTHERS = 2.
    IF SY-SUBRC = 0.
    WRITE 'Ok'.
    ELSE.
    WRITE: 'Err =',
    SY-SUBRC.
    ENDIF.
    CHECK NOT L_DOM IS INITIAL.
    W_RC = M_DOCUMENT->APPEND_CHILD( NEW_CHILD = L_DOM ).
    IF W_RC IS INITIAL.
    WRITE 'Ok'.
    ELSE.
    WRITE: 'Err =',
    W_RC.
    ENDIF.
    CALL FUNCTION 'SDIXML_DOM_TO_XML'
    EXPORTING
    DOCUMENT = M_DOCUMENT
    IMPORTING
    XML_AS_STRING = W_STRING
    SIZE = W_SIZE
    TABLES
    XML_AS_TABLE = IT_XML
    EXCEPTIONS
    NO_DOCUMENT = 1
    OTHERS = 2.
    IF SY-SUBRC = 0.
    WRITE 'Ok'.
    ELSE.
    WRITE: 'Err =',
    SY-SUBRC.
    ENDIF.
    LOOP AT IT_XML INTO XML_TAB-D.
    APPEND XML_TAB.
    ENDLOOP.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE = W_SIZE
    FILENAME = GK_RUTA
    FILETYPE = 'BIN'
    TABLES
    DATA_TAB = XML_TAB
    EXCEPTIONS
    OTHERS = 10.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.
    * FORM DESCARGA_XML *

  • ABAP Program to Create TRs in SOLMAN

    Currently, we are creating TRs through SOLMAN_WORKCENTER transaction. It is being done manually by going to 'Change management' Tab in 'SOLMAN_WORKCENTER'->'PROJECTS'(QGATE Project not CHARM)-> TR is being created for a specific project using 'Create Transport Request' button.
    I was wondering, whether this process can be automated, so that developers can directly create a TR, through a web application or email. The frontend application will be creating TR in backend in SOLMAN after some validations.
    I'm trying to write an ABAP program to create TRs in backend in SOLMAN, following the same process, which is being followed now using SOLMAN_WORKCENTER. This program will be called by the frontend application. This way developers can create a TR, without having direct access to SOLMAN.
    I tried to use CL_CTS* classes, but it's not working. Kindly suggest some BAPIs or classes available for it.
    If anybody has already worked in development of a similar solution, kindly share the technical knowhow. Also, please let me know any solutions from SAP available for it.
    Thanks in advance for your help....

    Thanks a lot for responding Guilherme.....
    But, we wanted to add our own validations as per our standards like naming convention of TRs, project to be used etc...
    Otherwise, the TRs created by developers in an incorrect approach, will be very hard to manage.
    That's why I was looking for an ABAP code to create a TR in SOLMAN_WORKCENTER, so that we can add our own validations to it before creating the TR. If the validations fail, it should't create the TR.
    Using the webdynpro link for SOLMAN_WORKCENTER as suggested, some of the functionalities can be controlled by authorizations maybe. But, we'll not able able to add any extra validations required.

  • How to create backup file on itunes for ipod touch 4g game apps data? Is there a way to do it? I want to try an app on my friend's computer, but you can't add apps on another computer without having your own ipod's data being deleted. Thx for any help!

    How to create backup file on itunes for ipod touch 4g game apps data? Is there a way to do it? I want to try an app on my friend's computer, but you can't add apps on another computer without having your own ipod's data being deleted. Thx for any help!
    I want to know how to create a backup file (because I'm pretty new with itunes, and it's hard to use it for me still), how to store my app data/media/videos, etc. And how I can retrieve them back when I'm done with the app I tried on my friend's computer.
    If anyone can help, it'd be great! Thank you so much!

    Sure-glad to help you. You will not lose any data by changing synching to MacBook Pro from imac. You have set up Time Machine, right? that's how you'd do your backup, so I was told, and how I do my backup on my mac.  You should be able to set a password for it. Save it.  Your stuff should be saved there. So if you want to make your MacBook Pro your primary computer,  I suppose,  back up your stuff with Time machine, turn off Time machine on the iMac, turn it on on the new MacBook Pro, select the hard drive in your Time Capsule, enter your password, and do a backup from there. It might work, and it might take a while, but it should go. As for clogging the hard drive, I can't say. Depends how much stuff you have, and the hard drive's capacity.  As for moving syncing from your iMac to your macbook pro, should be the same. Your phone uses iTunes to sync and so that data should be in the cloud. You can move your iTunes Library to your new Macbook pro
    you should be able to sync your phone on your new MacBook Pro. Don't know if you can move the older backups yet-maybe try someone else, anyways,
    This handy article from Apple explains how
    How to move your iTunes library to a new computer - Apple Support''
    don't forget to de-authorize your iMac if you don't want to play purchased stuff there
    and re-authorize your new macBook Pro
    time machine is an application, and should be found in the Applications folder. it is built in to OS X, so there is nothing else to buy. double click on it, get it going, choose the Hard drive in your Time capsule/Airport as your backup Time Machine  and go for it.  You should see a circle with an arrow on the top right hand of your screen (the Desktop), next to the bluetooth icon, and just after the wifi and eject key (looks sorta like a clock face). This will do automatic backups  of your stuff.

  • Thank you for your service.   I was most disappointed to find, however, that the letters I really wanted (Adobe Garamond Alternate Caps) is not in this collection and indeed, one now has to use another fancy designing program to construct those letters. I

    Thank you for your service.
    I was most disappointed to find, however, that the letters I really wanted (Adobe Garamond Alternate Caps) is not in this collection and indeed, one now has to use another fancy designing program to construct those letters. I can’t afford to buy Photoshop just to construct two special capital letters. I’ve used the B and M in my logo for Balquhidder Music for years - but from jpgs - and I was hoping to have more flexibility in the future. I spent $169 to make sure I am in compliance. But I didn’t get anything of use to me.
    I can’t understand why those Alternate Caps are not part of this - or any other package. I thought Adobe was capable of amazing things.
    I assume I am whistling in the dark. So have a nice day.

    Actually, when Adobe moved from Type 1 fonts to OpenType CFF fonts, all the so-called “expert typefaces” were consolidated into the base fonts. In other words Adobe Garamond Pro Regular not only has the Western Latin characters of the original Type 1 version of Adobe Garamond, but also has alternate Latin capitals (with titling, titling floating accents, and stylistic alternates), alternate Latin lowercase (swash and superiors), Latin small capitals (alphabetic and floating accents), ligatures, multiple numeric forms (including lining tabular, lining proportional, oldstyle tabular, oldstyle proportional, superscripts, scientific inferior, numerator, denominator forms, fractions, mathematical operators, etc.) plus a raft of other special symbols.
    OpenType fonts are Unicode-based and allow for more than the 256 characters in Type 1 fonts which required multiple typefaces all with mappings to a standard keyboard to accommodate all these glyphs.
    Thus, hopefully your disappointment will turn to joy.
    To assist you in understanding OpenType fonts and to show you what is in the current Adobe Garamond fonts, I have attached a few PDF files for your perusal.
    Let us know if you have any questions.
               - Dov

  • I used to make booklets on Publisher that would be printed on 11X17 folded and stapled down middle.  Can someone please tell me best program to create a document like this in on a mac and how to print it on 11X17?

    I used to make booklets on Publisher that would be printed on 11X17 then be folded and stapled down middle.  Can someone please tell me best program to create a document like this in on a mac and how to print it on 11X17?

    Try iStudio Publisher

  • Creating a file that has drag and drop feature

    Hi,
    I'm working on a memory experiment and I want to create a file with a drag and drop feature.  I set an image as layer 1, and several images as layer 2. I would like to create a file where people can drag and drop on of the images from layer two onto a slot in layer one.  Ideally I would like it to remain stable if the place an image in the slot (meaning if they try to place one of the images from layer 2 into layer 1, I want it to allign perfectly).
    Help is greatly appreciated.
    Thanks.

    Check if using the Smart Guides snapping is something that could be useful for this. If the size of the objects are exactly the same the snapping is relatively easily when trying to put one object on the place of another. If the sizes are not the same then the center point indicator should be used as a target which require a little bit more effort. However enabling the Smart Guides is not a file feature, the user has to turn it on/off in Illustrator affecting all open documents.

  • The latest changes to the function to "Upload to FTP host" has rendered this useless - no point using a program like Muse if I can not easily and automatically upload the work to the webserver!

    The latest changes to the function to "Upload to FTP Host" has rendered this useless - no point using a program like Muse if I can not easily and automatically upload the work to the webserver!  I use BlueHost webhosting that has a primary domain and I have several domains with that account (as sub-domains or folders on this server) - with past versions of Muse when uploading pages it simply opened an alert window to tell me (what I already know) that the website I was uploading does not point to the primary domain BUT NOW Muse tries to create a new separate folder in the root directory of the primary domain - completely ignoring the directory path I am giving it - useless!  Why make these senseless changes to the program - and so often - very frustrating it is like amateur ware!.

    Hi Stephen,
    There are some issues with the upload to ftp via Muse, which the engineering team is aware of and those will be fixed in a future build of Muse. At this point the work around would be to export the html from Muse and then upload via some third party ftp client like filezilla.
    I will recommend that you keep an eye on our release notes page to get more updates on it - Release notes | Adobe Muse CC
    - Abhishek Maurya

  • Where do I begin to create my website using this G5 and Pages '08?

    Where do I begin to create my website using this G5 and Pages '08? I don't even know where to start...
    I made a temporoary website on wordpress with my pc -- now I want to see what is possible with this G5 and Pages '08 by bro gave me.

    The current version is iLife '11. iWeb is up to v4 and I think has been out since 2007.
    There is no iLife folder, the applications are loose within the Applications folder.
    You can purchase a boxed version of iLife from Apple or an Apple reseller.
    The Mac App store does not offer iWeb and you would need OSX 10.6.6 to use the App Store.
    If you began your website using WordPress, why not continue to use it, it does not matter what system you are on, Windows, Mac or Linux, WordPress is web based.
    Peter

  • How do I create rules files in Sap Data Services

    Hello Guys,
    I'm new with Bo Sap Development Data Services, and am migrating SSIS packages 2008 for the bods.
    I am studying the process of cleanup and word processing via bods.
    But I noticed that my installation does not have Rules Files.
    My question is:
    How do I create rules files in Sap Data Services library with support for Portuguese?

    Hello Ramana,
    So with version 4.2 of Sap Data Services do not currently have the rules files?
    How to mount files for text comparison Cleanse facing Addresses, Names, Clients, Companies? If you can give me some help link?
    Thanks again ...

  • Photoshop CS6 cannot open or create new file.  This happened after running CCleaner

    Photoshop CS6 cannot open or create new file.  This happened after running CCleaner

    Hi, I've been asked to join this discussion. CCleaner is a nice tool, but if you used the Registry Cleaner that came with it, it might have done something to Photoshop's registry entries. There is that danger in using them.
    One thing CCleaner does is leave a backup of the registry, or you can use Windows System Restore to go to that point before you ran the Cleaner. Let's go with System Restore. Review the instructions.
    System Restore - Microsoft Windows
    If you suspect a virus, I'd like to direct you here http://bleepingcomputer.com/
    That would be the "Am I infected?" forum.
    They have the tools, you run them, and copy and paste the logs that are generated. They are very good at this, but it is super important you follow directions and don't leave until the process is completed.
    Gene

  • Create XLS file with XML data

    Hello,
    Is there Java libraries to create Excel files from XML data, like FOP that creating PDF files ?
    Another question : where can I find the javadoc of FOP's classes, particularly org.apache.fop.apps.Driver class ? Because I can't find it on http://xml.apache.org
    Thanks

    Use http://jakarta.apache.org/poi/

  • Ok, so I want to buy the new iPod touch 5g this week and I have an iPhone 4. I want to transfer all the data from the phone to the iPod and have the files the exact same. I don't want to redo data, say erase game data (campaigns, achievements)...

    Ok, so I want to buy the new iPod touch 5g this week and I have an iPhone 4. I want to transfer all the data from the iPhone to the iPod and have the files the exact same. I don't want to redo data, say erase game data (campaigns, achievements)... I have apps that have very important data on them and if I sync it to iTunes and then transfer all that data to the iPod Touch 5g, will that erase app data?

    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • Import data from ABAP program to Excell template file

    Hello everyone
    I have  a such task: In abap program I have fields(screen fields), which I want to import into excell file. I don't want to export into empty file but into ready template .xls. Is there any possibility to match corresponding fields?
    I really need to know, I will be gratefully for any suggestions.
    Greetings

    Hi Katarzyna ,
    something like
    DATA: EXCEL TYPE OLE2_OBJECT.
    DATA: BOOKS TYPE OLE2_OBJECT.
    DATA: BOOK  TYPE OLE2_OBJECT.
    DATA: CELL  TYPE OLE2_OBJECT.
    DATA: FONT  TYPE OLE2_OBJECT.
    DATA: FILE  TYPE OLE2_OBJECT.
      CREATE OBJECT EXCEL 'EXCEL.APPLICATION'.
      CALL METHOD OF EXCEL 'WORKBOOKS' = FILE.
      CALL METHOD OF  FILE 'OPEN' EXPORTING #1 = P_FILE
                                            #2 = 1.  
      CALL METHOD OF EXCEL 'CELLS' = CELL EXPORTING #1 = P_LINE
                                                    #2 = P_COLUMN.
      SET PROPERTY OF CELL 'VALUE' = P_VALUE.
      CALL METHOD OF EXCEL 'QUIT'.
    This is just a compilation from a complex program. Do some modularization (i.e. create FORM fill_cell using P_line P_column P_value...)
    Hope I did not forget anything. Meanwhile we have much more modern and advanced methods and classes - this one is of 2000 (Release 4.5?).
    Regards,
    Clemens

  • Executing ABAP program in RFC to File

    Hi,
    In the RFC to File, the RFc is called in the ABAP program.
    So when i am executing the ABAP program for the 1st time it doesnt reach PI, only when clicking the execute button multiple times execution reaches PI and a message ID is created along with the required data.
    what is the problem? why is it not reaching PI when i execute at the first time itself?

    Hi Ravi,
    Thanks for the response.
    >>> First u have check RFC destinatios wheter it working or not. 1) U r program ID should match with RFc destination and RFC adapter configurations.
    I have tested the RFC destinations and it works fine. I have also given the same Program ID in adapter configuration
    >>>2)should write commit work at last in the Abap Program.
    Commit is present at the end of the ABAP program
    Cache refresh was also done. But still facing the same problem.
    >>>5)Check in SM58 .
    And we are getting the following errors randomly:
    Server repository could not create function template for 'ZFN_EXTRACT
    Commit fault: com.sap.aii.adapter.rfc.afcommunication.RfcChannelMismatchE

Maybe you are looking for

  • Error message -36 when copying large  files from Firewire drive

    I have kept several large audio files as backup on an external LaCie Firewire drive. When trying to copying them back, almost all of them starts to copy, then stops and (after a minute or so) report error message -36. I have run both Apple's Disktool

  • HT6413 my icloud cant open the password even i reset my password .what can i do to fix the i cloud password?

    MY I CLOUD PASSWORD CANT OPEN EVEN I RESET THE PASSWORD . THEY ALWAYS ASK THE PASSWORD .HOW CAN I FIX THIS PROBLEM? PLEASE HELP ME

  • Using sql loader to load data

    Hi, My name is Roshan. I'm pretty new to Oracle. I'm trying to load some rows from a comma delimited ascii file to a table with 3 varchar2 fields using sql*loader. Can anybody give me an example ? Thanks, Roshan.

  • Weird WebUtil Error.

    I am attempting to test WebUtil "client_host" on an HP-UX 9iAS install. I have created a form that has a command line that I can enter the command I want to run and a button to run it. I have sucessfully tested this form on both a Windows 9iDS and 9i

  • Retain item in Inbox and confirm end of processing

    HI All, I am trying to implement retaining item in inbox if user selects to cancel. I was told confirm end of processing is best otpion, when I try to change the task using pftc it still shows the confirm end of processing and background processing a