cancel
Showing results for 
Search instead for 
Did you mean: 

How to extend Stock - Multiple Materials (App ID F1595)

2,293

Hi All,

I want to extend the Stock - Multiple Materials App. To be specific:

  • I want to add a column to the analytical table

I already extended CDS View F0_Mmim_Matstockquanvalbydate and appended structure MMIM_MATERIAL_MULTI_STOCK with my custom fields. Then I tried to use adaption project to add the column to the analytical table - which unfortunately didn't work. There are no changes reflected.

I recoginzed that the annotations for the analytical table are built in the define method of the mpc class in the oData Service MMIM_MULTIPLE_MATERIALS_SRV. So can I only extend the analytical column by redefining the define Method?

  • I want to add a column to the search help of the material number

I found out that the entity type for this search help is VL_SH_MAT0M. And I also see this entity when I test the oData Service in the /iwfnd/maint_service. But it's not an Entity in the oData Definition. How can I extend the search help?

Thanks in advance,

Regards,

Julia

0 Kudos

Hi All,

so I was able to add a new column to the analytical table via adaption project.But I am still not able to add the field to the oData service or to be correct to the select fields of the oData. I guess I have to change the mapping of the oData Service.

Has anyone a tip for me how to approach that problem?

Regards,

Julia

maheshpalavalli
Active Contributor
0 Kudos

Hi julia_g.,

is your odata service extnded with the new field that you want to show ?

BR,

Mahesh

0 Kudos

Hi Mahesh,

thanks for you comment. Since I'm using adaption project I assumed, that I have to enhance the standard oData Service MMIM_MULTIPLE_MATERIAL. If I don't want to make an external call to another oData Service that is. So I enhanced the DEFINE method of class CL_MMIM_MULTIPLE_MATER_MPC_EXT, in order to add a new property for my field. That works fine. I'm not quite sure which is the best approach to get the value of the field. I extended the CDS View already to get the value. But I guess I also have to change the mapping. I don't know where I can do that, without a modification of the standard service. Any tip would be very helpful.

Thanks,

BR,

Julia

Accepted Solutions (0)

Answers (1)

Answers (1)

Hi All,

so I actually found a solution for my problem. I didn't extend it with an adaption project. For me it was enough to add the property and fill that property in the standard oData Service, via enhancements.

BR,

Julia