Skip to Content
avatar image
Former Member

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,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 09, 2008 at 06:46 PM

    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

    Add comment
    10|10000 characters needed characters exceeded