On our training system I reproduced a supplier extension to a new company code. The approver had the work item and approved it. Company code, reconciliation account, and payment terms were on the request the whole time, and none of them were on her screen.
A submit that leaves nobody holding a work item is a different fault, and I wrote that up earlier.
The request and the vendor matched
I opened the change request on the training system. The status was Final Check Approved, which is 05 in field USMD_CREQ_STATUS of table USMD120C. Company code, reconciliation account, and payment terms were filled.
The change documents for the company-code data were under the requester user, from the day the request was submitted. There was no later line under the approver user, so nothing had rewritten the terms after submit. A derivation that overwrites a typed value on Check is a separate case, and I wrote it up here.
The active vendor carried the same company code. Table LFB1 matched the request, so activation had written the company-code values that were already stored.
The workflow log showed one approval step, and the agent was the approver user. In SWI1, for object type BUS2250 and that request number, the approver completed the work item. SBWP no longer listed the item, because she had opened a screen and pressed Approve. I needed the screen that this step actually opens.
What Not Relevant did
In MDGIMG I opened General Settings, Process Modeling, Change Requests, Configure Properties of Change Request Step. I selected SUPPL2P1, Process Supplier, and the approval step from the log.
On the view Entity Types per Change Request Step, entity type BP_COMPNY was set to Not Relevant. Company code on data model BP is that entity, so the reconciliation account and the payment terms on it were Not Relevant for this step as well.
An early create step may mark company-code data Not Relevant when the requester is not expected to provide it. At finance approval, reviewers need visibility of the values they are approving.
Not Relevant means this step does not treat the attribute as part of its processing. The field stays on the screen and is read-only, and the checks that depend on that relevance do not run. The page disappears only when a UI configuration hides it. That second setting is Hide UIBB, and it is separate from Not Relevant.
Field properties on the change-request step overrule BAdI USMD_ACC_FLD_PROP_CUST_DEP_SET. That BAdI overrules the data model, and the data model overrules the reuse area. The BAdI applies only to fields that are not already read-only, so I read the step before any implementation of it. On this reproduction the BAdI was not what removed the account from view.
I also read the activation step on this type. BP_COMPNY there was Standard, so the checks configured for company-code data still apply when the request activates. The requester had already stored a value on step 00, and the approval did not have to retype it for activation to continue.
The company-code page was gone
A read-only field would still have shown her the account. On this reproduction the company-code page was absent from the navigation, so a UI setting had taken the page away.
In the same activity, User Interface per Change Request Step was empty for the approval step. When a step has no UI of its own, MDG reads the business-object type for the business activity, then the logical-action navigation. I read that business activity under Create Change Request Type.
Then I opened General Settings, Process Modeling, Business Activities, and the activity Link Logical Actions with UI Application and Business Activity: Standard Definition.
The standard-definition row for business object type 266, supplier, uses logical action *. The target application is BS_OVP_BP, and the target configuration is BS_OVP_SP. The custom-definition activity had no row for 266. A vendor-like UI is configuration BS_OVP_SP_VL, maintained under Link Logical Actions with UI Application and Business Activity: Custom Definition. This work item stayed on BS_OVP_SP.
On BS_OVP_SP, company code is edit page BS_SP_COMPANY_CODE. The work item opens on the overview, and company code is a page you open from there while that edit page is still in the schema.
I opened the context-based adaptations on BS_OVP_SP. Business partner uses schema BP_ADAPTS, and material uses schema BS_MAT. In both schemas the predefined dimensions include the change-request type and the change-request step. One adaptation matched SUPPL2P1 and this approval step, and Hide UIBB was set on the company-code block. That is why her screen showed the overview and not the company code.
Not Relevant is why Check on her step said nothing about the account. Hide UIBB is why she could not open the page. The request kept the values from step 00, and activation wrote them to LFB1.
I opened the same work item with a second user in her role, after resetting the approver user's personalization on the training system. The company-code page was still missing, so this was the adaptation rather than a layout saved for one user.
Put the page back, and the checks with it
I set BP_COMPNY back to Standard on the approval step, so the company-code attributes are relevant there again. The checks configured for those attributes then run on that step.
I cleared Hide UIBB on the company-code block for SUPPL2P1 and this step. She can open edit page BS_SP_COMPANY_CODE, read the account, and correct it. A correction then appears under her user on the change document.
I left User Interface per Change Request Step empty, so the approval step still opens BS_OVP_SP. The adaptation is what makes this step differ from step 00.
I kept the delivered configuration BS_OVP_SP. A deep copy of the application configuration does not include the MDG communicator configuration. Those settings are what include the change-request UIBB, and without them the change-request actions are missing from the screen. The delivered communicator stays with BS_OVP_SP, and the adaptation is what hides the company-code page.
Step 00 on this type has no adaptation that hides company code, and its field property for BP_COMPNY stays Standard. The requester still provides the account before submit.
The step properties and the adaptation go in one transport. In the target system I open a work item before I call the step done. A step row that arrives alone, with the old adaptation still hiding the page, reproduces this screen.
Open the work item
I create a SUPPL2P1 request for a supplier that already exists on the training system. I add a company code, a reconciliation account, and payment terms, and then I submit.
I open the new work item in SBWP. If the landscape uses Fiori My Inbox, it is the same work item, and I open it there as well. The overview comes up first, and the company-code page is in the navigation. I open that page, and the account and the terms are the ones from submit, still editable.
I change the account, press Check, and approve once the check accepts the new value.
The change document for the account is under the approver user. After activation, LFB1 shows that account.
I retest from the work item, not from search. Display from search is another logical action, and an active partner has no approval step, so that screen is not the one this step opens.
The review that would have caught this
An approval work item means the rule found an agent. What she approved is whatever that step still showed. Not Relevant drops the relevance checks and leaves the field read-only. Hide UIBB removes the page. With both set, she can approve a request whose company code she cannot see, and activation writes the values that were already stored.
On a new approval step I open one work item for the type before I call the step done. I open the page that approver is accountable for. If the page is missing, I read the field properties on that step, then the adaptation in schema BP_ADAPTS.
Material uses the same pair of settings in schema BS_MAT. A plant page hidden from the plant approver is the same miss, and I test that from the work item too.
Join the next MDG batch at https://saberia.in/training, or write to admin@saberia.in.