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

Conditional Mandatory Field in Material Master (Sugg. Needed

Former Member
0 Likes
748

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
Read only

Former Member
0 Likes
630

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.

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.

2 REPLIES 2
Read only

Former Member
0 Likes
630

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

Reward if useful

Thanks

ANUPAM

Read only

Former Member
0 Likes
631

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.