cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a Product Hierarchy using BAPI from a Flat File (Excel)

Former Member
0 Kudos

Hi All,

I need to create product heirarchy from a excel.

Could anybody help me in finding out correct BAPI that will create Product Heirarchy using Flat file.

Regards,

Snehaseel.

Accepted Solutions (1)

Accepted Solutions (1)

rajkj
Active Contributor
0 Kudos

Hi Snehaseel,

Have you tried LSMW? It will be a good fit for your requirement.

There is no one BAPI that can accept a flat file and create product hierarchy in one call. You may need to manage data read from excel (CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE') and populate a structure/table (BAPI10017PHNODE) and pass that data to BAPI_PHSRVAPS_SAVENODES that can save nodes to already existing hierarchy. Please note that it requires you to create one hierarchy header manually and then execute the BAPI to add the nodes to it.

Thanks,

Rajesh

Answers (0)