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

F4 help without FM and matchcode.

Former Member
0 Likes
771

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
657

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 .

6 REPLIES 6
Read only

Former Member
0 Likes
657

Hi,

What about a domain?


PARAMETERS p_gender TYPE gesch.

Kr,

m.

Read only

former_member212854
Participant
0 Likes
657

In that case please maintain, male, female values at domain level.

Maintain single values 'male' and 'female' at domain level.

Read only

madhu_vadlamani
Active Contributor
0 Likes
657

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.

Read only

Former Member
0 Likes
658

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 .

Read only

0 Likes
657

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.

Read only

0 Likes
657

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.