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

DYNPRO_MSG_IN_HELP dump in user exit

Former Member
0 Likes
4,678

Hallo gays,

program finish with short dump when i click exit button in case i have wron data in one mandatory field.

IF NOT <ln_anla>-lifnr IS INITIAL.

IF NOT <ln_anlz> IS ASSIGNED.

ASSIGN (c_anlz) TO <ln_anlz>.

ENDIF.

CHECK <ln_anlz> IS ASSIGNED.

SELECT SINGLE kostl INTO zkostl FROM zaa_ccvend_map

WHERE bukrs = <ln_anla>-bukrs AND lifnr = <ln_anla>-lifnr.

IF sy-subrc = 0.

IF <ln_anlz>-kostl NE zkostl.

<ln_anlz>-kostl = zkostl.

PERFORM anlz_bearb(saplaist).

ENDIF.

ELSE.

MESSAGE e005(zaa) WITH <ln_anla>-lifnr. HERE IS SHORT DUMP!!!

    • Error message

ENDIF.

ELSE. "LIFNR is initial

Hallo gays,

program finish with short dump when i click exit button in case i have wron data in one mandatory field.

IF NOT <ln_anla>-lifnr IS INITIAL.

IF NOT <ln_anlz> IS ASSIGNED.

ASSIGN (c_anlz) TO <ln_anlz>.

ENDIF.

CHECK <ln_anlz> IS ASSIGNED.

SELECT SINGLE kostl INTO zkostl FROM zaa_ccvend_map

WHERE bukrs = <ln_anla>-bukrs AND lifnr = <ln_anla>-lifnr.

IF sy-subrc = 0.

IF <ln_anlz>-kostl NE zkostl.

<ln_anlz>-kostl = zkostl.

PERFORM anlz_bearb(saplaist).

ENDIF.

ELSE.

MESSAGE e005(zaa) WITH <ln_anla>-lifnr. HERE IS SHORT DUMP!!!

    • Error message

ENDIF.

ELSE. "LIFNR is initial

9 REPLIES 9
Read only

b_deterd2
Active Contributor
0 Likes
2,022

Hi,

It is not always allowed to raise an error like this in a user exit. Which exit are you using?

Is there an exception you can raise in the exit (RAISE command) ?

regards,

bert

Read only

Former Member
0 Likes
2,022

Can u pl. check whether ur exit is calling from POH event or when u r pressing F4 help ? As the error name suggests 'DYNPRO_MSG_IN_HELP', it can be the possibility that due to F4 help ur exit is triggering and as within F4 help we cannot give error message that's why it is giving u this dump. If I am correct then pl. replace this error message by success(S) or by information (I) message to avoid this prob.

Read only

0 Likes
2,022

Thanks for suggestions,

i use function module EXIT_SAPLAIST_003. The dump isn't getting when i use F4.It is getting when i use exit button.But only in case when i reseived first error message.

Read only

0 Likes
2,022

I think ur exit EXIT_SAPLAIST_003 is calling from a module with addition AT EXIT-COMMAND like

MODULE USER_COMMAND_9001 AT EXIT-COMMAND. And in this module u cannot use error message. I u use error message then u will get the same dump. I have developed a small prog. and here is dump that I am getting:


Runtime Errors         DYNPRO_MSG_IN_HELP
Date and Time          16.01.2009 10:41:34



 Short text
     Screen: Illegal message



 What happened?
     The current screen processing action was terminated since a situation
     occurred where the application could not continue.
     This is probably due to an error in the ABAP program or in the current
     screen.


 Error analysis
     The program attempted to issue a " " message during  "Exit Command"  processing.
     This is an illegal operation.
     The program was terminated.

     Screen name.............. "SAPMZAPP"
     Screen number............ 9001



 Trigger Location of Runtime Error
     Program                                 SAPMZAPP
     Include                                 MZAPP_USER_COMMAND_9001I01
     Row                                     11

Pl. check whether u r getting the same message in Error analysis section or not.

Read only

0 Likes
2,022

yes i received the same short dump - how you solve the problem?

Read only

0 Likes
2,022

Pl. use information message or success message instead of error message.

Read only

Former Member
0 Likes
2,022

Hi,

Give an Information message and exit.

santhosh

Read only

Former Member
0 Likes
2,022

Information message and exit solve the problem.Thanks!

Read only

Former Member
0 Likes
2,022

If you really want to stop, you can use message type A.Then will no dump and no go ahead.