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

Only Search Help Value in table control

Former Member
0 Likes
2,706

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 .

5 REPLIES 5
Read only

Former Member
0 Likes
1,666

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

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,666

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

Read only

Former Member
0 Likes
1,666

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.

Read only

Former Member
0 Likes
1,666

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.
endmodule

Cheerz

Ramchander Rao.K

Read only

Former Member
0 Likes
1,666

in pbo INPUT = 0 AND IN IN IN pov iNPUT = 1 after calling search help again made input = 0