71tech / ODIN

ODIN (Open Document Interface) is a flexible, extensible, easy to use import interface for SAP FI documents.
MIT License
11 stars 3 forks source link

Real Estate Table #4

Open bastianpohl opened 3 years ago

bastianpohl commented 3 years ago

Adding Support for Profitcenter and for the RE related fields would be great.

striezl commented 3 years ago

Hey @bastianpohl,

PRCTR (Profit Center) has been added: https://github.com/71tech/ODIN/commit/c4047da6b5b8523aa96108cb849316d415725cfc

As for the Real Estate fields: In the system I have access to this is not set up, so it would be rather tough to implement and test. However a pull request with the correspoding coding would be welcome. Basically there's 3 steps to add new fields - I would be glad to assist if there are any questions:

  1. Structure (se11) ZODIN_INTERNAL: Add new fields
  2. Method ZCL_ODIN_POSTING->MAP(): There is a todo if you need some sort of field value transformation, e.g. add leading zeros
  3. Method ZCL_ODIN_POSTING->POST_DOCUMENT(): Fill new field in structure or table that is passed to BAPIs BAPI_ACC_DOCUMENT_CHECK / BAPI_ACC_DOCUMENT_POST. In this case we would have to pass a new table: REALESTATE STRUCTURE BAPIACRE09 Ideally also the signature of BAdI method zodin_posting->before (which is called before BAPI_ACC_DOCUMENT_CHECK / BAPI_ACC_DOCUMENT_POST should be extended accordingly)

Kind regards Bernhard

bastianpohl commented 3 years ago

Thanks. I will ask my dev team to do the enhancement for real estate and create the pull request.

bastianpohl commented 2 years ago

The results from the first tests with the Real Estate extension looked good. I will have the departments tested in the next few weeks.