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

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 มิ.ย. 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

ความคิดเห็น • 26

  • @sankeshankar
    @sankeshankar 10 หลายเดือนก่อน

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

    • @CustAndCode
      @CustAndCode  10 หลายเดือนก่อน

      Thank you very much for your 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! 🤗

  • @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! 🤗😀

  • @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 10 หลายเดือนก่อน

      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: th-cam.com/video/v_McRGowbbo/w-d-xo.html
      😀

  • @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? 🤔

  • @bvelmurugan
    @bvelmurugan 10 หลายเดือนก่อน

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

    • @CustAndCode
      @CustAndCode  9 หลายเดือนก่อน

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

  • @satishkumar-uy4lv
    @satishkumar-uy4lv 24 วันที่ผ่านมา

    can we access Graph QL also?

    • @CustAndCode
      @CustAndCode  24 วันที่ผ่านมา

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

  • @awesomeshree
    @awesomeshree 11 หลายเดือนก่อน

    This is amazing. Thanks a lot.

    • @CustAndCode
      @CustAndCode  11 หลายเดือนก่อน

      Thank you very much I am glad! 😀🤗

  • @zivgur2294
    @zivgur2294 6 หลายเดือนก่อน

    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 🤗