11-05-2007 9:22 PM
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
11-05-2007 9:30 PM
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
11-05-2007 9:30 PM
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
11-05-2007 10:20 PM
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
08-08-2023 5:49 PM