2007 Dec 23 11:23 AM
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.
2007 Dec 24 2:11 PM
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.
2007 Dec 23 11:36 AM
2007 Dec 24 2:11 PM
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.