Product Lifecycle Management Blogs by Members
Get insider knowledge about product lifecycle management software from SAP. Tap into insights and real-world experiences with community member blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
ravenclaw
Participant
0 Kudos
This blog will demonstrate how to load the EHSM Master Data for Physical Parameters into SAP. Physical Parameter is modeled using the Business Object EHFND_PHYSICAL_PARAMETER in the Business Object Processing Framework. Moreover the UI for processing the Physical Parameter is FPM based and don't necessarily provide the Old GUI based SAP transactions. The objective of this blog is provide a road map for mass maintenance of Master Data which are primarily maintained via NWBC.

 



 

1st Step is to create structures in SE11 like ROOT and ROOT_NAME_TEXT nodes.

The Root node is represented by ZBAPI_EHFNDS_PPAR_ROOT.

 



 

The Child node is represented by ZBAPI_EHFNDS_PPAR_NAME

 



 

2nd step is to create a Function Group for the custom BAPI.

 



 

3rd step is to create the custom BAPI.

Attribute Section:

 



 

Importing Parameters:



 

 

Tables Parameters:



 

4th step is to release the function module by Function Module>Release>Release.

5th step is to create the business object in SWO1.



 

6th Step is to click on the methods to drop down and see what methods are provided by default. There would be two methods, showing in red color which comes by default while creating the BAPI. Now select ‘Add Method’ from Utilities > API Methods > Add Method.





 

A popup will be displayed as below. Click on Yes. We will get an information message that the method ‘IMPORTPHYSICALPARAMETERS’ inserted.

 



 

Now select the Object “ZEHS_PHPAR” as shown below.

 



 

Now go to Edit > Change Release Status > Object type > To Modeled. 

Now go to: Edit > Change Release Status > Object type >To Implemented.

Now, go to: Edit > Change Release Status > Object > To Released.

Keep the cursor on the 'Method'. Now go to: Edit > Change Release Status > Object type component > To Modeled.

Now, go to: Edit > Change Release Status > Object type component > To Implemented.

Now go to: Edit > Change Release Status > Object type component > To Released.

Click on ‘Generate’ from Object Type.

 



 

Now go to Environment -> Generate ALE Interface

 



 



 



 



 

Do a syntax check on the Basic Type “ZEHS_PHPAR_OBJECT_IMPORTPHYS01”.

 



 

Release all the segments and the Basic Type.  





 



 

Create the LSMW Project and Object.



 

Inbound IDoc Processing: Preparatory Measures.



 

Coding for BAPI Function Module, search with BAPI_INC*_IMPORT. It contains the logic for importing the data into BOPF. We can reuse to build our use case. The below is a sample case built out for this blog.



 

Additionally, Please search for a helper Class CL_EHFND*MIGR* that contains the core logic for the data import. This is one of the classes provided by SAP and can be reused as a sample template.



 

List of successfully posted IDocs.

 



 

List of Physical Parameters as seen in NWBC UI:



 



This is how the file structure will look like



 

To conclude, the above methodology could be used for varied complexities of NWBC Master Data Load. I hope the community finds this blog to be useful.

 

All the best,

Tanmoy