In our system we develop an extra tab at item level in purchase requisition (extension of table EBAN and EKKO). The PR are created via maintenance order and we want to figure some way of update this fields at PR directly in component detail/purchasing data at maintenance order.
Which is the best way of doing this?
I am not sure if this is the best way, but one of the options to consider would be to
1) Order component screen:
---> if the information is material dependant and not operation dependant:
a) Capture the information in unused fields of the component screen in the maintenance order.
b) If there are no unsed fields then you may have to capture them in the long text of the component. You could use standard text to differentiate different items. Its ugly and validation would be difficult but i dont see any other option other than changing standard here
If the information is operation dependant
a) Configure the field key on the Enhancement tab of the operation to capture this information
2) Transfer of data to the PR:
a) Use the change document functionality (Object: BANF ; Event: Create) to trigger a custom method to update the PR on create by reading the associated Order component(For Order accoutn assigned PR only).You could probably use the Standard BAPI to accomplish this change within the custom method.
b) The other option would be to see if you could use the Implicit Enhancement functionality to modify the code at appropriate places during the actual creation of PR from the order itself.
Hope this helps.