cancel
Showing results for 
Search instead for 
Did you mean: 

PHP + SAP

Former Member
0 Kudos

hi...

I'm trying to use PHP + SAP, with standard code who comes with SAPRFC... well... the connection runs without problems, but, when my code found some value like "money", the script execution stops...

I don't know what is this... I need some help...

Sorry for my english... I'm from brazil, and my english is not good...

Thanx for any help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can you describe the error from the dev_trc and perhaps the code you are using?

Former Member
0 Kudos

I'm trying to use the standard example, from saprfc package... the file is:

saprfc_test.php

Script run's without problems, but, when any money value is found, execution is stoped...

Here, money is like "1.987,00"... separator is ","...

Maybe this is the problem. I don't know...

Sorry for my english... I'm from brazil, and still learning english...

Thanx for help...

gregorw
Active Contributor
0 Kudos

Hello Glauber Vicari,

your english is excellent compared to some others here in SDN :-). Is the Value you want to pass an import or export value? How is your locale set in PHP?

Regards

Gregor

Former Member
0 Kudos

well...

I'm using the standard example, who comes with saprfc... the file is: saprfc_test.php...

I can run this file, but, when they find any numeric value (separated by ","), the execution stops...

Script can show name, and many other informations from SAP, but when they find that value (with ","), they stops...

If I run other functions, without money values, this functions runs perfetctly...

I don't know what to do...

one more time, sorry for my poor english....

Thanx!

Former Member
0 Kudos

SAP is returning an array, like this:

Array
(
    [0] => Array
        (
            [PERNR] => 45926
            [CNAME] => Name User
            [PAYMENT] => 0.00
            [DESCCOMP] => 0.00
            [DESCAUT] => 0.00
            [OTDESC] => 0.00
            [TTDESC] => 0.00
            [LIQUID] => 0.00
        )

)

When they found "payment" table column, stops execution... An example of correct value: 1.878,50

But, nothing is retrieved...

I don't know what to do...

Thanx...

gregorw
Active Contributor
0 Kudos

Hi,

can you please provide us the Function Module Name you're calling in the SAP backend?

Regards

Gregor

Former Member
0 Kudos

Hi...

The problem is resolved... They is on Abap Function, not in PHP...

😄

Now, everything is working correctly...

One more time, sorry for my english...

Thanx for all help...

Answers (1)

Answers (1)

Former Member
0 Kudos

The problem is on abap function...