2010 Apr 29 3:44 AM
Hi All,
I have created a customised message type ZMATMAS1, using customised basic type ZMATMAS1 too.
already assigned in WE81 WE82 BD69 & activated in BD50
When idoc generated from BD21, I found that the idoc in WE05 shows the basic type is MATMAS05, why it doesn't follow ZMATMAS1 as I defined ?
Thanks in advanced
2010 Apr 29 7:07 AM
Well, the problem is that you cannot just reconfigure the system to utilize a different IDoc type or IDoc extension type. The reason is pretty straightforward: If you want to use a different IDoc type, that means that your IDoc container changed and thus your logic for filling the IDoc must be updated.
In general the function module used for creating the IDoc via change pointers is defined for a given message type in transaction BD60. However, instead of replacing this generic SAP function module with your own creation you should check out the exits available for material master IDocs generated via change pointers. I'd recommend to take a look at customer exit EXIT_SAPLMV01_002, which allows you to define an IDoc extension type and furthermore gives you the chance to fill additional segments that you defined in your IDoc extension type.
Cheers, harald
Hi All,
I have created a customised message type ZMATMAS1, using customised basic type ZMATMAS1 too.
already assigned in WE81 WE82 BD69 & activated in BD50
When idoc generated from BD21, I found that the idoc in WE05 shows the basic type is MATMAS05, why it doesn't follow ZMATMAS1 as I defined ?
Thanks in advanced
2010 Apr 29 6:50 AM
Check whether the custom message type is assigned to MATMAS05 also.
Regards
Vinod
2010 Apr 29 7:07 AM
Well, the problem is that you cannot just reconfigure the system to utilize a different IDoc type or IDoc extension type. The reason is pretty straightforward: If you want to use a different IDoc type, that means that your IDoc container changed and thus your logic for filling the IDoc must be updated.
In general the function module used for creating the IDoc via change pointers is defined for a given message type in transaction BD60. However, instead of replacing this generic SAP function module with your own creation you should check out the exits available for material master IDocs generated via change pointers. I'd recommend to take a look at customer exit EXIT_SAPLMV01_002, which allows you to define an IDoc extension type and furthermore gives you the chance to fill additional segments that you defined in your IDoc extension type.
Cheers, harald
2010 Apr 29 7:35 AM
Hi Harald,
Thanks for the reply.
I need to pass only few fields of material master to a non sap system via biztalk
I can't use reduced type of MATMAS bcos some mandatory fields cannot be omitted.
Thus I use this customised ZMATMAS1.
I'm not sure this is the correct method or is there any way have to do on the reduced msg type ?
If using the EXIT as you mentioned, wht shall I do in the EXIT ? chg the IDOC_DATA details ?
Rgds,
Janice
2010 Apr 29 7:58 AM
Hi Janice,
Create view in WE32 by including desired fileds. Give the view name in WE20 outbound parameters of the receiving system.
--
Reddy
2010 Apr 29 8:00 AM
Hi Janice,
Sorry, just noticed that I initially read your posting wrong. You have defined a new basic IDoc type and not a new extension type. So my reference to the customer exit is not applicable, because the one I referenced cannot be used to change the basic IDoc type.
Have you taken a look at message type MATCOR with IDoc type MATCOR01 (basically MARA + MAKT)? This might be what you want if you just need some basic material data.
I can't use reduced type of MATMAS bcos some mandatory fields cannot be omitted.
I'm not aware of any mandatory fields. Within IDocs you have a concept of mandatory segments and you cannot remove mandatory segments via IDoc reduction. So for MATMAS05 you cannot remove E1MARAM and E1MAKTM, but other segments you can remove. Thus a reduced message type actually is an option.
Cheers, harald
2010 Apr 29 2:21 PM
Hello,
Did you 'Release' your idoc type and Idoc segments?
This is in we30 in menu Edit> set release and in we31 menu Edit> set release
Best Regards.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |