04-13-2006 3:01 PM
HI,
Can anyone tell me how to keep the test data directory while renaming function modules? Or how to transfer the test data directory to a copied function module? All the test data are getting lost while I am renaming a function module.
04-13-2006 3:13 PM
There is no standard way for this, you might try to go to debug mode when you got to the Test data directory and change the new FM name to the old one, then save it again.
I made a quick debugging and the relevant code is in LSEUJFDB Form DB_IMPORT_DATADIR.
Hope it helps.
Peter
04-13-2006 3:10 PM
it is not possible to transfer the test data while copying.
Cheers,
Abdul Hakim
04-13-2006 3:13 PM
There is no standard way for this, you might try to go to debug mode when you got to the Test data directory and change the new FM name to the old one, then save it again.
I made a quick debugging and the relevant code is in LSEUJFDB Form DB_IMPORT_DATADIR.
Hope it helps.
Peter
04-16-2006 3:32 PM
Thanks Peter. Actually I was looking for a solution which we can use across our project as there are quite a no. of function modules need to be renamed because of change in the naming convention. I have written a program leveraging SAP's code which takes in the 2 function module names and copies test data directory from one to the other. If any body wants the code, drop me a mail at <b>mailtodeep1@rediffmail.com</b> and I will send you the code. Thanks once again.
04-13-2006 5:45 PM
Maybe this would work - instead of renaming the FM, copy it to the new name. Then change the old one so that it simply calls the new one with the same parameters. Put them in different transports so that you can keep the old one from going to production.
Rob
04-16-2006 3:33 PM
Thanks Rob, that was quite smart. But I wanted something smarter to present to the client, and that's why I have written a code to accopmlish this. If any body wants the code, drop me a mail at <b>mailtodeep1@rediffmail.com</b> and I will send you the code. Thanks once again.
04-16-2006 3:38 PM
why dont you write a weblog about your code sample or submit it as a code sample, that way the whole community can benefit from it.
it was nice of you to offer to email the code.
Regards
Raja
04-17-2006 7:46 PM
Hi,
I am not familiar with the concept of Weblogs.Could you please let me know how to write that? I don't know how to submit a code sample either. If you plese let me know how to do either of them, I will do it. Thanks in advance!
04-17-2006 7:51 PM
At the top of this page is a link 'Submit Content'. Clicking on it will get you started.
Rob