‎2011 Oct 01 3:53 PM
Hi Sapiens,
I want a field on selection screen name gender.On f4 help it should pop up with two possible value -Male or female.The functionality should not use any function module or matchcode or value table or check table.Could anyone tell how to achieve this functionality.
Thanks
SRS
‎2011 Oct 02 6:03 AM
Hi all,
Actually I need a custom f4 help to be maintain in the program itself with f4 help value as male and female, without function module and domain .
‎2011 Oct 01 4:11 PM
‎2011 Oct 01 8:38 PM
In that case please maintain, male, female values at domain level.
Maintain single values 'male' and 'female' at domain level.
‎2011 Oct 02 1:52 AM
Hi Srs,
Welcome to scn.Maintain at domain level those two and see.As i know you wont see any help values in fm.
Regards,
Madhu.
‎2011 Oct 02 6:03 AM
Hi all,
Actually I need a custom f4 help to be maintain in the program itself with f4 help value as male and female, without function module and domain .
‎2011 Oct 02 8:40 AM
Overview:Create a table with the values as Male and Female and
then create a Search help with this table as reference and
attach this search help to the actual table which is given as reference in the parameter.
Another method is to use the newly created table as value table in the domain of
Most simplest methods are already given in the threads above..
Explanation:
You already have a table A with the data element for Male/Female field.
Create a new table B with values as Male/Female.
Create a new Search help with this table B as Selection Method.
Attach this search help for the data element in table A.
Another way is to attach the table B as value table in Domain of data element of Table A.
‎2011 Oct 02 2:17 PM
Hi,
Then you can use cl_slim_alv_f4 class perhaps... but you will need a modal container to handle this.
Something like:
DATA: go_f4 TYPE REF TO cl_slim_alv_f4,
lo_result TYPE REF TO data,
lo_data TYPE REF TO data.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field.
CREATE DATA lo_data TYPE REF TO data.
GET REFERENCE OF gt_f4val[] INTO lo_data. "Maintain F4 values in gt_f4val[]
CALL SCREEN 100 STARTING AT 1 1. "Modal screen with container 'CONT'
"...
*&---------------------------------------------------------------------*
*& Module STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
"...
CREATE OBJECT go_f4
EXPORTING
pi_container_name = 'CONT'
pi_name_grid_struct = 'F4STRUCT'
pi_data_src = lo_data
pi_result = lo_result
pi_grid_title = 'F4 help'.
* pi_rbc_dclick =
ENDMODULE. " STATUS_0100 OUTPUT
Kr,
m.