Hello,
I have one requirement where I want to import only the Item from the file.
The file contains the Item = Item+Spec(Item variant field);
Example: FDCW100VNX-A M
From the above M is a spec
So i have to check if the Item No. from position 10 to 20 contains any spec in between then I have to store only FDCW100VNX-A in table by excluding that spec.
I tried by getting the position of the space by using:
Dummy :='O20161213FDCW100VNX-A M PCA003F114AC 00000027';
EVALUATE(ActivityType,COPYSTR(Dummy,1,1));
EVALUATE(Year,COPYSTR(Dummy,2,4));
EVALUATE(Month,COPYSTR(Dummy,6,2));
EVALUATE(Day,COPYSTR(Dummy,8,2));
DateofClr := DMY2DATE(Day,Month,Year);
Itemno:= COPYSTR(Dummy,10,20);
variant1:= COPYSTR(Dummy,30,20);
EVALUATE(Qty,COPYSTR(Dummy,50,8));
Itemno:= COPYSTR(Dummy,10,20);
ItemPOS:=STRPOS(Itemno,'');
Now i am not getting how to store only item no. in table.
please suggest me as spec value comes within the Itemno and i have to remove spec value while importing the Item no values to table.
Thanks in advance.