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

Former Member
0 Likes
843

Hi All,

I have one requirement, in the screen ME21N while giving the vendor if we press the F4 help then automatically all the vendors will be displayed, now my requirement is i want to display only the vendors who are not blocked. For this requirement how should i proceed. Any suggestions...

Regards,

Sunil Kumar Mutyala.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
812

Make your own search help (selecting only non-blocked vendors) and include this in the collective search help KRED.

Regards,

John.

6 REPLIES 6
Read only

Former Member
0 Likes
813

Make your own search help (selecting only non-blocked vendors) and include this in the collective search help KRED.

Regards,

John.

Read only

0 Likes
812

Hi Jhon can u explain it clearly

Read only

bpawanchand
Active Contributor
0 Likes
812

HI

Well define your own F4 help

by using the event

AT SELECTION-SCREEN ON VALUE REQUEST FOR <field>.

And under this event u can use one of the Function modules

HELP_VALUES_GET_WITH_TABLE

Show a list of possible values for F4 popup help on selection screens. This function module pops up a screen that is just like all the other F4

helps, so it looks like the rest of the SAP system. Very useful for providing dropdowns on fields that do not have them predefined.

Example

DATA: lc_werks LIKE t001w-werks,

ltab_fields LIKE help_value OCCURS 0 with header line,

BEGIN OF ltab_values OCCURS 0,

feld(40) TYPE c,

END OF ltab_values.

*-- Set up fields to retrieve data

ltab_fields-tabname = 'T001W'.

ltab_fields-fieldname = 'WERKS'.

ltab_fields-selectflag = 'X'.

APPEND ltab_fields.

ltab_fields-tabname = 'T001W'.

ltab_fields-fieldname = 'NAME1'.

ltab_fields-selectflag = space.

APPEND ltab_fields.

*-- Fill values

select * from t001w.

ltab_values-feld = t001w-werks.

append ltab_values.

ltab_values-feld = t001w-name1.

append ltab_values.

endselect.

CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'

EXPORTING

fieldname = 'WERKS'

tabname = 'T001W'

title_in_values_list = 'Select a value'

IMPORTING

select_value = lc_werks

TABLES

fields = ltab_fields

valuetab = ltab_values

EXCEPTIONS

field_not_in_ddic = 01

more_then_one_selectfield = 02

no_selectfield = 03.

Regards

Pavan

Read only

Former Member
0 Likes
812

hi sunil,

first u get the detils of blocked vendor list in internal table.after the at selection-screen on value request for fieldname.

then in this using fm F4IF_INT_TABLE_VALUE_REQUESTu2019

so u get press f4 then u will get blockedvendorlist

Read only

0 Likes
812

I want tht to be happen for a standard SAP Screen ME21N, so where shold i write the code

Read only

0 Likes
812

hi sunil,

go status and get the program name. check the debug mode where it's trigger in this program.

then u will write the code