Skip to Content
avatar image
Former Member

How to transfer test data between function modules?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 13, 2006 at 02: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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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 mailtodeep1@rediffmail.com and I will send you the code. Thanks once again.

  • avatar image
    Former Member
    Apr 13, 2006 at 04: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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 13, 2006 at 02:10 PM

    it is not possible to transfer the test data while copying.

    Cheers,

    Abdul Hakim

    Add comment
    10|10000 characters needed characters exceeded