Skip to Content
author's profile photo Former Member
Former Member

how to call DLL in BSP

hi,

1. Can anyone suggest me how to call a dll in a bsp. if you can help me with a sample code it'll be helpful.

2. Is it possible to call VBScript in BSP

Thnx in Advance

Vinodh

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 16, 2004 at 10:33 AM

    You can call VBScript or ActiveX inside of BSP's however > Insert Standard Security Warnings here <

    It's just a webpage that you are building with your BSP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2004 at 07:19 AM

    hi

    Thnx for the reply. I'm very new to BSP can u tell me what is the API used for calling a Activex in BSP. can you help me out with a small code which would explain, how to initialise a Activex in BSP.

    Thnx in Advance

    Vinodh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      It is done the same way you do in normal HTML.

      A BSP is only an HTML page which ABAP is compiled into during runtime just like a JSP page or ASP page.

      <htmlb:content design="design2003">
        <htmlb:page title = "Test submit ">
          <htmlb:form id="myform" method="POST" enctype="multipart/form-data">
      
          <htmlb:inputField id="myFile"
                      visible="true"
                      width="300px" /><br>
      
          <htmlb:listBox id="filelist"
                      width="300px" />
      
      
          <script>
          function selectFolder(){
            var myText = "Browse for file";
            var objShell = new ActiveXObject("Shell.Application");
            var ssfWINDOWS = 0;
            var objFolder;
            objFolder = objShell.BrowseForFolder(0, myText, 0, ssfWINDOWS);
            if (objFolder != null) {
               document.forms.myform.myFile.value=objFolder.Items().Item().Path;
               getFileList(objFolder.Items().Item().Path);
            }
          }
      
          function getFileList(id) {
            var FSO = new ActiveXObject("Scripting.FileSystemObject");
            var myStartingFolder = id;
            if ( myStartingFolder != null || myStartingFolder != "" ) {
              var myFolder = FSO.GetFolder( myStartingFolder );
              var myFileList = new Enumerator(myFolder.files);
      	 // First clear all entries
              document.forms.myform.filelist.options.length = 0;
      
      	 for (; !myFileList.atEnd(); myFileList.moveNext()) {
                document.forms.myform.filelist.options[document.forms.myform.filelist.options.length] = new Option(myFileList.item().name,FSO.GetFileName(myFileList.item()));
      	 }
      	} // start folder found
      			
          } // getFileList
      
          </script>
      
          <htmlb:button id="myButton"
                  onClientClick="selectFolder()"
                  text="Browse" />
      
          </htmlb:form>
        </htmlb:page>
      </htmlb:content>
      

      Just remember with ActiveX you have security issues to keep in mind!

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2004 at 09:21 AM

    hi,

    Thnx a ton for the idea, i could intialise the activex in BSP.

    regards

    Vinodh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.