Happy with SAP and PHP
Hi:
I just read <b>John Coggeshall</b> blog...And gotta say..."Woaw, it blows my mind" -:D
I have been an ABAP Consultant for 3 years and a very active PHP developer for more than 1 year. Actually...and sorry if anyone disagress...I hate Java and also hate JSP...I was glad when i read about BSP (Which i'm planning to learn)...But when i read that SAP and PHP can be mixed together...it was like a dream come true.
As soon as i can, i'm going to set up my SAPRFC. And hope i can make some contributions to the community.
Thanks SAP and Zend...For letting me create SAP Web Services without Java stuff -:)
Greetings,
Alvaro Tejada Galindo
ABAP Consultant
ActualiSap Consultores
Sorry for my long time away...I have been pretty busy...
Anyway...a few day ago, i managed to get all my PHP-to-SAP connection...And damn...I gotta say...i really get shocked...It's amazing what you can do, and how easy you can do it -:D
I just have made two simple examples, but those we're enough to make me happy...I use RFC_READ_TABLE and RFC_READ_REPORT.
I actually want to make some SM30 simulation...so as soon as get some demo version, i going to post it, or write a blog about it -;) Some time ago, i made something like that using PHP and MySQL...So i don't think it's going to be that hard...Anyway...I should show all the Abapers out there that PHP is a great programming language too and by mixing PHP and SAP...you can get a killer tool -;)
Greetings,
Blag.
Similar Messages
-
Need Urgent Help with Apache and PHP
I have been struggling with apache and php for a week now and I finally broke down to post a message.
I have apache 1.3 running on my mac mini g4 with 10.4.9 and I installed sql. I went to the entropy website and downloaded php5 to install without knowing I already had php4 on the machine. I installed 5 but could not get it to work. I then went back to httpd.conf and tried to install php4 by uncommenting out the loadmodule and addmodule lines. I restarted apache but php still did not work. I tested the phpinfo.php script but all I got was the script in Safari and not the actual page. At the moment, I have php4 and php5 on my machine but can't get either one to work. I am sure there is an easy fix but I don't know it. Please help.The problem is not terribly complicated, but Apache will not start with the entropy file in the folder
/etc/httpd/users/
Let me experiment on you. Rename the entropy file and then try to start Apache. To do this, open Terminal and paste this command:
<pre>sudo mv /etc/httpd/users/+entropy.conf /etc/httpd/users/+entropy<pre>
Now check the Apache configuration:
<pre>apachectl configtest<pre>
If it says "Syntax OK", start Apache:
<pre>sudo apachectl start<pre>
Since we only disabled the entropy file, you should be able to enable PHP5 with some more advanced configuring. -
Populating a Combobox using Remoting with AMF and PHP
Hello all
I am using Zend framework and Flex 3.4 to create a webapp. I am stuck at how to populate a combobox dynamically using the service I created in PHP.
In some of examples I saw that result of database query was being converted into XML and then sent to Flex. This seems a little too time-consuming if I have to do it every time. I saw some examples in Adobe Docs about Remoting with AMF and PHP. That seems like a better approach although how it would be applicable here is beyond me right now.
Can somebody guide me in correct direction?
Thanks and Regards
ShivikTry this: http://code.google.com/p/as3flexdb/ is very easy to use and it
will help.
All you need to populate a combo is:
<mx:ComboBox dataProvider="{query.Records} / -
Cant login with sap* and pass
Hi,
I created a new entry in SCC4 for new client 100 in nw2004s and now i saved them and tried to login with 100 client sap* and password as pass, but i am not able to login with this default password for client copy.Surya,
In NW2004s by default the "automatic" SAP* user is not created. This is controlled by a parameter setting in the profile, which you can edit with RZ10. Open the instance profile, create parameter "login/no_automatic_user_sapstar" and set the value to 0. Save and activate the profile, restart your system, and now you'll be able to login with SAP* and pass.
After you finish the client copy, you may want to deactivate this parameter again, for security.
--Matt -
SAP GUI not working with SAP* and DDIC default passwords
Hi SAP Guru's ,
at last I installed the SAP ECC6.0 on Windows 2003 (stand alone) with Oracle 10G database.
I installed the SAP GUI , when I am trying to loging from SAP GUI clients 000 and 001 with SAP* and DDIC user accounts I am naot able to login . please give me the how to configure this .
thanks in advance
Edited by: srinivas kaveti on Apr 4, 2008 9:16 PMHi Srinivas,
You should set "login/no_automatic_user_sapstar=0", in the SAP profile. With ECC 6.0, default sapstar user deactivated. You can take a look at OSS note #68048, for detailed information.
Best regards,
Orkun Gedik -
Sharepoint Integration with SAP and Logistic
Currently we have been integrating our .net server with SAP and all the project management and document management are stored in Sharepoint.. this is for a logistic company that we have been working with last 3 years.. we would like to make sure any data
points \integration points that should be considered with SAP during the integration
thanks -PalHi,
As I understand, you want to integrate SharePoint with SAP.
SAP SharePoint integration enables frequent interaction with SAP processes, which means that systems are constantly being updated with newer, more relevant data. This timely interaction helps ensure the reliability of business information, and strategic
decision-makers can depend on “one version of the truth” regarding the performance and deployment of the company’s global workforce. There is three methods combining SAP and SharePoint: SAP BI Connector, Duet Enterprise for Microsoft SharePoint
and SAP, SAP Netweaver Gateway Productivity acceletor for Microsoft.
These articles below will help you.
http://www.winshuttle.com/solutions-sap/by-function-task/sap-sharepoint/
https://www.youtube.com/watch?v=aUmWrOR_B1M
http://stackoverflow.com/questions/11113381/how-to-integrate-sap-and-sharepoint-by-sap-pi
Best regards,
Sara Fan -
High Score Table: Writing a Simple Text File with Flash and PHP
I am having a problem getting Flash to work with PHP as I need Flash to read and write to a text file on a server to store simple name/score data for a games hi score table. I can read from the text file into Flash easily enough but also need to write to the file when a new high score is reached, so I need to use PHP to do that. I can send the data from flash to the php file via POST but so far it is not working. The PHP file is confirmed as working as I added an echo to the file which displayed a message so I could check that the server was running PHP - the files were also uploaded to a remote server so I could test them properly. Flash code is as follows:
//php filewriter
var myLV = new LoadVars();
function sendData() {
//sets up variable 'hsdata' to send to php
myLV.hsdata = myText;
myLV.send("hiscores.php");
I believe this sends the variable 'myText' to the php file as a variable called 'hsdata' which I want the php file to write into a text file. The mytext variable is just a long string that has all the scores and names in the hiscore. OK, XML would be better way of doing this but for speed I just want to get basic functionality working, so storing a simple text sting is adequate for now. The PHP code that reads the Flash 'hsdata' variable and writes it to the text file 'scores.txt' follows:
<?php
//assigns to variable the data POSTed from flash
$flashdata = $_POST["hsdata"];
//file handler opens file and erases all contents with w arg
$fh = fopen("scores.txt","w");
//adds data to file
fwrite ($fh,$flashdata);
//closes file
fclose ($fh);
echo 'php file is working';
?>
Any help with this would be greatly appreciated - once I can get php to write simple text files I should be ok. Thanks.Thanks for your help.
I have got Flash working to a certain extent with PHP using loadVars but have been unable to get flash to receive a variable declared in PHP. Here's my Flash code:
var outLV = new LoadVars();
var inLV = new LoadVars();
function sendData() {
outLV.hsdata = "Hello from Flash";
outLV.sendAndLoad("http://www.mysite.com/hiscores/test23.php",inLV,"post");
inLV.onLoad = function(success) {
if (success) {
//sets dynamic text box to show variable sent from php
statusTxt.text = phpmess;
} else {
statusTxt.text = "No Data Received";
This works ok and the inLV.onLoad function reports that it is receiving data but does not display the variable received from PHP. The PHP file is like this:
<?php
$mytxt =$_POST['hsdata'];
$myfile = "test23.txt";
$fh = fopen($myfile,'w');
//adds data to file
fwrite($fh, $mytxt);
//closes file
fclose ($fh);
$mess = "hello there from php";
echo ("&phpmess=$mess&");
?>
The PHP file is correctly receiving the hsdata from flash and writing it to a text file, but there seems to be a problem with the final part of the code which is intended to send a variable called 'phpmess' back to Flash, this is the string "hello there from php". How do I set up Flash and PHP so that PHP can send a variable back to Flash using echo? Really have tried everything but am totally baffled. Online tutorials have given numerous different syntax configurations for how the PHP file should be written which has really confused me - any help would be greatly appreciated. -
Using databases with Flash and PHP
Hi, everyone!
I`m a PHP newbie. I just learned PHP so that I can use
databases with Flash.
I`ve got a .php script that contains html that loads up my
.swf file. The .swf file is the core of my site. What I want to
know is if I can call some PHP functions (that I have wrote in the
.php script) from within the .swf file... This functions would
perform the reading and updating of my database.
The only way I know of to modify a database from Flash is
using the POST and GET methods. But that opens up a new browser
window in which the PHP script is called. And that only handles
writing in the database. So, what if I just want to read from the
database some values and insert them into a TextField in Flash? How
do I do that?
Thanks! Ardy1. Goggle "Flash and mySQL" and you'll get a listing of alot
tutorials
2. I'm also just learning. Here's a great URL to start:
Building with Flash and MySQL
That's right, a Flash-based blog — it sounds a little
loony, but this blog pulls content from a MySQL database and feeds
it into the dynamic Flash frontend ...
www.webmonkey.com/programming/php/tutorials/tutorial2.html -
20k - Cached - -
I would just like the Pop Up by thr clock asking me to upgrade to 30 to go away.
I don't like 30 and i,m happy with 28.
Thanks
HaroldYou should update to Firefox 30, 28 is no longer supported nor secure.
Is there a reason you don't want to update? -
Photo gallery with buttons and php.
I am relatively new to actions script, very new to as3, and brand new to php. I have tried very hard to figure all of this out via tutorials, studying the code, etc but now I'm running out of time to get this done so I need some help.
I am trying to make a photo gallery that functions as follows:
-the php gathers all of the filenames from a folder and returns it to flash
-an array of buttons is loaded onto the stage (one for each photo)
-flash then loads the first image into a movie clip.
-when the user clicks on button[i], image[i] loads in the movie clip.
-i also plan to incorporate what might happen if the number of photos exceeds the number of buttons that can fit nicely on the stage, like an arrow to go to another set of buttons. I haven't tried coding this yet since I was just trying to get the thing to work in general first. If anyone has ideas about this, let me know.
Please don't make fun of me too much. I know it's probably a mess.
Thank you so much in advance for your help.
Here's the php:
<!--
Author: Adam Ehrheart
Site: http://adamehrheart.com
Blog: http://flashcamp.net
Date: 4.21.08
-->
<?php
# Use "." if the get_files.php file resides in the same directory as files being read
# Otherwise you can change the path to whatever you like
# eg:
# Same Directory:
# $path = ".";
# Other Directory
# $path = "products/images/"
$path = "Photography/";
# Choosing what directory to read
if ($handle = opendir($path)) {
# Temporary array to hold image files
$imageFiles = array();
# Creating loop and assigning current file to $file temp variable
while (false !== ($file = readdir($handle)))
# Checking wheter or not the file is invisible and starts with a "."
$fileCheck = substr($file, 0, 1);
# Checking to make sure the files is either a (jpg, JPG, png, PNG)
$fileType = substr($file, -3);
# Making sure file is not invisible
if($fileCheck != ".")
# Making sure file is readable and dynamically loadable by Flash
if($fileType == "jpg" || $fileType == "JPG" || $fileType == "png" || $fileType == "PNG")
# Adding File to the image array
if($path != "."){
array_push($imageFiles, $path . $file);
}else{
array_push($imageFiles, $file);
# Sorting the files alphabetically
sort($imageFiles);
# Creating XML File output to be read by Flash
echo "<?xml version=\"1.0\"?>\n";
# Root Node
echo "<image_list>";
# Creating child nodes for each image
foreach($imageFiles as $value)
# Pulling the Width and Height values for each file and adding them as attributes for the image node
list($width, $height) = getimagesize($value);
# Creating the image node
echo "<image width=\"$width\"" . " height=\"$height\">" . $value . "</image>";
echo "</image_list>";
# Closing the readdir function
closedir($handle);
And here's the as3:
//php photo section
import flash.events.Event;
import flash.net.*;
//load the php file
var myRequest:URLRequest = new URLRequest("Photography.php");
var myLoader:URLLoader = new URLLoader();
//define images variable as an xml file
var images:XML = new XML();
images.ignoreWhite = true;
images.addEventListener ('load', myLoader);
//define the images variable as an xml as the php file result
myRequest.data = images;
//outputting the filenames
function onLoaded(evt:Event):void {
trace("here we get the data back: "+myLoader.data);
//when the data is loaded, begin myRequest
myLoader.addEventListener(Event.COMPLETE, onLoaded);
myLoader.load(myRequest);
//array to call the images
var imageArray:Array //= NewArray();
var listLength:Number;
var il:XMLList = images.data //xml.images;
listLength=il.length();
var i:Number
var photo_btn:Array = new Array();
for (i = 0; i < listLength; i++); {
imageArray[i] = il[i].pic //xml.images[i].pic;
if (photo_btn[i].mouseDown == true) {
img_loader.load(imageArray[i])
if (i == 0) {
photo_btn[i].y = 422.7;
photo_btn[i].x = 411.5
else if (i > 0 && i < 24); {
photo_btn[i].y = 422.7;
photo_btn[i].x = (photo_btn[i-1].x + 18.6);
if (i > 24 && i < listLength); {
photo_btn[i].y = 442.7;
photo_btn[i].x = (photo_btn[i-1].x + 18.6);
img_loader.load(imageArray[0]);As for AS3 part of it, I am not sure your code really works. There are syntax and logical errors there.
I think you need to take it step by step and accomplish several task in the following sequences:
1. Write code that loads XML correctly;
2. Write code that enables buttons;
3. Write code that will load images on button clicks.
The code below shows in principal what needs to be done in order to load XML and make the data in this XML available for further consumption. Also, by accomplishing this step you will iron out all the PHP vs Flash wrinkles including your XML.
Please note, I don't know your XML structure so all the parsing issues you need to resolve yourself.
Once you get handle on it - we, hopefully, will talk about steps 2 and 3.
import flash.display.Loader;
import flash.events.*;
import flash.net.*;
var images:XML;
var myRequest:URLRequest;
var myLoader:URLLoader;
// list of image urls that will come from loaded XML
var imageList:XMLList;
myRequest = new URLRequest("Photography.php");
myLoader = new URLLoader();
myLoader.addEventListener(Event.COMPLETE, onFileLoaded);
// suggested handler for unexpected errors - avoids some headaches
myLoader.addEventListener(IOErrorEvent.IO_ERROR, onLoadError);
myLoader.load(myRequest);
// Note: all the listeners are removed
// it is always wise to remove listeners that are needed any longer
// to make objects eligible for arbage collection
function onLoadError(e:IOErrorEvent):void
trace(e.toString());
myLoader.removeEventListener(Event.COMPLETE, onFileLoaded);
myLoader.removeEventListener(IOErrorEvent.IO_ERROR, onLoadError);
function onFileLoaded(e:Event):void
myLoader.removeEventListener(Event.COMPLETE, onFileLoaded);
myLoader.removeEventListener(IOErrorEvent.IO_ERROR, onLoadError);
images = new XML(myLoader.data);
// only now xml is ready and you can start loading images
imageList= images.pic; -
Issue with dreamweaver and PHP on WordPress theme
Hi all
Im trying to create a WordPress theme for my blog, however I keep getting this issue (CS6) "Dynamically-related files cannot be discovered because a testing server is not defined"
I have been through my preferences and set everything how I think it should be set..
anyone have any ideas?To work with dynamic sites like WordPress, you need a local testing server.
WAMP for Windows
http://www.wampserver.com/en/
XAMPP for Windows
http://www.apachefriends.org/en/xampp-windows.html
XAMPP for Mac
http://www.apachefriends.org/en/xampp-macosx.html
MAMP for Mac
http://www.mamp.info/en/downloads/index.html
Setting up a PHP environment in Dreamweaver
http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
Building your first dynamic website – Part 1: Setting up your site and database connection
http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
Nancy O. -
Can't get suexec to work with apache and php
I want to enable php scripts to be executed by a php process that runs as the same user as the owner of the site. In my case I am just using userdir so anything under /home/username/public_html should be run as username. I have mod_suexec.so loaded in my httpd.conf file. In the apache docs it says that:
User directories:
Requests that are processed by mod_userdir will call the suEXEC wrapper to execute CGI programs under the userid of the requested user directory. The only requirement needed for this feature to work is for CGI execution to be enabled for the user and that the script must meet the scrutiny of the security checks above. See also the --with-suexec-userdir compile time option.
I think my file meets the security checks it mentions which are listed on the site: http://httpd.apache.org/docs/2.0/suexec.html So that makes me wonder about CGI execution being enabled for my user and how do I modify that. Is there anything else I need to change to enable it?
Last edited by nLEyETn (2009-07-05 20:50:33)I want to enable php scripts to be executed by a php process that runs as the same user as the owner of the site. In my case I am just using userdir so anything under /home/username/public_html should be run as username. I have mod_suexec.so loaded in my httpd.conf file. In the apache docs it says that:
User directories:
Requests that are processed by mod_userdir will call the suEXEC wrapper to execute CGI programs under the userid of the requested user directory. The only requirement needed for this feature to work is for CGI execution to be enabled for the user and that the script must meet the scrutiny of the security checks above. See also the --with-suexec-userdir compile time option.
I think my file meets the security checks it mentions which are listed on the site: http://httpd.apache.org/docs/2.0/suexec.html So that makes me wonder about CGI execution being enabled for my user and how do I modify that. Is there anything else I need to change to enable it?
Last edited by nLEyETn (2009-07-05 20:50:33) -
Problems with flex and php.
Hello, my name is Gamaliel Arredondo, i have to develope a project in flash builder 4 using the data service to connect with php, the application has installed the zend framework automatically just like the tutorials said, I use xampp and i have the files in the htdoc location, all the path are correct but when i want to connect to my php classes i receive this message:
Make sure that Zend Framework is installed correctly and the parameter "amf.production" is not set to true in the amf_config.ini file located in the project output folder. /0/onResultÿÿÿÿ � Uflex.messaging.messages.AcknowledgeMessage correlationId clientId destination messageId timestamp timeToLive headers body I797BFBCC-250A-A100-9954-68CD2AC82DF5 I2570DA6E-2F76-55E9-2249-000075B2C293 I590AA123-C3CE-5F48-6A94-00002F9B370A 126571301000 ‡G
I have searched on internet in order to find a solution but i haven't found anything that can help me, so i would like to receive some of help, my email is [email protected], if you can help me i will thank you so much, have a nice day.Hello, I am Gamaliel Arredondo, i have solved this problem, the error is in the code, you have a mistake in your code, check it out.
The way to run the flex applications, in my case, i installed xampp, in the htdoc directory i put the folder with the files of the application and all is working very well, only when the apache is running because if it is stoped the application show error, please review your code and if you have problems you can contact me by e-mail ([email protected]) i also fought with that problem but i could find the solution, i hope to help you. -
Database setup with MySQL and PHP question
Hello all,
I recently had a problem getting a report to work for a site I was updating. This site is written in PHP with a MySQL database. The application is to track customer calls to auto repair stores. The database has a lot of foreign keys because they wanted to update information in only one spot and have multiple records be updated all at once. So, I've got all the information from individual calls saved in the call_log table, and have foreign keys to reference information in other tables (for example this table lists what store received the call referencing the store table). If a store changes locations, they want to have reports automatically update with the new address, connection to conversation number, etc.
In one of the responses to my question on how to get this report to work, I was told that this could be done without using foreign keys (by Normalizing the database using mapping tables). I am still a newbie to MySQL, and after looking though a lot of manuals, tutorials, and forum posts, I am more confused now than ever.
I got the report to work using the foreign keys, but I would like to learn what I should have done with the database (and how to get the information displayed).
So for example one report would be displaying the following:
Store Reason for the Customer Call
breaks oil change shocks tune up total calls
5636 - Bloomington 2 4 0 2 8
8875 - Duluth 1 6 4 8 19
with links on the store name to pull up the information on that specific store. How would I change the database (listed below) to do this without foreign keys? Any help would be greatly appreciated.
call_log (table that contains the following:)
call_id
conv_number
date
camp_type (foreign key to the campaign table so it displays the campaign_id)
reason (foreign key to the call_reason table so it displays the reason_id)
location (foreign key to the store table so it displays the store_id)
associate
call_summary
trainig_issue (foreign key to the training_points table so it displays the training_key_id)
visit_closed
example (foreign key to the example_type table so it displays the example_id)
campaign (table that contains the following:)
campaign_id
campaign_name
campaign_promotion
campaign_coupon
campaign_startdate
campaign_enddate
call_reason (table that contains the following:)
reason_id
reason
store (table that contains the following:)
store_id
store_number
store_address
store_city
store_state
store_postalcode
store_name
store_phone
store_email
store_mgr
training_points (table that contains the following:)
training_key_id
key_issue
policy
example_type (table that contains the following:)
example_id
example_name
example_image
Thank you very much.Frankly, that is way to much of a question to be answered in detail on a forum... There's a lot involved and a lot of general database understanding required. I would highly recommend:
Database Design for Mere Mortals: A Hands-On Guide to Relational Database Design, Second Edition -- by Michael J. Hernandez
This is an invaluable book to get you going in the right direction and on a firm foundation.
Lawrence *Adobe Community Expert*
www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in ASP, PHP and CF
www.twitter.com/LawrenceCramer -
Problem with ssi and php includes
Hello Everyone,
I’m a little confused and I hope someone here can shed some light on my problem. I teach web design (Macromedia Studio 8) at the high school level and I’m having trouble using .php includes and server side includes on our Mac OSX 10.4 server with WebObjects 5.2.
The Problem – Dreamweaver correctly inserts the code….
<?php
include ('assets/includes/header.html');
?>
but when the same index.php file is uploaded to the server and then downloaded to another workstation the code is changed. The php include is removed and replaced with the actual html from the header.html file.
Does anyone know what causes this?
Thank you for your help.
Todd
www.mrbenrud.com
Mac OS X (10.4.4)If I understand your post correctly, what you are experiencing is exactly what PHP is supposed to do.
I am guessing that you are expecting a user to be able to see the programmer's php code just as is the case with html, where one can simply see the code by control clicking the page in Safari and selecting "View Source", for example.
However, for security reasons PHP will never allow this behavior via http 'get' functions. Imagine, a php page which includes php code that accessess a highly sensitive database and thus were to allow any client to see the exact architecture of the database. For these reasons the server is the only one able to parse through the PHP code and generates html code from it, which is sent to the client.
Remember, PHP stands for hypertext preprocessor, that is the server processes php code before hypertext is generated and sent to the client.
The include function is a php function and thus will not be displayed as part of the generated html.
The only way to allow your students for example, to see the PHP code is to serve the folder containing the web site being served via another protocol such as AFP, SMB, and FTP.
I hope this addresses your concerns.
Best,
Max
Maybe you are looking for
-
Hi, I'd like to save the light meter image screen in a jpeg or tiff file. The exemple "Light Image metter" is great but i can't save the colored image screen of emission, when i save the output image, it's always in black and white. It's possible to
-
ok...I now have a Mac Pro Notebook. I want to get allllllll of my songs into my itunes library. However, it will only sync the songs "purchased" on my ipod. How do I get them all from my ipod touch without having to download to a jump drive from my o
-
Respected gurus, while i am in f-53 ,i got one error,to see that error if i double click on that one it gives some message no 3245,how can i find out that error description. regards jana
-
Youtube not running well on your iBook? Theres a solution!
hello every one, this idea might probabily have been posted some where else already, but, I i think I will put it in here any way. Is your iBook running youtube with a slow frame rate? well, theres a solution around this. the mobile version of youtub
-
Alpha properties in a dynamically generated movie
the situation: i have to dynamically generate a movie clip inside the already created movie clip i have two event controllers which ( SHOULD) set the _alpha state of two instances( which happen to be 2 diff key frames of one animation sequence turns