Enhancement in IW31/IW32 Transaction
Am new to Enhancements in ABAP. I got an object in transaction IW31/IW32. My requirement is to add a custom field in 'Enhancement' tab with F4 help with values populating from a paramater table (say values are X,Y,Z). This field should be made mandatory and the value which user selects here should automatically populate in Item level in 'Sort String(RESBD-SORTF)' field of Purchasing data in the 'Components' tab (this will be achieved by selecting the line item and clicking 'purchasing data' button in the 'Components' tab).
In 'Enhancement' tab , I have added a custom field with F4 help which I have done using Process On Value (POV) in that screen and values are populating (say X,Y,Z) and its made mandatory.
How do I achieve this functionality? I tried BADI IWO1_ORDER_BADI by creating a Z implementation and Break-point triggers in the method 'CHANGE_COSTRELEVNCY'. But I could not change the value of the field SORTF(Sort String) which is passed as it is IMPORTING parameter and not CHANGING parameter.
Am I wrong in this approach? Any Customer-EXITS which is available for this? or Do I need to go for Enhancement points? Please post ur suggestions. Will be appreciated