Symptom
When configuring a Business Rule in SAP FSA to dynamically build an HTML table from query results, the generated table cells appear empty or the variable produces no output at all
Specifically, the following behavior is observed:
- A variable of type Value is configured to iterate over an array of query results (e.g., reservations, service calls) and build an HTML table
- The variable definition uses a traditional JavaScript for loop to concatenate table rows
- When the Business Rule executes, the resulting HTML table is either empty, contains only the header row, or the variable evaluates to an empty string
- No error message is displayed. The rule executes without failure, but the output does not contain the expected data rows
Read more...
Environment
SAP Field Service and Asset Management
Product
Keywords
FSM, SAP Field Service Management, Business Rules, Value variable, HTML table, for loop, .map(), .join(), expression evaluator, template expression, dynamic HTML, query results, CEC-SRV-FSM-BR, functional programming, JavaScript ES6, arrow function, method chaining , KBA , CEC-SRV-FSM-BR , FSM Business Rules , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview