on 01-25-2008 11:03 PM
Hi,
I'm trying to pass table as an export parameter, but it's always empty. Here is the function module:
FUNCTION ztr_ks_sezproj.
*"----
*" EXPORTING
*" VALUE(SEZ_PROJ) TYPE ZTR_KS_SEZPROJ
*"----
SELECT * FROM proj
INTO CORRESPONDING FIELDS OF TABLE sez_proj.
ENDFUNCTION.
where ZTR_KS_SEZPROJ is defined as a table type. After the usual login/discover steps, I'm trying to assign the SEZ_PROJ table to PHP variable using
$seznam = saprfc_export($rfc_handle, "SEZ_PROJ");
Though, $seznam is always empty. I know this would work using TABLES instead of EXPORTING, but I guess the first way is somewhat cleaner. Is it possible to do it the first way?
Thanks in advance
Tomas
Hi Tomas,
I don't think it's possible to do, perhaps you can try to define the variable $seznam as an array.
But I think that the best way is to define in SAP SEZ_PROJ as a table parameter referred to structure ZTR_KS_SEZPROJ. This will surely works.
Hope it helps you
Regards
L.Tavecchi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.