George, Thank You for the answer.
I am afraid I wasn't clear enough, the import i am trying to do is with
SBSL using S1 Import menu (SOIMPORT object), with the
Import section, as follows:
Import ImpPurDoc(sCntr,sCntrLines) into 'PURDOC[FORM=Cumparari_ROM],IMPORT:1' {
FINDOC sCntr {
SERIES = sCntr.DSRID;
TRNDATE = sCntr.FTRDATE;
SERIESNUM = sCntr.DSRNUMBER;
FINCODE=sCntr.TRADECODE;
BRANCH=sCntr.BRAID;
TRDR = sCntr.TRDR;
}
MTRDOC sCntr{
WHOUSE=sCntr.STOID;
WHOUSESEC=sCntr.SECSTOID;
DELIVDATE=sCntr.DELIVERYDATE;
SHIPDATE=sCntr.DELIVERYDATE;
}
CCCFindocExtra sCntr{
FINCODE=sCntr.TRADECODE;
Trdr=sCntr.TRDR;
CCCTipAchiz=sCntr.CCCTipAchiz;
}
ITELINES sCntrLines {
MTRL = sCntrLines.MTRL;
QTY1 = sCntrLines.QTY1;
PRICE = sCntrLines.PRICE;
DISC1VAL=sCntrLines.DISC1VAL;
LINEVAL=sCntrLines.LINEVAL;
COMMENTS1 = sCntrLines.JUSTIFICATION;
MTRLOT=sCntrLines.MTRLOT;
SALESCVAL=sCntrLines.SALESCVAL;
}
In the specified form (Cumparari_ROM) the table CCCFindocExtra is available, but from the SBSL Script is not.
As an immediate alternative we are using an ExecSQL on each fetch to insert data in this table, but I was looking for a better solution.
Thank you for the time spent already!
Liviu