Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to call external rest web service from SAP ABAP Program or from SAP SYstem.

0 Kudos

Hello,

I would like to call external REST web service which requires userid& password and payload with json format (when i tried to call using soap UI i have to provide these details) in ABAP program or from SAP system.

Could you please help me how i can achieve this scenario .

I found various blogs but those were related to SOAP web service and not for REST web service.

I tried to generate service consumer proxy but it gave me http error 500 internal server error.

Thank you in advance.

7 REPLIES 7

venkateswaran_k
Active Contributor
0 Kudos

Did you create the RFC connection thru SM59 for that http url ?

Once this step is done, I beleive there are some example programs to use it.

Please confirm once SM59 step is done

0 Kudos

I have just resolved with standard SAP solution:

1) Infotype 11 must be created for the Current Period (not the period where employee's bank transfer was unsuccessful. Run PC00_M13_CDTB_PS to create EFT.

2. For the New WT that you will enter in IT0015, write a PCR to move it to RT

3. Just before Net Formation, another PCR to read the WT from RT and add it to WT /101

4) Upon processing PA001, reduce /562, /560, /550, /101, /562 by IT0015 amount (BETRG).

Simple and elgant solution.

0 Kudos

PA0011, reduce /562, /560, /550, /101, /562 by IT0015 amount (BETRG).

Dear Baskar

I think you pasted answer of a different question.

0 Kudos

I checked RFC destination is maintained for URL now it is giving error 404 Not found

0 Kudos

Please provide the SM59 Screenshot of yours - and full error message of 404

This will help me to narrowdown to the issue

0 Kudos

Dear Gaurav

Eror 404 means You are able to reach the specified server but the requested page is not found. The problem may be on the side of connection configuration in SM59 or on the target server.

Could You please copy the URL You've provided in SM59 and check what response will You get when You use it in Your internet browser?

Also the screenshot of the SM59 tabs

Also - try to ping / telnet the url - and see how it responses.

"telnet (your target IP) (your port)"

(You can mask the actual domain of the url - for security purpose )