Consume External API - RAP ABAP | RAP Side-by-Side Extension | RESTul ABAP Extension ( Hands-On )

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2021
  • Consume External API - ABAP ARAP | RAP Side-by-Side Extension | RESTul ABAP Extension - Hands-On Tutorial
    Complete Codebase in Github Repository: github.com/developedbysom/RAP...
    TAGS
    RESTful ABAP, RAP Side by Side Extension, Consume REST API in RESTful ABAP, RESTful ABAP Extension, RAP Unmanaged Scenario, ABAP CDS Value help

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

  • @sharmavivek731
    @sharmavivek731 ปีที่แล้ว +1

    Excellent tutorial Somenath! Crisp and clear as always

  • @500ck
    @500ck 2 ปีที่แล้ว +1

    Thanks for the videos, clean and precise.. very helpful!

  • @techtalks1713
    @techtalks1713 2 ปีที่แล้ว +1

    Hi Somnath, Thanks for this tutorial. I was lookin for this !!

  • @Raghu7338
    @Raghu7338 17 วันที่ผ่านมา

    Excellent tutorial

    • @somnathpaul2020
      @somnathpaul2020  17 วันที่ผ่านมา

      @@Raghu7338 thank you Raghu.

  • @user-ll2ov7zo7d
    @user-ll2ov7zo7d 6 หลายเดือนก่อน

    Hi One question : If we want to create a RAP Web API whose purpose is only to call a FM in backend system, for that can we create Custom entity and in behaviour definition if we create a custom action ? if yes then how this custom action will be triggered from RAP Web API?

  • @emmanmon3825
    @emmanmon3825 ปีที่แล้ว

    Do you have sample of using Communication Arrangement? Thanks

  • @KrishnasriKammari-lg6mr
    @KrishnasriKammari-lg6mr 3 หลายเดือนก่อน

    Hai.
    the data definition has not been created for me.
    instead, a class is got generated.
    can you please help me in this reagard?

  • @anirbanmajumder1470
    @anirbanmajumder1470 4 หลายเดือนก่อน +1

    Good job Somnath

  • @vigneshs.v4706
    @vigneshs.v4706 6 หลายเดือนก่อน +1

    Hi Somnath,
    Thank you for the video and it helps to understand how to call OData API of On-Premise system in RAP BTP.
    Is this the approach we need to do for real-time projects too?
    And one more query.
    If the OData API is created and consumed in RAP BTP and now there is some change done in OData model of On-Premise system, will the service consumption in RAP BTP will reflect automatically?

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

      Thanks for your feedback. Answering to your questions,
      1. Yes its a standard approach
      2. No automatic reflection to BTP side as schema mapping done via edmx its like WSDL mapping being used in proxy kind of development.

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

    @somanth, Great tutorial. I am looking for similar requirement, but i want to consume a SOAP API instead of ODATA service. Can you please explain the required steps to consume SOAP API inside a Custom entity implemented by a class. I followed the same steps mentioned in the video, but facing an error " Logical Port does not belong to consumer proxy" . Can you please suggest on this.Our SAP system is on S4 HANA cloud 2402.

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

      Thank you for the feedback. Are you doing as on prem means as embedded steampunk approach or BTP?

  • @nivea8616
    @nivea8616 2 ปีที่แล้ว

    Can you also create a video how to perform intent based navigation in SAP RAP model as well as validation on fields( specifically on clicking one field , the other field should get automatically populated ) and user parameters on selection screen field using an example ?

    • @somnathpaul2020
      @somnathpaul2020  2 ปีที่แล้ว

      I understand a bunch of things that you are looking for. BTW clicking on one field and filling up other field already is a part of this video. If u carefully check once you will get it . Regarding intent based navigation, I would say this is combination of semantic object + action. I created a video on cross app navigation, this may help you: th-cam.com/video/1S55UOIkUf8/w-d-xo.html

    • @nivea8616
      @nivea8616 2 ปีที่แล้ว

      @@somnathpaul2020 Thank you so much !. I will check the video and try to implement , However there is one observation , for odata v2 , the service is automatically visible in the /iwfnd/maint_service but not in case of odata v4 . in that case can you guide me how to add the odata v4 service in /iwfnd/maint_service.

  • @ssga7081
    @ssga7081 3 หลายเดือนก่อน

    I'm just curious to know: would it still be possible to create sales orders directly being added to VBAK/VBAP using RAP approach? If that's not the case, what should be the most ideal solution (still outside of SAPGUI)?

    • @somnathpaul2020
      @somnathpaul2020  3 หลายเดือนก่อน

      You need to fo for released API

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

      @@somnathpaul2020so if i want to create sales order through my rap list elements application, i need to consume/call a released api which does that. Correct?

    • @somnathpaul2020
      @somnathpaul2020  หลายเดือนก่อน +1

      Yes. Here 2 things - if ypu want to access S4Hana cloud then get the released API or if you want to access data from on prem then call odata API from backend remotely.

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

      @@somnathpaul2020 thanks for response. Appreciate it

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

    I have a question regarding embedded steampunk. Is there any way to call standard function module within RAP code? I would like to upload excel file.
    Your help will be much appreciated.
    Thanks in advance.

    • @somnathpaul2020
      @somnathpaul2020  9 หลายเดือนก่อน +1

      Some white listed API can be called.

  • @azeemquadri
    @azeemquadri 2 หลายเดือนก่อน

    Nice is there a music free version... Is

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

    Can we consume 3rd party APIs in RAP? It may not be oDATA, but plain REST.

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

      As per I know, NO, you can't. But may be some workaround there like wrapping up REST -in some proxy service which can generate ODATA V4/V2. You can think of developing a simple CAP application which can consume REST service and can provide V4 as out of the box. If you need V2 then you can simple use a middlewire to down-port.

  • @nivea8616
    @nivea8616 2 ปีที่แล้ว

    It seems it is allowing to create service consumption model on cloud and not on premise, Can you help ?I am trying to create sales order using API via SAP RAP.

    • @somnathpaul2020
      @somnathpaul2020  2 ปีที่แล้ว

      Bit interesting point, custom cds entity is available since 2020 fps00 in onprem. So if you are below 2020 then seems not possible. I don't know exactly how will be your requirement but did you think a bit with cds exist? I also created video on that ..u may take a look if you are interested. Sorry i don't have any alternate solution as of now, this exist MAY BE a solution I guess.

    • @nivea8616
      @nivea8616 2 ปีที่แล้ว

      @@somnathpaul2020 Hello Somnath we created a function module which is calling API for sales orderccreation and called that fm in custom entity class instead of using BAPI, It worked:) But anyway your videos are really helpful for me .

    • @somnathpaul2020
      @somnathpaul2020  2 ปีที่แล้ว

      @@nivea8616 nice to hear that it helped you.

    • @mohdeihtram8354
      @mohdeihtram8354 ปีที่แล้ว

      Hi Nivea, I have a similar requirement wherein I need to build an api for external system for creation of sales order in sap and update a custom table. Could you please share your approach

    • @vijaysoni375
      @vijaysoni375 ปีที่แล้ว

      ​@@mohdeihtram8354 You can do it via CAPM also...
      But it will require BTP access

  • @deepikanawale4499
    @deepikanawale4499 ปีที่แล้ว

    Hi my requirement is create a sales order and get all scheduling dates from pp/ds as an interface but not need to save the sales order in rap what is the approach for that

    • @somnathpaul2020
      @somnathpaul2020  ปีที่แล้ว

      You can think in a direction with unmanaged approach and control your save.

    • @deepikanawale4499
      @deepikanawale4499 ปีที่แล้ว

      Need to create abstract entity or custom entoty

    • @somnathpaul2020
      @somnathpaul2020  ปีที่แล้ว

      @@deepikanawale4499 custom entity as for abstract is some sort of prototypal purpose and it can't be extended in other cds if i can recall correctly. So better go with custom entity.

    • @deepikanawale4499
      @deepikanawale4499 ปีที่แล้ว

      Okay and I don't want to save the sales order only get the scheduling dates from pp/ds as the integration so for that what need to do means create so using bapi but rollback and commit not used in RAP for that what to do...

    • @somnathpaul2020
      @somnathpaul2020  ปีที่แล้ว +1

      @@deepikanawale4499 not getting your question, i understood you will create some entry and will show some schedule line records. So commit rollback has to be there in your save logic, right custom entity doesn't need any backend database mapping its just a helper container so it wouldn't save anything back in db.

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

    can u pls create a video on how to consume API and data from SAP Backend in BTP

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

      I have done already i think .is rhis a specific ask for RAP?

    • @ERROR-su5ft
      @ERROR-su5ft 6 หลายเดือนก่อน

      Like if I want to send data from ECC or S4 to BTP how can I achieve that?

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

      @@ERROR-su5ft ok, you need to perform certain steps for that
      1. Setting up cloud connector
      th-cam.com/video/QPIZFzzGY1k/w-d-xo.html
      2. Create a destination in BTP
      3. Now configure your cloud connector with your destination and perform connection test
      4. Access this destination either from rap or cap service or may be from ui5/fiori
      Find below to get some understanding with CAPM
      th-cam.com/video/jTzkogE_Wm0/w-d-xo.html
      Hope this helps. Thanks for watching.

    • @ERROR-su5ft
      @ERROR-su5ft 6 หลายเดือนก่อน

      @@somnathpaul2020 ok I was seeing this once , so basically to connect SAP Backend with BTP we need a cloud connector right

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

      @@somnathpaul2020 can i schedule a job with that OData service from ECC or S4?

  • @samuelshen8646
    @samuelshen8646 ปีที่แล้ว

    It is complaining about ZI_SO_HDR and ZI_SO_ITEM. Do you know why?
    @EndUserText.label: 'service definition'
    define service ZSD_SO_HDR {
    expose ZI_SO_HDR as header;
    expose zi_so_item as item;
    }

    • @samuelshen8646
      @samuelshen8646 ปีที่แล้ว

      i think it is missing zi_so_item, ZI_SO_HDR should be zi_so_header?

    • @somnathpaul2020
      @somnathpaul2020  ปีที่แล้ว

      Yes... I will update the repository. Thank you.