Skip to Content

Enhancement for IDOC_INPUT_COSTCENTER for COSMAS IDOC

Hi,

I need to validate the cost center and functional area in IDOC_INPUT_COSTCENTER FM and throw an error if not valid. But I do not find a BADI or implicit enhancement to give an error message in the IDOC. Has anyone enhanced the COSMOS IDOC FM? Please give your inputs.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 26, 2018 at 04:58 PM

    Hi Manu,

    Can this idoc FM be copied into custom Z* and accordingly customize COSMAS01, COSMAS ..message set-up.

    Thanks,

    Mohan

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 26, 2018 at 06:55 PM

    The design of FM IDOC_INPUT_COSTCENTER gives you methods of badi class COOM_CI_CSKS_IDOC to use in customer logic:

    • CUSTOMER_FIELDS_FILL
    • CUSTOMER_FIELDS_UPDATE
    • IDOC_TYPE_GET

    I see that only method "customer_fields_update" is called by the function module; in Perform EXIT_CUSTOMER_FIELDS_UPDATE.

    You can instantiate this class in SE18, or you could create an implicit enhancement at the bottom of perform EXIT_CUSTOMER_FIELDS_UPDATE in include LKS02F01.

    This function has an exception defined and used for returning errors. You may be able to use that mechanism to raise an error. You also have table IDOC_STATUS available.

    Add comment
    10|10000 characters needed characters exceeded