Skip to Content
SAP & PHP together: Application Server Directory & File  Browser   For quite some in SDN I could hear a lot about a new topic  Scripting Languages (https://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/47). Wondering what it was, I just explored a bit more than usual for sometime. I would say it was a very good experience. I always wished to develop web applications that work with SAP, and this gave me a good chance.   I started with  Craig’s (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=vi4acammux4=)  blog about MiniWAS6.20  (Mini Me of WAS 6.20, the Saga continues….).  As a common practice I landed into some trouble installing  my MiniWAS6.20.  I ran to the Web AS  Preview Installation (verify own hostname <HOSTNAME> failed – Error) for some help. It did help me to sort out the problem.  Even after successful installation I faced problem starting the server. The  culprit was none other the antivirus software installed in my laptop. I don’t  know why it hates the icm.exe  and disp+work.exe  so much then it  will never let them start. I always put the antivirus software to sleep whenever  the MiniWAS6.20 wakes up, so that they need not fight each other again.    The second big problem as a newbie in PHP was installing and configuring it to work with the web server. I tried to install PHP with Sun One Web Server, it did not work out. Then once again I was crying in the PHP  Forum (Help for Installing PHP and Sun One Web Server) for some help. Finally, I got PHP installed and configured to work with Apache HTTP Server. The best part in the process was the SAPRFC installation for connecting PHP with SAP, it just went so smooth.   Then what else I had a lot good examples from  Craig’s (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=vi4acammux4=),  John Astill (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=r5x3quiyneg=),  Alvaro (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=nkxegtflwze=),  Eddy (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=hx194inqjj9i3uipejinqq==) and many more, which made feel comfortable working with PHP. Here is a small tool I built using PHP Object Oriented programming. This utility will help you to browse your application server files and directories, and how it is done is below,   ABAP Part    Structure for Directory and File details   image  Structure for File contents   image
To report this post you need to login first.

7 Comments

You must be Logged on to comment or reply to a post.

    1. Kathirvel Balakrishnan Post author
      Hi Peter

      Thanks for the comments. I am aware of that RFC FM you have suggested. It basically provides all the files in a specified directory.
      1. I wanted both Directories and Files. 
      2. I was going through a standard SAP code and just wanted to experiment whether it will work or not out of curiosity.

      Cheers
      Kathirvel

      (0) 
        1. Alvaro Tejada Galindo
          Great blog Kathirvel! -:) I’m glad you’re enjoing PHP/SAP Integration…As I someday said…The only limit is you imagination, please keep providing more blogs and usefull PHP/SAP Tools -;)

          Greetings,

          Blag.

          (0) 
          1. Kathirvel Balakrishnan Post author
            Hi Alvaro

            I am very happy that you liked it. Sure I am loving this PHP & SAP Intregration. Infact your weblogs on SE16/SE11 , SM30 were very much helpful for me. Please keep providing us good techniques and tools PHP & SAP Intregration, we love them. And sure I will do my part.

            Cheers
            Kathirvel

            (0) 
            1. Alvaro Tejada Galindo
              Thanx Kathirvel…I’m glad you find my blogs helpfull! -:D Have you already read my newest blog??? The specified item was not found.
              It’s an SBWP Emulation -;)

              Don’t worry, I’m to start working on a few more blogs tonight…Although I’m going to mail tonight so we can keep in touch and share information -:D

              Greetings,

              Blag.

              (0) 
              1. Kathirvel Balakrishnan Post author
                Hi Alvaro,

                I have a local copy of most of the weblogs by you & craig, etc. They are my local PHP & SAP references. Your “SBWP Emulation” – that was too cool.

                It is really nice to simulate an SAP transaction in PHP. I have done a few using JSP and JCo, but PHP is quite different and I feel it is bit easier if we have some knowledge in C, C++.

                Thanks for the encouragement, keep in touch…

                Regards
                Kathirvel

                (0) 

Leave a Reply