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

Run time error - DYNPRO_MSG_IN_HELP using F4IF_INT_TABLE_VALUE_REQUEST

former_member125661
Contributor
0 Likes
1,982

I am using FM - F4IF_INT_TABLE_VALUE_REQUEST on a selection screenf field. After that I do some validation and throw an error message in the at selection screen event.

But this results in DYNPRO_MSG_IN_HELP error.

I need to have the error message. I cannot change it to Info or Success message. (Program doesn't give run time error if i change the message to S or I or W ). How do I get around this ? What is wrong with F4IF_INT_TABLE_VALUE_REQUEST .

Am I not calling it correctly ?

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'CLASS'   "Field from it_class
      dynpprog        = sy-cprog  "Program
      dynpnr          = sy-dynnr  "Dynpro number
      dynprofield     = 'P_FOLD' "Select-options field
      value_org       = 'S'       "Value return: C: cell by cell, "S: structured
      display         = 'F'       "Override readiness for input
    TABLES
      value_tab       = it_class "table with selection values
      return_tab      = t_return  "Return value
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.

Error Message: The program attempted to issue a " " message during "F4" processing.

This is an illegal operation.

The program was terminated.

Screen name.............. "ZMMR0010_INFORECORD_UPDT"

Screen number............ 0200

Edited by: Shareen Hegde on Mar 29, 2011 1:47 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,049

Hi,

ther are 3 things you can change.

Parameter dynpprog shouldn't be sy-cprog or sy-repid. Please decalre a variable where you can pass the value of sy-cprog to and give it to that parameter.

Parameter dynpnr shouldn't be sy-dynnr. Please decalre a variable where you can pass the value of sy-dynnr to and give it to that parameter.

Parameter display is of type DDBOOL_D and can have value 'X' or SPACE (see fix values of domain DDBOOL!).

Regards,

Klaus

4 REPLIES 4
Read only

Former Member
0 Likes
1,050

Hi,

ther are 3 things you can change.

Parameter dynpprog shouldn't be sy-cprog or sy-repid. Please decalre a variable where you can pass the value of sy-cprog to and give it to that parameter.

Parameter dynpnr shouldn't be sy-dynnr. Please decalre a variable where you can pass the value of sy-dynnr to and give it to that parameter.

Parameter display is of type DDBOOL_D and can have value 'X' or SPACE (see fix values of domain DDBOOL!).

Regards,

Klaus

Read only

Former Member
0 Likes
1,049

Hi Shareen,

Just comment the display parameter which you have defined in your function module or else pass 'X' instead of 'F'. This display parameter can accept only two values 'blank or X'.

Hope this will help you to resolve the issue & close the thread.

BR,

Vinit

Edited by: vinit005 on Mar 29, 2011 9:36 AM

Read only

rathishr_nair
Explorer
0 Likes
1,049

Hi Shareen,

You cannot give an error message inside the AT SELECTION SCREEN ON VALUE REQUEST event. This will throw a dump. Instead you can give a Status message using the addition 'DISPLAY LIKE 'E''.

Example: MESSAGE 'Invalid Input' type 'S' DISPLAY LIKE 'E'.

Thanks,

Rathish R Nair

Read only

former_member125661
Contributor
0 Likes
1,049

I took the message from At selection screen on help to at selection screen. That helped.

Thanks guys for trying to help.

Edited by: Shareen Hegde on Mar 29, 2011 5:56 PM