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: 

Conditional Mandatory Field in Material Master (Sugg. Needed

Former Member
0 Kudos
217

Hi ,

I am having a requirement where i need to make a particular field to be mandatory for a certain condition in Material Master.

Say for a Product Hierarchy i want to make Volume Rebate Group mandatory ( Sales Org 2 View).

Please suggest the possible solutions for the same.

Thanks,

Rachita.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
99

Hi,

It is possible to get access to all other fields from within a field exit by using the below code. This is a field exit on GMG_HEADER_FIELDS-grant_type within program SAPLBDT_GMGR but by using the code below you can get data stored in any field within the program. i.e. GMG_HEADER_FIELDS-GRANT_NBR

Field-symbols: <status>.

assign ('(SAPLBDT_GMGR)GMG_HEADER_FIELDS-GRANT_NBR') to <status>.

if SY-SUBRC = 0.

message e003(zr) with <status> .

******other code*****************

endif.

Reward points if found helpful....

Cheers,

Rakesh.

2 REPLIES 2

Former Member
0 Kudos
99

you've to use some user-exit or BADI.

Reward if useful

Thanks

ANUPAM

Former Member
0 Kudos
100

Hi,

It is possible to get access to all other fields from within a field exit by using the below code. This is a field exit on GMG_HEADER_FIELDS-grant_type within program SAPLBDT_GMGR but by using the code below you can get data stored in any field within the program. i.e. GMG_HEADER_FIELDS-GRANT_NBR

Field-symbols: <status>.

assign ('(SAPLBDT_GMGR)GMG_HEADER_FIELDS-GRANT_NBR') to <status>.

if SY-SUBRC = 0.

message e003(zr) with <status> .

******other code*****************

endif.

Reward points if found helpful....

Cheers,

Rakesh.