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

Copy PLD templates

Hi all,

I am trying to copy a PLD template from one DB to another.

I am using the query that I found here on the forum:

INSERT INTO [Target].[DBO].[RDOC]

SELECT [Source].[DBO].[RDOC].* FROM [Source].[DBO].[RDOC]

WHERE [Source].[DBO].[RDOC].DOCCODE = 'VPM10003'

INSERT INTO [Target].[DBO].[RITM]

SELECT [Source].[DBO].[RITM].*

FROM [Source].[DBO].[RITM]

WHERE [Source].[DBO].[RITM].DOCCODE = 'VPM10003' AND [Source].[DBO].[RITM].DOCCODE

IN (SELECT DOCCODE FROM [Target].[DBO].[RDOC])

I get the following error however and I havent been able to figure out why:

Insert Error: Column name or number of supplied values does not match table definition.

I would normally use the method of copying all the fields, but the 2 databases are on different patch levels so i cant log into the source DB in the normal way.

Can anyone give me any suggestions as to what I may be doing wrong??

Thanks and regards,

John O'Brien

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:02 AM

    John O'Brien,

    If I remember, Since Patch 36 onwards SAP has added a column to the RDOC and RITM tables and this is probably what is causing the error.

    Suda

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:07 AM

    Hi Suda,

    Thanks for quick reply.

    I will try to get this cust upgraded asap.

    Thanks again,

    John

    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.