on 02-15-2019 7:42 AM
Hi Experts,
I followed the blog: https://blogs.sap.com/2018/04/30/deep-dive-10-with-sap-s4hana-cloud-sdk-generating-java-vdm-for-s4ha...
I am able to generate the vdm & access the response as string as well, but my use case is to create a join between 2 different services by comparing 1 common key in both the services, below is my code & respective output:
final List<SamplSrv> result1 = new GetAllSamplSrvCommands(service).execute();
for(SamplSrv var1: result1) {
jsonResult += "is empty: " + var1.getCustomFields().isEmpty() + " \n ";
jsonResult += "get custom fields: " + var1.getCustomFields() + " \n ";
jsonResult += "hash code: " + var1.hashCode() + " \n ";
jsonResult += "erp context: " + var1.getErpConfigContext() + " \n ";
jsonResult += "string value of var1: " + new Gson().toJson(var1) + " \n ";
break;
}
Can you upload your metadata file so that we can reproduce the issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armoghan,
can you pls point out which problem you are facing?
Thanks
Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marco,
Apologies, I am unable to follow which getter you are referring to.
I did try using var1.PRCTR (a field name), but all I get as output is: com.sap.cloud.s4hana.examples.vdm.namespaces.zsbscustlinescds.field.CustomerLineItemsField@5339dda3
Following is the screen of all the getters I get in suggestion, I hope it will help you guide me in the right direction:
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.