Application Development 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: 

Matchcode Field

dunky
Active Participant
0 Kudos

Hi,

I need to créate a custom matchcode field in a selection screen of a Z program. The values of the matchcode are not referred to a value range of a table. Instead, the values for the matchcode will depend on the own values for each material. I mean, imagine that we have a material with two BoM alternatives an another material with three BoM alternatives. When I select the matchcode for the first material the matchcode will show 1 and 2, and when I select the matchcode for the second one will show 1,2 and 3.

¿How can i do it?

Thanks a lot.

Regards.

1 ACCEPTED SOLUTION

mauriciolauffer
Contributor
0 Kudos

I think you should take a look in the function VRM_SET_VALUES.


There are some similar threads around here:

2 REPLIES 2

mauriciolauffer
Contributor
0 Kudos

I think you should take a look in the function VRM_SET_VALUES.


There are some similar threads around here:

raymond_giuseppi
Active Contributor
0 Kudos

So in the  PROCESS ON VALUE-REQUEST / AT SELECTION-SCREEN ON VALUE-REQUEST code :

  • Read the current  material number value with FM DYNP_VALUES_READ
  • Select suitable values froml database into an internal table
  • Display the help with FM F4IF_INT_TABLE_VALUE_REQUEST

Regards,

Raymond

PS: Use search tool, there are already many threads/samples on this kind of question.