09-13-2007 12:52 PM
Hi Experts,
We are in the process ogf upgrading form 4.6c to ECC. In one of the program the code is like this. Could u pls tell me what is the meaning of this. I never came across this type of statment so far.
LOG GT_LOG_TMP: 'Message:',
'TYP =', MSGTY,
'ID =', MSGID,
'NO =', MSGNO,
'V1 =', MSGV1,
'V2 =', MSGV2,
'V3 =', MSGV3,
'V4 =', MSGV4.
AL GT_LOG_TMP.
In the same program it is giving error in the below code:
LOG LPT_LOG:
'Undefined ws_used_flags-value', LPT-EVA,
'for curr.key', LPT-WAERS.
AL LPT_LOG.
Error : "LPT-EVA" must be a character-type data object (data type C, N, D, T or STRING). field string).
LPT-EVA is a type X.
How can i know the which value is coming into that. Pls help me.
regards
Swapna
09-13-2007 9:46 PM
I can't tell much just from this segment but the problem is that the field LPT-EVA is type X, which is a String type.
Here it looks like someone is trying to use this field in a message (look up ABAP help on MESSAGE comand) and it's not possible to use variables of type String for that.
Change the type of LPT-EVA from X to CHAR with some length that will work for this program.