Application Development 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: 

Dump while F4 processing

Former Member
0 Kudos

Hi All

I have written module for F4 processing in selection-screen. I want to show the error message if the user does not enter the value of the earlier screen input field. Now whenever user does not enter the value in the earlier field it is giving dump saying

'During "F4" processing, the program tried to send a " " message. This is not allowed at this point in processing. The program had to terminated.'

Thanks in anticipation.

pM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Restrict the user by making the field mandatory this will avoid dump, also check whether you are checking the field value not initial before calling the FM ,

For ex. If not V_val is initial.

call function 'F4.........'.

else.

message.

endif.

Get back for further clarifications,

Rgds,

6 REPLIES 6

Former Member
0 Kudos

Hi,

Restrict the user by making the field mandatory this will avoid dump, also check whether you are checking the field value not initial before calling the FM ,

For ex. If not V_val is initial.

call function 'F4.........'.

else.

message.

endif.

Get back for further clarifications,

Rgds,

Former Member
0 Kudos

Hi PM,

Are you trying to issue an error message during the PBO event (i.e., in AT SELECTION-SCREEN OUTPUT)?

If yes, then you must change the code. The messages should be given only in the PAI.

Regards,

Anand Mandalika.

0 Kudos

Hi

This is my piece of code.

SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME.

PARAMETERS : pspid1 LIKE proj-pspnr OBLIGATORY .

PARAMETERS : versn LIKE zpswbsfv-versn DEFAULT '00'.

SELECTION-SCREEN : END OF BLOCK b1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR versn.

IF pspid1 EQ space.

MESSAGE ID 'ZP' TYPE 'E' NUMBER '033'. " WITH 'Hugo'

ENDIF.

Message was edited by: p m

0 Kudos

Hi,

Check this one

AT SELECTION-SCREEN ON VALUE-REQUEST FOR <parm>|<selopt>.

The possible entries button automatically appears next to the input field for <parm>|<selopt> when it is selected on the selection screen. Executes a processing block which allows user to choice a value from a list when user presses the button or F4. Can be used only in report programs, not in a logical database program.

So if u want to just dispaly the message IF pspid1 EQ space. then u can give

<b>AT SELECTION-SCREEN ON <parm>|<selopt>.</b>

Executes a processing block after the system has finished processing the <parm>|<selopt>. If an error|warning message is sent from this processing block, the system displays the selection screen again and only this input field can be changed

Former Member
0 Kudos

Hi,

as you are validating for the first field at value-request condition for the second field, which is invalid as the program cannot validate at this point.

so just try this check simply in

AT SELECTION-SCREEN and use the value-request to populate the values for the second field.

Regards,

Jagath

Former Member
0 Kudos

hi this is with regards to your query

AT SELECTION-SCREEN for POV if u issue a Error message it will terminate a with short dump

if you give a information message instead it wont dump

The program terminates with a runtime error DYNPRO_MSG_IN_HELP. While F1 and F4 are processed, the system cannot send error messages or warnings.

please note the above can be seen in SAP Apllication help ...

--> for more details type message in editor and press f1 the same document will be displayed

Regards,

Harish