Skip to Content
author's profile photo Former Member
Former Member

FUNCTION 'RS_DD_COPY_OBJ'

Hi,

I had mentioned this problem in a thread. But, then I thought that creating new thread is more logical.

Now, I am calling FUNCTION 'RS_DD_COPY_OBJ' as:

CALL FUNCTION 'RS_DD_COPY_OBJ'  
EXPORTING    
SOURCE_NAME              = SRC_TABL  
TARGET_NAME              = TGT_TABL  
OBJTYPE                  = OBJECT_TYPE  
EXCEPTIONS    
NOT_EXECUTED             = 1    
PERMISSION_FAILURE       = 2    
OTHERS                   = 3.

As you see above there are two parameters that this function gets: SRC_TABL and TGT_TABL. These are table names. Before this function gets these parameters I am getting these table names from user. Although I send these parameters, FUNCTION 'RS_DD_COPY_OBJ' get table names itself from user. So, there may be difference between start of the program that I wanted and while Function wanted.

In this position, I need the table names that function gets.

How can I solve this problem?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Feb 17, 2005 at 02:04 PM

    Hi Huseyin

    It seems the only way is to copy the function to your namespace (i.e. ZRS_DD_COPY_OBJ) and make it not popping the screen for new names by deleting relevant code part. In fact there are more technical FMs to copy wrt. object types if you inspect the code. But they do not handle CTS (Change and Transport System) and locking. So, they are not feasible.

    Kind Regards

    *--Serdar

    ssimsekler@yahoo.com

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Huseyin,

      When the user changes both the source table and the target table names in the POP-UP, the system tries to check whether the new source table is existing in the database.

      If it is existing , then the system will copy it to the

      new target table.

      Otherwise,

      The system throws an error saying that the source table does not exist.

      In any case, the system just needs to create the new table based on the source table. So, the actual operation is happenning only on the new table, so the system sets the parameter-ID to the new table. The source table has just been used as a template and there's no parameter-id associated with it. so you are not able to get the changed value of the source table.

      Regards,

      Anand Mandalika.

      P.S. Please don't forget the points..:-)

  • Posted on Feb 18, 2005 at 09:01 AM

    Hi Huseyin,

    Instead of FM RS_DD_COPY_OBJ try using RS_DD_COPY FM.

    Thanks

    Lakshman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2005 at 10:20 AM

    Hi Anand,

    I apolagize my previous message. Ignore that. If source table changes system don't care it. system cares only the first value of source table. But if target is changed system cares the last value of target.

    Is there any way that system cares the last value of source adress?

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Huseyin,

      I don't think you have observed it carefully. The system does take into consideration only those values of the source table which are last specified on the pop-up.

      I have just checked this out. So please re-verify it once again.

      Regards,

      Anand Mandalika.

      Hint: As a sample, give different source tables in both the screen and the pop-up.

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2005 at 08:26 PM

    Yes Anand,

    You're right.

    Problem is solved.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.