Hi,
there can be only a link to one prod. order line, that's how it's checked if that's the case. I think the problem with selecting the Applies-to Entry is in SelectItemEntry():
...
SelectItemEntry(CurrentFieldNo : Integer)
IF ("Entry Type" = "Entry Type"::Output) AND
("Value Entry Type" <> "Value Entry Type"::Revaluation) AND
(CurrentFieldNo = FIELDNO("Applies-to Entry"))
THEN BEGIN
ItemLedgEntry.SETCURRENTKEY(
"Prod. Order No.","Prod. Order Line No.","Entry Type","Prod. Order Comp. Line No.");
ItemLedgEntry.SETRANGE("Prod. Order No.","Prod. Order No.");
ItemLedgEntry.SETRANGE("Prod. Order Line No.","Prod. Order Line No.");
ItemLedgEntry.SETRANGE("Entry Type","Entry Type");
ItemLedgEntry.SETRANGE("Prod. Order Comp. Line No.",0);
END ELSE BEGIN
ItemLedgEntry.SETCURRENTKEY("Item No.",Positive);
ItemLedgEntry.SETRANGE("Item No.","Item No.");
ItemLedgEntry.SETRANGE(Correction,FALSE);
END;
...
Comment out the marked setrange and you'll get a choice.
with best regards
Jens