Problem with temporary table as array

Hi, i created a report where i use a temporary table as array. This is because i want to save several documents in 1 record variable. The documents are splitted by the array indexes of this temporary table. Now i have the problem that i can’t create 2 entries with same primary key in this table WITH different index no. for table array Example: TmpTable[1].INIT; TmpTable[1].“Primary key field 1” := 1; TmpTable[1].“Primary key field 2” := ‘blabla’; TmpTable[1].INSERT; TmpTable[2].INIT; TmpTable[2].“Primary key field 1” := 1; TmpTable[2].“Primary key field 2” := ‘blabla’; TmpTable[2].INSERT; ← ERROR: Primary key already exists Any ideas why this doesn’t work???

Found answer for this problem in another forum entry …

Stefan, I would appreciate the reference of the posting you found. Thanks, Chris.

no problem … http://www.navision.net/forum/topic.asp?TOPIC_ID=5822