Skip to Content
0
Former Member
Apr 01, 2014 at 12:24 PM

Catalog Enhancement (Product Catalog filter)

111 Views

Good Day!

I am using Web Channel 3.0 with CRM .

I have a requirement which is to filter the product per customer.

My customers are in CRM, I have created a function Module RFC enable that returns me all the product for that specific customer.

I have enhanced the Catalog module with bo, md and ui.

I have created my custom module that extends extends BackendBusinessObjectBaseSAP

Header 1

public class ZCustomCatalogItem extends BackendBusinessObjectBaseSAP {

private Map<String,String> CatalogCode = new HashMap<String,String>();

public void getMaterialList(String iv_stpnum) {

JCoConnection jcoCon = getDefaultJCoConnection();

try {

JCoFunction function = jcoCon

.getFunction("/BSA/WCEM_LIST_OF_MATERIAL");

function.getImportParameterList().setValue("IV_STPNUM", iv_stpnum);

jcoCon.execute(function);

JCoTable products = function.getExportParameterList().getTable(

"ET_MATERIAL_LIST");

String result = function.getExportParameterList().getString("EV_RESULT");

if (result.equalsIgnoreCase("Success")) {

for (int x = 0; x < products.getNumRows(); x++) {

products.setRow(x);

CatalogCode.put(products.getString("MATERIAL_NR"),products.getString("MATERIAL_DESC"));

}

}

} catch (BackendException be) {

}

}

public void setCatalogCode(Map<String,String> catalogCode) {

CatalogCode = catalogCode;

}

public Map<String,String> getCatalogCode() {

return CatalogCode;

}

}

but now I do not know where to find the definitive list of product that come from MDM into web channel and apply my filter.

My Web Channel Catalog view displays a total of 80 products configured, and my function module returns a specific number of product and this should work once the user logs in.

Does any of you have a document showing how to modify the filtering of product coming from MDM to Web channel.

😔