Skip to Content
author's profile photo Former Member
Former Member

Passing an IMPORT Table Parameter...

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 01: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.