Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Model Component

Hi,

I call same bapi's from more than one components, should I create a model component (MVC) and put this methods there to centralize the code? Is it the best architecture ?

I'm afraid of having a big context, full of data that I am not using at the moment.

Thanks a lot,

replied

Generally the concept of Model in WDA is fullfilled by the Assistance class object instead of a separate component.

It is better from a performance point of view. You can then save your data as attributes and only put that data in contexts were needed.

Here's help on the subject:

http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm

Refer to Regina's comments on this thread also:

WDA Best Practice for Coding

Regards

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question