Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Send Material From 4.7 to ECC 6 using ALE with Modifications

Former Member
0 Likes
1,165

Hi All,

I want to transfer Master Data from 4.7 Server to ECC 6 through ALE with some modifications like

Company Code From BP01 to 1000 , Storage locations etc.. With BD10 we can send Material master but modifications for all Material Master (Around 100000 data ) how to do this ?

Hi All,

I want to transfer Master Data from 4.7 Server to ECC 6 through ALE with some modifications like

Company Code From BP01 to 1000 , Storage locations etc.. With BD10 we can send Material master but modifications for all Material Master (Around 100000 data ) how to do this ?

4 REPLIES 4
Read only

Former Member
0 Likes
835

Hi,

You can write User Exits in the Inbound Idoc Posting Function Module IDOC_INPUT_MATMAS01 to change the data before posting data to MM01.

Hope this helps you.

Regards

Srikanth M

Read only

0 Likes
835

Hi Srikanth ,

Can u explain more specifically how can i approach in case of Material Master . Where i need to put the Conversion Program in Function Module - IDOC_INPUT_MATMAS01 --> BADI - BADI_MATMAS_ALE_IN --> METHOD - CHANGE_UEB_TAB

.. If possible explain through some sample coding how to change the Company code from 'BP01' to '1000'...

Read only

0 Likes
835

Hi Bintu,

in inbound processing function IDOC_INPUT_MATMAS01, the implementaion of BADI BADI_MATMAS_ALE_IN, method CHANGE_UEB_TAB is called (line 3538):

CALL METHOD LF_EXIT->CHANGE_UEB_TAB
      EXPORTING
        IDOC_CONTRL = IDOC_CONTRL[]
        IDOC_DATA   = IDOC_DATA[]
      CHANGING
        MARA_UEB    = T_MARA_UEB
        MAKT_UEB    = T_MAKT_UEB
        MARC_UEB    = T_MARC_UEB
        MARD_UEB    = T_MARD_UEB
        MFHM_UEB    = T_MFHM_UEB
        MARM_UEB    = T_MARM_UEB
        MEA1_UEB    = T_MEAN_UEB
        MBEW_UEB    = T_MBEW_UEB
        STEU_UEB    = T_STEU_UEB
        STEUMM_UEB  = T_STEUMM_UEB
        MLGN_UEB    = T_MLGN_UEB
        MLGT_UEB    = T_MLGT_UEB
        MPGD_UEB    = T_MPGD_UEB
        MPOP_UEB    = T_MPOP_UEB
        MVEG_UEB    = T_MVEG_UEB
        MVEU_UEB    = T_MVEU_UEB
        MVKE_UEB    = T_MVKE_UEB
        MPRW_UEB    = T_MPRW_UEB
        LTX1_UEB    = T_LTX1_UEB
        MFIELDRES   = T_MFIELDRES
        MERRDAT     = T_MERRDAT.

You can create an implementation of this BADI. In Method CHANGE_UEB_TAB change the passed structures according to your needs.

The best thing will be to first implement the full trenafer process including partner profiles and so on. Then take one sample material that has everything you want to map or change. Then use WE19 test tool, put break point in Method CHANGE_UEB_TAB and check all data for what has to be changed.

Regards,

Clemens

Read only

Clemenss
Active Contributor
0 Likes
835

Hi,

it does not really matter if you do the changes on export or on import. For the sake of transparency you should avoid to do it on both sides.

As the changes are required for your input system, you can use FUNCTION EXIT_SAPLMV02_002 which will be processed for all relevant segments.

If you want full transparency, you can put all your changes into an application log.

Regards,

Clemens