02-02-2007 10:46 AM
Hi
I am creating a user exit for transaction VA01. In this I am checking for order type 'OR'. But when I create a sales order with order type OR the user exit is getting some other order type. I have got this through debugging. What might be the problem.
Thanks in advance.
regards,
Eswar
02-02-2007 11:31 AM
Eswar,
I hope you are using field VBAK-AUART. For Domain AUART there is a Conversion Routine assigned as AUART which changes the Input value to the Internal Stored value.
For order type 'OR' the internal value is 'TA'. So in your logic check for 'TA' instead of 'OR'.
Hope this helps.
02-02-2007 11:25 AM
can u give the code and user exit name .
tell me your business requirement as well .
regards,
vijay
02-02-2007 11:31 AM
Eswar,
I hope you are using field VBAK-AUART. For Domain AUART there is a Conversion Routine assigned as AUART which changes the Input value to the Internal Stored value.
For order type 'OR' the internal value is 'TA'. So in your logic check for 'TA' instead of 'OR'.
Hope this helps.
02-02-2007 11:53 AM
Check table TVAK for the order type OR
in code let it be
CHECK VBAK-AUART = 'TA'.
regards,
vijay