yogesh kapil
9th April 2013, 05:33
Hi Guys,
I am working on dmcom010 table. i need to compare on field Target Oject Id. In table the value of this filed is like {"PUR008293"}.
Please help me out so that i can compare this id.
Thanks and Regards
Yogesh Kapil
bhushanchanda
9th April 2013, 06:30
Try this:-
select dmcom010.*
from dmcom010
where dmcom010.trid(3;9)="PUR008293"
selectdo
endselect
yogesh kapil
9th April 2013, 09:57
Hi bhushan,
thanks for your reply..
i also try the same but this is not working..
if you see this table in lnfp7 the value in this field is somthing different.
the value is start from {".
its not working ................
bhushanchanda
9th April 2013, 10:56
Hi Yogesh,
I have tried the same and it works.
Please post your script also let me know what exactly you want to print.
If its starting with {".
Then you can replace dmcom010.trid(3;9) with dmcom010.trid(4;9)
yogesh kapil
10th April 2013, 06:50
Hi bhushan,
Thanks for your reply..It's working very fine..
bhushanchanda
10th April 2013, 06:53
Good. By the way, may I ask why you want to query that table? Just for my information. :)
yogesh kapil
10th April 2013, 07:31
Hi bhushan,
In session inspection order ( qmptc1100m000) , we are attaching some file with inspection order.
Now user want when they print the inspection report they get to know which file is attached with inspection order.
i need to compare dmcom010.trid(3;9) with my Inspection Order so that i can print dmcom010.srid.
i write the query like this :-
select dmcom010.srid
from dmcom010
where dmcom010.trid(3;9)=tccom100.iorn
selectdo
Document Attachemnt No = dmcom010.sri
endselect
Regards
Yogesh Kapil
bhushanchanda
10th April 2013, 07:44
Ok thanks. I had this guess in mind.
You see, user requirement can be anything
;)