01-09-2007 1:19 PM
Yesterday, I was working on my SP01 PHP-SAP Based and I found a little problem...
I created a "Z" based version of RSPO_L_RETURN_RAW_DATA (I need it to make it RFC enabled)....But there's one problem....
One of the IMPORT parameters is <b>RQ</b> which is really a Table, structure <b>TSP01SYS</b>.
I created something like this...
[code]
$RQ = Array( 'RQIDENT' => $RQIDENT,
'RQCLIENT' => $RQCLIENT,
and so on....
[/code]
An passed like a normal Import parameter....But it doesn't work....I try to pass it as a table parameter...but of course that wouldn't work either....
How can I achieved that???
Greetings,
Blag.
01-09-2007 1:36 PM
Ooopppsss! -:'( Shame on me....I just found this on Eduard's homepage...
[code]
<?php
saprfc_import ($fce,"NAME","Smith");
saprfc_import ($fce,"FULLNAME", array ("FIRST"=>"John","LAST"=>"Smith"));
?>
[/code]
Maybe I get an error in my array...Or I need to build it inside my Import....Yesterday my internet connection broke so I couldn't look for it....Still....I'm not going to close the question until I test this....So, please try to help me -;) Points will be assigned -:D
Greetings,
Blag.
01-09-2007 1:42 PM
Blag,
According to the SAPRFC doc file you would do something like this:
[code]
<?php
saprfc_import ($fce,"NAME","Smith");
saprfc_import ($fce,"FULLNAME", array ("FIRST"=>"John","LAST"=>"Smith"));
?>
[/code]
I haven't had to use a structure in my PHP<-->SAP yet, so I cannot say if it works.
If you have some sample code for me to try I'd be happy to help you further.
Ray
01-09-2007 1:59 PM
Thanx for you answer Ray -;) I just read the docs -:P
Actually...If I can make it work...I'm going to publish my new blog tonight...Using that kind of Import parameter...So, you're going to have a nice example to work with -:D
Anyway...you can check any of my other blogs -;)
<a href="http://tinyurl.com/jnlfd">Blag Blog's on SDN</a>
Greetings,
Blag.
01-09-2007 2:01 PM
Ok....Watching the FM again...I realized that this TABLE parameter...<b>PAGE_INDEX</b> is mandatory...Maybe that's one the problems too.....I haven't pass it in my PHP script....
Greetings,
Blag.
01-10-2007 1:24 AM
Ok....Silly me....It was a typo mistake -:(
I wrote <b>RQ01NAME</b> instead of <b>RQO1NAME</b>
Greetings,
Blag.