SAP XI - Combine Two files as one in File Adapter
Experts,
I want to combine two files as one in File adapter itself. I am using a simple scenario of File-to-File where i am just sending the file from sender to receiver as it is , EXCEPT, i want to add one line at the end of the file .
I was thinking of doing this in File adapter , avoiding any mapping program in Integration Repository ..
ANY INDEA's ??
Regards,
Ashutosh
Hey
You have 3 options,first one can be to execute a OS command before message processing or use adapter modules to append the new line in the sender adapter.
the second option(and better one) is to do this via message mapping.
third option is to write a OS script and execute it after message processing on receiver file adapter.
one thing you need to make sure is that since OS scripts run on XI server itself(not on FTP server) so in case you are picking file from FTP server and delivering to FTP ,then you can't use option 1 or 3,you can only use option 2
Thanx
Aamir
Similar Messages
-
Can we combine multiple excel files into one excel file using SSIS?
I have a bunch of excel files in a specified folder. I wanted to combine all the excel files into one excel file by adding additional tabs in one excel file. Can I do this using SSIS?
OR
I know using macro we can combine multiple excel files. Can we run a excel macro in SSIS? Please help me.
Actually the complete package is this:
Step1: Using FTP task I'm downloading the bunch of excel files into a folder.
Step2: Above implementation is the second step that I have to do.You can do it in two steps
1. First get all data from excel sheets to a sql staging table. For that you need to use a looping logic as explained in below link (you dont required the additional logic used for checking file name etc in below example as you need all files). Also make
source as excel instead of flat file
http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
2. Once you get the data onto a single table, use below to get it exported to multiple sheets within same excel destination file
http://visakhm.blogspot.in/2013/09/exporting-sqlserver-data-to-multiple.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Any FM available in SAP to combined 2 spools in one spool
Hi All
Is there Any FM available in SAP to combined 2 spools in one spool ????????
My requirement is such that In Dunning form printing we need to combined the line items of the two different company code in to one spools....
I looking forward for your replies.
cheers
AnupHi,
I don't think you can combine them ... but please try these combination FM RSPO_RETURN_ABAP_SPOOLJOB, RSPO_SR_OPEN and FM RSPO_SR_WRITE.
The first one extracts lines from a spool request. The second one creates a new spool request. The last one write lines into a spool request.
Regards,
Raj. -
How to combine multiple webservices into one WSDL file
Gurus,
I have 4 four webservices(ws1,ws2,ws3 & ws4) defined in XI. Normally in XI when we define webservice ,WSDL file will be generated for each interface. Now I have 4 related interfaces, so 4 WSDL files will generated. Suppose if I have 100 webservices then 100 WSDL files need to be generated & need to send to other party to consume our services, which is very tedious task & to track also. So is it possible to combine related webservices into one WSDL file? Your inputs will be highly appreciated.
Regards,
SanthoshHi,
Instead of trying to combine the interfaces, you can try to define your interface mapping with 4 sender interfaces with in one interface mapping . I think this may give you the result you are expecting.
If you want entire content to be in one interface , then, define single interface which can accomadate, all message ocntent of all 4 interfaces.Means your sender message to contain the 4 datatypes internally.
Regards,
Reyaz -
How do I combine two regents into one in Logic Pro Arrange?
how do I combine two regents into one in Logic Pro Arrange?
Thanks for your input kcstudio. I would still be left with 2 regions although one after the other, on one track.
I am trying to save steps of the way I am combining the info of 2 seperate regions into one: bouncing the 2 tracks then re-importing that audio back into the project. It would save a lot of time if you could just drag one region on top of the other
W.W. -
Combining two messages into one
Hello,
I have a mapping issue, I have a business process in which I have to combine two messages into one.
To do so, I have defined a message mapping in which there are two source message types, and one target message type.
When testing the message mapping in the IR, it works fine, but when I define and test an interface mapping with that same message mapping, I receive this error message:
"Cannot produce target element /ns0:Messages/ns0Message1/MY_IDOC_TYPE/MY_SEGMENT. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd."
What am I doing wrong ?
How am I supposed to combine two messages into one ?
Thanks,
Elad.Hi Elad,
Just see if you have included both you source message interfaces and one target nessage interface correctly in while doing your interface mapping.....
The most common mistake made when we do scenarios which include combination of two source message types into one target type are:
- we forget to include both the source message interfaces.
- or we interchange between one of the source message interface with the target.
Just see if either of the 2 is aplicable in your case and just activate all components as and when you create them..
Regards,
abhy -
Can I have two Data Files in One control file of sql*loader tool
hi,
Can someone help me out. is it possible to have two Data Files in one control file of Sql*loader.
And isit possible to run 10,000 records before lunch and 10,000 records before tea and 10,000 records before evening session by giving breaks after every 10,000 records.
Thanks
RamYes. You can specify two datafiles in one control file and can load using sql loader.
I give you the sample control file.
Load DATA
INFILE 'TEST1.CSV'
INFILE 'TEST2.CSV'
TRUNCATE
INTO TABLE TEST_P
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(COL_1,
COL_2,
COL_n)
Hope It will help you.
-Karthik -
I need to combine multiple pdf files to one pdf file
i need to combine multiple pdf files to one pdf file
what product do I need to purchase?Or the PDF Pack online service.
-
HT4759 How do I combine two accounts into one
How can I combine two accounts into one account
If you are talking about iCloud accounts, you can't.
Or you could tell us what type of accounts these are? -
How do I combine pdf files into one pdf file?
How do I combine a number of pdf files into one pdf file?
If you want a more affordable option, you can try CreatePDF from Acrobat.com.
-
How to zip multi files into one zip file in ABAP
hi all:
As you know, ABAP has CL_ABAP_GZIP class to support zip file function. But it only support one file zip. If I want to zip two files into one zip file, how to do it?
thanks.Hi,
<li>If you know how to zip one file, to zip two files , you can follow the below steps.
DATA:g_zipper TYPE REF TO cl_abap_zip.
"create our zipper object
CREATE OBJECT g_zipper.
"add 1st file to zip
CALL METHOD g_zipper->add
EXPORTING
name = file_name
content = content_x.
"add 2nd file to zip
CALL METHOD g_zipper->add
EXPORTING
name = file_name
content = content_y.
"save zip
CALL METHOD g_zipper->save
RECEIVING
zip = zip.
Thanks
Venkat.O -
Error Message When Merging Multiple PDF Files into One PDF File
Good Morning,
I have a problem with Adobe Acrobat 9 Pro. I am trying to merge/combine multiple PDF files into one PDF file, but I keep receiving this error message:
Does anyone have a fix for this? Thank you!To fix:
Provide a unique name for each form field. This includes the individual PDFs fields. As you intend to combine/merge no field name in each of the individual PDFs can be the same.
Be well... -
Mixing sound files into one sound file. Urgent
Hi,
I want to mix different sound files into one sound file but I don't have any idea of how to do this. Can anybody tell me how or just point me to the right tutorial. I do not want to do this through an applet.
Thanks all in advance.try it this way:
String oneFile = "mp3" + "wav" + "allOthers";
you can use System.out.println(oneFile) to see if it works. good luck! -
Open 100 files in one photoshop file
Hi,
I need to open 100 files in one Photoshop file.
I would like to have those 100 files on a different layer.
Is there a way to do this faster than opening each of them and copying them one by one in a file?
thanksHi Dedinne.
A simple action should do it. It is run as a batch on your source images.
1. Select All.
2. Copy.
3. Close
4. Paste.
The target image is created and left open before the action is run on the source images.
Batch opens the source image.
1. & 2. Copy the source image.
3. Closes the source image.
4. Pastes into the target image, which remains open during the process receiving each image in turn.
FWIW.
Peace,
Lee -
Can you merge 2-3 mp3 files in one mp3 file?
Can you merge 2-3 mp4 files into one mp3 file?
you can purchase mixing programs (or down load trials and shareware although im usually a skeptic of free programs)
Maybe you are looking for
-
Help Am New To Apples And Need HELP With Wireless Conenction Imac Mini
Hi First time here, i think i am running myself in circles here reading hundreds od different threads and pdf's. What i want to do is share my broadband connection with the Imac intel dual core (Wifes), My PC and an XBOX 360. Have the pc and the xbox
-
Is there a solution for surviving the millions of different codecs?
Hi Once again, I find I can't use a video file which has been passed to me. It won't open in Quicktime, FCE or iMovie. It was encoded as an mpeg in Premiere Elements, although I'm aware that this doesn't really mean much. I can open it in VLC - the c
-
Need help regarding Arithmetic Expressions
Hi Experts, I have a requirement where in I need to pass Arithmetic Expressions (+,-,/) as constants to a subroutine.For ex: constants:c_p type char1 value '+', c_m type char1 value '-', data:v_a type char1 value '2', v_
-
Here! maps download to SD card in Winwowsphone 8.1
Can I download Here! maps to my SD Card in my Nokia 630 / Windowsphone 8.1 ??
-
Read the stack value in a stacked graph upon user action
Hi, We have a Stacked Column Chart. When the user click on a stack, i want to read that stack value and pass it to a different query to fetch the values for drilldown. Could anyone please advise the solution to do this? Suppose the user click on the