02-02-2007 7:22 AM
I had ztable with material number and plant fields.and i had written logic in user exit that if ztable material number and migo transaction material number is equal it should call transaction.it is working for some of the material numbers and for some materials it is not triggering.can any one specify the query for this problem.
02-02-2007 8:13 AM
02-02-2007 9:08 AM
02-02-2007 10:54 AM
Hi,
Can you please provide the code snippet that you are using?
Nishant
02-02-2007 1:07 PM
z_matnr = ztable-matnr.
SELECT SINGLE matnr FROM ztable INTO z_matnr
WHERE matnr = s7_tab_mseg-matnr.
call transaction ' z'
02-02-2007 2:59 PM
Ajay,
I am sure you have more code than what you have provided above. The way your code is given call transaction will get executed always.
This may be simplistic, did you try all these things?
a. Check in debug what are the contents of the field at the time of select.
b. Could it be issue with the steps followed in the transaction? May be the user exit is not getting triggered always.
c. Some times there are issues with the field length and zeroes the are prefixed. But I am sure you probbaly looked into it. If not check again.
Good luck
ST
02-03-2007 3:05 PM
Try using conversion exit before comparing material codes.
Regards,
Sunil