Quantcast
Channel: SCN : Discussion List - SAP Master Data Governance
Viewing all articles
Browse latest Browse all 2047

How to Launch Material UI with Custom Coding AND Z-Fields on the UI

$
0
0

We have extended the material initial screen (BS_MAT_INIT_03, Form-UIBB MDG_BS_MAT_SETTINGS_GL2_03) with a few customer specific fields (Z-Fields).


Now we try to start the material creation UI from a customer made application passing e.g. the material number and these Z-fields.

We found a pretty good documentation in the document How To... Master Data Governance for Material Extend MDG-M User Interface (EhP6 on)

 

Chapter 6.4 describes how to launch Material UI with custom coding.

The coding works perfectly with the exceptions of our Z-fields. While the material number and the CR type is correctly passed from the calling application the Z-fields remain empty:

 

...

* CR Type

             APPEND INITIAL LINE TO lt_application_value ASSIGNING <ls_application_value>.
             <ls_application_value>-fieldname = cl_mdg_bs_mat_c=>gc_url_crequest_type.
             <ls_application_value>-value = 'MAT01'.

             APPEND INITIAL LINE TO lt_application_value ASSIGNING <ls_application_value>.
             <ls_application_value>-fieldname = cl_mdg_bs_mat_c=>gc_url_crequest_type_alt.
             <ls_application_value>-value = 'MAT01'.

* Material number
             APPEND INITIAL LINE TO lt_application_value ASSIGNING <ls_application_value>.
             <ls_application_value>-fieldname = cl_mdg_bs_mat_c=>gc_field_material.
             <ls_application_value>-value = 'TEST1'.

* Z-Field (class number)
             APPEND INITIAL LINE TO lt_application_value ASSIGNING <ls_application_value>.
             <ls_application_value>-fieldname = 'ZZCLASS'.
             <ls_application_value>-value = '1001'.


* Work with change request

             APPEND INITIAL LINE TO lt_application_value ASSIGNING <ls_application_value>.
             <ls_application_value>-fieldname = cl_mdg_bs_mat_c=>gc_field_staging_mode.
             <ls_application_value>-value = abap_true.

* trigger start of new dialog
            lv_application = 'MDG_BS_MAT_OVP'.
            lo_ui_services = cl_usmd_factory_ext=>get_ui_services_instance( ).
            CALL METHOD lo_ui_services->navigate
              EXPORTING
                i_application        = lv_application
                i_target             = if_usmd_ui_services_ext=>gc_navigation_tgt_external
                i_inplace_navigation = abap_true
                i_usmd_action        = cl_mdg_bs_mat_c=>gc_usmd_action_create
                it_data_1            = lt_application_value.

...

 

ZZCLASS is the name of the field in the data model. We try it with the name in the FORM-UIBB too, without success.

 

Any idea what the mistake is?

 

 

Kind regards, Matthias


Viewing all articles
Browse latest Browse all 2047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>