VallueMapping update through HTTP from SAP system
Good day everyone,
For two weeks, I have been trying to send xml data from SAP to SAP PI through HTTP. The purpose of this interface is to update the Value Mapping entries in PI from SAP. I know, most of you might tell me to use ABAP proxies to make things more simple and easier. The reason why I did not use ABAP Proxy is because the SAP and SAP PI systems I'm using have different versions. I have SAP Netweaver 7.1 for my PI system and ECC 6.0 for my SAP. I believe it wouldn't be possible to use ABAP/JAVA proxies if the two systems are of different versions.
Here is what I have so far. I created a program to send an HTTP request using an RFC Destination. I used my own UserName and Password in the logon details in the RFC Destination. I used service adapter_plain. Here is the complete URL: http://<host>:<port>/sap/xi/adapter_plain... . I created the necessary objects in Integration Directory and the HTTP sender program. Below, you will see a sample of my payload and the error message I got. Can anyone help me how I could fix this error?
Payload:
<?xml version="1.0"?>
<ns1:ValueMappingReplication xmlns:ns1="http://sap.com/xi/XI/System"
xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance">
<Item>
<Operation>Insert</Operation>
<GroupID>z80c0f608a1d11df928700ffb81a5a80</GroupID>
<Context>http://sap.com/xi/XI</Context>
<Identifier scheme="Blue"
agency="Yellow">GREEN</Identifier>
</Item>
</ns1:ValueMappingReplication>
Error:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Call Adapter -->
<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">UNAUTHORIZED</SAP:Code>
<SAP:P1>401 </SAP:P1>
<SAP:P2>Unauthorized</SAP:P2>
<SAP:P3>(See attachment HTMLError for details)</SAP:P3>
<SAP:P4/>
<SAP:AdditionalText/>
<SAP:Stack></SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Kind Regards,
Chris C.
> Mapping entries in PI from SAP. I know, most of you might tell me to use ABAP proxies to make things more simple and easier. The reason why I did not use ABAP Proxy is because the SAP and SAP PI systems I'm using have different versions. I have SAP Netweaver 7.1 for my PI system and ECC 6.0 for my SAP. I believe it wouldn't be possible to use ABAP/JAVA proxies if the two systems are of different versions.
Of course this works.
I use APAB proxies with SAP R/3 4.7 to send value mapping data to PI 7.1
Copy the standard value mapping outbound interfaces to your own SWVC and genearate ABAP proxies for it.
Similar Messages
-
Unable to send mails to outlook from sap system through workflow
Hi ,
Iam unable to send mails to outlook from sap system through work flow .Actually we r able to send mails from sap inbox to outlook successfully.But when trying with workflow we r not able to send.Please guide me that is there any configurations required from BASIS side for work flow.Actually we configured everything like default domain .
Please find the errors belows that traced from sost t code
02/13/2012 17:50:12 0380 MIME_MESSAGE_GENERATE G Error when generating MIME flow
02/13/2012 17:50:12 0382 MIME_MESSAGE_GENERATE G Required 'From' header is initial
02/13/2012 17:50:12 0167 SO_OBJECT_MIME_GET G Error during MIME Generation
02/13/2012 17:50:12 0777 UPDATE_SOSC G Cannot process message in SAP System
Regards
RAGHAVENADARHello,
Actually i checked the mail ID for WF-BATCH using su01 .But i didnt find any mail ID for WF-BATCH then i added the email address of the user.Then we tried sending mail it was successfull.
But later i removed the email address what i entered in WF-BATCH user .Even after removing the email address also iam able to send the mails through workflow.
So iam confused whether it needs an mail address or not.But now we are able to send a mail to outlook through work flow but not able to send mails to GMAILor yahoo.For that we need to do any settings.
ABAPer is sending mails through work flow.
Regards
RAGHAVENDAR M -
How to consume a web service provided by third party system from SAP system
Hi Friends,
Could any of you provide me a clear picture on how to consume a web service from SAP system and is provided by a third party system?
Do we get an URL to create a client proxy for consuming the web service?
Thanx in advance,
RamHi Ram,
of course you cannot supply the WSDL URL. Inside the WSDL (just view it in your browser) you find (usually but not necessary) towards the end something like
<soap:address location="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php"/>
which is the actual adress of the service.
An example service can be found here:
<a href="http://www.weather.gov/xml/">National Digital Forecast Database</a>
containing the WSDL URL at
<a href="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">this address</a>.
You might also want to browse for the amazon webservices which allow you to embed queries against amazon into your application.
have fun,
anton -
Send IDOC from SAP system to IX but can't see any message in SXI_MONITOR
Hi all,
I have built up an XI system and configured an IDOC to IDOC scenario between two SAP Systems. After completed all configuration necessary:
1. Configuration on Source Side (SAP System that send IDOC) and on Target Side (SAP System that receive IDOC) is OK.
2. SLD is OK: Technical System and Business System are correct for these two SAP System.
3. Integration Repository: all designed Object is OK.
4. Integration Directory: all configuration is OK. "Test Configuration" Function is OK.
5. Runtime WorkBench: is OK. "Test Message" Function of "Integration Server" is OK.
In general, it is all OK.
But when i send an IDOC from SAP System Sour Side (Outbound IDOC from Source Side is OK), on the XI server i can't see any message in Tcode SXI_MONITOR. In this case, my XI server didn't receive any IDOC Message from this Source Side, and so that my XI server can't process and exchange any IDOC sent from Source Side.
Anyone can please help me to explain this problem: why my XI server can't receive any IDOC message from SAP System Source Side when all configuration is OK? Do anyone see the same case as this case?
Thanks a lot for all in advance,
Best regards,
Vinh voHi,
Possible checks
At R/3 side
1) Check in SMQ1 and SM58
At XI Side
1) Check in SMQ2 and IDX5
Check this
http://help.sap.com/saphelp_nw04/helpdata/en/6a/e6194119d8f323e10000000a155106/frameset.htm
Regards
Seshagiri -
QRFC/TRFC for sending idocs from SAP system to XI
Hi experts,
The standard program RFFOEDI1 generates payment orders - first PEXR2002 and then EUPEXR idocs. These idocs are to be sent to the bank from SAP through XI. Bank partner profile is maintained. But these idocs because of TRFC are not getting sent in the order in which they are generated by the SAP system. So I changed the bank partner profile settings from TRFC to QRFC and gave the rule name as first 16 of mes type. But the idocs are struck in the SAP system. Is there any standard program to be run to send the idocs out from SAP system or is it automatic.
Please suggest a standard method which is to be followed to send the idocs in the same order in which they are getting generated for the scenairo above.
Regards,
AshaHi Asha,
As you said Idocs are stucking,
To send Idocs to XI, you must have maintain some settings in XI to receive Idocs. Once they are done properly .in R3 side standard way to send idocs to XI is Maintaining<b> <i>Change Pointers</i></b> and shedule the programe to trigger that most of Standard idocs will have standard programs to catch change pointers and send them to external system.
and to maintain the same order of idocs there is a setting called Quality Of Service in XI side ,that option should be set to Exactly Once In Order .
Regards,
Ramesh. -
Restrictions from SAP Systems to the emails adding
Gentlemen,
Regarding SMTP Email Configuration, I already applied SAP Note u201C455140u201D and every thing its working fine, I can send email through SAP Systems no problem,
My question is,
There are no restrictions from SAP Systems to the emails as I can put any Emil in E-mail address in user ID properties and I can send with it without any problem and this is not logical,
Please advice.
Regards,
Ahmed SaberHi NALLAM GUNA RAN,
First, thanks for fast reply
Please can you explain in more details what you mean of XI/PI box,
And whatu2019s the solution of this situation as itu2019s not accepted from customers.
Regards,
Ahmed Saber -
User couldn't recieve the mail from SAP SYSTEM
Hi all experts,
User couldn't recieve the mail from SAP SYSTEM since the Unicode changes were pushed ,
how to fix the issue ?
Thanks & Best regards,
MichaelHi Michael,
Is the SAPConnect configured as per note [455140|https://service.sap.com/sap/support/notes/455140] ?
Since you are talking about receiving emails, do you see the emails in SOIN transaction (or report RSBCSIN)? Have you tried telnet directly to the SAPConnect plugin as described on note [607108|https://service.sap.com/sap/support/notes/607108]
What is the value of parameter is/SMTP/virt_host_<*>?
Regards,
Tiago -
How to call an EXE file on a remote system from SAP system?
Hi Friends,
I want to execute an EXE file existing on the remote system from SAP system. Could some one give me an idea of how to execute that?
Thanx in advance,
RamHi Ram,
Try this
SXPG_COMMAND_EXECUTE
Reward if this helps,
Satish -
Download from SAP system to Excel sheet
Hi,
I have a list of materials, would like to download it from SAP system to an Excel sheet.
Kindly let me to know the procdure to do it.
Thanks
NDSHi,
Please execute T code MM60 or the required T code to get the list of materials and Go to sap menu Bar ->setting->list->save->local to spreedsheet and save it your desk top to create an Excel file.
Regards
Ram -
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 -
Transfer Data from SAP system to non-SAP system
Hi all,
I want to send material no, site and price data from SAP system to non-SAP system. Would you tell me how can I do it
Thanks
Arif
Moderator message: please do more research before asking, show what you have done yourself when asking.
Edited by: Thomas Zloch on Oct 16, 2011 10:38 PMHi,
you can create the same...
but normal practice what we do is create swc for each system so that it is easy to maintain and easy to extend in the future..
or else follow some conventions if you are just starting the things..
HTH
Rajesh -
Import RFC from SAP System to XI
Hi
It is taking more time ( 5 to 10 mins) to list the RFC from SAPsystem ,When i try to Import RFC from SAP System to XI.
Please let me know your ideas on the same
Regards
Madhan DHi,
Could you pls check the following sap notes..
SAP Notes 718320,767091 and 212011 for a better idea on difference in performance while extracting data from R/3 backend.
Regards,
Madhu -
How to check the Idocs sent from SAP system
How to check the outbound Idocs sent from SAP system to target systems.
How to know the message types and target systems.Hi,
In Addition with the above mentioned transaction code(WE02), u can check out idocs in these table - EDIDC, EDID4, EDIDS. Depending on different status you can differentiate them as Inbound or Outbound Idocs...
Cheers...
Santosh.
<i><b>Mark All Usefull Answers...</b></i> -
Aattach an existing Excel file to an email from SAP system.
Hi,
How can I attach an existing Excel file from SAP system (Example in 'DIR_TEMP' folder) & send a mail. Guess this requires a class with a method which picks up the file using the file path. Does CL_DOCUMENT_BCS provides this???? boz CL_DOCUMENT_BCS->ADD_DOCUMENT_AS_ATTACHMENT is for Add Existing Document as an Attachment,if so please let me know how with few lines of code??
Thankx in advance.* Local Data declarations
DATA: ls_rec TYPE somlreci1.
DATA: lp_send_request TYPE REF TO cl_bcs,
lp_document TYPE REF TO cl_document_bcs,
lp_sender TYPE REF TO if_sender_bcs,
lp_recipient TYPE REF TO if_recipient_bcs,
lp_bcs_exception TYPE REF TO cx_bcs.
DATA: lt_text TYPE soli_tab,
ls_text LIKE LINE OF lt_text,
lv_flag.
DATA: lt_tline TYPE TABLE OF tline.
DATA lv_receiver TYPE ad_smtpadr.
* DATA lt_attach TYPE soli_tab.
DATA ls_tline TYPE tline.
TRY.
* create persistent send request
lp_send_request = cl_bcs=>create_persistent( ).
* Get the text
IF iv_stxt IS NOT INITIAL.
CALL METHOD zfi_flexgl_common=>read_text
EXPORTING
iv_stxt = iv_stxt
IMPORTING
et_tline = lt_tline
ev_failed = ev_failed.
LOOP AT lt_tline INTO ls_tline.
APPEND ls_tline-tdline TO lt_text.
ENDLOOP.
ENDIF.
* create and set document
* create document from internal table with text
lp_document = cl_document_bcs=>create_document(
i_type = iv_format_type "'XLS' "HTM'
i_text = lt_text
i_subject = iv_msg_subj ).
IF it_attach IS NOT INITIAL.
* Add attachment
* DATA: l_size TYPE sood-objlen, " Size of Attachment
* l_lines TYPE i. " Lines count
* l_lines = LINES( it_attach ).
* l_size = l_lines * 255.
CALL METHOD lp_document->add_attachment
EXPORTING
i_attachment_type = 'RAW'
i_attachment_subject = 'My attachment'
* i_attachment_size = l_size
i_att_content_text = it_attach.
ENDIF.
* add document to send request
CALL METHOD lp_send_request->set_document( lp_document ).
* Sender addess
*l_sender = cl_sapuser_bcs=>create( sy-uname ).
*call method l_send_request->set_sender
* exporting
* i_sender = l_sender.
* LOOP AT it_rec INTO ls_rec.
lv_receiver = iv_rec.
TRY.
CALL METHOD cl_cam_address_bcs=>create_internet_address
EXPORTING
i_address_string = lv_receiver
RECEIVING
result = lp_recipient.
CATCH cx_address_bcs .
ENDTRY.
CALL METHOD lp_send_request->add_recipient
EXPORTING
i_recipient = lp_recipient
i_blind_copy = abap_true
i_express = abap_true.
* ENDLOOP.
IF sy-subrc <> 0.
ev_failed = abap_true.
EXIT.
ENDIF.
* ---------- send document ---------------------------------------
CALL METHOD lp_send_request->send(
RECEIVING
result = lv_flag ).
CATCH cx_send_req_bcs.
ev_failed = abap_true.
CATCH cx_document_bcs.
ev_failed = abap_true.
ENDTRY.
IF iv_commit = abap_true.
COMMIT WORK.
ENDIF. -
HOW COULD CONNECT FROM SAP SYSTEM TO THIRD PARTY JAVA APPLICATION
HI expects,
HOW COULD CONNECT FROM SAP SYSTEM TO THIRD PARTY JAVA or . DET APPLICATION.please provide me some scenarios and documents.please help me.Hi,
In the sender side i.e. in SAP system you can use IDoc/RFC/Proxy to push the data to XI.
IDoc supports only Async communication and in Sync case performace is good using Proxy.
In the receiver side you can use Java Proxy to connect to the Java application or you can even bulid a webservice over the Java/.Net application and use SOAP adapter to post data to it.
Thanks
SaNv...
Maybe you are looking for
-
How to find a word in select text?
if offer is in select text, i want display some message. How can i find select text contains offer using JS?. selObj.options[selIndex].text == "%offer%"
-
How about some more Samsung products in the auctions ? I really don't want to bid on those crappy ipads. How about a better mix of product lines or at least some of your "new" digital coupons geared towards Samsung products????
-
Clariion CX4 and Mac OS 10.6.8 Server
Hi Everyone: Recently, I had some issues with the storage attached to a Mac Host. I have at least 20 LUN Attached to a Mac Pro, Three of them are bigger than 3 TB (14 TB, 12 TB and 12 TB) the rest are arround 50 GB and 250 GB, even two are 1 TB and 2
-
Why does latest version of Flash Player download but not work?
I have a new Vostro PC, win7 software preinstalled on 64 bit machine, running IE10. Have had many problems the latest of which is Adobe Flash Player appears to have downloaded but does not work. When I try to view certain internet sources, I get the
-
INDD CS5.5- Live/Static Caption for "TIME" meta tag (eg 3:30pm)
Love the caption feature, but I can't for the life of me figure out how to add a TIME caption to a photo. (eg. 3:30pm). InDesign has a DATE and every other imaginatble caption option, but no TIME. Any advice or workarounds would be greatly appric