RecRef with Company Name as Parameter

myanilkumarmyanilkumar Member Posts: 108
edited 2011-01-12 in NAV Three Tier
Hi All,

I am using RecRef Variable to copy data from One Company to other Company. I am using RecRef Variable for this. I am using the following code to open the RecRef Variable with the Company Name as Parameter.

RecRef.CLOSE;
RecRef.OPEN(MigrationRecord.TableID,FALSE,Company.Name);
RecRef.INIT;
InsertRecordWithKeyFields(RecRef,MigrationRecord);
ModifyRecordWithOtherFields(RecRef,MigrationRecord);

In classic it is working fine but in RTC it is not working. The Program Runs in RTC with no ERRORS but the data is not copying to other companies.

I think RECREF pointing to Current Open Company.

Please advise.

Regards,

Anil

Comments

  • ara3nara3n Member Posts: 9,256
    I suggest to check Partnersource for a hotfix for this issue. If you don't find any info, You'll need to report to Microsoft.

    Another option is to see if it works in 2009 R2, if it does, then do exe upgrade to newer executable.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.