File Sender XML
I have a scenario like File to ABAP Proxy. Input file is huge like 60 MB and it's a XML file. Currently, it's consuming large resources in both XI & R/3 system.
I would like to use the option of Recordsets per Message using the File Content Conversion. As the Input file being the XML, how the parameters under the File Content Conversion can be handled? Can anyone throw some input on this please?
Hi Kumar,
if you only need a few entries of this huge XML-file then you should try Javamapping using the SAX-parser. Its simple to use and i think this could solve your problem with the huge XML file.
To handle the parameters you can also view this blog
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i as an example.
And here are the whole parameters you can use in the sender adapter:
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Good luck,
Regards,
Stefan
Similar Messages
-
Dear Experts,
I have SAP PI 7.0 installed on HP-UX. I installed Guild FTP on my Windows Vista machine.Configured File to File scenario. Sender File adapter(FTP Transport Protocol)is able to process the 'input.xml' file placed in FTP INBOX folder.
I want to process all/multiple XML files. For this I have changed File Access Parameters in Sender Communication channel as:
Source Directory - /INBOX
File Name - *.xml
Immediately Sender Communication status went into red with error log messages :
Error occurred while connecting to the FTP server "172.XX.XX.XX:21": java.lang.NullPointerException
Please let me know what is the issue. Thanks in Advance.Hi
It should work with *.xml
Check with the connectivity as well.
If this is still unable to process files then check with the FTP server compatibility.
J2EE File adapter is based on RFC 959 and if GUILD FTP is non compatible to RFC format then exclusion mask may not work.
Thanks
Gaurav -
How to send XML file into XI using sender HTTP adapter
I am using HTTP sender adapter to post the XML file into XI. I tried to form the URL by using the following String query , but I am unable to execute file.
String urlString = "http://<servername:portno>/sap/xi/adapter_plain?namespace=<namespace>&interface=<interface name>&service=<service name>&party=&agency=&scheme=&QOS=BE&sap-user=xiappluser&sap-password=satyam&sap-client=100&sap-language=EN";
How can I execute xml file by using HTTP sender adapter.
Any one with better suggestions, about this idea?
Thanks in advance for all.
Ram RajHi
Just use the following parameter to send xml file using HTTP adapter.
"http://xiserver:8000/sap/xi/adapter_plain?namespace="senderNamespace"&interface=senderinterface&service=sender service";
"&party=sender party"&agency=&scheme=&QOS=BE&sap-user=userid &sap-password=password&sap-client=100&sap-language=D";
with the help of this you are able to point out which interface you would like to use.
And in payload pass the xml.
and thats it
carry on
Cheers
Regards
Piyush -
Send xml flat file to BI 7.0
Hi gurus,
I dont managed to load a XML flat file to BI 7.0.
I get some information from How to papers
Like
<b>How to Enable SAP BW Web Functionality after a New BW Installation
How to send XML DATA to BW for BW 3.0 and BW 3.5
How To Integrate XI and BI in SAPNetWeaver 2004s</b>
for example, with WSADMIN transaction , I cant see the web service home page for my datasource :
Web Service /BIC/CQSENDXML00002000
with access address
default_host/sap/bc/srt/rfc/BIC/CQSENDXML00002000
I got a message in IE : The page cannot be displayed
Your help is appreciated
ChibanyHi Ganesh,
Flat file data load into BI 7.0
Schematically here are the steps you need to follow to load a flat file or csv in BI 7.0:
1. Create the infoobjects you might need in BI
2. Create your target infoprovider
3. Create a source system
4. Create a datasource
5. Create and configure an Infopackage that will bring your records to the PSA
6. Create a transformation from the datasource to the Infoprovider
7. Create a Data Transfer Process (DTP) from the datasource to the Infoprovider
8. Schedule the infopackage
9. Once succesful, run the DTP
10.your Infoprovider should be full
check the other thread's
/message/2935774#2935774 [original link is broken]
check this thread.... but there are lot more discussing even in more detail.
Steps for extracting BC from R/3
<b>To Create Transformations:</b>
http://help.sap.com/saphelp_nw04s/helpdata/en/d5/da13426e48db2ce10000000a1550b0/content.htm
<b>To Create DTP</b>
http://help.sap.com/saphelp_nw04s/helpdata/en/42/fa50e40f501a77e10000000a422035/content.htm
Hope this helps.
Regards,
Ravikanth -
How to send XML file to https server using POST
Hi, I am having an requirement, that I have to connect to https server and I have to pass an input XML file as a response server will give me output XML file.
The certificate validation part is over, I am using FileInputStream to read the XML file and attaching this to connection.getOutputStream(); but server is throwing me DTD does n't match.
Can any body tell me how to send XML file, I have to use any DOM parser to send the XML file, suggest me and give me sample code.
Thanks,Can anybody give me the solution
-
how to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 device using ftp through Ethernet
Hello
For using FTP function in LabVIEW, I recommend you to check this document: FTP Basics
Also, take a look at FTP Browser.vi, which is available at the Example Finder.
To edit a XML file, try to use VIs in XML palette. Maybe Write to XML.vi helps you.
Post your current VI if possible.
Regards
Mondoni -
How to send XML files through Business Connector to client URL
Dear ALL
I am new to SAP BC. We have setup BC 4.8 and would like to send out a XML file from BC to Client URL. Could someone please guide me.
Please suggest solutions.
Thanks
AhmedHello Mickael
Thanks for your reply. No, we do not have PI. This BC will be used for point to point communication with client.
Scenario:
R/3 server to send XML files to BC. BC will load these files ( using pub.getfile service), this file is to be parsed using pub.loaddocument service and then sent to client in XML format wrapped with digital signature. As i am new to BC i am unable to parse this file and wrap it with the digital signaature to send it.
Kindly advise on how best can we perform this action.
Thanks
Ahmed -
Sending XML Files with Certificate
Hello everybody.
I need develop an abap program for sending XML files with a certificate.
How I can create this certificate?
Somebody have an idea?
Thank you everybody.
NelsonMikael,
This sounds like one of the many quirks (perhaps bugs) related to how FrameMaker handles non-FM files in books. The current book model doesn't play well with XML files as chapters and this seems like yet another problem. Apparently, if an xref does not target another .fm file in the book, Frame assumes that the target file is not in the book and therefore will not be in the book PDF.
There have been discussions here about this in the past. The solution that I use is to run an API client before publishing that converts all XML files to .fm files, and redirect all xrefs appropriately. Then, book features work as expected and PDFs come out as normal. This is not feasible, however, without the automation from the API client.
There may be some who would say that the best approach is to use XML and books the way that the designers did account for... that is, the whole book becomes an XML document with entity references to the separate chapters. In my work, though, this model was not appropriate... rather, I needed a binary FM book to act like a book, except with XML files as chapters. So, I think I understand your situation.
Is API programming or FrameScript an option for you? I think it may be the only way to get what you are looking for.
Russ -
Hi all,
I've got an application wich currently sends xml messages through sockets between server and client. Now, I'd like to be able of sending binary files (jpegs and other images...) as some content of these files. Is it possible with CDATA? Do you know any URL with an example or something?
thanks a lot!This is a little example that shows the solution I adopted.
Two classes, a server and a client, execute the server in a given port and the client with "localhost" as ip and the same port as the server.
Ex: java Server 5555
java Client localhost 5555
the code:
import java.net.*;
import java.io.*;
public class Server {
public static void main(String[] args) {
ServerSocket serverSocket = null;
if(args.length!=1){
System.out.println("ERROR: java Server <port>");
} else {
// Create listening socket
try {
serverSocket = new ServerSocket((new Integer(args[0])).intValue());
} catch (IOException e) {
System.out.println("ERROR: not possible to listen on the specified port");
System.exit(1);
// Create wait for connection
Socket clientSocket = null;
try {
clientSocket = serverSocket.accept();
} catch (IOException e) {
System.err.println("ERROR: Accept failed.");
System.exit(1);
try{
// Get the output channel
PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true);
// Send a xml message
out.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?><FOO><VAR message=\"ugly harcoded XMLmessage\"/></FOO>\0");
out.flush();
out.close();
clientSocket.close();
serverSocket.close();
} catch(IOException IOE){
System.out.println("ERROR: on send");
import java.io.*;
import org.w3c.dom.Document;
import java.net.*;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import org.xml.sax.InputSource;
public class Client {
public static void handleIncomingMessage(Document doc){
System.out.println("DO WHAT YOU WANT WITH THE XML!");
public static void main(String[] args){
BufferedReader in = null;
Socket socket = null;
if(args.length!=2){
System.out.println("ERROR: java Client <ip> <port>");
} else {
String ip = args[0];
int port = (new Integer(args[1])).intValue();
// Open a socket to the server
try {
socket = new Socket(ip,port);
} catch (UnknownHostException e) {
System.out.println("ERROR: Unknow host!");
System.exit(1);
} catch (IOException e) {
System.out.println("ERROR: I/O error");
System.exit(1);
try {
// Get the input channel
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
} catch (IOException e) {
System.err.println("ERROR: I/O error");
System.exit(1);
// Create a DocumentBuilder to convert the socket's incoming String
// to a XML parsed Document
Document XMLmessage =null;
DocumentBuilder builder = null;
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
try{
builder = factory.newDocumentBuilder();
} catch (ParserConfigurationException PCE) {
System.out.println(PCE.toString());
try{
String messageRead = "";
char caracter;
StringBuffer sb = null;
// Read from the socket until \0
sb = new StringBuffer();
caracter =(char)in.read();
while(caracter != '\0'){
sb.append(caracter);
caracter = (char)in.read();
messageRead = sb.toString();
System.out.println("Recieved: "+messageRead);
// Parse the read message
try{
XMLmessage = builder.parse(new InputSource((Reader)new StringReader(messageRead)));
// Work with it
handleIncomingMessage(XMLmessage);
} catch(IOException IOE){
System.out.println(IOE.toString());
} catch(SAXException SE) {
System.out.println(SE.toString());
} catch(IOException IOE){
System.out.println("ERROR: I/O error");
}hope it helps!
any comment about the code will be welcome -
Artifacts showing up in my file-- send to--- color XML workflow
I lurked these forums, couldn't find anything covering this issue.
I am kicking out my picture lock from FCP to Color using the file -> send to-> Color utility.
When Color opens up, with my XML data in the timeline the image in my viewport ends about 100 pixels from my frame. the remaining 100 pixels are artifacts generated by taking the final pixel in every row and repeating them to edge of my 2048x1024 frame, looking like a stretch filter was applied on it in After Effects.
These are not in my 2k prores HQ clips in FCP.
My project settings look okay.
Where should i start trouble shooting this?
The clips are Apple Prores HQ 24fps
thanks in advance, folks.What video card are you using?
On the project I just wrapped I noticed the same thing when pulling up still stores. The bottom 100 pixels or so seemed to have come from a previous image. Toggling the still store on/off fixed the issue. But every time I pulled up a new image on the SS I'd have to toggle it to fix.
This happened on both a ProRes and a DVCPro HD workflow.
- pi -
Send xml file from sap to third party url through https
Hi,
I have a requirement to send the xml file from ecc to a 3rd party url through HTTPS. How can we achieve this using ABAP.
Client doesn't have XI enviroment. The client has provided the 3rd party url where the file needs to be uploaded.
Please help ! <removed by moderator>
Thanks in advance.
Regards,
Chitra.K
Edited by: Thomas Zloch on Sep 12, 2011 12:58 PMHi Chitra,
I had similar requirement and here is what I did: -
REPORT Z_HTTP_POST_TEST_AMEY.
DATA: L_URL TYPE STRING ,
L_PARAMS_STRING TYPE STRING ,
L_HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT ,
L_RESULT TYPE STRING ,
L_STATUS_TEXT TYPE STRING ,
L_HTTP_STATUS_CODE TYPE I ,
L_HTTP_LENGTH TYPE I ,
L_PARAMS_XSTRING TYPE XSTRING ,
L_XSTRING TYPE XSTRING ,
L_IS_XML_TABLE TYPE STANDARD TABLE OF SMUM_XMLTB ,
L_IS_RETURN TYPE STANDARD TABLE OF BAPIRET2 ,
L_OUT_TAB TYPE STANDARD TABLE OF TBL1024
MOVE 'https://<hostname>/xxx/yyy/zzz' TO L_URL.
MOVE '<XML as string>' TO L_PARAMS_STRING.
*STEP-1 : CREATE HTTP CLIENT
CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
EXPORTING
URL = L_URL
IMPORTING
CLIENT = L_HTTP_CLIENT
EXCEPTIONS
ARGUMENT_NOT_FOUND = 1
PLUGIN_NOT_ACTIVE = 2
INTERNAL_ERROR = 3
OTHERS = 4 .
"STEP-2 : AUTHENTICATE HTTP CLIENT
CALL METHOD L_HTTP_CLIENT->AUTHENTICATE
EXPORTING
USERNAME = 'testUser'
PASSWORD = 'testPassword'.
"STEP-3 : SET HTTP HEADERS
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING NAME = 'Accept'
VALUE = 'text/xml'.
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING NAME = '~request_method'
VALUE = 'POST' .
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_CONTENT_TYPE
EXPORTING CONTENT_TYPE = 'text/xml' .
"SETTING REQUEST DATA FOR 'POST' METHOD
IF L_PARAMS_STRING IS NOT INITIAL.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
TEXT = L_PARAMS_STRING
IMPORTING
BUFFER = L_PARAMS_XSTRING
EXCEPTIONS
FAILED = 1
OTHERS = 2.
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_DATA
EXPORTING DATA = L_PARAMS_XSTRING .
ENDIF.
"STEP-4 : SEND HTTP REQUEST
CALL METHOD L_HTTP_CLIENT->SEND
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2.
"STEP-5 : GET HTTP RESPONSE
CALL METHOD L_HTTP_CLIENT->RECEIVE
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2
HTTP_PROCESSING_FAILED = 3.
"STEP-6 : Read HTTP RETURN CODE
CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_STATUS
IMPORTING
CODE = L_HTTP_STATUS_CODE
REASON = L_STATUS_TEXT .
WRITE: / 'HTTP_STATUS_CODE = ',
L_HTTP_STATUS_CODE,
/ 'STATUS_TEXT = ',
L_STATUS_TEXT .
"STEP-7 : READ RESPONSE DATA
CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_CDATA
RECEIVING DATA = L_RESULT .
"STEP-8 : CLOSE CONNECTION
CALL METHOD L_HTTP_CLIENT->CLOSE
EXCEPTIONS
HTTP_INVALID_STATE = 1
OTHERS = 2 .
"STEP-9 : PRINT OUTPUT TO FILE
CLEAR : L_XSTRING, L_OUT_TAB[].
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
TEXT = L_RESULT
IMPORTING
BUFFER = L_XSTRING
EXCEPTIONS
FAILED = 1
OTHERS = 2.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = L_XSTRING
TABLES
BINARY_TAB = L_OUT_TAB .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'C:AMEYHTTP_POST_OUTPUT.xml'
TABLES
DATA_TAB = L_OUT_TAB .
Also, following is the detailed link for use of HTTP_CLIENT class: -
http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/1f/93163f9959a808e10000000a114084/content.htm
Also, in below link, you can ignore XI specific part and observe how its sending XML to external URL:-
(I know it describes call to SAP XI server's URL, but it can be used to call any URL)
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/ae388f45-0901-0010-0f99-a76d785e3ccc
In addition to all above, following configs to be present at ABAP application server: -
1. The hostname used to URL should be present in SAP ABAP application server's 'hosts' file.
2. Security certificate (if available) for URL to be called must be installed in SAP ABAP application server.
Let me know if you achieve any progress with it... -
How to send xml file from local folder to azure storage
Hi,
My plan is i have xml files which are under folders in my local.
I want to use mobile service to send xml files to azure storage,
how shall i do that, either by c# or mobile service.
If internet stop, I will use my mobile service to transfer all xml files to azure storage and run web job to do to update azure
sql by xml file.
please advice.
SupermanHi,
You could refer the following link for assistance with uploading image files to Azure Blob Storage using Mobile Services:
http://azure.microsoft.com/en-us/documentation/articles/mobile-services-windows-phone-upload-data-blob-storage/
And for image files you could refer the following link:
http://stackoverflow.com/questions/25977406/upload-a-text-file-with-azure-mobile-services
Regards,
Malar. -
Application or Front end to send XML file to Webservice in 7.0
Hi,
Can anyone send me sample code how to send XML file to Webservice datasource,I have tested it through Navigator and it works fine.
Kindly send me the sample code how to pass XML data.
Thanks,
Arvind MHi Arvind,
Please check out below links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e698aa90-0201-0010-7982-b498e02af76b
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1530ab90-0201-0010-6791-f31512d75e6a
Hope its Helps u.
Thanks
SRS -
Get filename from file sender adapter
Hi Experts,
I have a question regarding the file/ftp adapter (sender).
I have a directory with xml and pdf files. for every xml file there is a pdf file with the same filename. for example:
file1.xml
file1.pdf
file2.xml
file2.pdf
file3.xml
file3.pdf
Now I want to read the xml file with the file sender adapter. afterwards I want to read the related pdf file. for example: If I read the file file1.xml afterwards I want to read the pdf file file1.pdf with the file sender adapter. For this it is nessessary to get the filename from the xml file so that I can read afterwards the pdf file. How can I realise it?
Thanks and best regards
ChristopherHi srinivas,
thanks for your quick answer.
That the file adapter is not able to read pdf files is clear to me. In this case I only want to transport the pdf. that works fine. I tested it.
the problem is the following:
I have a xml file with the name "file1.xml". I read the xml file with the sender file/ftp adapter configured with filename "*.xml". Then I want to import the pdf file with the name "file1.pdf". Therefor I need the filename from the xml file.do you know what I mean? So XI has to know the filename of the xml to import the pdf with the same name ...
regards -
File Sender Content Conversion: Help needed
Hello Experts,
i need help with file sender content conversion:
i have a file which looks like this:
12329460 24.01.09/07:01 167 Y010122851 136086 43300007 E70115 1L2_96_1
12329660 25.01.09/07:02 157 Y010122851 136086 43390007 E711J5 1L2_96_1
as you can see 8 fields, separated with whitespaces
and i want and xml file which looks like this:
<DT_DATA_FILESENDER>
<Recordset>
<Data>
<field1>12329460</field1>
<field2>24.01.09/07:01</field2>
<field3>167</field3>
<field4>Y010122851</field4>
<field5>136086</field5>
<field6>43300007</field6>
<field7>E70115</field7>
<field8>1L2_96_1</field8
</Data>
<Data>
<field1>12329660</field1>
<field2>25.01.09/07:02</field2>
<field3>157</field3>
<field4>Y010122851</field4>
<field5>136086</field5>
<field6>43390007</field6>
<field7>E711J5</field7>
<field8>1L2_96_1</field8
</Data>
</Recordset>
Would you please let me know how the datatype has to look like?
And especially how the FCC has to be configured for this scenario?
Thanks in advance,
Chris> With fixed lengths i get it working,
>
> but with de fieldseparator 0X09 it does not work,
> would you please tell me the complete FCC config not only the fieldSeparation line?
Well Christian,
There is one thing, eithere you can use fieldSeparator or fieldFixedLengths you can not use both together. So in your case do not use fieldSeparator.
The complete FCC is almost same as given in the blog in my previous reply. See the final output in that blog and create your data type accordingly. e.g.
Recordset
------Item 0...unbound
--------Field1 0..1
--------Field2 0..1
--------Field3 0..1
--------Field8 0..1
Regards,
Sarvesh
Maybe you are looking for
-
My session in xmanager will die after 80% of database creation completes
Hi, I am instaling oracle 10g on solaris through xmanager(X terminal), first i installed oracle 10g software only and i invoked dbca through xmanager after 80% of database creation completes my session will die i tried 4 times same problem, any body
-
Asset procurement (Import)CAPE
Hi gurus, When we post the excise invoice the system shows an error message"Cenvat postings not possible".In this case the goods receipt is valuated. I have maintained the excise master properly for the capital material,asset account ass
-
Dear all, I've setup the EWA for our SAP Enterprise portal system (non-ABAP), i've already refer to the note 976054 but along the way I am facing some issues, hope anyone here that has such experience or knowledge could share it with me. Here I would
-
Calendar and To-do list now missing from 5230 home...
My 5230 used to display a list of appointments and to-do items on the home screen. However, just recently that list has disappeared and I can't figure out how to get it to show up again. I found it really helpful to have that list there for quick r
-
Hi all I need a/cing entries that get posted in Various stages in PP Ur ans is helpful to me Thanx Srinivasa Rao