Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Convertion Function Modules

MarkusKlein
Active Contributor
0 Likes
1,395

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,196

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,196

Which Message?

Read only

Former Member
0 Likes
1,196

Is that possible to use CONVERSION_EXIT_PROJN_INPUT instead ?

Cheers,

Thomas.

Read only

0 Likes
1,196

FM "CONVERSION_EXIT_ABPSN_INPUT" does call "CONVERSION_EXIT_PROJN_INPUT".

Read only

Former Member
0 Likes
1,196

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

Read only

Former Member
0 Likes
1,196

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

Read only

0 Likes
1,196

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

Read only

Former Member
0 Likes
1,197

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.

Read only

0 Likes
1,196

Hi Amit,

your solution is working great.

Thx

Markus

Read only

0 Likes
1,196

Hi amit,

can you please explain me what those 3 statements do ?

regards

srikanth