API Call with ABAP - POST Method and JSON Request [english]

Поділитися
Вставка
  • Опубліковано 8 лип 2024
  • In today's video I will show you how to call an external API from SAP.
    I use a POST CALL and pass a JSON string to this API. To test this, I looked on the website RapidApi.com for a free service that I can pass a JSON string via POST call.
    I already used 2x an API of this website.
    1x for a simple GET request and
    1x for a file upload
    I link these videos on the top right.
    Today I use an API for translations.
    #sap #api #post
    ▬▬ Literature 📚 ▬▬▬▬▬▬▬▬▬▬▬▬▬
    ▶ ABAP: An Introduction 2020 amzn.to/45CLTqk
    ▶ Complete ABAP 2023 amzn.to/45D5UNM
    ▶ ABAP to the Future 2022 amzn.to/42cgWGs
    ▶ Clean ABAP 2022 amzn.to/3KAqmow
    ▬▬ My Hardware 💻 ▬▬▬▬▬▬▬▬▬▬▬▬▬
    ▶ Microphone: amzn.to/3zj2UIz
    ▶ Headphone: amzn.to/3GUBRFg
    ▬▬ My Software (free) 💾 ▬▬▬▬▬▬▬▬▬▬▬
    ▶ Video Recorder: bit.ly/678fgh6
    ▶ Video Editor: bit.ly/38Rj9lb
    ▶ Thumbnail: bit.ly/CustAndCodeThumbnail
    ▶ Gamma AI: bit.ly/3nsdvgr
    ▬▬ Further Links 🔗 ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ⭐Become my subscriber: bit.ly/CustAndCodeSub
    🎬All videos in English: bit.ly/CustAndCodeENG
    ☕Buy me a Coffee 😀: bit.ly/3dih2cl
    *The links are affiliate links. There are no additional costs.
    Sap icons created by Freepik - Flaticon
    www.flaticon.com/free-icons/sap

КОМЕНТАРІ • 29

  • @sankeshankar
    @sankeshankar 11 місяців тому

    Great videos as always !! Keep it coming through. It’s very very useful !!

    • @CustAndCode
      @CustAndCode  11 місяців тому

      Thank you very much for your feedback! 😀🤗

  • @mylengoc227
    @mylengoc227 11 місяців тому +1

    Thank you so much for this video. I have learnt a lot from your videos.

    • @CustAndCode
      @CustAndCode  11 місяців тому

      I'm glad to hear that! Thanks for the feedback! 🤗

  • @pratikpawar3579
    @pratikpawar3579 11 місяців тому

    Thanks for the Great Videos!

    • @CustAndCode
      @CustAndCode  11 місяців тому

      Thank you! I'm glad to hear that! Thanks for the feedback! 🤗😀

  • @SebastienJALADE
    @SebastienJALADE Місяць тому

    Great tutorial, very comprehensible and direct to result with efficiency and without thousand of useless lines and silly complementary process (the hell with SM59 !) THANK YOU VERY MUCH. You made my day

    • @CustAndCode
      @CustAndCode  Місяць тому

      haha Thanks! 😀 I'm glad you liked it. And thank you for watching! 🤗

  • @ardydk9944
    @ardydk9944 11 місяців тому

    Thankyou very much sir! youre so kind to share your knowledge about sap abap.
    its very helpful for me
    Have a great day sir!😄

    • @CustAndCode
      @CustAndCode  11 місяців тому

      Thank you very much for your kind feedback! 🤗 Yes, sharing knowledge is one of my reasons to do this channel! 🤗😀

    • @ardydk9944
      @ardydk9944 11 місяців тому

      Sir, how to check if my API is connect or not in sap abap debug ? i try in postman and its ok status 200., but in sap abap when in o_client->receive( ) the program stopped and show that http_communication_failure @@CustAndCode

    • @CustAndCode
      @CustAndCode  4 місяці тому

      Maybe you have to install a certificate I have made a video about that 🤗

  • @alexx09724
    @alexx09724 2 місяці тому

    Thank you for sharing! Can you tell me how I can implement JSON web tokens (JWT) in this code or recommend a site where I can find more information about this?

    • @CustAndCode
      @CustAndCode  2 місяці тому

      Unfortunately not I'm not experienced with JWT. 😐

  • @peverco
    @peverco 7 місяців тому

    Hey man, is there are way that we could show only the text translated in the result? (Instead of the entire json response)

    • @CustAndCode
      @CustAndCode  7 місяців тому +1

      There is always a way... 😉 You can work with substrings or you can translate the Json to an ABAP structure like an internal table... have a look at this video: ua-cam.com/video/v_McRGowbbo/v-deo.html
      😀

  • @bvelmurugan
    @bvelmurugan 10 місяців тому

    Hi expert, I added the certificate but still it showing HTTP_COMMUNICATION_FAILURE error...

    • @CustAndCode
      @CustAndCode  10 місяців тому

      Have you picked the right folder (Standard)? and is the certificate in the certificate list? 🤔

  • @satishkumar-uy4lv
    @satishkumar-uy4lv Місяць тому

    can we access Graph QL also?

    • @CustAndCode
      @CustAndCode  Місяць тому

      I haven't used Graph QL yet. It should be possible but not like this way. There are some conversions necessary. 🤔

  • @juneduddin7614
    @juneduddin7614 2 місяці тому

    I have uploaded the certificate in STRUST but still the status code is 0 .

    • @CustAndCode
      @CustAndCode  2 місяці тому

      Have you added the cert to the certificate list? 🤔

  • @awesomeshree
    @awesomeshree 11 місяців тому

    This is amazing. Thanks a lot.

    • @CustAndCode
      @CustAndCode  11 місяців тому

      Thank you very much I am glad! 😀🤗

  • @zivgur
    @zivgur 7 місяців тому

    hi friend, very good video, can you please share the abap code ?

    • @CustAndCode
      @CustAndCode  6 місяців тому +1

      Unfortunateley I do not maintain a blog. 🤗 But in my videos we have not that much code, is typed quickly 🤗