Excel and SAP

Hi all,
I want to put one button in Excel, which would download some data from SAP tables with the help of RFC function mdoules.
please tell me how it can be done?
Please help me as i need it urgently.
Thanks in advance,
Jigs.

Hi Jigs,
I don't think you can do that from excel. SAP .Net connector runs on Visual Studio .Net, so perhaps you can do a program in VB.Net. This is of the same language anyway.
Consult the SAP NetWeaver .NET Technologies forum if you want to do this.
Reward points if helpful.
Regards,
Kenny

Similar Messages

  • How to upload data from excel to SAP using VB script or Macros

    Hi Guys,
    I want to make a macro enabled Excel sheet which  i can use to upload huge data on SAP . I read some discussion but didnt get anything. Please help me with a step by step document.

    Hi,
    Please refer below link.
    Need help from Excel and SAP expert! [SOLVED]
    http://visualbasic.ittoolbox.com/groups/technical-functional/vb-vba-l/call-transaction-in-sap-from-excel-vba-macro-and-download-alv-list-object-results-to-spreadsheet-3335996
    Regards,
    Rafi

  • How to upload data from excel to SAP and options to be used

    How to upload data from excel to SAP and options to be used
    thank you,
    Regards,
    Jagrut Bharatkumar shukla

    Hi Jagrut,
        You can use gui_upload.
    chk the sample program mentioned below.
    REPORT ZFTP .
    DATA: BEGIN OF I_FILE OCCURS 0,
    DATA(2000) TYPE C,
    END OF I_FILE.
    DATA: BEGIN OF I_FILE2 OCCURS 0,
    DATA(2000) TYPE C,
    END OF I_FILE2.
    DATA: W_COUNT TYPE I.
    PARAMETERS: P_FILEN TYPE STRING,
    P_FILE2 TYPE STRING,
    P_NUM(4) TYPE N..
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILEN.
    PERFORM F_FILE_GET USING P_FILEN TEXT-G01.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE2.
    PERFORM F_FILE_GET USING P_FILE2 TEXT-G01.
    START-OF-SELECTION.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = P_FILEN
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    VIRUS_SCAN_PROFILE =
    NO_AUTH_CHECK = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    tables
    data_tab = I_FILE
    IF SY-SUBRC <> 0.
    MESSAGE E024(Z1).
    ENDIF.
    LOOP AT I_FILE.
    W_COUNT = W_COUNT + 1.
    IF NOT W_COUNT > P_NUM.
    MOVE I_FILE TO I_FILE2.
    APPEND I_FILE2.
    ENDIF.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    filename = P_FILE2
    FILETYPE = 'ASC'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = 'X'
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = I_FILE2
    FIELDNAMES =
    *& Form F_FILE_GET
    text
    -->P_P_FILEN text
    -->P_TEXT_G01 text
    FORM F_FILE_GET USING L_FILENA L_TEXT.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    DEF_FILENAME = ' '
    DEF_PATH = ' '
    MASK = ',.,*.TXT.'
    MODE = 'O'
    TITLE = L_TEXT
    IMPORTING
    FILENAME = L_FILENA
    rc =
    EXCEPTIONS
    INV_WINSYS = 1
    NO_BATCH = 2
    SELECTION_CANCEL = 3
    SELECTION_ERROR = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Reward if helpful.
    Regards,
    Harini.S

  • Sharing and displaying Excel and pdf documents in SAP BO Mobile

    Hello all,
    I have one quick question. Is it possible to share excel and pdf documents through SAP BO Mobile?
    I tried it uploading documents to BO Launch pad and assigning them to Mobile category. I can't see them in my ipad. Is there another way to share these kind of files through SAP Mobile in mobile devices? and how?
    Thanks.

    No that won't do it. Because my users have their own excels which are not related to BO or BW platforms. They are entering data manually to excel spreadsheets and reporting. We just want to upload them to BO platform and let them share those files with other users.
    I know I could create a webi report on top of excel, but we don't want to spend redoing the reports in excel.
    Thanks though.

  • Extract SAP Background Job list to excel and E-mail to User

    Hi Experts,
    I am a Basis consultant and have a requirement to download the list of finished & cancelled SAP BG jobs of previous week to excel and send e-mail to Users. For now we are doing this manually every week, Is this possible to automate this process? Please help to share your views.
    Thank you very much in advance.
    Regards,

    Hi Mariano,
    Thanks for your reply. Yes, I have already checked TBTC* tables but i want to know is there any standard report/program that can be scheduled on daily basis to download all the required data from SAP to excel?
    Regards,

  • Mass Master data Upload from MS Excel and JDE into SAP ( ECC 6.0)

    Hi
    We are deciding the best method of uploading 2 million fixed assets Master data from Excel and JDE
    We are following Batch Input (RAALTD001) and Direct Input methods (RAALTD11)
    I am looking for some other efficient alternative for this upload
    Look forward ot hear form you experts !!
    Thanks
    Milind

    hi
    good
    both works not possible simultaneously.
    If you want to do it in two separate task than you can use the GUI_UPLOAD function module to fulfill your requirement.
    thanks
    mrutyun^

  • Upload data from Excel into SAP CRM using webservices

    Hi,
               I want to upload the data from EXCEL into SAP CRM using a web  service, can anyone say me the process and also how to map the excel and the source code structures.
    Thanks,
    Sanju.

    Try the following :
    Class: CL_GUI_FRONTEND_SERVICES
    Method: GUI_UPLOAD
    Thanks
    <b>Allot points if this helps!</b>

  • Excel to SAP R/3

    Hi All,
    I need to create automation for uploading Excel data onto SAP R/3 using VBA.Have never done this before.Hence a few questions.
    1.Once SAP is installed what references do i need to put in the VB Editor under Tools->references in order to connect to SAP and use its objects?
    2.Can i achieve uploading of data from Excel using ODCBC.
    3.I searched the net for excel to SAP links and found a term called RFC functions.What is RFC.
    4.Do we need ABAP coding as well to achieve the same?
    If someone can help me with the code for uploading data from excel to SAP,it would be great.Any reply in this regard will be highly appreciated.
    Rgds

    okay, here we go. As said before, I'll post here a series of comments outlining the use of webservices in the office2003 family to interact with an NW ABAP backend.
    Specs: Office2003 with the Webservice Toolkit installed (Gregor's link; read the instructions carefully, especially make sure that you have the MSXML3.0-dll installed too); ABAP 6.40+ (I'll use a 7.0 system here); PHP5.2.0 with soap enabled for some quick tests;
    In this first and easiest example we will specify a report within a Word document and download the coding to the Word document.
    First we create the webservice on the backend, that is, a function module and let run the webservice wizard over it:
    FUNCTION ZTW_READ_REPORT.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(PROGRAMM_NAME) TYPE  SY-REPID
    *"  EXPORTING
    *"     VALUE(LINES_OF_REPORT) TYPE  ZTW_TABLE_OF_CODE_LINES
    *"     VALUE(ERRORSTRING) TYPE  STRING
      errorstring = ''.
      refresh lines_of_report.
      read report programm_name into lines_of_report.
      if lines_of_report is initial.
        errorstring = 'No such report!'.
      endif.
    ENDFUNCTION.
    /code
    ZTW_TABLE_OF_CODE_LINES is a table based on the structure DDS02.
    Very simple, return the coding for a given report name or 'No such report!' in case it does not exist. RFC enable the FM!
    Next we run the webservice wizard and create a webservice ZTW_READ_Report and release it for the SOAP runtime.
    Now let's get the WSDL URL by selecting the webservice in transaction WSADMIN and clicking the WSDL button. A browser window opens and we copy the URL.
    Sidestep: Let's test the service in a PHP script run from the commandline (i.e. without webserver set up).
    <?
    $login    = "USER";
    $password = "PW123";
    $proxyhost = '111.222.333.444;
    $proxyport = 3128;
    // WSDL URL PL5
    $wsdlurl = "http://us4484.wdf.sap.corp:50084/sap/bc/srt/rfc/sap/ZTW_READ_REPORT?"
           . "sap-client=201&sap-user=" . $login . "&sap-password=" . $password . "&sap-language=DE&wsdl=1.1";
    $programm_name = $argv[1];
    try {
         $client = new SoapClient($wsdlurl,
           array(
           'proxy_host'  => $proxyhost,
           'proxy_port'  => $proxyport,
           'login'     => $login,
           'password'    => $password,
           'trace'       => true,
           'exceptions'     => true));
    catch(SoapFault $e) {
      echo 'Caught a Constructor Error: - ' . $e->faultstring;
    if (isset($client)) {
         try {
           $ra = $client->ZtwReadReport(array(
                'ProgrammName'         => $programm_name
         catch (SoapFault $e) {
           echo 'Caught an Error: - ' . $e->faultstring;
         if ($ra->Errorstring == "") {
         $node = $ra->LinesOfReport;
         foreach ($node as $val1) { //item
           foreach ($val1 as $val2) { //Line
                foreach ($val2 as $val3) { //Value
               echo $val3 . "
         else { echo $ra->Errorstring; }
    else { echo 'No client object!'; }
    ?>
    /code
    we can run this program from the (win) commandline with
    php scriptname.php reportname
    /code
    (make sure your php is on the path and that you're in the directory where your script is or use the full path name)
    Notice the full WSDL URL http://servername:50084/sap/bc/srt/rfc/sap/ZTW_READ_REPORT?sap-client=201&sap-user=USER&sap-password=PW123&sap-language=DE&wsdl=1.1";
    We'll need this URL in the next step.
    We open a MS Word Document and go to Tools|Macro|VisualBasic Editor. Inside the Editor we go to menu Tools and find an entry 'web service references' (unfortunately I've a German Version of Word at hand at the moment so I've got to guess a little, what the English menu entries might be called). If you do not find such an entry, your SOAP Toolkit installation did not work.
    Choosing this we get a dialog which, in the lower left corner allows to select 'webservice URL'. Enable this and enter the URL mentioned before. Click Search. If everything works, we get a description of our webservice in the right hand side box.
    Select the webservice found (mark the checkbox) and click 'Add'. This creates some VBA proxy classes representing your webservice.
    In the VisualBasic Editor they can be found on the left hand side box under Project|Class Modules. They are
    - clsof_Factory_ZTWREADREPORT
    - clsw_ZTWREADREPORTService
    - struct_D022S
    Let's have a look at clsw_ZTWREADREPORTService. In the comments at the start of the script we find an explanation about the originationg WSDL and something on the usage of this proxy.
    'Example:
    ' Dim ExampleVar as New clsws_ZTWREADREPORTService
    ' debug.print ExampleVar.wsm_ZtwReadReport("Example Input")
    /code
    Okay, all that's left to do, is to write a little Macro utilizing this proxy. Here we go:
    Insert a new module to your VBA project and create a subroutine inside.
    Sub read()
    Dim errorstring As String
    Dim lor As Variant
    Dim ExampleVar As New clsws_ZTWREADREPORTService
    Dim report_name As String
    report_name = InputBox("Report:")
    errorstring = ExampleVar.wsm_ZtwReadReport(report_name, lor)
    Selection.TypeText Text:="Report" & report_name
    Selection.TypeParagraph
    For i = LBound(lor) To UBound(lor)
        With Selection
          .Font.Name = "Arial monospaced for SAP"
          .Font.Size = 10
          .TypeText Text:=lor(i).Line & vbCrLf
        End With
    Next
    End Sub
    /code
    When executed (Tools|Macro|Macros->read), this macro pops up an input box, allowing you to enter a programme name, then downloads the coding of that report, formats it a little (10 pt Arial monospaced for SAP) and pastes it into our word document.
    Voilá, done.
    What have we learnt so far:
    - installing the SOAP toolkit into Office2003
    - testing a webservice using commandline PHP
    - creating webservice proxy functions in VBA
    - allow dynamic user interaction with the document (input box) and therefore subsequently with the webservice
    - calling a webservice from within an Office document (i.e. passing data to the ABAP Service & retrieving data from it)
    Basically, that is all you need to start. It works the same in every Office application. The better you know VBA now (especially the trilions of classes within the various applications) the fancier applications you can build. I'll try to chip in some ideas thereof in the next days.
    anton
    Message was edited by: Anton Wenzelhuemer
    Message was edited by: Anton Wenzelhuemer

  • Upload Sales order item from excel to SAP in VA01 thru frontend

    Hi,
    I am a front end user.
    SAP version 710.
    we enter sales order thru frontend in VA01 in SAP. The data is stored in excel.
    Currently the following is performed.
    Open VA01. In transaction entry screen ,
    Copy from Excel & Paste In SAP the following
    SAPID of the Customer
    PO No.
    PO Date
    Then copy and paste the line items from excel block by block i.e. depending on no. of line items seen in SAP per screen, copy that many lines from excel and Paste in SAP.
    Then select next block and
    SAVE the order.
    In excel there are many orders of different customers.
    I know litte bit of VBA.
    Can this be automated somehow.
    Pl. help.
    Thanks

    Hi Suhas,
    to automate the work in the SAP, it requires e.g. SAP GUI Scripting.
    1. Please check whether your client is allowed to SAP GUI Scripting. (ALT / F12 -> Options -> Scripting -> Enable Scripting)
    2. There should be only an indicator for Enable Scripting.
    3.The other two indicators by Notify When ... should be inactive.
    4.You would then be able to record a SAP GUI script. (ALT / F12 -> Script Recording and Playback... -> red dot)
    5.Please record all that to what you have to do it manually for first record in Excel.
    6.Stop recording (record and playback -> yellow dot)
    7.Please then present the results here in the forum for your script.
    8.Present us also your Excel sheet with some rows.
    Unfortunately I have no access to the VA01 transaction. But you can already read a lot in advance on the following link.:
    Re: Transferring data from Excel to SAP
    Regards,
    ScriptMan

  • SharePoint 2013 and SAP connectivity / SAP Gateway for Microsoft and Duet Enterprise 2.0

    Hello,
    we are investigating the connection possibilities of SharePoint 2013 with SAP.
    The basic scenario in our cases involves the transfer of documents and/or metadata from SharePoint to SAP possibly through a Workflow in SharePoint.
    From my research the most promising official (no 3d-party) interfaces that can be used are the Duet Enterprise 2.0 and the SAP Gateway for Microsoft.
    From my understanding both interfaces allow only the consumption of Data from SAP to SharePoint and not vice versa. Moreover the interoperability of documents seems not be supported. Are CRUD operations from a SharePoint native lists to SAP supported?
    Can someone please clarify this topics?
    I have found lots of documentation concerning the interfaces but not a clear answer to this questions.
    Many thanks in advance!
    Ioannis

    Hi Ioannis,
    It seems that there is no built in method to get data from SharePoint list in SAP.
    As a workaround, we can export SharePoint list to excel and then use that spread sheet as a source data in SAP.
    http://scn.sap.com/thread/3467263
    http://scn.sap.com/thread/3472110
    As this issue is regarding to SAP, I recommend you to ask the question in the SAP:
    http://scn.sap.com/welcome.
    More experts will assist you, then you will get more information relation to SAP.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Document in Easy DMS and SAP DMS is lock cannot be accessed

    Hello Guru,
    Document in Easy DMS and SAP DMS is lock cannot be accessed. when check in Easy DMS the document 123 excel file is not accessible cannot be open, it has an icon on pencil with red circle sign.
    when check in SAP GUi, the padlock is unlock, file cannot be open as well with error (File C:\EasyDMS\SAP_400\PRE1234567890 could not be accessed.
    how can we fixed this and unlock the document excel so that we can open it. Please advise. Thanks

    Hi,
    based on your description it seems to me that this original file is currently checked out for editing. So maybe another user is
    editing this file and so you cannot access it.
    If no other user edits the file you can try to use the function 'Exit Edit mode' in the context menu of EasyDMS. This will checkin the file again and restore the last checked in version.
    Best regards,
    Christoph

  • Excel to SAP using VBA

    I would like to know if there is any possible way of exporting data from excelt to SAP using VBA code. I was going through one of the blogs /people/kathirvel.balakrishnan2/blog/2006/05/09/data-upload-into-sap-from-microsoft-excel-150-vba-part
    where in the data was exported from excel to SAP with the help of table name. Can the same be done using trasaction codes in SAP? If so, how.
    Also, I would like to know,if I can record a particular session(as how we do for recording a macro in excel) and use the same recorded session for other entries too.
    Thanks a lot in advance.
    Regards,
    P.Yogesh

    Hello,
    Whatz impossible ??
    Yes you can export the data from excel to SAP using VBA, but you need to create fome RFC in SAP as well that will handle the data you will send.
    1. Create a RFC function in R/3 that will read a file from specific location and perform the respective transaction.
    2. Create your excel file with respective file format and call the RFC function in SAP passing the parameters as file name and other required details.
    3. SAP coding for RFC will be a single time activity and then onwads you can just create excel file for upload and use VBA code to initiate the RFC call.
    Hope this make some sence. Tell me if you have more queries.
    Regards,
    Vishal
    Reward points.. if helpful

  • Errors in excel using SAP OLE DB connection

    I'm trying to use the OLE DB connector in excel and keep getting the following error when I try to connect to our BW system:
    u201CCannot process Unicode RFC in non-Unicode systemu201D
    Has anyone else encountered this problem, and gotten around it?  We are not unicode yet, is this a requirement for using this connector and if so is there a non-unicode equivalent?  Appreciate any help.  Thank you.
    Ivano
    PS- Here's a couple of the articles I've been trying to follow:
    http://www.bi-expertonline.com/article.cfm?id=5048&s=4717b805-004b-4f5d-b703-3b414486e53f
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1031a475-a633-2a10-f4b4-ccfe615c0517

    bumpity bump bump

  • Trial, Xcelsius, Crystal and SAP trouble

    Post Author: Leandor
    CA Forum: Xcelsius and Live Office
    Dear friends,I'm new to Xcelsius world.I'm working with a SAP BEX query which feeds a Crystal Report (with two parameters, start date and end date in string format)I've used Live Office to create an Excel with this report imported into, and the two parameters points to two cells in the excel file.The live office refresh settings are: - refresh on demandThe Xcelsius connector is setted to refresh report on a trigger event (on change on a combo box writing value into an excel cell)The problem is: changing the value on the combo cell the refresh of the crystal report does not start.I can exclude errors with the combo, because i can see the values of parameters cells and trigger cell changing...I use:Xcelsius 4.5 TRIAL - Application Version 4.2.4.4 - File Version 1.1.0.2 - Addon Live Office Pack 1.0.1.3 / XRS Component 1.0.0.7 / Xcelsius SharePoint PackLive office 11.5.8.826Crystal Report XI Rel 2 - Product Version 11.5.8.826BO XI rev 2 sp 2BO Integration KIT for SAPAny idea? Help?May the TRIAL version not fully support Crystal reports ?Thank you in advance for your help

    Hi,
    the direct connectivity from Xcelsius to SAP BW is only supported on NW 7.01 SP03 or higher. For BW 3.1 you would have to use Live Office.
    XC, CR and LO Part 1 of 4
    /people/ingo.hilgefort/blog/2008/10/03/businessobjects-and-sap-part-1-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    XC, CR and LO Part 2 of 4
    /people/ingo.hilgefort/blog/2008/10/07/businessobjects-and-sap-part-2-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    XC, CR and LO Part 3 of 4
    /people/ingo.hilgefort/blog/2008/10/07/businessobjects-and-sap-part-3-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    XC, CR and LO Part 4 of 4
    /people/ingo.hilgefort/blog/2008/10/10/businessobjects-and-sap-part-4-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    Ingo

  • Create an Excel and send it as an email

    Hi All,
    I have an ALV block list which has 4 internal tables appened..
    I have displayed the data but i wanted to create an excel and mail it to the users who are intersted.
    as there are 4 internal tables displayed in the output how to send all of them into one excel sheet?
    Please help.
    Thank you,
    Suresh.

    hi Suresh,
    You have to fill an internal table with XML Strings.
    [https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/exportingdatatoExcel-XMLtotherescue]
    This Wiki explains how to generate XML String.
    data: begin of xml_data occurs 0,
          TDLINE like TLINE-TDLINE,
          end of xml_data.
    e.g.
    *Fill internal table with xml data
    TEXT = '<?xml version="1.0"?>'.
    move text to xml_data-tdline. append xml_data.
    TEXT = '<?mso-application progid="Excel.Sheet"?>'.
    move text to xml_data-tdline. append xml_data.
    TEXT = '<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"'.
    move text to xml_data-tdline. append xml_data.
    TEXT = ' <Worksheet ss:Name="Sheet1">'.
    move text to xml_data-tdline. append xml_data.
    TEXT = '  <Table ss:ExpandedColumnCount="22" >'.
    move text to xml_data-tdline. append xml_data.
    TEXT = '  </Table>'.
    move text to xml_data-tdline. append xml_data.
    TEXT = ' </Worksheet>'.
    move text to xml_data-tdline. append xml_data.
    TEXT = ' </Workbook>'.
    move text to xml_data-tdline. append xml_data.
    *Download data into xml file
    call function 'GUI_DOWNLOAD'
      exporting
      BIN_FILESIZE                    =
        FILENAME                        = 'C:     est.xml'
        FILETYPE                         = 'ASC'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
      WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
      SHOW_TRANSFER_STATUS            = ABAP_TRUE
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = xml_data
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
    if SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    hope this helps!
    Monalisa

Maybe you are looking for

  • IPhone does not appear as iTunes device

    Since the update my iphone has only intermitently appeared as a device in itunes.  How can i make it appear so i can sync it?

  • Authorization Object for PD infotype

    Hi everyone, Currently my user's authorization only allows him to have a display view of infotype 0025 (Appraisal) in PA30/PA20. However, he now needs to be able to Create and Change the infotype in PA30. What are the authorization objects that i nee

  • Songs play and timer runs, but no sound?

    My ipod (5th generation) starts playing a song and sounds great, but about halfway through a song it starts to sound crackly and then the sound cuts out all together. The timer for the song continues to countdown. This has happened for both the headp

  • Stenge error message on OAS 10.1.3.3 class missing

    I'm getting the following error when I run the application : I'm using OAS 10.1.3.0 and upgraded to 10.1.3.3 on Linux it strenge that according to the error message the server knows the missing class is available from the certain locations. but why i

  • DBtoFile

    Hi I have created a process to read the database file and write into a folder as file. mI have one database adapter, one transform activity, and one file adapter. while checking in the console i could find that my database adapter read all the record