2019 May 01 7:53 AM
Hi
We have created one domain - with valid values and linked it to a screen field. (In module pool Screen). - (Not webdynpro)
We want to filter the domain dropdown values based on some conditions.
Kindly help , I searched it and mostly find solution for webdynpro screens . I want is core abap module pool screen.
Kindly help
REgards,
Venkat
2019 May 02 9:03 PM
Hi,
you have to write the code PAI
PROCESS AFTER INPUT.
PROCESS ON VALUE-REQUEST.
FIELD ztable-matl_pricing_grp MODULE f4_mat_orc_grp. "module name f4_mat_orc_grp
MODULE f4_mat_orc_grp INPUT.
DATA : BEGIN OF lt_matpcgrp OCCURS 0,
matl_pricing_grp LIKE zprice-matl_pricing_grp,
vtext LIKE t178t-vtext,
END OF lt_matpcgrp.
REFRESH: lt_matpcgrp.
CLEAR lt_matpcgrp.
SELECT *
INTO TABLE lt_matpcgrp
FROM zprice.
*Call Function to give F4
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATL_PRICING_GRP'
dynpprog = 'PROGRAM_NAME'
dynpnr = '0212' "Screen No
dynprofield = 'MATL_PRICING_GRP' "Out Put field Name
value_org = 'S'
TABLES
value_tab = lt_matpcgrp.
ENDMODULE. "f4_mat_orc_grp
* in the screen field- property will be set "Possible entry" tick and "foreign key check"
Hi
We have created one domain - with valid values and linked it to a screen field. (In module pool Screen). - (Not webdynpro)
We want to filter the domain dropdown values based on some conditions.
Kindly help , I searched it and mostly find solution for webdynpro screens . I want is core abap module pool screen.
Kindly help
REgards,
Venkat
2019 May 01 9:07 AM
There are many answers in the forum. Search "VRM_SET_VALUES".
2019 May 02 9:03 PM
Hi,
you have to write the code PAI
PROCESS AFTER INPUT.
PROCESS ON VALUE-REQUEST.
FIELD ztable-matl_pricing_grp MODULE f4_mat_orc_grp. "module name f4_mat_orc_grp
MODULE f4_mat_orc_grp INPUT.
DATA : BEGIN OF lt_matpcgrp OCCURS 0,
matl_pricing_grp LIKE zprice-matl_pricing_grp,
vtext LIKE t178t-vtext,
END OF lt_matpcgrp.
REFRESH: lt_matpcgrp.
CLEAR lt_matpcgrp.
SELECT *
INTO TABLE lt_matpcgrp
FROM zprice.
*Call Function to give F4
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATL_PRICING_GRP'
dynpprog = 'PROGRAM_NAME'
dynpnr = '0212' "Screen No
dynprofield = 'MATL_PRICING_GRP' "Out Put field Name
value_org = 'S'
TABLES
value_tab = lt_matpcgrp.
ENDMODULE. "f4_mat_orc_grp
* in the screen field- property will be set "Possible entry" tick and "foreign key check"
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |