Skip to Content
avatar image
Former Member

Regarding Extending IDOC message type COSMAS in MDG

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

Thanks

Pavan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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

    Michael

    Add comment
    10|10000 characters needed characters exceeded