Skip to Content

Regarding Extending IDOC message type COSMAS in MDG

Oct 19, 2016 at 11:44 AM


avatar image
Former Member

Hi all,

I have extended basic type COSMAS01 of message type COSMAS and added two custom fields. Could anyone help with the user exits for populating data into the fields for outbound IDOC



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Michael Theis
Oct 26, 2016 at 11:36 AM

Hi Pavan,

check the existing DRF outbound implementation for cost centers (CL_USMD_RQ_CC_OUT_IDOC). You'll see that this one uses a MDG specific structure for mapping the data as well as SMT to actually map the values from the MDG framework structures into the IDoc.

You need to extend both to get your fields supplied automatically.

If you really want to go for a BAdI, check method "SEND_MESSAGE". This one calls a BAdI you might find suitable for your needs.

Best regards


10 |10000 characters needed characters left characters exceeded