Hi Madhusudhan,
As per my experience, there is no harm in using the SEGW generated interfaces for the FMs. We have been using it and have not faced any issues. Whenever there is a requirement to add/remove a field from the gateway service, you have to:
- Add/Remove the field in import/export/table parameter in your FM.
- Import the new field in your entity(assuming you created entity based on RFC signatures) in case of addition of fields or remove the property from the entity in case of removal of field.
- Add - Map the respective method
- Regenerate the runtime artifacts. This will overwrite the old interface and will have the changes you done in step 1 now.
However the SE11 based approach is followed in Fiori based standard OData services because these services generally do not use BAPI approach. Thus they have to provide an option to developers to extend the structures in order to create a new property in gateway.
Regards,
Ekansh