‎2006 Jun 02 9:57 AM
Hello all,
when i try to convert a value into the internal layout of a PSP-Element using the FM "CONVERSION_EXIT_ABPSN_INPUT" and the input value doesnt fit the PSP-Characteristics, i get an error message.
How can i catch this error message? I do not wanna have this popup.
regards,
Markus
‎2006 Jun 02 10:14 AM
Hi markus,
1. do like this, and it won't give
error and come out of the program.
(before calling the FM,
just write 3 extra lines, as shown below)
2.
report abc.
*----
IMPORTANT
<b>DATA : MESS_TYP TYPE C.
MESS_TYP = 'S'.
EXPORT MESS_TYP TO MEMORY ID 'EXT_MESS_TYP'.</b>
*----
DATA : P(25) TYPE C.
CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
EXPORTING
INPUT = 'PSP_INTERNAL'
IMPORTING
OUTPUT = p
EXCEPTIONS
MYERROR = 1.
.
regards,
amit m.
‎2006 Jun 02 10:00 AM
‎2006 Jun 02 10:06 AM
Is that possible to use CONVERSION_EXIT_PROJN_INPUT instead ?
Cheers,
Thomas.
‎2006 Jun 02 10:09 AM
FM "CONVERSION_EXIT_ABPSN_INPUT" does call "CONVERSION_EXIT_PROJN_INPUT".
‎2006 Jun 02 10:09 AM
hii
GOTO SE91. maintain ur message id and code ur own messages there .
MSGID
MSGNO
MSGTY
using these fields and populate internal table itab.
loop at itab ,
check the type
if msgty = 'E'
then raise the error related to msgno.
Regards
Naresh
‎2006 Jun 02 10:09 AM
Hi,
this is how you have to use..
CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
EXPORTING
INPUT = PSP_INTERNAL
IMPORTING
OUTPUT = PSP_EXTERNAL.what is the message you getting?
Regards
vijay
‎2006 Jun 02 10:11 AM
Hello,
when you enter for PSP_INTERNAL a string like "ICTESTtESTETS" you get an error message. The problem is, this message does interrupt my coding.
regards,
Markus
‎2006 Jun 02 10:14 AM
Hi markus,
1. do like this, and it won't give
error and come out of the program.
(before calling the FM,
just write 3 extra lines, as shown below)
2.
report abc.
*----
IMPORTANT
<b>DATA : MESS_TYP TYPE C.
MESS_TYP = 'S'.
EXPORT MESS_TYP TO MEMORY ID 'EXT_MESS_TYP'.</b>
*----
DATA : P(25) TYPE C.
CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
EXPORTING
INPUT = 'PSP_INTERNAL'
IMPORTING
OUTPUT = p
EXCEPTIONS
MYERROR = 1.
.
regards,
amit m.
‎2006 Jun 02 10:27 AM
‎2006 Jun 02 12:51 PM
Hi amit,
can you please explain me what those 3 statements do ?
regards
srikanth