Skip to Content

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

Problem in Data transfer from view to Model

Hi

I am displaying MARC data in BSP by taking Matnr as input on view.I am fetching the data in MODEL.

But, when I enter the value for MATNR in view , it is not getting transferd to MODEL. So, data is not coming as MATNR value is empty in model.

But, I hav done the DAta binding and I hav set the attributes in Controler by using SET_ATTRIBUTES method.

So,can you please tell me , what might be the reason for this.

CODE :

In View :

<htmlb:inputField id = "v_matnr"

value = "//material/v_matnr" />

In cotroler(do_request) :

view->set_attribute( name = 'material' value = me->material ).

Note : material is model instance here.

In model :

select matnr ersda mtart mbrsh matkl meins

from mara

into corresponding fields of table it_matgendata

where matnr = v_matnr.

Regards

Sandeep REddy

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question