Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

ModelData.Find in Table over multiple fields

Hey there,


i've got a Question regarding  the sap.m.table. Can you tell me how to find a record in the cached table by multiple key-fields?


e.g. MANDT, MATNR and WERKS ?


Thanks in advance.


Thorsten


Hi Thorsten


Today the ModelData.Find only supports one key field. MANDT is no need to use, so in your case you can solve it by creating a new field called KEY as a concatinate of MATNR + WERKS. Then use the KEY field in the ModelData.Find.


We are also investigating the possibility to include multipe key fields for our upcomming Neptune UX Platform 4.0 (mid-february).


Regards

Ole Andre 

Thank you verry much :)

Works like charm!

Login or Signup to post a comment