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: 

Selection- Screen

Former Member
0 Kudos

Is there any way to find out in the selection screen, if all the fields are blank, other than checking for all the parameters?

PS. Deserving answers will be given maximum points.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hey bali,

use fm ' to check the selection screen values. DYNP_VALUES_READ' This function module reads screen field contents that are to be processed by the help modules.

U could have asked this to me by giving a call instead of knowing the answer here. now dont call.

Mark all helpful answers.

9 REPLIES 9

former_member181962
Active Contributor
0 Kudos

HO Bharath,

NO other way. you have to check if each and evert parameter is filled or not.

at selection-screen.

if P_field1 is initial and p_field2 is initial and p_field3 is initial.

message e001 with 'all parameters are empty'.

endif.

Regards,

Ravi

Former Member
0 Kudos

NO way..

U need to check for each and every field,...

regards,

sai ramesh

Former Member
0 Kudos

There is no such statement or utility that gives us the information. Here we are talking about the fields of selection screen and each of them is to be checked to be not initial.

0 Kudos

Sorry no way, in selection-screens there are no equivalent for ON INPUT and ON CHAIN-INPUT thart exist on standard Dynpro.

You will have to check each parameter or select-options, or build a super-structure with all parameters and select-options included and check it.

Regards.

Former Member
0 Kudos

hi.....

there is no other way....

u have to check all the parameters......

Reward points if useful......

Suresh.....

Former Member
0 Kudos

Hey bali,

use fm ' to check the selection screen values. DYNP_VALUES_READ' This function module reads screen field contents that are to be processed by the help modules.

U could have asked this to me by giving a call instead of knowing the answer here. now dont call.

Mark all helpful answers.

Former Member
0 Kudos

hi,

Maybe you can use this statement,

loop at screen.

......

endloop.

if you want to know the details , please read the help on the sap help dodument.

Best Regards,

qiuguo wu

Former Member
0 Kudos

chk this FM REUT_CHECK_SELSCREEN_INPUT'

Former Member
0 Kudos

Call the function modele like below:

To have all the field names and values in an internal table .

Then

loop at this internal table

check if is initial is TRUE

if atleast one is not initial make w_flag =1.

endloop.

if w_flag = 1.

all fields are not initial

else

all fields are initail.

endif.

REWARD POINTS IF IT IS USEFUL.

PAMMI.RAMA

'DYNP_VALUES_READ'

data: dyname like d020s-prog value 'TESTPROG',

dynumb like d020s-dnum value '100'.

data: begin of dynpfields occurs 3.

include structure dynpread.

data: end of dynpfields.

move 'TABNAME' to dynpfields-fieldname.

append dynpfields.

move 'FIELDNAME' to dynpfields-fieldname.

append dynpfields.

call function 'DYNP_VALUES_READ'

exporting

dyname = dymame

dynumb = dynumb

translate_to_upper = 'X'

tables

dynpfields = dynpfields

exceptions

invalid_abapworkarea = 01

invalid_dynprofield = 02

invalid_dynproname = 03

invalid_dynpronummer = 04

invalid_request = 05

no_fielddescription = 06

undefind_error = 07.