on 03-26-2016 11:14 AM
Hello,
We have written a validation on Material Description and the error is being thrown as expected.
But the Requestor is still able to Submit the request despite the error.
We tried to configure this validation in the BADI USMD_RULE_SERVICE but we're not getting data of field MAKTX in the BADI Class.
Can anyone please guide us as to how we can prevent the requestor from being able to submit when the description error is thrown?
Thanks,
Sagar Dixit
Hi Sagar,
Set it to Standard.
Maintain filter values as MODEL = MM, ENTITYTYPE = MATERIAL.
Use CHECK_ENTITY method and check for field TXTMI in the importing parameter IT_DATA.This holds the description value. Check the value and based on that fill your message in the exporting parameter ET_MESSAGE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
I'm new to mdg , As mentioned above I have tried to fetch the value of material description but not succeed..My Actual requirement is to validate the material description entered in the description tab of create material . Please help me how to fetch desciption value into check_entity method of usmd_rule_service with the sample code. I have no idea to which method we need use to get the IT_data or staging area data...
Please help me with the sample code.
Thanks and Regards
Raj
Hi Experts,
I'm new to mdg , As mentioned above I have tried to fetch the value of material description but not succeed..My Actual requirement is to validate the material description entered in the description tab of create material . Please help me how to fetch description value into check_entity method of usmd_rule_service with the sample code. I have no idea to which method we need use to get the IT_data or staging area data...
Right now I have written the validation in the feeder class cl_mdg_bs_mat_bo and able to show the errors on UI but still with errors the request is allowing to submit which is not correct.
Please help me with sample code to featch the above material description value in a check_entity method of usmd_rule_service badi (I have created the badi class and implemented but it showing empty implementation in check_entity method).
Thanks ,
Sagar
Hi Sagar,
In your created BADI class, in the CHECK_ENTITY method please put a breakpoint for your user. Now open up the UI screen and try entering description and clicking on Check button. In the debugging, try checking for description values in parameter IT_DATA. Loop IT_DATA and validate the values entered and fill the message parameter ET_MESSAGE accordingly.
METHOD if_ex_usmd_rule_service~check_entity.
break testuser.
ENDMETHOD.
Hi ,
With your above valuable input , I'm able to validate material description with other way but just to know the it_data fetching only the basic data in check_entity method by passing MM model ...I have called the check_entity method again into feeder class to get the material description value to validate ,is this right way of doing ? Or can we get all the ui screen data in check_entity method directly .
Thanks and Regards
Raj
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.