Skip to Content

IDOC not failing for Invalid Data

I'm trying to load some records for Profit Center and Cost Center in SAP. Even with the wrong data, IDOC is successfully posted are PC/CC are getting created.

Interestingly, for the same set of data when I try to create manually on SAP Screen, it does not allow me do so. Also, for the created ones via IDOC when I try to change them via SAP screen it would again throw same errors.

Does anyone has faced similar issue before ? what could be the possible reasons for this ?

Appreciate your help in advance..

Add comment
10|10000 characters needed characters exceeded

  • it would probably be a good idea to post what you consider as wrong and what error message you get when try changing the loaded data.

    Also the name of the IDoc would be good to know for a solution

  • I'm using PROFITCENTER_CREATE01 to create Profit Centers.

    A couple of the valid errors appearing when I try to create PRCTR on screens :

    • Profit Center group .. does not exist
    • In the Address tab, when country is left blank for the other address fields, error appears as 'Region does not exist in .. T005S'
    • Tax Jurisdiction warning message appears based on the address data and does not allow to save

    Problem with IDOC is that it loads this data successfully into S/4 when it should actually fail.

    Another option I'm trying to use is BAPI_PROFITCENTER_CREATE in test mode so that such errors are captured beforehand. Currently working on this BAPI, which is not populating return Parameters.

  • Get RSS Feed

1 Answer

  • Jan 11, 2017 at 11:55 AM



    Are you in a old not well maintained system?

    There are some OSS notes like 1572297 - BAPI_PROFITCENTER_CREATE/CHANGE: Processing despite error and 1047048 - BAPI_PROFITCENTER_CREATE / CHANGE missing checks

    If those OSS notes are already implemented then I would recommend to open a call at SAP Support

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks for the reply, seems all these are already in system as BAPi works good in SE37.

      Problem is now with the BAPI failure in BODS. It fails the Job with exception errors such as:

      "1046012704R3C-1504101/17/2017 9:35:32 AMError calling custom RFC function <BAPI_PROFITCENTER_CREATE RFC return error! KM 503 Profit center group 652 does not exist"

      The error itself is valid, which must be reflected in the return parameters of BAPI. However, with this error message the BODS Job itself fails.

      Appreciate your help !