cancel
Showing results for 
Search instead for 
Did you mean: 

SAP VBA RFC_READ_TABLE Export Parameter ET_DATA returned empty

former_member819703
Discoverer
757

Hi all,

I am currently working with SAP in VBA. I use the RFC_READ_TABLE function to retrieve tables from SAP. In ECC the data was always retrieved correctly. However with EWM some values (such as Product from /SCWM/AQUA) cannot be retrieved correctly. Products are only 32 characters long (hexadecimal), but I only get the first 16 characters back, because the length of the field is 16. I now want to use the ET_DATA export parameter for getting the table with data. I set the import parameter USE_ET_DATA_4_RETURN = "X". When I run this in SE37 the ET_DATA export parameter is filled. However if I run the code in my VBA script I get an empty object back. The rest of the import parameters are not changed.

Has anyone had the same problem with RFC_READ_TABLE and knows how to set up the ET_DATA export parameter correclty? How should it be different from the DATA table that is normally returned? (Do you need to set up ET_DATA and DATA differnlty for example?)

Accepted Solutions (0)

Answers (0)