cancel
Showing results for 
Search instead for 
Did you mean: 

Learning Journey "Build side-by-side extensions on SAP BTP" - Unit 3 - external services

nknight
Explorer
0 Kudos

I have completed all steps in this Learning Journey 3 times but am unable to see the Business Partner data as described. When I click on the Business Partners link (first screen shot), this is what I see (2nd screen shot):

nknight_3-1673509830461.png

nknight_0-1673509517003.png

There are no errors getting returned.

According to the course material I should be seeing something like the below.

 

nknight_2-1673509646045.png

 

I am new to this so have no idea what to troubleshoot next. I have followed every step exactly including the API Key. Everything else has worked as described.

I would appreciate any help.

Thanks

Nicole

 

Margit_Wagner
Product and Topic Expert
Product and Topic Expert
0 Kudos

@nknight 
We have received your request and are in the process of evaluating the problem.
Please allow for a delay in our response.
Kind regards
Margit

nknight
Explorer
0 Kudos
Hi Margit, Is there any update on this one please?
markushaug
Product and Topic Expert
Product and Topic Expert
Hi Nicole, could you please provide me with a git-repo, so that I could further investigate on that?
nknight
Explorer
0 Kudos
Thanks Markus, I have sent you a message. Kind Regards Nicole

Accepted Solutions (0)

Answers (2)

Answers (2)

markushaug
Product and Topic Expert
Product and Topic Expert

Hi Nicole,

in your package.json, you have to specify the URL for the API_BUSINESS_PARTNER destination:

 

  "requires": {
      "API_BUSINESS_PARTNER": {
        "kind": "odata",
        "model": "srv/external/API_BUSINESS_PARTNER",
        "credentials": {
          "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/"
        }
      }
    },

Best regards,

Markus

nknight
Explorer
0 Kudos
I already have that in my package.json
nknight
Explorer
0 Kudos
nknight
Explorer
0 Kudos
Hi @markushaug, do you have any further suggestions on this please?
abranjan
Active Participant
0 Kudos

Hi Nicole,
Good Day,

If you are not able to see any data at BusinessPartners endpoint, then I would suggest you can try to first comment out this below piece of code in your service implementation file: (This would comment out the custom event handler implementation you have for BP and by default when you run again generic event handler would be triggered)

this.on("READ", BusinessPartners, async (req) => {

         req.query.where("LastName <> '' and FirstName <> '' ");

         return await BPsrv.transaction(req).send({
                      query: req.query,
                      headers: {
                      apikey: "<your_api_key>",
         },
});
});

You would be able to make use of generic event handler and check if your API key's and connection to sandbox is fine or not. Check if you get BP data like this.
If you are getting it then uncomment the code and make sure the custom event handler is implemented correctly.

Best,
Abhijeet

nknight
Explorer
0 Kudos
Thanks for helping. I commented that out and I'm still not getting anything. Any other suggestions please?
abranjan
Active Participant
0 Kudos

Hi,
Please provide your github repo link. I would get back to you if I find the fix.
Best,
Abhijeet