Uploading File to ABAP AS from SAP UI5

Hello,
I am attempting to upload files from SAP UI5 to ABAP AS.
How can I do that?
I did try via PHP to my local server and the same worked but do not know how to upload in case of ABAP AS.
Please help,
Thanks in advance.
Thanks and Regards,
Sarath

Hi Sarath,
I suggest you to try the following:
Create a service in the ICF (tcode SICF) and set a custom handler class that implements the interface IF_HTTP_EXTENSION.
Sample code for the custom handler class, (method IF_HTTP_EXTENSION~HANDLE_REQUEST)
DATA: lo_entity  TYPE REF TO if_http_entity.
DATA: l_data     TYPE string,
      l_filename TYPE string.
lo_entity = server->request->get_multipart( 1 ).
IF lo_entity IS BOUND.
  " If you want to retrieve the original name of the file
  l_filename = lo_entity->get_header_field( '~content_filename' ).
  " If the content of the file is not binary you can retrieve with the GET_CDATA,
  " otherwise you will have to use the GET_DATA method
  CALL METHOD lo_entity->get_cdata
        RECEIVING
          data = l_data.
ENDIF.
Set the service endpoint URL as the uploadUrl parameter of the FileUploader.
Hope it helps.
Regards,
Christian

Similar Messages

  • Fm for calling save dialouge box to save file in a system from sap

    fm for calling save dialouge box to save file in a system from sap
    Step by step of its usage pls,
    thank you,
    Regards,
    Jagrut BharatKumar Shukla

    hi
    FM is
    <b>POPUP_TO_DECIDE_LIST</b>
    USAGE:
    CASE r_ucomm.
    WHEN 'SAVE'.
    DATA: l_answer." no need to specify type
    DATA: t_spopli LIKE spopli OCCURS 0 WITH HEADER LINE.
    t_spopli-varoption = 'PDF'.
    APPEND t_spopli.
    t_spopli-varoption = 'EXCEL'.
    APPEND t_spopli .
    CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
             EXPORTING
    *          CURSORLINE               = 1
    *          MARK_FLAG                = ' '
    *          MARK_MAX                 = 1
    *          START_COL                = 0
    *          START_ROW                = 0
               textline1                = 'SELECT THE FORMAT OF THE OUTPUT'
    *          TEXTLINE2                = ' '
    *          TEXTLINE3                = ' '
               titel                    = 'SAVE AS'
    *          DISPLAY_ONLY             = ' '
            IMPORTING
              ANSWER                   =  l_answer
             tables
               t_spopli                 = t_spopli
            EXCEPTIONS
              NOT_ENOUGH_ANSWERS       = 1
              TOO_MUCH_ANSWERS         = 2
              TOO_MUCH_MARKS           = 3
              OTHERS                   = 4  .
           IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.
    IF l_answer = '2'.
    CALL FUNCTION 'GUI_DOWNLOAD'
    endif.
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • Login pop-up when launching Webdynpro ABAP application from SAP Inbox

    Hello All,
    We have configured our workflow to trigger WD ABAP application from SAP Inbox.
    However when we launch the workitem from SAP Inbox, we are getting a login pop-up screen in IE which prompts us to enter SAP password.
    Can you please help how can we avoid getting that login screen and how the WD ABAP application can single sign on from SAP GUI to IE for that user-id.
    Appreciate all your help.
    Regards,
    Samta.

    Hi Samta,
    You can configure User(RFC) and password for your webdynpro appl'n using SICF tcode.
    Path : /default_host/sap/bc/webdynpro/sap/(your wdp appln)
    Thanks
    Katrice

  • Create a table and upload data in MS ACCESS from SAP ABAP programming?

    Hi All,
    How to create a table in MS ACCESS database and Upload SAP database table data into MS ACCESS table using ABAP programming?
    Explain: My client requirement is " If he/she runs a ABAP Program, that will create a table and upload data into MS ACCESS Database table in background. "
    Could you please give the solution or code? I know the program RIACCESS and I went through the SAP Note 583698.
    Is this only solution for this?  Or Any other possibilities?
    Please give me solution.
    Thanks in advance.

    Hi,
    It is not possible to create tables in a non SAP schema from inside SAP.
    The SAP-Oracle license also does not allow you to create the table (see note 581312):
    the following actions, among other things, are therefore forbidden at database level:
    Creating database users
    Creating database segments
    Querying/changing/creating data in the database
    Using ODBC or other SAP external access methods
    Please refer following link,
    [Ckick Here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    You can also do it by LSMW,
    If you are using Access 97, you can download directly into an access
    database from SAP. See program RIACCESS for details. You have to establish
    an RFC destination PS_ACCESS_1 and 2.
    There are then a couple of function modules. Go to SE37 and put in
    msaccess and hit PF4.
    The following is from the readme file: sapgui/ps/readme.sap
    For the MS-Access interface SAP delivers 4 files:
    WDPSASTR.EXE This is an RFC server program that is called by SAP R/3
    (PS module). This program creates a MS Access database. The structure
    information of the tables is transferred from R/3. In addition to
    these tables a table named DDIC is created. This table contains the
    structure information and should in no case be modified or deleted.
    WDPSATAB.EXE This is an RFC server program that is called by SAP R/3
    after WDPSASTR. This program filles the tables of the database with data.
    There must not be made any changes of the structure of
    the tables between the calls of WDPSASTR and WDPSATAB.
    WDPSAZET.EXE This is an RFC client program that triggers work/time
    confirmations in the PS module of SAP R/3 (like transaction CN27 Collectiv
    confirm).
    WDPSAMAT.EXE This is an RFC client program that triggers material
    confirmations in the PS module of SAP R/3 (like transaction MB1A - Goods
    Please also refer following links,
    [Click here|Upload data from MS Access tables, to SAP tables.;
    Before using the program "RIACCESS", you need to install the PS utilities, which are part of SAPGUI install CD.
    It is available in the "SAPGUIPS directory".
    Then do the followings :
    1. Select transaction code SALE -> Systems in network-> Define RFC Destination.
    2. You will need two RFC destinations (TCP/IP connections for the front-end workstation).
    Setup the two RFC destinations PS_ACCESS_1 and PS_ACCESS_2 and you'll have to get them to point to
    wdpsastr.exe and wdpsatab.exe respectively.
    3. Then execute RIACCESS and choose PS_ACCESS_1 to generate access tables.
    The system must also be able to access the RFC-DLL files (librfc2.dll, librfc3.dll, librfc4.dll, librfc5.dll, librfc6.dll, vrfc.dll).
    Please note that Access only supports tables with up to 255 fields.

  • How to Upload documents using Gateway Service in SAP UI5?

    Hi Team,
    How to upload documents using Gateway Service in UI5 app.
    This is Attachment Functionality.using Gateway Service in Controller.JS/View.JS.
    Thanks in Advance.
    Regards,
    Satya

    Hi,
    I suggest you use the search function on scn/google...
    Anyways, here are some usefull links:
    How To Upload and Download Files Using SAP NW Gateway SP06
    Uploading files to SAP using HTML5 /AJAX/Gateway media links with real-time progress bar
    Kind regards,
    RW

  • Unable to save PDF file to local drive from sap after Above reader XI update.(Not as sap issue ,this is related to Adobe)

    Hi All,
    Users are unable to download/save file from sap after a adobe XI update.(no pop comes to save/open)
    Surprisingly,i am able to do so on my system without any adobe plug ins disabled or any registry editing.
    This is a strange behaviour and need to be resolved Asap....
    I contacted sap..this is not sap issue..this is a pure adobe reader bug.
    Please need help on this experts
    Feel free to comment for further details
    kind Regards,
    Sumit
    Mail me at [email protected]

    Hi ,
    Please tell us a lot more.
    - Is SAP running a local process, or something in a web browser?
       sap is running via SAPGUI ,no java system
    - What system?
      Users facing issue in all system
    - What browser?
    IE 9.0.28
    - Can PDFs from other sources be downloaded?
    Yes,they are downloaded.
    More Details-I did some tricks below which resulted in open/save popup......tht is not recomended by IT team...i need a permanent solution
    In IE, goto menu Options -> "Manage
    Addons", select in box "Show:" "Run without
    permission", then you see the Adobe PDF plugin
      Ichanged status to "Disabled
    Also, if i change the registry key settings for users as
    HKEY_CLASSES_ROOT\AcroExch.Document.11
    Value: EditFlags
    Changed: 0x00000100
    to 0x00000000
    (Remove the "Open always with this
    program" option)
    ITS WORKING.....
    But,in my system i need not to do all this settings and surprisingly it is working  only for me,rest all users are facing this issue.....
    If any one using Lync ,communicator ..do let me know..i wil show  the actual scnerio.
    Kind Regards,
    Sumit

  • Printing A3 page format using ABAP List from SAP is a problem...

    Hi Experts,
    I am trying to print a standard output (ABAP List) A3 page size from SAP.
    I used SWIN, SAPWIN, I9HP4 device types, but none of them worked.
    I created page format type ZYEVMIYE 290MM – 420MM and the page format L120, W200. In order to make it usable with page size is A3. Unfortunately this did not work either.
    The behaviour of the problem is when I tried to print with the device types that mentioned above then printer indicator comes to an error. And nothing comes out from the printer.
    Just to be on the safe side I made a test from windows self test, it resulted success with A3 page size format. So from this point of the view I got a thought that somehow SAP (selected device types) is not able to send correct signal to Printer for page size A3, because on the printer information screen displays ‘load Tray2 for A4’ this is showing that SAP sends Printer a signal for page format A4.
    I need help on how to make SAP (selected device type) send a correct signal to Printer in order to printout A3 page size format.
    Quick reply will much be appreciated.

    Hi,
    At last i got a Solution to my Question.
    The Problem is that in my SAP-Code they have been translated the PDF into 255 string.But i am retreiving using 132 string.So, i resolved in this way.
    <b>For Each dr As DataRow In ds.Tables(0).Rows
    Dim dataline As String = dr(0)
    If dataline.Length < 255 Then
    dataline = dataline.PadRight(255, " ")
    End If
    sb.Append(dataline)
    Next.</b>
    May be this Thread is useful to Others.
    Regards,
    Rajender.

  • Aattach an existing Excel file to an email from SAP system.

    Hi,
    How can I attach an existing Excel file from SAP system (Example in 'DIR_TEMP' folder) & send a mail. Guess this requires a class with a method which picks up the file using the file path. Does CL_DOCUMENT_BCS provides this???? boz CL_DOCUMENT_BCS->ADD_DOCUMENT_AS_ATTACHMENT is for Add Existing Document as an Attachment,if so please let me know how with few lines of code??
    Thankx in advance.

    *  Local Data declarations
      DATA: ls_rec          TYPE somlreci1.
      DATA: lp_send_request    TYPE REF TO cl_bcs,
            lp_document        TYPE REF TO cl_document_bcs,
            lp_sender          TYPE REF TO if_sender_bcs,
            lp_recipient       TYPE REF TO if_recipient_bcs,
            lp_bcs_exception   TYPE REF TO cx_bcs.
      DATA: lt_text TYPE soli_tab,
            ls_text LIKE LINE OF lt_text,
            lv_flag.
      DATA: lt_tline TYPE TABLE OF tline.
      DATA lv_receiver TYPE ad_smtpadr.
    *  DATA lt_attach  TYPE soli_tab.
      DATA ls_tline TYPE tline.
      TRY.
    *   create persistent send request
          lp_send_request = cl_bcs=>create_persistent( ).
    * Get the text
          IF iv_stxt IS NOT INITIAL.
            CALL METHOD zfi_flexgl_common=>read_text
              EXPORTING
                iv_stxt   = iv_stxt
              IMPORTING
                et_tline  = lt_tline
                ev_failed = ev_failed.
            LOOP AT lt_tline INTO ls_tline.
              APPEND ls_tline-tdline TO lt_text.
            ENDLOOP.
          ENDIF.
    *  create and set document
    *     create document from internal table with text
          lp_document = cl_document_bcs=>create_document(
                          i_type    = iv_format_type   "'XLS' "HTM'
                          i_text    = lt_text
                          i_subject = iv_msg_subj ).
          IF it_attach IS NOT INITIAL.
    * Add attachment
    *        DATA:      l_size      TYPE sood-objlen,              " Size of Attachment
    *                   l_lines     TYPE i.                        " Lines count
    *        l_lines = LINES( it_attach ).
    *        l_size = l_lines * 255.
            CALL METHOD lp_document->add_attachment
              EXPORTING
                i_attachment_type    = 'RAW'
                i_attachment_subject = 'My attachment'
    *            i_attachment_size    = l_size
                i_att_content_text   = it_attach.
          ENDIF.
    *     add document to send request
          CALL METHOD lp_send_request->set_document( lp_document ).
    * Sender addess
    *l_sender = cl_sapuser_bcs=>create( sy-uname ).
    *call method l_send_request->set_sender
    *  exporting
    *    i_sender = l_sender.
    *      LOOP AT it_rec INTO ls_rec.
          lv_receiver = iv_rec.
          TRY.
              CALL METHOD cl_cam_address_bcs=>create_internet_address
                EXPORTING
                  i_address_string = lv_receiver
                RECEIVING
                  result           = lp_recipient.
            CATCH cx_address_bcs .
          ENDTRY.
          CALL METHOD lp_send_request->add_recipient
            EXPORTING
              i_recipient  = lp_recipient
              i_blind_copy = abap_true
              i_express    = abap_true.
    *      ENDLOOP.
          IF sy-subrc <> 0.
            ev_failed = abap_true.
            EXIT.
          ENDIF.
    *     ---------- send document ---------------------------------------
          CALL METHOD lp_send_request->send(
            RECEIVING
              result              = lv_flag ).
        CATCH cx_send_req_bcs.
          ev_failed = abap_true.
        CATCH cx_document_bcs.
          ev_failed = abap_true.
      ENDTRY.
      IF iv_commit = abap_true.
        COMMIT WORK.
      ENDIF.

  • Delete an uploaded file (in custom table) from a report

    Hi,
    I have a report of uploaded files (the files are saved in my own table, not in APEX_APPLICATION_FILES) - I'd like to add a delete link to each file in my report so that the user can delete a particular file.
    How do I go about doing this?
    Thanks.

    Melissa,
    It is now working. You missed couple of things:
    1. javascript in the header
    2. you were pointing to the page 1 and your process was on the page 2
    3. you passed the value to a non existing item on the page 3
    4. the request which would fire the delete process was triggered by a wrong request
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to open a file(available on Desktop) from SAP?

    Hi,
    I have created dialog program. when i execute this program,
    it show one browse button.
    when user press this browse button, it display a dialog box and user can select file available on their desktop.
    e.g: Selected file path is  "c:\gaurav.txt"
    I want to show a hotspot on selected file path and when user click on that path then that file should be open in SAP.
    Is it possible?
    Plz suggest me something to resolve this problem.
    Regards,
    Gaurav.

    Hi,
    1) create a text element in the screen .
    in the display tab of that text field select the check box
    responds to double click.
    2)Move the select file name along with the path into that text  field now the file name will be displayed on the screen,
    3) when the user clicks on the field it goes to PAI in pai module write as follows.
       case sy-ucomm.
          when 'SAVE'.
           when others
              call function 'GUI_UPLOAD'.
         endcase.
    Thanks,
    NN.

  • Calling CRM ABAP class from SAP Jco

    Hi,
    In CRM,  there is a class interface called CL_CRM_DOCUMENTS with static methods. I need to make call to these methods from my Java application that uses JCo. Is it possible to call ABAP methods from JCo? Any help in this regard will be highly appreciated.
    Thanks,
    Praneeth

    Hello Praneeth,
    CL_CRM_DOCUMENTS problem  -- URGENT!!
    Activity Mgmt - Attachment
    See if this helps.
    regards,
    Muralidhar Prasad.C

  • Finding the XML file when importing ENH4 from SAP DVD

    Hello,
    We are installing the ENH4 from the SAP DVD 51033594, but in the DVD there is no xml file. How can I get one? Our Solution Manager is not yet properly configured as the installation is new.
    Thanks and best regards,
    Ana

    Hi Ana,
    You need to configure your system in Solution Manager.
    Then when you access Maintenance Optimizer, solman will automatically detect the required patches/DVD's needed for your upgrade.
    The XML file generated by solman is MANDATORY.
    Thanks,
    Saba.

  • How do I 'upload' files to iCloud Drive from my iPad outside of Pages/Numbers/Keynote?

    I want to get files off of my iPad (only 16GB!), specifically photos, PDFs and documents and be able to access them from iCloud when I need them
    I don't see an app for iCloud Drive
    Nor do I see apps that I would use for PDFs and documents such as Acrobat Reader from which I can store files in iCloud
    Help please

    Looks like this has been solved by yesterdays IOS8 update - thanks!

  • How to attach PDF file along with mail from SAP to external

    Hi Experts,
          Whenever I am creating PO I should get that creation information ( PO is created & PO no is ‘XXX’….) in the form of PDF file & I have to send this PDF file through mail to external. I have to do all this in one development…How can I proceed …Help me..
    Thanks

    Check this Code>>>>>>>>>>>
          FORM MAIL_OBJECT                                              *
    Compiled: Thomas, Satyam Computers Services Ltd.
          This routine receives OTF data. OTF data is converted to PDF
          format and send to the Partner's email address
    FORM mail_object TABLES otf_data STRUCTURE itcoo .
      DATA: pdf_size TYPE i,                             " PDF Size
            pdf_itab_size TYPE i,                        " Attachment size
            mailtxt_size TYPE i,                         " Text in mail size
            l_vbeln LIKE vbdka-vbeln.                    " Order Doc
      DATA:
      it_mailtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,    " Mail Text
      it_pdf TYPE TABLE OF tline WITH HEADER LINE,           " OTF output
      it_mailpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE, " Dist details
      it_mailhead LIKE solisti1   OCCURS  1 WITH HEADER LINE," Header data
      it_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,   " Rec List
      it_pdfdata LIKE solix OCCURS 0 WITH HEADER LINE.  " Attachment data
      DATA: it_doc_att LIKE sodocchgi1.                 " Attri of new doc
      DATA: BEGIN OF it_pdfout OCCURS 0,                " PDF in 255 length
               tline TYPE char255,
            END OF it_pdfout.
    Sales doc and Customer
      DATA: BEGIN OF i_vbeln OCCURS 0,
              vbeln LIKE vbpa-vbeln,       " Sales Document
              adrnr LIKE vbpa-adrnr,       " Customer
            END   OF i_vbeln.
    Sender Address no and SMTP address
      DATA: BEGIN OF i_addrs OCCURS 0,
              addrnumber LIKE adr6-smtp_addr,
              smtp_addr  LIKE adr6-smtp_addr,
            END   OF i_addrs.
    Convert OTF to PDF
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format       = 'PDF'
        IMPORTING
          bin_filesize = pdf_size
        TABLES
          otf          = otf_data
          lines        = it_pdf.
    Make each line 255 characters
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        TABLES
          content_in  = it_pdf
          content_out = it_pdfout.
    Create the PDF File
      CLEAR it_pdfdata.
      REFRESH it_pdfdata.
    it_pdfdata[] = it_pdfout[].
      LOOP AT it_pdfout.
        MOVE it_pdfout-tline TO it_pdfdata-line.
        APPEND it_pdfdata.
        CLEAR it_pdfdata.
      ENDLOOP.
      DESCRIBE TABLE it_pdfdata LINES pdf_itab_size.
    Text in the mail.
      it_mailtxt-line  = 'ORDER ACKNOWLEDGEMENT'.
      APPEND it_mailtxt.
      it_mailtxt-line  = ' This is a test mail-Thomas, Line Number--1'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail-Thomas, Line Number--2' &
                        ' This is a test mail-Thomas, Line Number--2'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail-Thomas, Line Number--3' &
                        ' This is a test mail-Thomas, Line Number--3' &
                        ' This is a test mail-Thomas, Line Number--3'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5'.
      APPEND it_mailtxt.
      DESCRIBE TABLE it_mailtxt LINES mailtxt_size.
    Document Number for Output
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          input  = vbdka-vbeln
        IMPORTING
          output = l_vbeln.
    Attributes of new doc
      CONCATENATE 'Order' space 'Acknowledgement' space l_vbeln
                  INTO it_doc_att-obj_descr SEPARATED BY space.
      it_doc_att-sensitivty = 'F'.
      it_doc_att-doc_size   = mailtxt_size * 255.
    Create Pack to text in mail body.
      CLEAR it_mailpack-transf_bin.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 0.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = mailtxt_size.
      it_mailpack-doc_type     = 'RAW'.
      APPEND it_mailpack.
    Create Pack to PDF Attach.
      it_mailpack-transf_bin   = 'X'.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 1.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = pdf_itab_size.
      it_mailpack-doc_type     = 'PDF'.
      CONCATENATE l_vbeln '.pdf' INTO it_mailpack-obj_name.
      CONCATENATE 'Order Ack' space l_vbeln INTO it_mailpack-obj_descr.
      it_mailpack-doc_size     = pdf_itab_size * 255.
      APPEND it_mailpack.
    *Get email addresses based on Sales document.
      SELECT vbeln adrnr INTO TABLE i_vbeln
             FROM vbpa
             WHERE vbeln = vbdka-vbeln AND
                   parvw = nast-parvw.
      IF NOT i_vbeln[] IS INITIAL.
        SELECT addrnumber smtp_addr INTO TABLE i_addrs
               FROM adr6 FOR ALL ENTRIES IN i_vbeln
               WHERE addrnumber =  i_vbeln-adrnr AND
                     smtp_addr NE space.
      ENDIF.
      IF i_addrs[] IS NOT INITIAL.
        LOOP AT i_addrs.
          it_reclist-receiver   = i_addrs-smtp_addr.
          it_reclist-express    = 'X'.
          it_reclist-rec_type   = 'U'.
          it_reclist-notif_del  = 'X'. " request delivery notification
          it_reclist-notif_ndel = 'X'. " request not delivered notification
          APPEND it_reclist.
          CLEAR: i_addrs.
        ENDLOOP.
      ENDIF.
    Call FM to send email
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = it_doc_att
          put_in_outbox              = 'X'
        TABLES
          packing_list               = it_mailpack
          object_header              = it_mailhead
          contents_txt               = it_mailtxt
          contents_hex               = it_pdfdata
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorizationfiltered= 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      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.                    " MAIL_OBJECT
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    -Mohan.
    *Reward if helpful**

  • How do I open an ABAP program from SAP in Eclipse?

    Hiya,
    Sorry for the newbie question but I've only ever used SE80, but I saw eclipse, liked it, installed it (based on the ADT Installation guide) but now I'm stuck. How do I connect Eclipse to an SAP instance so that I can view and amend ABAP programs?
    Thanks in advance for any advice.

    Hi Robert,
    if you installed everything correct, you have to create a new ABAP-Project. This links your sap-logon with eclipse and you are able to connect to a system if everything is fine...
    Working with ABAP Development Tools (Quick Launch)
    Hope this helps you out, otherwise your in the correct space and here are a lot of documents and blog-posts how to handle eclipse at all (including the installation)
    Regards
    Florian

Maybe you are looking for