cancel
Showing results for 
Search instead for 
Did you mean: 

Post documents to SAP from web requests

05-23-2019 11:35 AM
kjyothiraditya Participant
1370 views 9 comments
0 Likes
SAP Managed Tags
Subscribe

Hi Experts,

Can you please suggest how to save files /post to SAP when a third party system sends files to SAP ?

Regards,

Jyothir Aditya

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

SvenS
Participant
0 Likes

considering the bits of information you are dropping I think this documentation is what you are looking for: https://blogs.sap.com/2013/06/06/create-an-sap-web-service-consumer-calling-external-web-service-fro....
I used this guide before to fetch data from a webservice. Only for the SOAMANAGER part you might have to google around a bit to get it working for your specific webservice.
Also when following this guide in SOAMANAGER don't click the test button for some reason it returned false error messages to me (don't know if that's because of our system) when testing it in ABAP it worked like a charm.

Kind regards
Sven

kjyothiraditya
Participant
0 Likes

Hi Sven, yes this is the scenario of text data. But i also have some documents which would be sent in the request. I need some guide on how to parse those documents in the request.

keremkoseoglu
Contributor
0 Likes

Do you want to send a file (like abc.txt) to SAP, or do you mean that you want to post a SAP document, such as a sales order? I will assume the latter.

Z-Solutions:

  • If you have a gateway (Fiori), you can accept the input as a complex type and pass the data to your RFC over your OData service.
  • If you don't, you can simply write an RFC function to create an order, and publish it as a SOAP service for the 3rd party to consume. Some SOAMANAGER configuration would naturally be needed.
  • If the 3rd party insists on an unorthodox format, an alternative approach is to write a simple BSP page to accept the input, parse the file and call the BAPI to create the SAP document.

Standard solutions:

  • If there is a BAPI to create the SAP document you want, you can publish it as a SOAP service as well.
  • IDoc interface can always be used.
lahiru1223
Explorer
0 Likes

This can be done via SAP PI (process integration) or PO (process orchestration). from your web service you have to send request to SAP PI or PO. then their you have do some programming / configuration to handle that request.

kjyothiraditya
Participant
0 Likes

Hi ,

Thanks, i am an ABAPer and would like to know how to achieve this programatically. Can you please provide suggestions on how to achieve this by using like RFC/Webservices as it has to happen via a background job. We are on ECC 6 version and not yet upgraded to higher versions like Gateway/HANA.

Regards,

Jyothir Aditya

matt
Active Contributor
0 Likes

Rather than drip feed information, why did you not tell us that you want to use a webservice or RFC?

In any case, both these techniques are FAQs. Try searching.

kjyothiraditya
Participant
0 Likes

could anyone provide some guide/pointers please