on 04-06-2017 1:00 PM
Hello.
I have an issue regarding the JS exit method on XSA. Here are the detailed steps whichi have done.
First of all, I have a CDS view with a simple entity:
entity BusinessPartner {
key BusinessPartnerID: Integer;
isCustomer: hana.TINYINT;
Name: String(100);
isSupplier: hana.TINYINT;
}
Then, a simple odata service:
service namespace "SUPPLY_CHAIN_TRACKING"{
"poc_scm.db.data::SupplyChainTracking.BusinessPartner" as "BusinessPartnerSet"
}
At this moment, everything is perfect.
In the next step, I want to use a JS function exit on entity creation, so, I created a businessPartnerCreateMethod.xsjslib file, and on that file I have a createMethod with some insert logic.
The next step is to change the odata service declaration:
service namespace "SUPPLY_CHAIN_TRACKING"{
"poc_scm.db.data::SupplyChainTracking.BusinessPartner" as "BusinessPartnerSet"
create using"xsjs:businessPartnerCreateMethod.xsjslib::createMethod"; }
When I do a simple POST request, everything is working. The create method is called, everything is ok.
The problem comes, when I do the Batch request. On Batch request, the error message says:
{"error":{"code":500,"message":{"lang":"en-US","value":"context.functionExecutor is not a function"}}} (It works for a simple POST request!)
Any help will be appreciated. Thank you.
P.S If someone need more information, I can provide it.
Hi Alexandru,
the issue should be solved with SAP note 2421178
Best regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.