cancel
Showing results for 
Search instead for 
Did you mean: 

modelObject()

Former Member
0 Kudos

Hi,

A little conceptual question: what is the difference between modelAttribute.modelObject().get/setXXX and modelAttribute.get/setXXX? I know when I use the latter one things don't work as expected (e.g. data isn't passed to BAPI). Why does modelAttribute.get/setXXX exist if I'm always supposed to use modelObject() (or am I not?)?

thanks,

Jeroen

Accepted Solutions (1)

Accepted Solutions (1)

Dheerendra
Participant
0 Kudos

Hi Jeroen,

When U Use modelAttribute.modelObject().get/setXXX..then it's behaviour can understand as "it Creates a base model object."...due to the protected modelObject() method.....on model attribute.

But when U use modelAttribute.get/setXX then here u directly get/setXX the value on model attribute without creates base model object......

So in both the case behaviour is different....

Cheer's

regard's

Dheerendra

Answers (0)