Cannot create a delivery with more than 100 Lines

SOLVED

I am trying to create a delivery with more than 100 lines and it is throwing an error message that says Error 8 : Index Incorrect ITMREF(100). Anybody have any ideas what this means? I checked the activity code, and it is set to have a max of 300 lines. 

Thanks,

Chris

Parents Reply
  • 0 in reply to Rafael

    this is my SUBSDH code from line 1903 to 1914 (standard with no modification to it)...

    If find([M:SDH1]LINTYP(NOL),3,4,5,7,8,9,11,12,13)
    Local Integer ORI : ORI=NOL
    While !find([M]LINTYP(ORI),2,6,10) & ORI >= 0 ORI-=1 Wend
    If find([M]LINTYP(ORI),2,6,10) GPNTITMREF=[M]ITMREF(ORI) Endif
    TYP=4
    Endif
    # --> Recherche tarif
    Call RECH_TARIF(TYP,VALEUR,NOL,[M]QTY(NOL),"SDH",[M]GROPRI(NOL)) From TRTVENTAR
    # --> Calcul du prix net
    Call CLCNETPRI([M]QTY(NOL),[M]CUR,NOL) From TRTVENPRI
    # Le ctrl du prix net et le calcul de marge utilise la classe [M]
    WSVG_ITMREF=[M]ITMREF(NOL) : [M]ITMREF(NOL)=VALEUR

Children