Sr. No. (item tracking) printing prob.

upasanisandipupasanisandip Member Posts: 405
HI,

I want to show Serial No. from Item tracking so i am using Resrevation Entry table for that.
In Repeat.. Unitl loop i am printing that.
But getting Sr. no. like following
Type No. Description
Item I0066 ABC
L1,L2

ITEM I0064 XYZ
L1,01,02

As you can see L1 is appearing again
I code for it like following
is there any error in that ?


CheckShptLines(SalesLine2 : Record "Sales Line")
// Added by sandip start
//MESSAGE (TempSrno);
CLEAR(TempSrno);

ReservationEntry.RESET;
ReservationEntry.SETFILTER(ReservationEntry."Source ID","Sales Line"."Document No.");
IF ReservationEntry.FIND('-') THEN
REPEAT
ReservationEntry.SETFILTER(ReservationEntry."Item No.","Sales Line"."No.");
IF TempSrno= '' THEN

TempSrno:= ReservationEntry."Serial No."
ELSE
TempSrno:=TempSrno + ',' + ReservationEntry."Serial No.";
UNTIL ReservationEntry.NEXT= 0;

Thanks,
Sandip.

Comments

  • girish.joshigirish.joshi Member Posts: 407
    Two different item number's can have the same serial number - so there is no error there.
  • upasanisandipupasanisandip Member Posts: 405
    HI Girish,

    My prob. is that it is carring out First items Sr. No. to Next item

    See
    Item I0066 ABC
    L1,L2

    ITEM I0064 XYZ
    L1,01,02

    L1 is carring out. I don't want that.

    Sandip.
  • upasanisandipupasanisandip Member Posts: 405
    Two different item number's can have the same serial number - so there is no error there.

    Hi Girish,
    My prob. is that Sr. No. of Previous Item is carring out to Next Item no.

    You can see here L1 is printing again.

    Item I0066 ABC
    L1,L2

    ITEM I0064 XYZ
    L1,01,02


    Sandip/
Sign In or Register to comment.