FieldRef := GenJnlLineRecordRef.FIELD(1); //Field 1 is Journal Template Name FieldRef.SETRANGE(MyJournalTemplateName); FieldRef := GenJnlLineRecordRef.FIELD(51); //Field 51 is Journal Batch Name FieldRef.SETRANGE(MyJournalBatchName); IF GenJnlLineRecRef.FINDFIRST THEN....
FieldRef1 := GenJnlLineRecordRef.FIELD(1); //Field 1 is Journal Template Name FieldRef1.SETRANGE(MyJournalTemplateName); FieldRef2 := GenJnlLineRecordRef.FIELD(51); //Field 51 is Journal Batch Name FieldRef2.SETRANGE(MyJournalBatchName); IF GenJnlLineRecRef.FINDFIRST THEN....
Answers