Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

REFRESH IMPORT DATA IN FM

Former Member
0 Likes
825

HI,

i use fm with test data directory that i put and when i do call to fm with in first time i get the data that i wont but when i call the fm in( i push back ) second time i get the data from the first call and second call there is buffer that i have to clean or something else ?

Regards

5 REPLIES 5
Read only

matt
Active Contributor
0 Likes
667

Come out of the function module test framework completely and redo your test.

matt

Read only

Former Member
0 Likes
667

hi Matthew Billingham

thanks

what u say that this is o.k. because when i come out completely its work o.k. but the problem is that its not happen in all my fm just this.

regards

Read only

matt
Active Contributor
0 Likes
667

Some function modules set/read data that's in the global data of the function group. Some don't. The one you're having trouble with obviously does.

When these fm are used programmatically, you'll find that there is often a call to a function module that does a refresh, before they're used.

matt

Read only

Former Member
0 Likes
667

hi,

i there is way to now which fm have this trouble and which don't ?

Regards

Read only

matt
Active Contributor
0 Likes
667

The only way you could find out would be by looking at the code. If the function module changes data that is defined in the global data of the function group, then you could have this problem. Another clue would be to look for function module in the same function group that is called something like "RESET_BUFFER".

matt