Hi,
I've a small app with oData connection with several models:
.../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/
The model .../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/AgrRequests works fine but I have troubles as soon as I jump to an other model with
.../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/AgrRequests('R000000383')/RequestRulesOverview
Everything is displayed but the for example the rate take always the same value of the last rule in the same type
Does anybody knows why? Helps would be much appreciate.
With the same code as JSON-Mockup, there is no no issue.
Here a image of the result:
Here is code of the index:
Here the oData code:
{ "d": { "results": [ { "__metadata": { "id": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%25',RuleTable=678,Request='R000000383')", "uri": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%25',RuleTable=678,Request='R000000383')", "type": "YAGREEMENT_SIMULATE_SRV.RuleOverview" }, "Ruletype": "ZBB%", "RuleTable": 678, "Description": "R2.000", "Rate": "2.000", "Unit": "%", "RebateAmount": "5", "RuleGrade": "", "RuleBase": "", "Request": "R000000383" }, { "__metadata": { "id": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%25',RuleTable=678,Request='R000000383')", "uri": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%25',RuleTable=678,Request='R000000383')", "type": "YAGREEMENT_SIMULATE_SRV.RuleOverview" }, "Ruletype": "ZBB%", "RuleTable": 678, "Description": "R3.000", "Rate": "3.000", "Unit": "%", "RebateAmount": "6", "RuleGrade": "", "RuleBase": "", "Request": "R000000383" }, { "__metadata": { "id": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%25',RuleTable=678,Request='R000000383')", "uri": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%25',RuleTable=678,Request='R000000383')", "type": "YAGREEMENT_SIMULATE_SRV.RuleOverview" }, "Ruletype": "ZBB%", "RuleTable": 678, "Description": "R1.000", "Rate": "1.000", "Unit": "%", "RebateAmount": "7", "RuleGrade": "", "RuleBase": "", "Request": "R000000383" }, { "__metadata": { "id": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%24',RuleTable=678,Request='R000000383')", "uri": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%24',RuleTable=678,Request='R000000383')", "type": "YAGREEMENT_SIMULATE_SRV.RuleOverview" }, "Ruletype": "ZBB$", "RuleTable": 678, "Description": "R3.00", "Rate": "3.00", "Unit": "USD", "RebateAmount": "8", "RuleGrade": "", "RuleBase": "", "Request": "R000000383" }, { "__metadata": { "id": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%24',RuleTable=678,Request='R000000383')", "uri": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%24',RuleTable=678,Request='R000000383')", "type": "YAGREEMENT_SIMULATE_SRV.RuleOverview" }, "Ruletype": "ZBB$", "RuleTable": 678, "Description": "R4.00", "Rate": "4.00", "Unit": "USD", "RebateAmount": "9", "RuleGrade": "", "RuleBase": "", "Request": "R000000383" }, { "__metadata": { "id": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%24',RuleTable=678,Request='R000000383')", "uri": ".../sap/opu/odata/sap/YAGREEMENT_SIMULATE_SRV/RulesOverview(Ruletype='ZBB%24',RuleTable=678,Request='R000000383')", "type": "YAGREEMENT_SIMULATE_SRV.RuleOverview" }, "Ruletype": "ZBB$", "RuleTable": 678, "Description": "R1.00", "Rate": "1.00", "Unit": "USD", "RebateAmount": "10", "RuleGrade": "", "RuleBase": "", "Request": "R000000383" } ] } }