Execute .hta document from ABAP

Hi,
I want to execute a .hta document using ABAP. What way do I have to go?
.hta is an HTML Application (HTML and Java Script). In our case a form that has to be started by clicking on a file name.
In what direction do I have to look for a solution.
Ron

Hi Ron,
if the file can be executed locally from your C:\ drive by double-clicking, it means that the extension HTA is directly executable OR it's linked to a program (e.g. EXEs are executable, but HTMLs are linked to your internet browser).
Anyway, if you can double click an HTA file, you can also launch it from ABAP with function module GUI_RUN.
I hope it helps. Kind regards,
Alvaro

Similar Messages

  • How execute one DLL from ABAP

    Hi All,
    I have to execute one DLL from ABAP, I have pass one file txt to parameters and execute the DLL.
    Any could help me?

    Check this:
    Re: How to call a FrontEnd DLL in ABAP Program
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/vb-function-module-or-dll-in-abap-programming-1659211
    http://nonet.dyndns.org/b2e/blogs/index.php/2005/10/30/calling_dll_functions_within_sapgup_via?blog=5

  • Method class for calling/executing VB script from abap

    Hi All,
    I need to call a vb script from abap.
    This vb script performs some function then.
    For executing this VB script i use the method CL CL_GUI_FRONTEND_SERVICES=>Execute.
    Now i need to pass data to the vb script in the from of a structure/workarea.
    Does anyone have any idea on what class/method shoul i use?
    Regards,
    Harshit Rungta

    Check Connect VB to SAP
    Kanagaraja L

  • Execute external WebService from abap

    Hi Gurus!
    Is it possible to execute an external WebService from an abap function/program without using the XI?
    Best regards,
    Adriano

    you can do this.
    if you are on WAS6.4 there is a tool available within ABAP work bench to generate client proxy.
    if you are on WAS 6.20 then you have to use class cl_http_client to consume the webservice,
    check out the following weblogs for code sample
    Send SMS to India from ABAP
    BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
    Regards
    Raja

  • Execute Bex query from ABAP

    Hi,
    I am using the method mentioned by Durairaj (@  /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i )
    to execute queries from ABAP.
    When I try to execute a query with characteristics in rows and if the characteristics name is large then i get a dump:
    'Field symbol has not yet been assigned'
    @ <l_field> = wa_set-chavl .
    I tried the same for another cahracteristic of lesser length and it works fine.
    Initially the chara name was like:
    <8 letter dim name>__<7 letter chara name >
    when i used a dim name with lesser no of letters:
    <7 letter dim name>__<6 letter chara name >
    It works fine.
    is there any restricition on the lenght of characteristics ?
    Thanks,
    Message was edited by:
            Rithesh Vijayakrishnan

    Matthias,
    I have tried to use this method before, but with the follow URL:
    /SAP/BC/WebDynpro/SAP/YWEBTEMPLATE_TEST/bi_template_page.htm?&varn1=0pcalmon&varv1=200901&varn2=0p_cocd&varv2=b047&url=/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex
    didn't work as I image.
    Do I have to transform this url before execute the method?
    Tnks for your patience.

  • How  to execute os command from ABAP program?

    I want to execute some window commands from ABAP. What is the way to do it?

    Hi,
    See ht e coding below, I have used these Fm to connect to FTP server and get the Files..
    *types for the ftp command result internal table
    TYPES : BEGIN OF ty_result,
            text TYPE char512,
            END OF ty_result.
    data it_result type standard table of ty_result.
    *Connect to the FTP server
      CALL FUNCTION 'FTP_CONNECT'
        EXPORTING
          user            = lv_user           " user name pass word to connect
          password        = l_v_pwd
          host            = 'dev.eu.pm.com' " Host name here
          rfc_destination = 'SAPFTPA'   "destination name
    *Ask your functional people for the above data
        IMPORTING
          handle          = v_handle
        EXCEPTIONS
          not_connected   = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
      ENDIF.
    *Changing directory
      CONCATENATE 'cd' '<file path>' INTO l_v_cmd SEPARATED BY space.
    you can also ser 'DIR in l_v_cmd which opens the directory and all the folders *get into it_result table..
    *Execute the FTP Command
      CALL FUNCTION 'FTP_COMMAND'
        EXPORTING
          handle        = v_handle
          command       = l_v_cmd
        TABLES
          data          = it_result
        EXCEPTIONS
          tcpip_error   = 1
          command_error = 2
          data_error    = 3
          OTHERS        = 4.
      IF sy-subrc <> 0.
      ENDIF.
    rewards if useful,
    regards,
    nazeer

  • Executing  InfoPackage Group from ABAP Program

    Hi Experts,
    I want to execute InfoPackage Group from the ABAP program. I know function module BAPI_IPAK_START which can schedule a single Infopackage at a time.
    Please let me know.
    Many Thanks,
    -Ashish

    Hi,
    I am using function module BP_EVENT_RAISE for raising a event.My question is which eventid I need to give in the export parameter.
    CALL FUNCTION 'BP_EVENT_RAISE'
      EXPORTING
        EVENTID                      = ' '
        EVENTPARM                    = ' '
    I need to mention some SAP standard event or I can create my own event too.
    Because same event I need to put in InfoPackage Group for scheduling.
    Regards,
    Ashish

  • Execute unix script from abap.

    Hi friends,
    I have a abap report which generate  a text file in<b> /usr/tmp/</b>  directory . Now i have a unix script   which encript the text file.  I want to this from abap report. How I can do this . and in which path  I should keep this unix script   Please help.
    Regards

    Hi,
    try the below code
    parameters : p_sfile(60) lower case
    "File to be moved
    "Eg : /home/in/SFILE1.txt
    p_dfile(60) lower case.
    "File's Destination
    "Eg: /home/archive/SFILE1.txt
    data : t_btcxpm
    like btcxpm occurs 0,
    p_addparam
    like sxpgcolist-parameters.
    concatenate
    '/home/ABAP/scripts/Archive_file.sh'
    p_sfile
    p_dfile
    into p_addparam separated by space.
    refresh t_btcxpm. clear t_btcxpm.
    call function 'SXPG_CALL_SYSTEM'
    exporting
    commandname = 'ZSHELL'
    additional_parameters = p_addparam
    tables
    exec_protocol = t_btcxpm
    exceptions
    no_permission = 1
    command_not_found = 2
    parameters_too_long = 3
    security_risk = 4
    wrong_check_call_interface = 5
    program_start_error = 6
    program_termination_error = 7
    x_error = 8
    parameter_expected = 9
    too_many_parameters = 10
    illegal_command = 11
    others = 12.
    if sy-subrc = 0.
    write : /
    'File',p_sfile,'moved to',p_dfile.
    else.
    write : / 'Error Occured'.
    endif.
    Reward points if found helpful……
    Cheers,
    Chandra Sekhar.

  • How to generate a PDF document from ABAP program

    Hi experts,
    I have arequirement where in i need to create a PDF document using program. I have all the data collected into tables and i have used the calss CL_FP_PDF_OBJECT.
    A pdf document is successfully created, but unable to open it because of some error. I guess some encryption is missing.
    As an alternative I have created a smartform and generated its OTF data in my program and created a PDF. This is working fine.
    But as per my requirement, i cannot go for a smart form.
    Any help to resolve this issue will be highly appreciated.
    Thanks & regards,
    Asrar Ahamed MA
    Infosys Tech. Ltd. INDIA

    Hi Asrar ,
    create a report with this Copy and give your program name in the selection screen whose output need to be in PDF.
    *report  zanusha_spool_to_pdf.
    ---TABLES----
    tables:
      tsp01.
    ---STRUCTURES---
    data:
      mstr_print_parms like pri_params,
      mc_valid(1)      type c,
      mi_bytecount     type i,
      mi_length        type i,
      mi_rqident       like tsp01-rqident.
    ---INTERNAL TABLES---
    data:
      mtab_pdf    like tline occurs 0 with header line,
      mc_filename like rlgrap-filename.
    ---SELECTION SCREEN---
    parameters:
      p_repid like sy-repid, " Report to execute
      p_linsz like sy-linsz default 132, " Line size
      p_paart like sy-paart default 'X_65_132'.  " Paper Format
    start-of-selection.
      concatenate 'c:\'
                  p_repid
                  '.pdf'
        into mc_filename.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
      mstr_print_parms-linsz = p_linsz.
      mstr_print_parms-paart = p_paart.
    *-- Make sure that a printer destination has been set up.
    *-- If this is not done the PDF function module ABENDS
      if mstr_print_parms-pdest = space.
        mstr_print_parms-pdest = 'LOCL'.
      endif.
    *-- Setup the Print Parmaters
      call function 'GET_PRINT_PARAMETERS'
        exporting
         authority              = space
          copies                 = '1'
         cover_page             = space
         data_set               = space
         department             = space
         destination            = space
          expiration             = '1'
         immediately            = space
         in_archive_parameters  = space
         in_parameters          = space
         layout                 = space
         mode                   = space
          new_list_id            = 'X'
          no_dialog              = 'X'
          user                   = sy-uname
        importing
          out_parameters         = mstr_print_parms
          valid                  = mc_valid
        exceptions
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          others                 = 4.
      submit (p_repid) to sap-spool without spool dynpro
                       spool parameters mstr_print_parms
                       via selection-screen
                       and return.
    *-- Find out the spool number
      perform get_spool_number using sy-repid
                 sy-uname
        changing mi_rqident.
    *-- Convert Spool to PDF
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid              = mi_rqident
          no_dialog                = space
          dst_device               = mstr_print_parms-pdest
        importing
          pdf_bytecount            = mi_bytecount
        tables
          pdf                      = mtab_pdf
        exceptions
          err_no_abap_spooljob     = 1
          err_no_spooljob          = 2
          err_no_permission        = 3
          err_conv_not_possible    = 4
          err_bad_destdevice       = 5
          user_cancelled           = 6
          err_spoolerror           = 7
          err_temseerror           = 8
          err_btcjob_open_failed   = 9
          err_btcjob_submit_failed = 10
          err_btcjob_close_failed  = 11
          others                   = 12.
    *-- Download the file
      call function 'DOWNLOAD'
        exporting
          bin_filesize = mi_bytecount
          filename     = mc_filename
          filetype     = 'BIN'
        importing
          act_filename = mc_filename
        tables
          data_tab     = mtab_pdf.
          FORM get_spool_number *
          Get the most recent spool created by user/report              *
    -->  F_REPID               *
    -->  F_UNAME               *
    -->  F_RQIDENT             *
    form get_spool_number using f_repid
         f_uname
                    changing f_rqident.
      data:
        lc_rq2name like tsp01-rq2name.
      concatenate f_repid+0(9)
                  f_uname+0(3)
        into lc_rq2name.
      select * from tsp01 where  rq2name = lc_rq2name
      order by rqcretime descending.
        f_rqident = tsp01-rqident.
        exit.
      endselect.
      if sy-subrc ne 0.
        clear f_rqident.
      endif.
    endform." get_spool_number
    Thanx
    Anusha.

  • Execute bsp application from abap program

    How can I do to execute a bsp application from abp program ?
    I have two parameter in enter : text and language.
    And i have one paramenter in exit : translated text.
    Thanks for you help.

    but how to retrieve the result of the bsp ?
    Here is my source code :
    data: url type string,
             l_appl type string,
            l_page type string,
            l_params type line of TIHTTPNVP,
            params type TIHTTPNVP.
      l_appl = 'ZAPI_TRADUCTION'.
      l_page = 'appel.htm'.
      l_params-NAME = 'text'.
      l_params-value = 'pour le moment test'.
      append l_params to params.
      call method cl_http_ext_webapp=>create_url_for_bsp_application
        exporting
          bsp_application      = l_appl
          bsp_start_page       = l_page
          bsp_start_parameters = params
        importing
          abs_url              = url.
    DATA: http_client TYPE REF TO if_http_client .
    DATA: w_string TYPE string ,
          w_result TYPE string ,
          r_str    TYPE string .
    DATA: result_tab TYPE TABLE OF string.
      CLEAR w_string .
      w_string = url.
      CALL METHOD cl_http_client=>create_by_url
        EXPORTING
          url                = w_string
        IMPORTING
          client             = http_client
        EXCEPTIONS
          argument_not_found = 1
          plugin_not_active  = 2
          internal_error     = 3
          OTHERS             = 4.
          CALL METHOD http_client->send
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2.
          CALL METHOD http_client->receive
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2
          http_processing_failed     = 3.
      CLEAR w_result .
      w_result = http_client->response->get_cdata( ).
      REFRESH result_tab .
    In the variable it brings me back the html source code of the BSP rather than run and bring me the result of the BPS.
    Thank you for your help.

  • Executing HTTP Request from ABAP

    Hi Experts,
    I am trying to fill & submit an http form through abap using CL_HTTP_CLIENT class methods "request". here is my code:-
    DATA: client TYPE REF TO if_http_client.
    Create Client-Object
    CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
      EXPORTING
        url                = url_string
      IMPORTING
        CLIENT             = client
      EXCEPTIONS
        ARGUMENT_NOT_FOUND = 1
        PLUGIN_NOT_ACTIVE  = 2
        INTERNAL_ERROR     = 3
        others             = 4.
    IF sy-subrc <> 0.
      WRITE: / 'Client Object could not be created. SUBRC=', sy-subrc.
      EXIT.
    ENDIF.
    Set Header Field of request
    CALL METHOD client->request->if_http_entity~set_header_field
      EXPORTING
        name  = '~request_enctype'
        value = 'multipart/form-data'.
    CALL METHOD client->request->if_http_entity~set_header_field
      EXPORTING
        name  = '~request_method'
        value = 'POST'.
    try posting form fields
    CALL METHOD client->request->if_http_entity~set_form_field
      EXPORTING
        name  = 'datasource'
        value = 'GSAPO'.
    CALL METHOD client->request->if_http_entity~set_form_field
      EXPORTING
        name  = 'feedtype'
        value = 'full'.
    CALL METHOD client->request->if_http_entity~set_form_field
      EXPORTING
        name  = 'data'
        value = xml_string.
    CALL METHOD client->send
    EXPORTING
       TIMEOUT                    = CLIENT->CO_TIMEOUT_INFINITE
      EXCEPTIONS
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3
        http_invalid_timeout       = 4
        OTHERS                     = 5
    IF sy-subrc <> 0.
      WRITE: / 'Request could not be sent - communication error. SUBRC=',
                                                                 sy-subrc.
      EXIT.
    ENDIF.
    Receive Response
    CALL METHOD client->receive
      EXCEPTIONS
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3
        OTHERS                     = 4.
    IF sy-subrc <> 0.
      WRITE: 'Response not obtained - communication error SUBRC = ' ,
    sy-subrc.
      EXIT.
    ENDIF.
    Close HTTP connection
    CALL METHOD client->close
      EXCEPTIONS
        http_invalid_state = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
      WRITE 'HTTP connection in undefined state'.
      EXIT.
    ENDIF.
    *End of code.
    The problem here is I am getting exception "http_connection_failed" in recieve method.
    Can any body help me out.
    Thanks in advance.
    Madhu.

    is the http destination within intranet or internet? do you connect to internet via proxy server?
    Raja

  • Create XML file from ABAP with SOAP Details

    Hi,
    I am new to XML and I am not familiar with JAVA or Web Service. I have searched in SDN and googled for a sample program for creating XML document from ABAP with SOAP details. Unfortunately I couldn't find anything.
    I have a requirement for creating an XML file from ABAP with SOAP details. I have the data in the internal table. There is a Schema which the client provided and the file generated from SAP should be validating against that Schema. Schema contains SOAP details like Envelope, Header & Body.
    My question is can I generate the XML file using CALL TRANSFORMATION in SAP with the SOAP details?
    I have tried to create Transformation (Transaction XSLT_TOOL) in SAP with below code. Also in CALL transformation I am not able to change the encoding to UTF-8. It's always show UTF-16.
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:template match="/">
        <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
          <SOAP:Header>
            <CUNS:HeaderInfo>
              <CUNS:InterfaceTypeId>10006</InterfaceTypeId>
              <CUNS:BusinessPartnerID>11223344</BusinessPartnerID>
              <CUNS:SchemaVersion>1.0</SchemaVersion>
              <CUNS:DateTime>sy-datum</DateTime>
            </CUNS:HeaderInfo>
          </SOAP:Header>
          <SOAP:Body>
            <xsl:copy-of select="*"/>
          </SOAP:Body>
        </SOAP:Envelope>
      </xsl:template>
    </xsl:transform>
    In ABAP program, I have written below code for calling above Transformation.
      call transformation ('Z_ID')
           source tab = im_t_output[]
           result xml xml_out.
      call function 'SCMS_STRING_TO_FTEXT'
        exporting
          text      = xml_out
        tables
          ftext_tab = ex_t_xml_data.
    Please help me how to generate XML file with SOAP details from ABAP. If anybody have a sample program, please share with me.
    Is there any easy way to create the XML file in CALL Transformation. Please help.
    Thanks

    Try ABAP forum, as it seems not to be PI related.

  • OLE - Creating header and footer in Word document using abap

    Hi All,
    I'm using OLE to create a WORD document from abap.
    I need to insert a logo in the header and a footer text.
    Does any one know how to insert a header/footer with abap ole ?
    I tried to insert the logo as picture with:
    call method of o_inlineshapes 'AddPicture' = o_logo
      exporting
      #1 = 'C:\logo3.jpg'.
    but I can't put it in the place I want..
    thanks,
    Michal

    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.
    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.

  • CALL BSP from ABAP report

    I want to execute a BSP from ABAP report. The BSP is the standar CRM CASE MANAGEMENT BSP.
    I have a CRM CASE list in ABAP report and when I make double-click on one case i want to call BSP to show this case. I don't want to execute the GUI transaction CRMD_CASE. I need to execute the BSP.

    Hello Ivan,
    To call the BSP from the ABAP report following thread will be helpful for you.
    Call BSP from SE38 Program ?
    Regards
    Aashish Garg
    Message was edited by:
            aashish garg

  • Problem in passing xstring data from abap to webservice method.

    Hi,
    I want to upload the document from ABAP to Microsoft SharePoint. So for that i have created the webservice in .net for uploading the document in SharePoint.
    Now in Abap i have consumed this service by creating proxy class. The web service has one method as Upload_File which takes byte[] as paramerter, so in wsdl file this parameter get converted into s:base64Binary and in abap it get converted into RAWSTRING.
    Now, when i try to upload the file with very small content (less than 54 character mean the rawstring variable which contain the file content has length less than 108 ), file gets uploaded with no problem, but when the file has content more than 54 character, it give error like "SOAP:1.032 SRT: Wrong Content-Type and empty HTTP-Body received"
    And also one thing when i have created the proxy class it gives warning that "The XSD type base64Binary does not exactly correspond to the ABAP type RAWSTRING"
    What can be the problem? how to pass file content to external web service?
    Thanks,
    Vikram

    Hi Nick,
    Yes, when i declare the data type as string in XSD it get converted into xsd:string.
    I have already tried using String as parameter in WebService method instead of byte[].
    But then in .Net, I need to write some code for converting the string variable ( which content the file content in hexadecimal format) into byte array and for that there is a method provided by .Net framework but when I use it, it write the hexadecimal content in file.
    So I have written my own code for converting hexadecimal content which string variable content to byte array.
    By doing this, it working fine and all type of file getting uploaded in SharePoint but when I try to open the file only .TXT file get open properly and other type of file give me some error.

Maybe you are looking for

  • Remote App on 3G

    When using the Remote App, I find that some of the songs in my iTunes playlists do not appear on my iPhone -the playlists are there, just some songs with-in the list are missing. Everything else works great. Any ideas?

  • How to deduct tds on advance payment IN SAP

    How to deduct tds on advance payment to vendors.

  • IPhone 6 video synch problem/laptop HD storage

    Hi, I tried to synch my iPhone last night to my laptop. It kept telling me that there are videos that couldnt be synched because the format wasnt supported, only the videos are all from iPhones. So it continued with the synch and  then It said there

  • Capacity Error while doing PCN

    I am running into some issue with the capacity while doing PCN. am using SU Managed WHS. with capacity check method - 4 at Storage Type and Put-away strategy u2018Lu2019 I've used neutral capacity as 100 in Material Master -WM1 view and Capacity as 3

  • DESCRIPTIVE_FLEXFIELD set to Required

    Dears, Can we set DFF to Required Input? DFF Title: Assitional Line Return information Tks