cancel
Showing results for 
Search instead for 
Did you mean: 

storing the UI element values in MDG M

Former Member
0 Kudos

Hello SAP experts,

In MDG, M- We have to create the material number based on line of business with prefix and suffix some thing. e.g. E123456700 (E is LOB and 00 are appended in the last)

so for achieving this , we have modified the UI screen and also have the necessary custom UI fields in the UI.

1. New/ Variant radio button select

2. Give Line of business as drop down and proceed for create material.

Now , when a user is entering the data in this custom UI elements, how can we grab/store this UI elements e.g. map the UI elements to the user exit MGA00002 for MM01 transaction to derive the external material number .

In WDA, we generally use Context mapping, will context mapping work and if it works, how and to which to i context map my custom elements.

Thank you,

Shaila

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello All,

Resolved the issue.

We wanted to retrieve the INIT page field element values, so we used the class

cl_mdg_bs_mat_assist_ui=>gt_custom_url_param, to get the UIBB values.

Also this code will be called CL_MDG_BS_MAT_FEEDER_FORM_MARA class , at the before flush method.

hope this will be helpful for others.

Thank You,

Shaila.

Answers (1)

Answers (1)

praveenkumar_kadi
Active Contributor
0 Kudos

Hello Shaila,

This class CL_MDG_BS_MAT_FEEDER_FORM has a GET_DATA->GET_DATA_VIA_RETRIEVE,

In this you should be getting your custom UI field value entered through a std structure(On debug you will get to know). - Implicit enhancement

Other option would be to read your data model (MM) directly with custom code and get the field values one by one...in the same above method again as an implicit enhancement..

Once you get your UIBB fields, then you can pass on to your user exit.

Thanks

Praveen