cancel
Showing results for 
Search instead for 
Did you mean: 

Read Custom Attributes ( not part of data model ) from UI using MDG API ( MM )

former_member374952
Participant

Hi,

I am working on MDG 7 material Governance created a Custom Uibb with custom attributes in it and added on the UI . These fields are created using feeder class and are not part of MM Data Model.

It looks like its not possible to read the values of these attributes when CR is created from either feeder class nor from the Badi using MDG API.

Is there any other alternate way to read custom attributes on the UI which are not part of data model and it is also not present on CR Header uibb.

The reason for having such attributes is because dont want to persist the data entered in the database while CR Creation.

Any clue on this would be appreciated

Regards,

Vicky

Accepted Solutions (0)

Answers (2)

Answers (2)

aasim_khan
Participant

Hi,

Although the question is pretty old and I hope you got the solution, but I'm answering it anyway.

What you can do is :-

  • Assign events to your custom UI attributes in the UI configuration.
  • Read the UI values in GET_DATA method of your feeder class when the event is triggered.
  • Using the instance of Application Context API - CL_USMD_APP_CONTEXT, set the parameter (method SET_PARAMETER).
  • In your rule service BAdI, again get the instance of the app context. Call method GET_PARAMETER to read the UI value.

Thanks!

0 Kudos

Hi Vicky,

Very late reply but useful to other readers. If custom attributes are added in feeder class but not in the data model, you cannot reterive values for them using MDG related API.

Now this is purely related to FPM development. Any value that exist on UI will be availalbe in flush and process event. Implement you custom logic here to ge the values.