Skip to Content

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

Best approach to design entity for description details


Suppose I have a UI5 screen where-in I am going to display purchase order header details (from zekko copied from ekko with limited fields) .For that I created a odata webservice with entity having the fields Ebeln , Bukrs, Bstyp, Bsart , Statu, Lifnr.

Now in my frontend , i also to want to display description for some of the above fields for eg. description for bukrs , bstyp, bsart , lifnr(vendor name for corresponding vendor number). These description will either come from some other table joined with ekko or from data element/domain list. In both cases , what will be the best approach to achieve this??

One way is I can add these description fields in the above entity itself and write a code in odata service to fetch them accordingly. But in that case , in future when I will implement CreateEntity method , the user from frontend will be forced to enter the description details as well since the same entity structure will be used in case of Create operation also.

Hence I wanted to know , what is the best practice followed in real time in such cases.


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