Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
cancel
Showing results for 
Search instead for 
Did you mean: 
parag_parikh
Participant

When I started working on a PLM-RM implementation, I could not find simple material like list of classes or FM useful for this module.

I am presenting here list of useful classes and FM from PLM-Recipe Management for process industries.These are useful in reading information about recipe and formula in ABAP program. I hope that this would be a useful reference for consultants implementing this module.

Use method EXT_TO_INT_CONVERT of class CL_RM_INT_RECIPE. This will give us internal number i.e. GUID of recipe. Input is recipe name.


Read primary output formula of recipe using method PO_AND_PO_FRM_GET. We need internal number obtained in step above as input here.


We see that we have obtained formula's internal number. Next task is what if we want to know external formula number? We can use class CL_RM_INT_FRM to get formula information. Method EXT_TO_INT_CONVERT gives internal number for formula.

Method ROOT_FOR_FORMULA_GET of class CL_RM_INT_FRM gives us reverse tracing i.e. root for formula which in this case will be recipe.


Use method ITEM_READ to read formula items.

We need to provide internal number for recipe and formula as input. Method gives us details of all substances in formula along with materials/unit of measure in table ET_ITEM.

If the requirement is to read a substance only then we can use FM C1F2_SUBSTANCES_READ. Input will be scenario which is 01 for read, key date in I_ADDINF, pas I_FLAG_MATJOIN to get material information. Pass substance internal number obtained from table ESTRH to X_API_HEADER_TAB-RECN.

Parameter E_API_MATJOIN_TAB gives us the material and plant. Using material number we can fetch base unit of measure from master data.


2 Comments
Labels in this area