cancel
Showing results for 
Search instead for 
Did you mean: 

No more PHP RFC...

former_member583013
Active Contributor
0 Kudos

Hi all:

The other day I mailed Eduard Koucky, creator of the PHP SAPRFC connector about the new version of his connector....Sadly, he told me that he has switched to .NET programming, so no more versions are going to come out -:'(

Gladly, the last avaliable version is very stable, so the only thing left is to continue using it -:)

Greetings,

Blag.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

I was sent here because it on http://enterprisegeeks.com/blog/2006/03/20/getting-started-with-php-and-sap/ I'm on a dead end.

I've been working with SAPRFC for PHP on Windows 2003 for over 3 years. Recently we moved our PHP server to an external Linux server. Since then we have connection problems. Only refreshing the page makes it connect. The VPN tunnel/connection has no issues.

In ST22 we see some "durations" highlighted in red:

|14:11:09.069|1.459.562|SAPLZBA |prddb_PRD |Server | | | 1| 0| |vps.testserver.com prddb_PRD_00 Server ZBAPI_CUSTOMER_GETINFO2 5.976 251

|14:13:44.941|1.578.382|SAPL2032|prddb_PRD |Server | | | 1| 0| |vps.testserver.com prddb_PRD_00 Server BAPI_SALESORDER_CREATEFROMDAT2 5.120 5.902

And it looks like it is only these bapis that cause problems and need refreshing.

Did anyone else have this problem? Can that "duration" be changed? Should we amend the BAPIs?

In the PHP logs I found this:

[Tue Apr 07 12:19:45 2009] [error] [client 83.37.79.157] PHP Warning: RFC Error Info :

Group : 102

Key : RFC_ERROR_COMMUNICATION

Message : SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed

Connect_PM GWHOST=GWSERV=, GWSERV=sapgw20, ASHOST=100.100.100.58, SYSNR=20

LOCATION CPIC (TCP/IP) on local host

ERROR hostname u2018GWSERV=u2019 unknown

TIME Tue Apr 7 12:19:45 200

RELEASE 640

COMPONENT NI (network interface)

VERSION 37

RC -2

MODULE niuxi_mt.c

LINE 388

DETAIL NiPGetHostByName2: hostname u2018GWSERV=u2019 not found

SYSTEM CALL gethostbyname_r

COUNTER 1

in /var/www/vhosts/testserver.com/httpdocs/cat/cart.php on line 19, referer: https://www.testserver.com/cat/search.php

***

[Tue Apr 07 12:19:25 2009] [error] [client 84.37.79.167] PHP Warning: RFC Error Info :

Group : 101

Key : RFC_ERROR_PROGRAM

Message : Missing R3NAME=u2026 or ASHOST=u2026 in connect_param in RfcOpenEx

in /var/www/vhosts/testserver.com/httpdocs/cat/index.php on line 96, referer: https://www.testserver.com/cat.php

Maybe this is not related but I try to give as much as I found (definitely NOT being an expert to be honest)

Next to that I wonder about the future of SAPRFC. We have built a webtool for over 3 years and are really worried that all our efforts will need to be rebuilt. I see info about "sapnwrfc for PHP" but I'm not sure if I already need to change to that version.

Nigel_James
Active Contributor
0 Kudos

But Alvero, it is open source there is nothing stopping anyone like you and me to take up the project and take it to the next level.

I already work about ... well too many hours per week - but this is an important project MUST NOT DIE and besides I am trying to get to Munich on the back of a couple of PHP and SAP sessions.

Open source is bigger than one person (that's the point)

So who's game? Who is going to take up the challenge?

former_member583013
Active Contributor
0 Kudos

Hey Nigel:

That's exactly what I want....See who's up to the challenge -;) Of course that project can't die.....As you say it's Open Source and we can make something about it....Tonight I'm going to see if there's something I can do...And of course, everyone is welcome to help -:)

Greetings,

Blag.

Former Member
0 Kudos

Hola,

I wish I could help but unfortunately my last C adventures are 15 years back.

But if you need a beta tester, count me in.

regards, anton

Nigel_James
Active Contributor
0 Kudos

Good stuff Anton. My last C adventures were about as far back too but I am keen to support whomever puts their hand up.

This would be a great Google Summer of Code project - shame that has closed.

Nigel

former_member583013
Active Contributor
0 Kudos

It seems that my C/C++ last experience is more recent than yours -;) Last thing I did was an Interactive Fiction game called <b>El Gato Cheko</b> (Cheko the cat)....I'm not good at API calls, but looking at the source code might help me to get a good undestanding and tried to some stuff....hopefully -:P

Anton, thanks for the offer....Beta Testers are always welcome and need it -:D

Greetings,

Blag.

Nigel_James
Active Contributor
0 Kudos

Piers has updated the PHP connector.

See his post for details

[/people/piers.harding/blog/2009/01/22/sapnwrfc-for-php|/people/piers.harding/blog/2009/01/22/sapnwrfc-for-php]

Nigel