Application Development 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: 

Using IDOC MATMAS04 - Segment E1MLGNM

Former Member
0 Kudos

Hi all,

I'm using the Idoc Matmas04 to transfer material data between R/3 46C and ECC60.

In my sender system I don't use the Warehouse View, but I must create it in ECC60.

I try to use the BADI_MATMAS_ALE_IN to create the data for the table MLGN_UEB to pass the data in receving system, but the system doesn't create the Warehouse View.

I insert in the internal table MLGN_UEB only the Matnr and LGNUM.

In online transaction the system need only this data.

Can you help me to understand where I'm wrong ?

Thanks a lot

Barbara

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

Why don't you use user exits EXIT_SAPLMV02_002 when the IDoc is posted via FM IDOC_INPUT_MATMAS01?


...

            CALL CUSTOMER-FUNCTION '002'
                EXPORTING
                     MESSAGE_TYPE      = IDOC_CONTRL-MESTYP
                     F_CUST_SEGMENT    = USER_SEGMENTS
                TABLES
                     RES_FIELDS        = T_RES_FIELDS
                CHANGING
                     F_MLGN_UEB        = I_MLGN_UEB
                EXCEPTIONS
                     APPLICATION_ERROR = 1
                     OTHERS            = 2.

...

Regards,

Ferry Lianto

3 REPLIES 3

ferry_lianto
Active Contributor
0 Kudos

Hi,

Why don't you use user exits EXIT_SAPLMV02_002 when the IDoc is posted via FM IDOC_INPUT_MATMAS01?


...

            CALL CUSTOMER-FUNCTION '002'
                EXPORTING
                     MESSAGE_TYPE      = IDOC_CONTRL-MESTYP
                     F_CUST_SEGMENT    = USER_SEGMENTS
                TABLES
                     RES_FIELDS        = T_RES_FIELDS
                CHANGING
                     F_MLGN_UEB        = I_MLGN_UEB
                EXCEPTIONS
                     APPLICATION_ERROR = 1
                     OTHERS            = 2.

...

Regards,

Ferry Lianto

0 Kudos

Hi Ferry,

when I use the FM IDOC_INPUT_MATMAS01, I don't have the segment E1MLGNM, so the FM doesn't call the customer-exit.

The Idoc that I have is the follow :

MATMAS04 Material Master

E1MARAM Master material general data (MARA)

E1MARA1 Additional Fields for E1MARAM

E1MAKTM Master material short texts (MAKT)

E1MARCM Master material C segment (MARC)

E1MARMM Master material units of measure (MARM)

E1MBEWM Master material material valuation (MBEW)

E1MVKEM Master material sales data (MVKE)

E1MLANM Master material tax classification (MLAN)

E1MTXHM Master material long text header

As ypu can see I don't have the segment E1mlgnm in input in my ECC.

Thanks

Barbara

guptasonal
Discoverer
0 Kudos

Hi Barbara, did you get any solution for this issue?