Skip to Content

Simple example for gateway and odata communication

Hi Developers,

I am new to this sapui5 but i know javascript, jQuery, html. I need some help regarding my development.

In my development, i have a scenario that user will enter employee number in text-field and after pressing the button an adobe form will be generated with his personal information.

I have the ABAP code but i don't know where to implement it.

I have also a basic knowledge of SAP Gateway and i think this all abap coding will go there.

Someone please tell me all the steps in simple way, if it is possible through SAPUI5. No need to explain everything. Just the steps please.

Thanks in Advance

Dhananjay

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 05, 2014 at 05:50 PM

    Hi Dhananjay,

    Below blog provides an overview on how to display data in PDF format. You can implement the steps similar to this and hope you should be able to achieve your requirement.

    Display Smartform (PDF) in SAPUI5

    Best Regards,

    Gaurav.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Gaurav,

      Thanks alot. Basically i was following the same document and really it helped alot.

      Everything went well but i am getting a minor error.

      I am unable to get the reason.

      This is the error i am getting.

      Thanks in advance.

      Dhananjay

      pdf_error.JPG (70.1 kB)
  • Nov 05, 2014 at 04:56 AM

    Hi, any help will be appreciated..!!! 😉😍

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 05, 2014 at 06:07 AM

    Hi Dhanajay,

    Scenario: As per my understanding, based on Employee number you need to populate all your employee details in PDF form from OData service using Gateway.

    Recommended: You need to implement GetStream method in your Gateway Service Builder(SEGW), GetStream will help you to show the output formats as images, pdf's etc..

    Helpful Links:

    How To Upload and Download Files Using SAP NW Gateway SP06

    Regards,

    Vijay V

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 06, 2014 at 08:46 AM

    Thanks everyone..!!!

    I have solved my issues.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Dhananjay,

            I am also facing the same issue. I am also getting 404 error.  After few seconds later if I refresh the page then pdf is displaying.  Could you please provide me how did you solve your issue.  Thank you so much.

      With Regards,

      Sudheer.