cancel
Showing results for 
Search instead for 
Did you mean: 

Tables as export parameters

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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