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

Selection-Screen

Former Member
0 Likes
514

Hi,

I have a Selection Screen with 4 option buttons and 2 select-options.

For 2 option button, data from one select-option will be populated (s_ebeln)

and for rest of the two option button, data from second select-option will be populated (s_vbeln)

All four Radio-button have different selection-crietria for the values to be populated in F4.

All F4 helps for 4 radio-buttons in 2 select-options are appearing fine.

The Problem comes when user does not select from the F4 help but instead write directly in the select options.

If User selects from the F4 Help, output is right but when it enters manually to select-options, output is wrong.

Can anyone suggest what is the problem?

Regards,

Priyanka.

5 REPLIES 5
Read only

Former Member
0 Likes
492

please provide the code.

regards

prabhu

Read only

Former Member
0 Likes
492

just do debug in both ...

by selecting the f4 values and see it in the debug mode the value to the parameter....

second time input value debug mode see the value .... so that you can see the difference and the error also ..

Girish

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
492

Hi,

The problem is checking the value is done only if you define using PARAMETERS and use the option VALUE CHECK to force the value check.

In you case you need to write

AT SELECTION-SCREEN on sel_op-low

event block and check the value your self.

Regards,

Sesh

Read only

Former Member
0 Likes
492

Hi Priyanka

Can i know what is the select options condition u have used ???

Regards

Pavan

Read only

Former Member
0 Likes
492

If I am entering value directly in select-options-low, that is not using the drop-down, it is directly coming to end and not going to anywhere else. but when I am using drop-down, it follows the right flow in my program.

Following is the code.

at selection-screen on value-request for s_ebeln-low.

perform clear_radio.

perform read_dynpro.

IF sy-subrc EQ 0.

read table dyfields with key fieldvalue = 'X'.

IF dyfields-fieldname = 'ST'.

perform f_selection_request_stck_trans. "my select query

loop at screen.

if screen-name = 'PR' or screen-name = 'SR' or screen-name = 'CO' or screen-name cs 's_vbeln' .

screen-input = '0'.

modify screen.

endif.

endloop.

perform f_f4_values_ebeln_low.

*****************************************************************

FORM read_dynpro .

DYFIELDS-FIELDNAME = 'ST'.

APPEND DYFIELDS.

DYFIELDS-FIELDNAME = 'SR'.

APPEND DYFIELDS.

DYFIELDS-FIELDNAME = 'PR'.

APPEND DYFIELDS.

DYFIELDS-FIELDNAME = 'CO'.

APPEND DYFIELDS.

CALL FUNCTION 'DYNP_VALUES_READ' "#EC *

EXPORTING

DYNAME = SY-repid

DYNUMB = SY-DYNNR

TRANSLATE_TO_UPPER = 'X'

TABLES

DYNPFIELDS = dyfields

EXCEPTIONS

INVALID_ABAPWORKAREA = 1

INVALID_DYNPROFIELD = 2

INVALID_DYNPRONAME = 3

INVALID_DYNPRONUMMER = 4

INVALID_REQUEST = 5

NO_FIELDDESCRIPTION = 6

INVALID_PARAMETER = 7

UNDEFIND_ERROR = 8

DOUBLE_CONVERSION = 9

STEPL_NOT_FOUND = 10

OTHERS = 11

.

ENDFORM. " read_dynpro

I am not getting why it is not taking value of the select-options directly.

Regards,

Priyanka.