Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Passing an IMPORT Table Parameter...

former_member583013
Active Contributor
0 Kudos

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.

5 REPLIES 5

former_member583013
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

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.

0 Kudos

Ok....Silly me....It was a typo mistake -:(

I wrote <b>RQ01NAME</b> instead of <b>RQO1NAME</b>

Greetings,

Blag.