I'm using Table 246 (Requisition Line) with TempRL as temporary variable and RL as not temporary variable
but why I cannot catch if i set TempRL as Temporary table?
if i set as not temporary table, i can catch.....
what do i miss?
My code
TempRL.SETRANGE(TempRL."No.",RL."No.");
TempRL.SETRANGE(TempRL."Variant Code",RL."Variant Code");
IF TempRL.FIND('-') THEN
message('TEST');
Answers
I think first you need to check Temporary table contain any data or not by using count.Then start to apply any filter.
Hemant
They can conquer who believe they can.
if i set temporary = no --> it can be caught
but if i set temporary = yes --> it cannot be caught
Test --> Requisition Line (Temporary No)
Test 10 RL 0
Why is it like this???
First Insert the records in TempRL before applying any filter.
I don't know what u trying but may be you need --
TempRL := RL;
TempRL.Insert;
Hemant
They can conquer who believe they can.
if the record already in it, it should be modify
but if not, then it's insert
For your information , i already done using this code for purchase and sale
after i copy paste, for requisition is cannot
Your code seems correct , debugger may be help you to find if anything wrong....
Hemant
They can conquer who believe they can.
i really confused about this
how to use debugger??
if forgot to insert the vendor no.
but i setrange it
now....
now it's ok
thanks