‎2008 Jul 18 7:28 AM
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.
‎2008 Jul 18 7:34 AM
Make your own search help (selecting only non-blocked vendors) and include this in the collective search help KRED.
Regards,
John.
‎2008 Jul 18 7:34 AM
Make your own search help (selecting only non-blocked vendors) and include this in the collective search help KRED.
Regards,
John.
‎2008 Jul 18 7:38 AM
‎2008 Jul 18 7:41 AM
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
‎2008 Jul 18 7:47 AM
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
‎2008 Jul 18 7:57 AM
I want tht to be happen for a standard SAP Screen ME21N, so where shold i write the code
‎2008 Jul 18 8:02 AM
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