cancel
Showing results for 
Search instead for 
Did you mean: 

MDG-F Custom field validation

varun_jain3
Active Participant
0 Kudos

Hello Expert,

I have extended MDG-F data model 0G for GL account with addition custom fields as mandatory field.

I have one change request to Change GL account . Now as I have some old accounts which doesn't have this custom fields have values.

When I trying to create CR with change GL account -> don't change any value -> submit

then this validation doesn't through any error.

Custom mandatory field still doesn't have any data but rules badi doesn't through any error bcoz no data change .

Any notes ? Reason ?

Thanks in advance ,

Varun

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Checks should run when you click the "run validation" button.

varun_jain3
Active Participant
0 Kudos

Abdullah,

Run validation button wont be available during CR creation, It will be only available during approval process.

Even if it is available, we can not force end user to click on Run validation before clicking on Submit button. It should be take care during submit.

I tried run validation button , but no error message .

If I change any thing on that tab then getting error message.

Regards,

Varun

Former Member
0 Kudos

Hi Varun

Is your custom fiels appear on change CR UI? If yes you can configure CR Type step also in customizing.If No, first need to add it. 

varun_jain3
Active Participant
0 Kudos

Hi Sanjay,

I have added this fields on Basic data tab. Field are visible on UI and Validation also happening.

So Validation happens only when we do some changed on UI.

I have debugged also so when there is no change on UI buffer is empty hence data is not getting validated.

Regards,

Varun

Former Member
0 Kudos

Hi Varun

Are to mean to say that Custom field is editable (Blank value in it) on change UI? If this is mandetory then can it appear with astrik\s ? Is configure change request steps are performed?

Can you post screen snap with change nrequest type UI with custom field along with it's attributes?

varun_jain3
Active Participant
0 Kudos

Hi Sanjay,

Custom field is mandatory and displaying with red mark.

So during change request creation ( Change request type is meant for changing GL account ).

Expected result is when user submit CR then mandatory error msg.

This is working correct when user change any of the field at UI.

Step 1. enter account no and COA

Step 2. enter Explanation

Step 3. Change any field at UI

Step 4. Summit -> CR generated with error ( Custom mandatory field is blank )

But

When if user do this.

Step 1. enter account no and COA

Step 2. enter Explanation

Step 3. No change

Step 4. Summit -> CR generated with error ( Custom mandatory field is blank )

Regards,

Varun

Former Member
0 Kudos

Hi Varun

What is lopgical reason that in Change you are updating nothing and sumbitting it again. It wont creat new CR also.Insead of sumbittion can you check to save the existing objects> It must perform validation at that time.In ECC also it behaves same

Former Member
0 Kudos

That could be a solution, the approver/processor can fix the error when they run validation.

Former Member
0 Kudos

Hi Varun

Define check rule for change CR Type to check custom mandetory field

varun_jain3
Active Participant
0 Kudos

Sanjay,

Check rules are define but they only trigger only when there is data change on UI.

If no data change then rules are not getting trigger .

Regards,

Varun