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: 

Socket Programming In ABAP

Former Member
0 Kudos

Hi Guys,

Is there any method of TCP socket programming in ABAP? For example is there any function module for creating a socket for a IP address and port number. After that, is it possible to send binary/text data to a connected IP/port destination. I need such a solution because I need to send raw data (xml data) to bank client system on our network which has a static IP address and listens incoming data through a fixed port number specified in its documentation.

As a result, I decided to code the program that will send data to the client in ABAP as a function module or subroutine pool, so is there any way to create a socket in ABAP and connect to specific IP/port destination? I searched for possible function modules in SE37 and possible classes in SE24 but unfortunately I could not find one.Could you please help to give some examples?

Thanks in advance,

Villy

3 REPLIES 3

former_member215781
Active Participant
0 Kudos

mvoros
Active Contributor
0 Kudos

Hi,

I doubt that there is a low level API for sockets in ABAP. There is API for HTTP but probably that won't help you. As a workaround you can use external OS commands (transactions SM69 and SM49). For example on Unix you can use netcat to transfer file. Your FM needs to dump data into folder and then call netcat to transfer file.

Cheers

Former Member
0 Kudos

use http_post or if_http_client to resolve it.