Reaching external IP from SAP WAS
dear all
Using a web dynpro application, I am trying to integrate to a external payment agency. From my Java code, I try to connect to the external payement agencies server. The connection does not go through well. My SAP WAS JAVA is based on HP UNIX platform. Please let me know if some settings need to be done on the server machine such that external IP becomes reacheable from my Java code.
thank you !
seventyro
SAP EP
Hi,
Did you try to telnet the external payment agency server from your Portal server and verified if that is reachable.
If that is reachable, check the connection properties (Host name or IP Address of the External Payment Agency Server maintained in your application) once again.
Also, usually in such cases, you need to get your Portal server added to the External Payment Agency's firewall and hence please ensure if that has been added.
To be honest, there could be several reasons for not being able to launch the payment gateway page and hence you'll have to work with your network team and the payment gateway vendor team to look out for the communication issues.
Also, try to read the HTTP Traffic with the help of your network team for troubleshooting.
The above points are just few potential reasons which you can look up to and the actual reason could be something else as well
BR,
Anurag
Similar Messages
-
Connecting and Updating External Database from SAP
Connecting and Updating External Database from SAP
How can i connect SAP Database to External database?
How can i update external databas from SAP withouting using BI/BW, Workflow or Net Weaver?
If anyone know please let me inform.
Thanks in Advance.
Jahnavee TrivediSteps
1. Create an entry in tnsnames.ora for the remote oracle DB
2. Test sqlplus user/pass@remote
3. create a synonym which points to a table at remote DB check docs.oracle.com
4. user ABAP code execute SQL to insert data into local synonym which inturn updates the remote DB.
I have done this in the past, it works great.
It requries, DBA skills + ABAP programming
-AJ -
Call to Web Sevice in external system from SAP CRM
Hi,
I have to make a call to External system from SAP CRM 5.0 system. The external system will provide a sample webservice which SAP will try to initiate
Can you please tell me:
1. What settings/object needs to be maintained in SAP in order to make this call.
2. how I can make a call to this Web-Service from a BADI and pass the values to web service and also capture the returning value.
Please explain in detail
Thanks,
MikeMike,
You should honestly search the SDN site for consuming web services with ABAP. There are some good examples.
However the general procedure is easy:
1. Generate an ABAP proxy using the WSDL provided to you by the external program
2. Configure an HTTP destination for the server of the web services (needed for HTTPS calls)
3. Configure the logical port for the web service using lpconfig
4. Write the abap code to call the webservice via the proxy. Works very similar to FM call in my opinion.
To expose a webservice(bapi being called from outside) you need to do a little more work
1. Create a web services for the RFC enabled function module via SE80
2. Use wsadmin and wsconfig to make the service available
3. Publish the service out to the UDDI as needed.
Once again this code is pretty well documented in the standard help and SDN. Do a simple search on ABAP proxies and you will find what you need.
Take care,
Stephen -
Sending external email from SAP with following requirements...
Hi All,
I need to send external emails from SAP by meeting following requirements.
1) With subject line more than 100 characters.
2) No attachments, only body which has specific format (blueprint/layout) and would be amended often, hence code shouldn't be touched during amendments.
3) Should be able to know the success/failure of mail sending at program level.Hi,
The code below demonstrates how to send an email to an external email address
*& Report ZSENDEMAIL *
*& Example of sending external email via SAPCONNECT *
REPORT zsendemail .
PARAMETERS: psubject(40) type c default 'Hello',
p_email(40) type c default '[email protected]' .
data: it_packing_list like sopcklsti1 occurs 0 with header line,
it_contents like solisti1 occurs 0 with header line,
it_receivers like somlreci1 occurs 0 with header line,
it_attachment like solisti1 occurs 0 with header line,
gd_cnt type i,
gd_sent_all(1) type c,
gd_doc_data like sodocchgi1,
gd_error type sy-subrc.
data: it_message type standard table of SOLISTI1 initial size 0
with header line.
*START-OF-SELECTION.
START-OF-SELECTION.
Perform populate_message_table.
*Send email message, although is not sent from SAP until mail send
*program has been executed(rsconn01)
PERFORM send_email_message.
*Instructs mail send program for SAPCONNECT to send email(rsconn01)
perform initiate_mail_execute_program.
*& Form POPULATE_MESSAGE_TABLE
Adds text to email text table
form populate_message_table.
Append 'Email line 1' to it_message.
Append 'Email line 2' to it_message.
Append 'Email line 3' to it_message.
Append 'Email line 4' to it_message.
endform. " POPULATE_MESSAGE_TABLE
*& Form SEND_EMAIL_MESSAGE
Send email message
form send_email_message.
Fill the document data.
gd_doc_data-doc_size = 1.
Populate the subject/generic message attributes
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'SAPRPT'.
gd_doc_data-obj_descr = psubject.
gd_doc_data-sensitivty = 'F'.
Describe the body of the message
clear it_packing_list.
refresh it_packing_list.
it_packing_list-transf_bin = space.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
describe table it_message lines it_packing_list-body_num.
it_packing_list-doc_type = 'RAW'.
append it_packing_list.
Add the recipients email address
clear it_receivers.
refresh it_receivers.
it_receivers-receiver = p_email.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
it_receivers-notif_del = 'X'.
it_receivers-notif_ndel = 'X'.
append it_receivers.
Call the FM to post the message to SAPMAIL
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = gd_doc_data
put_in_outbox = 'X'
importing
sent_to_all = gd_sent_all
tables
packing_list = it_packing_list
contents_txt = it_message
receivers = it_receivers
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
Store function module return code
gd_error = sy-subrc.
Get it_receivers return code
loop at it_receivers.
endloop.
endform. " SEND_EMAIL_MESSAGE
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
form initiate_mail_execute_program.
wait up to 2 seconds.
if gd_error eq 0.
submit rsconn01 with mode = 'INT'
with output = 'X'
and return.
endif.
endform. " INITIATE_MAIL_EXECUTE_PROGRAM
Hope this helps.
Reward if helpful.
Regards,
Sipra -
BASIS Configuration needed to send an external mail from SAP Program
Can you please help me about the BASIS configuration needed to send an external mail from SAP Program?
Regards,
SubhasishHi Subhasish,
Please go thru the below link.
Re: SCOT Configuration--for external mail
Regards,
Lakshman. -
Unable supplying parameter like 'PASSWORD' in external program from SAP
HI GURUS,
I am unable supplying parameter like 'PASSWORD' in external program from SAP.
Is it possible to achieve this? IF it is then how could we suplly Password information to External Program for loging in.
Thanks
SANKU.Which way you are supplying password ?
Programtically ? or ?
Kanagaraja L
Edited by: Kanagaraja Lokanathan on Jul 17, 2009 3:26 PM -
How to execute external command from SAP
Hi gurus,
i need to execute an external command from a Sap (rel ECC.5.0) to a server UNIX (no SAP); precisely i have to write a file into a directory in unix server.
I see transaction SM49 and Sm69 but i don't know how can i use these features.
Please coul'd you help me or give me a documentation.
Thank's in advance
Maurizio Ortolani
email. [email protected]Hi Maurizio,
i do it in this way:
CONSTANTS: CMD_LS(50) VALUE 'ls -al /transfer/sap'.
DATA: BEGIN OF ITAB_LS OCCURS 0,
LINE(200),
END OF ITAB_LS.
CALL 'SYSTEM'
ID 'COMMAND' FIELD CMD_LS
ID 'TAB' FIELD ITAB_LS-SYS.
How do you write the file, via an UNIX-COMMAND than try the above call
with your command.
Another way is to write the file via OPEN DATASET ..., TRANSFER ... TO ..., CLOSE DATASET.
If you mean this i can give you an example.
Hope it helps.
Regards, Dieter -
Error in Accessign mySAP ERP from SAP WAS J2ee Engine
Hi all,
I have installed some applications on SAP WAS Java System SP17. When i am trying to access the mySAP ERP system from that Application, it is giving the following error
>(103) RFC_ERROR_LOGON_FAILURE: System received an expired SSO ticket
My ERP and WAS are on different Windows Domains. I have SSO and done the trust configurations and imported the Certificate on to mySAP ERP. I also increased the Lifetime of the SAP Logon ticket, but that also didnt work. In one of the documents i found that both the systems need to be in the same OS time.
1. How can i bring my ERP server and WAS on to same OS time?
(net time/set does not work since these machines are in different domains)
Or is there some other solution to this problem,Please help me
regards
deepuHi Deepu,
as long as the timezones are maintained correctly, the time DISPLAYED may be different, again it is GMT, which is required to be in sync. Looking at IST, do you mean Indian, Israelien or Irelend stadnard time ? (see <a href="http://www.timegenie.com/timezones.php">a list of timezones</a> for details). In any case, 4 hours seams odd to me, should be either
India: 4:30 hour
Ireland: 1 hour
Israel: 1 hour
can you please make sure, your systems are synced to GMT somehow, for instance using timeservices ?
From your name, I would guess you might sit in India, in which case at least one of your system is misconfigured (timewise) if they are 4 hours away.
Countries today 4 hours away from CET would either be
<a href="http://www.worldtimezone.com/utc/utc+0500.html">russia, pakistan and some more</a> or <a href="http://www.worldtimezone.com/utc/utc-0300.html">some countries in south america</a> (this changes over time
regards,
Patrick -
Proxy authentication required when connecting to internet from SAP WAS
Hi,
I have deployed a J2EE application in SAP WAS 7.0 and this aplication wants to access an application from internet.
I have set the proxy server details in Visual Admin -> Web Service Container -> setting.
The server is installed locally in my PC.
I am able to run the same java application in my command prompt wit the same proxy details and it is able to access the 3rd party application , but when I am trying to access through web application through SAP WAS I am getting 407 Proxy authentication required.
Thanks in advance.
Regards,
HariHi,
it seems like your Proxy requires authentication (e.g. Basic authentication)
I am able to run the same java application in my command prompt wit the same proxy details and it is able to access the 3rd party application
Are you providing any credentials here in order to access the internet via Proxy?
What kind of Proxy are you using
Cheers -
Hi ABAPers,
My program is trying to send external mail using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
I suppose there is some amount of customizing also involved in txn SCOT,in case any one has an idea about the same, please share the info across.
Thanks in advance.Hi Tarun,
Check the following link:-
/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
these link will help u to config SCOT.
And one more thing u have to do..
Go to SE11 n open Table sxnodes in change mode.
And change F_ESMTP field to false i.e. BLANK for the Field NODE = SMTP.\
OR problem might me 1 of these as under:-
1. In the exporting parameters of..FM use
commit_work = 'X'.
2. Check for Sy-subrc of FM..
if sy-subrc = 0.
SUBMIT rsconn01
WITH mode EQ 'INT'
AND RETURN.
this report program is used to automatically send the e-mails that are pending in the job queue in SCOT or SOST.
Hope this will work For U.
Regards
Sachin Dhingra -
Need to call up a webservice created in external system from SAP
Hi folks,
A web service is created in the external system and I need to access this web service from a BADI. Can you tell me how can I call this web service (the external system is giving me a URL) and how to capture the return value from the web service. Please let me know in detail.
Thanks,
PremHi,
I have the same requirement and have created a new Proxy-Object, uploaded the WSDL file (locally) and Created a Logical port.
In the Logical Port under the tab Call Parameter I've defined the URL of the web-service.
Since I was not able to upload the WSDL by selecting the option URL/HTTP Destination due to error message "HTTP error (return code 400, message "ICM_HTTP_CONNECTION_FAILED")
Message no. SPRX090" so uploaded the file locally.
However, when testing the service, I didn't received a sucess message but:
<CX_AI_SYSTEM_FAULT>
<CODECONTEXT>Local</CODECONTEXT>
<CODE> ERROR_WEBSERVICE_RUNTIME_INIT </CODE>
<ERRORTEXT> Error when instantiating the Web service runtime (Error when initializing SOAP client application: ' error_text' ) </ERRORTEXT>
<LANGUAGE />
</CX_AI_SYSTEM_FAULT>
</cls:CX_AI_SYSTEM_FAULT>
What might be the Problem ?
/Manik -
Sending mail to an external mailid from SAP ABAP with formatting
Hi,
I am using so_object_send to send an email from the abap program the issue is i need to send the email text as formatted one that is some text in bold and higher fontsize compared to other how can i do the same is their any other function
Regards
Gopi krishnaHi gopi,
Check this link,
http://www.sap-img.com/fu016.htm
These are the FM for sending external email :-
SO_DOCUMENT_SEND_API1
SAPoffice: Send new document with attachments via RFC
SO_NEW_DOCUMENT_ATT_SEND_API1
(In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)
SAPoffice: Send new document with attachments via RFC
Note : If you are using FM SO_NEW_DOCUMENT_ATT_SEND_API1 then Export Parameter DOCUMENT_DATA-OBJ_DESCR contains the Subject.
SO_NEW_DOCUMENT_SEND_API1
SAPoffice: Send new document
Hope this helps u.
Kindly reward points to the useful answer.
Thanks&Regards,
Ruthra.R -
Hello,
I am not sure where to start since my understanding is quite limited in this area. I have a requirement to send SMS type messages to customer cell phones with a message generated from within ERP. I have done this inthe past by sending an email in the form "phoneNumber@somedomain" However, this case is differnt since like a true moblile-to-mobile message I will not know the domain/provider. Only the phone number will be known. Is there some web service that can be called that routes the message to the correct phone? Is this a web business that we will need to subscribe to? If so, can someonw share some options? Am I way off base?
Thanks and Regards,
David Carr
Basis AdministratorThis is possible:
[ http://help.sap.com/saphelp_nw04s/helpdata/EN/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm]
only you should not use smtp but http
[HTTP CONFIG|http://help.sap.com/saphelp_nw04s/helpdata/EN/ae/71583ca544eb51e10000000a114084/frameset.htm]
Purpose
The kernel of the SAP Web Application Server supports HTTP (Hyper Text Transfer Protocol). This enables text messages (pager/SMS) to be sent directly to external text message servers, or to the provider packed, as a URL, such as http://sms-provider.com/
sendmsg?password=<password>&to=<to>&from=<from>&text=<message>.
Also check this doc:
[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b03d0983-bda1-2b10-c09c-e93bb9956055&overridelayout=true]
let me know if you need more info! -
External Mail from SAP worflow
We are using the standard SAP PO(BUS2012) workflow, which is activated when the PO release is to be effected.
I am getting my mails in SAP inbox as desired. Now I want to send this same mail to an external email . I donot want any background job to do it .. rather i want that whenever the SAP mail is generated also at the same time the external mail is also generated. Could any body help me to configure the same?
RegardsHi Dipak,
You can also use the approach in below links:
Re: Send notification to E-Mail id
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/send%252ban%252bexternal%252bmail%252b%252bthrough%252bsap%252bbusiness%252bworkflow%252band%252brecievers%252baddress%252bin%252bcc
Hope this helps!
Regards,
Saumya -
Cannot send external emails from SAP
Hi,
I am trying to set up emails to external systems, but for some reason it is not working. I have checked the port number for the SMTP server with the administrator and it is the default one, the SMTP server name, and also in SCOT the INT portion has a * in it.
I am able to send emails to internal domain (our work email domain) but when sending it to external domains, it keeps coming back with the error message " recipient unknown".
I have some doubts but am not sure if these should / could be the problem.
1. Is there a job that need to run periodically for sending emails.
2. Should there be a * in SCOT in the INT part ? or should it be @.com or something else.
3. Is there anything else that I am missing?
Platform : ECC 6.0
Thanks,
KunalHi Adam,
Thanks for your reply. Here is what I have set up for the instructions you provided me.
1. I<b>n SCOT, menu 'Settings' --> 'Default Domain'</b> I have my work domain set up.
Assume that I work for ebay.It is set up as ebay.com. I am able to send emails to [email protected] want to be able to send emails to other domains.
Question : Should I be setting up the name of the domain that I want to send emails to ? I dont think that this is feasible. But still I might be wrong.
2. <b>Your SMTP server should have added this SAP server into its auth list.</b>
Yes. I have checked on this with my SMTP administrator. The ip of that SAP server is in the authorization list.
3.<b>A periodic job ( 2 minutes? 5 minutes? etc) should be defined for sending Emails automatically</b>
I have the following jobs running when I go to jobs in SCOT
MAILSERVERSEND INT 5min 14:46:52
SAPCONNECT INT SEND 1 INT 10min 14:55:00
Is there any other job that needs to be running for this?
4.<b>A '*' should be defined in 'SCOT' -->'INT' --> 'Internet' --> 'Address areas'</b>
Yes, There is.
Thanks,
Kunal
Maybe you are looking for
-
I would like to install logic on my new mac book but there is no dvd drive. I tried to downlaod the upgrade but that didn't work. How do I download it for the first time? Thanks!
-
Setting up Itunes in Windows 7
How do I set up itunes to accept multiple ipods on the same computer all having separate libraries?
-
Cant restore my macbook with Disk utility and my .dmg image
My macbook would not boot anymore. Stuck on gray screen with apple logo, spinning wheel and a loading bar for a while after shutting off. I was able to get to Disk Utility in the recovery mode and, after a while, was able to make an image of my files
-
WAMPSERVER 'PDOException' with message 'could not find driver'
Hi All, I'm running wampserver 64 bit version with: Apache : 2.4.4 MySQL : 5.6.12 PHP : 5.4.12 PHPMyAdmin : 4.0.4 SqlBuddy : 1.3.3 XDebug : 2.2.3 I have downloaded the Microsoft Drivers 3.0 for PHP for SQL Server. I have put the drivers in my ext fol
-
Time out connection in the classes12.zip
Hello, How can I change the time out connection to my database in Java ? I use the JDBC thin driver (classes12.zip) to connect to an 8.1.6 standard Oracle edition on an NT Server. I tested a network problem connection removing the network cable and t