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

Setting default Plant in the MDG-M UI

$
0
0

Hi Gurus,

 

The requirement is to set the Plant as default in the MDG-M UI screen. I have tried to add the default plant in the BADi 'USMD_RULE_SERVICE', Interface 'IF_EX_USMD_RULE_SERVICE~DERIVE_ENTITY'.

 

 

CASE id_entitytype.

     
WHEN 'MARCATP'.                                       "#EC NOTEXT

       
IF lines( ct_data ) EQ 1.

         
ASSIGN ct_data TO <lt_data>.

         
LOOP AT <lt_data> ASSIGNING <ls_data>.

           
IF <ls_data> IS ASSIGNED.

              ASSIGN COMPONENT 'WERKS' OF STRUCTURE <ls_data> TO <lv_werks>.

           IF <lv_werks> IS ASSIGNED AND <lv_werks> IS INITIAL.

              GET PARAMETER ID 'RWK' FIELD lv_ref_werks.

                <lv_werks> = lv_ref_werks.

             ENDIF.

           
ENDIF.

         
ENDLOOP.

       
ENDIF.
   
ENDCASE.

 

The problem is Entity type 'MARCATP' is not getting triggered while the first time Create Material screen appreas. Hence my code is not working.

 

Can you please help?


Viewing all articles
Browse latest Browse all 2047

Trending Articles



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