Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ISA 50 - B2C Open orders search, extending generic-searchbackend-config.xml

Hello Experts,

I have several B2C sites and webshops, and B2C self-created accounts are common to all sites. The problem is that all open orders and completed orders (from all sites) appear in the open orders / completed orders in My Account. I'd like to separate the display of orders for each site.

Each of my site corresponds to a sales organisation in CRM / R3. In the GenericSearchDynamicContent class, which is used in the standard generic-searchbackend-config.xml to generate dynamic values in filters, I found a method addSalesOrg(). I tried to add this in the customer/generic-searchbackend-config.xml :

<configs isa:extends="../configs[@id='crmdefault']">

<config id="javabasket_javatemplate_forCRM">

<property-group name="SearchCriteria_B2C_Sales">

<property name="SALES_ORG"

entityType="CL_CRM_REPORT_SET_ORGMAN"

tokenType="RAN"

type="dark">

<allowedValue content="dynamic"

contentCreateClass="com.sap.isa.isacore.GenericSearchDynamicContent"

contentCreateMethod="addSalesOrg" />

</property>

</property-group>

</config>

</configs>

But it doesn't work, all orders are displayed. If I don't set the entityType and RAN, ABAP returns an error and doesn't take in account the property SALES_ORG, but I don't know if these are the good values (I found these values by debbuging abap ...)

I haven't found any documentation on the parameters I could add and the corresponding types etc., the Dev and Ext guide (and tuts) shows an example on how to add a search parameter in the selection screen and add a column in the result screen, but no detailed list of fields we could add...

Please let me know if you have a solution to add sales organisation to the search parameters, and links to documentation.

Thank you by advance

Julien

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question