‎2010 Nov 25 11:21 AM
hi all,
i have two problems.
1) When i change input attiribute of input/output field is required , any user command (like exit or back command etc.) doesn't work.
2) i have two different field in my screen lifnr and belnr. but i can't use f4 search help for that fields. i have defined search help in my ztable (SE11) and element list-references (SE51) and fm F4IF_FIELD_VALUE_REQUEST and fm F4IF_INT_TABLE_VALUE_REQUEST. i have put process on valeu-request in flow logic. But when program run , skip this event.
all of them it doesn't work.
what should i do?
thaks for your helps.
Regards.
‎2010 Nov 26 10:19 AM
Hi,
Dont refer these two fields as a predefined dataelment.We can refer standard predefined datatype otherwise some other data element.
F4IF_INT_TABLE_VALUE_REQUEST.
if any probelm replay that one.
Regards.
muralii
‎2010 Nov 26 10:19 AM
Hi,
Dont refer these two fields as a predefined dataelment.We can refer standard predefined datatype otherwise some other data element.
F4IF_INT_TABLE_VALUE_REQUEST.
if any probelm replay that one.
Regards.
muralii
‎2010 Nov 29 8:58 AM
Hi,
try the following code...and change the <.....> according to your program..Do the same thing for the second screen field also.
If you face same problem then please let me know.
module display_f4help input.
call function 'F4IF_FIELD_VALUE_REQUEST'
exporting
tabname = '<tablename>'
fieldname = '<fieldname>'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = '<screen-field name>'
exceptions
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
others = 5.
if sy-subrc <> 0.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif. " IF sy-subrc <> 0.
endmodule. " DISPLAY_F4HELP INPUT
‎2010 Dec 04 9:13 PM
Hi
To bring F4 help from Ztable field to screen
simple way other than search help
PROCESS ON VALUE-REQUEST.
FIELD ZTABLE-FIELD1 MODULE F4_MODULE.
IN F4_MODULE
FILL the internal IT_ZTABLE WITH CONTENTS OF FIELD1 from ZTABLE .
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'FIELD1'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'ZTABLE-FIELD1'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = LT_GRID
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
to make the EXIT,BACK work on all situation in standard tool bar
in menupainter for that perticular Function attribute give FUNCTION TYPE = 'E'.
NOTE : the user actions must be in at exit command module in PBO