‎2011 Dec 14 12:47 PM
I am looking for the possibility to restrict the field in table control with the values of search help only . we should NOT be able to enter manually but only search help value can be entered in table control field .
Note: the field is char type and we are getting search help dynamically depending on the value in another field ( it could BEGDA or BUKRS or etc u2026 ). we cannot opt for search help from domain or via foreign key relationship
Any help?
Thank you in advance
Brajesh .
‎2011 Dec 15 6:23 AM
Hi
for this you are getting f4 help dynamically depending up on some field validation , As per my knowledge we are unable to restrict input manually .( using loop at screen we can restrict by that time f4 also not possible ) .
for this if user enter manually , read search help with this parameter if sy-subrc = 0. then process smoothly else,
remove the data in that find and through a status message like chose valid entry using f4 help ( IF this is screen used by power users they don't know f4 and f1 so write message meaning fully )
Regards
Siva
‎2011 Dec 15 9:08 AM
In PAI code the logic in CHAIN ENDCHAIN and validate the values for search help internal table if it is filled else fill it first and then do validations.
Nabheet
‎2011 Dec 15 10:39 AM
Change the property of the field as input = 0 in PBO using loop at screen. It will accept F4 values but will not accept manual entries, you can see such exam[ples in many standard SAP screens.
‎2011 Dec 15 10:54 AM
Hello,
Make the field output only and in F4IF_INT_TABLE_VALUE_REQUEST Function Module there is an import parameter
DISPLAY or check the following
In TOP Include declare a Variable
data : from_f4 type c.
In POV
itab-field F4_field Module f4_field.
In F4 Module
clear from_f4.
from_f4 = 'X'.
in PAI
Loop at itab.
field itab-field_f4 module check_f4.
endloop.
In Program
module check_f4.
if from_f4 is initial.
message 'Please select the Value only from F4 Option' type 'E'.
endif.
endmoduleCheerz
Ramchander Rao.K
‎2012 Jan 13 11:13 AM
in pbo INPUT = 0 AND IN IN IN pov iNPUT = 1 after calling search help again made input = 0