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

Поділитися
Вставка
  • Опубліковано 13 січ 2025

КОМЕНТАРІ • 59

  • @sharmavivek731
    @sharmavivek731 Рік тому +1

    Excellent tutorial Somenath! Crisp and clear as always

  • @techtalks1713
    @techtalks1713 3 роки тому +1

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

  • @500ck
    @500ck 3 роки тому +1

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

  • @DharabaBheemaSankaraRao
    @DharabaBheemaSankaraRao 2 місяці тому +1

    Excellent!

  • @anirbanmajumder1470
    @anirbanmajumder1470 9 місяців тому +1

    Good job Somnath

  • @vigneshs.v4706
    @vigneshs.v4706 Рік тому +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  Рік тому

      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.

  • @emmanmon3825
    @emmanmon3825 Рік тому

    Do you have sample of using Communication Arrangement? Thanks

  • @KrishnasriKammari-lg6mr
    @KrishnasriKammari-lg6mr 8 місяців тому

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

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

    Nice is there a music free version... Is

  • @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: ua-cam.com/video/1S55UOIkUf8/v-deo.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.

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

    @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  7 місяців тому

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

  • @Vishweshwara-n8d
    @Vishweshwara-n8d 11 місяців тому

    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?

  • @ssga7081
    @ssga7081 8 місяців тому

    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  8 місяців тому

      You need to fo for released API

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

      @@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  7 місяців тому +2

      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 7 місяців тому

      @@somnathpaul2020 thanks for response. Appreciate it

  • @Raghu7338
    @Raghu7338 6 місяців тому

    Excellent tutorial

  • @dsbbcc
    @dsbbcc Рік тому

    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.

  • @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.

  • @papluab
    @papluab Рік тому

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

    • @somnathpaul2020
      @somnathpaul2020  Рік тому

      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 2 роки тому

      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

  • @yashsharma2368
    @yashsharma2368 Рік тому

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

    • @somnathpaul2020
      @somnathpaul2020  Рік тому

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

    • @yashh-r9z
      @yashh-r9z Рік тому

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

    • @somnathpaul2020
      @somnathpaul2020  Рік тому

      @@yashh-r9z ok, you need to perform certain steps for that
      1. Setting up cloud connector
      ua-cam.com/video/QPIZFzzGY1k/v-deo.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
      ua-cam.com/video/jTzkogE_Wm0/v-deo.html
      Hope this helps. Thanks for watching.

    • @yashh-r9z
      @yashh-r9z Рік тому

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

    • @yashsharma2368
      @yashsharma2368 Рік тому

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

  • @shubhasoumyosarkar7451
    @shubhasoumyosarkar7451 10 днів тому

    Can I get the code?

  • @samuelshen8646
    @samuelshen8646 2 роки тому

    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 2 роки тому

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

    • @somnathpaul2020
      @somnathpaul2020  2 роки тому

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