cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Help needed for a custom POD plugin

Ruudvandeven
Explorer
0 Likes
496

As a developer I'm trying to understand the ecosystem of SAP (which is pretty hard and not straight forward). My business case is as follows:

in a POD there is a square which is RED.  After scanning an SFC a PPD is run and a global var is updated to true or false. When it's true, the square in the POD should change to green. Why we think about a custom POD plugin, this action proves the integration of custom design with custom processes designed in MES and opens opportunities for more onboarding of companies. So far I found dozens of tutorials which do NOT align and mess up eachother.

Started with tutorial of: https://sdk.openui5.org/

Found: https://help.sap.com/docs/sap-digital-manufacturing/pod-plugin-developer-s-guide

Looked trough: SAP-samples/digital-manufacturing-extension-samples: Use these sample extensions to learn how to bui...

I just need a simple call to a PPD (via a service registry) and return the results in javascript.

Off course I use VS Code, not SAP business application studio.

According to the tutorials i used NPM as package manager. 

Currently I'm stuck at using PluginViewController. Which is used in the examples to do api integration.

Ruudvandeven_0-1767952750945.png

 

In the examples they refer to: sap/dm/dme/podfoundation/controller/PluginViewController 
How to install these via NPM?

 

 

Accepted Solutions (0)

Answers (2)

Answers (2)

ManoelCosta
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi, I suggest you also check Building a Custom Digital Manufacturing POD Plugin — The New Easy Way, which might give you a super quick start.

In addition, keep in mind that, the upcoming new POD 2.0 framework (currently in closed Beta, GA planned for 2602 release) will make building POD extension/customization use cases like the one you described a breeze, using WYSIWYG and LCNC capabilities in standard, stay tuned! Hope it helps! BR, Manoel

ManoelCosta
Product and Topic Expert
Product and Topic Expert
0 Likes
Hi! If my answer was helpful, please consider accepting it as solution.
Ruudvandeven
Explorer
0 Likes
Unfortunately this new easy way also gets the same issues. Because its in the coding itself and in the libraries. Maybe the only way now to create a custom POD plugin is to wait for the POD 2.0?
ManoelCosta
Product and Topic Expert
Product and Topic Expert
0 Likes
You can also check https://github.com/SAP-samples/digital-manufacturing-extension-samples for a lot of examples. Hope it helps! Br, Manoel
marcobarat
Participant
0 Likes

Hey @Ruudvandeven ,
on my side your question is not so clear, but i will give you my 2cents.

i would recommend you to follow this guide - created by Saint Manoel CostaHERE or this one that is more fresh HERE.

This is for BAS, but it's basically the way to understand how is the process to create and deploy a new plugin.
His guide is referring on standard core plugin extensions, in your way you should develop a pod plugin extensions.

This is the procedure where you deploy an application inside SAP BTP, but your BTP requires credits (cpea? i dont remember the name). There is also a "new way" that refer to upload directly inside SAP DM as zip and not requires cpea credits.

With this second chance, you can develop inside VS/BAS and then create the zip and upload directly from SAP DM (inside POD Designer - Extensions 

marcobarat_0-1768297977952.png

).

You just need to know how the structure should be.

Also, you can't test your plugin from vscode (the standard core plugin extensions for sure), i mean maybe there could be some way to work in local (with proxies or others) but from standard point of view if you want to test your code you have to deploy in BAS/DM and check there --> but i am not so skilled to try to find a solution.

I hope it helps,
M.

 

Ruudvandeven
Explorer
0 Likes
okay so lets make my question more easy. How do I call a SAP DM API endpoint ?
marcobarat
Participant
0 Likes
from external or standard/custom pod plugin?