Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
Read only

OPDN

Former Member
0 Likes
573

Hi, I'm trying to import throw DTW the Good Recipient PO with its lines.

I'm using tihis template:

OPDN
RecordKey;DocNum;DocDate;CardCode;NumAtCard;Series;TaxDate;U_IndVettore
RecordKey;DocNum;DocDate;CardCode;NumAtCard;Series;TaxDate;U_IndVettore
1;2128;20120417;F86337;121203;86;20120417;xxx

PDN1
Recordkey;BaseType;ItemCode;Quantity;Price;BaseEntry;BaseLine;LineNum
RecordKey;BaseType;ItemCode;Quantity;Price;BaseEntry;BaseLine;LineNum
1;22;68967;3;2.35;20916;0;0
1;22;137819;1;2.35;20916;1;1
1;22;137835;1;1.45;20916;2;2
1;22;137894;1;1.45;20916;3;3
1;22;143589;2;1.5;20916;4;4

I also tried without the LineNum column but, in any case, it add to the database the new Good Recipient PO but only with the last line (1;22;143589;2;1.5;20916;4;4).

Why?! Anybody can hel me?

1 ACCEPTED SOLUTION
Read only

JL23
Active Contributor
0 Likes
504

I do not know DTW (Data Transfer Workbench), as I never worked with a Business One system, but the problem  looks similar to what some have with LSMW .

I looks like you create a transaction for any item line (PDN1) And hence the second overwrites the first, the third overwrites what was written with the second, etc,  and finally the last record survives.

Maybe this very good video can help you over your issue: http://www.youtube.com/watch?v=2kitUWIzZGM

3 REPLIES 3
Read only

JL23
Active Contributor
0 Likes
505

I do not know DTW (Data Transfer Workbench), as I never worked with a Business One system, but the problem  looks similar to what some have with LSMW .

I looks like you create a transaction for any item line (PDN1) And hence the second overwrites the first, the third overwrites what was written with the second, etc,  and finally the last record survives.

Maybe this very good video can help you over your issue: http://www.youtube.com/watch?v=2kitUWIzZGM

Read only

Former Member
0 Likes
504

This not solve my problem

Read only

Former Member
0 Likes
504

I solved my problem by writing all the template fields for PDN1 and leaving blank the unnecessary ones.