on 09-22-2008 1:56 PM
Hi All,
I have enhanced the user exit. Before I do this I have tested the piece of code in an ABAP program in the same box and got exactly what it should extract. I cut and pasted the same code in the user exit and it is not working. I have copied all the declaration etc.
Also there is another piece of code that works in the same exit for the same data source, but the other block of code is not executing. I found the SQL statement within the user exit is returning SUBRC as 4 and skippin my condition.
Any suggestion.
Thanks,
Alex.
closing it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is M_AUFNR is a table, then you should use this code
SELECT QMNUM QMART OBJNR AUFNR FROM QMEL INTO corresponding fields of TABLE i_QMEL
for all entries in M_AUFNR
WHERE AUFNR = M_AUFNR-AUFNR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the SQL statement within the user exit is returning SUBRC as 4 and skippin my condition.
which statement is returning 4?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
surely looks like a code issue. Do you know what condition is returning sysubrc to be 4. that needs to be checked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The SQL statement that I use in the program in the same environment works, when it is outside the user exit.
Do you have yr email I can send the code and have a look if you can..
The SQL in User Exit.
SELECT QMNUM QMART OBJNR AUFNR INTO TABLE i_QMEL FROM QMEL WHERE AUFNR = m_AUFNR.
The SQL in the program.
SELECT QMNUM QMART OBJNR AUFNR INTO TABLE i_QMEL FROM QMEL WHERE AUFNR = m_AUFNR.
Raj,
Yes, it does not work. That is why I am struggling. I tested the code in SE38 as an ABAP program in ECC. Then I cut and put the same code in the user exit, it does not work. The SQL statement return code = 4.
It is a simple Character length field 12. I know for sure it is something simple I am overlooking... any ideas?
Thanks,
Alex.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.