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

Domain Value - Drop down - filter

venkateswaran_k
Active Contributor
0 Likes
1,984

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

1 ACCEPTED SOLUTION
Read only

Nawanandana
Active Contributor
0 Likes
1,375

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

2 REPLIES 2
Read only

Sandra_Rossi
Active Contributor
1,375

There are many answers in the forum. Search "VRM_SET_VALUES".

Read only

Nawanandana
Active Contributor
0 Likes
1,376

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"