03-15-2007 9:07 AM
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.
03-15-2007 10:17 AM
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.
03-15-2007 9:10 AM
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
03-15-2007 9:11 AM
NO way..
U need to check for each and every field,...
regards,
sai ramesh
03-15-2007 9:11 AM
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.
03-15-2007 9:16 AM
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.
03-15-2007 9:15 AM
hi.....
there is no other way....
u have to check all the parameters......
Reward points if useful......
Suresh.....
03-15-2007 10:17 AM
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.
03-15-2007 11:34 AM
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
03-15-2007 11:47 AM
03-15-2007 2:40 PM
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.