cancel
Showing results for 
Search instead for 
Did you mean: 

Export Parameters and Importing into VBA - different data!

Former Member
0 Kudos

Hello,

This is a very stange one. Note that I am not an ABAP programmer. I am a VB/VBA programmer.

The ABAP programmers has created a function with Export Parameters. There are also a couple of Tables that export too but they are all OK. It's the Structure that is the issue.

They Export values and I can read these values using VBA code that I have found on the SAP blogs (https://blogs.sap.com/2007/12/12/accessing-sap-functions-from-excel-using-visual-basic-applications/... But, there is one field we use (NAME1) that does not come through correctly. I have seen their debugger and it is showing the correct data being exported but by the time it gets to my VBA code, the value has changed to another value that has been used within the ABAP code. If I try the same function with a different order number (the key) then I can get good data from all fields. I have also used this same code method on other ABAP/VB projects and they work perfectly.

Do any of you guys have any experiance with what could be going wrong? Could there be a temporary structure I am reading (I have checked and I am reading the correct structure name)? Can the values shown on the Structure Editor Display and debugger not reflect what ABAP is actually sending? Both myself and the ABAP programmers are at a loss on this...

Many thanks for any help you can give!

Wayne

Accepted Solutions (0)

Answers (0)