cancel
Showing results for 
Search instead for 
Did you mean: 

MDG BADI for CR Request Submition

former_member307726
Participant
0 Kudos

Dear Experts,

I've requirement, when ever I click on CR Submit, I need to update some values.

Please suggest any BADI for this.

Thanks in Advance,

Regards,
Kumar

Accepted Solutions (1)

Accepted Solutions (1)

loga201
Contributor
0 Kudos

Hi,

Derive BADI triggered when entity changes for an example,it will be triggered when user inputs material desc . If you want to default at the beginning or during submission then use cross entity derivation. Looking at your requirement, Certain fields are not under the control of requester and need to be derived once it is submitted. If the fields are not under the control of user then hide those fields either using context based adaptation or USMD_ACC_FLD_PROP_CUST_DEP_SET BADI at requester level. you can able to get event data but exact events you can't get within these methods because feeder class extends the event(other) to call Derive BADI's.

Another way is to enhance get_data method of feeder class, There you can able to get proper event.

But simple way to achieve this one is to write your code within cross entity BADI and hide fields at requester level or make it read only(Config properties of change request-> Attributes per change request step->Not relevent at 00 level).

Go through the below guide, which gives complete info about these BADI's and BRF+

http://www.sap.com/documents/2015/07/d0d3a551-5b7c-0010-82c7-eda71af511fa.html

Thank you!

Answers (5)

Answers (5)

former_member307726
Participant
0 Kudos

Thanks to all..

former_member307726
Participant
0 Kudos

USMD_RULE_SERVICE is triggering fro SAVE, not triggering for SUBMIT.

And also please suggest how to differentiate the user action like Check or Save oe SUBMIT.

Please do the needful.

loga201
Contributor
0 Kudos

Hi,

Use USMD_RULE_SERVICE and for cross derivations USMD_RULE_SERVICE_CROSS_ET.

Thanks

bpawanchand
Active Contributor
0 Kudos

Hi,

USMD_CREQUEST_UI is the Badi name. However, this Badi is used to populate default values of CR header, not with respect to entities.

Thanks,Pavan

loga201
Contributor
0 Kudos

Hi,

Use validation s and derivation Badi.

Thanks