1 input file to 2 output file mapping. Please help!
Hi Experts,
I have a snenario where from one input file I have to generate two output files. My sender and receiver systems are the same since I want to generate the output files in the same location. I am using both the systems same just for testing purpose.
So in IR I have created
1. one outbound interface for the input file
2. two inbound interfaces for the output files
3. one message mapping containing one input message
transformation to two output messages.
4. one interface mapping containing one input interface
transformation to two output interfaces.
In ID I have created
1. one file sender channel and two receiver channels for two output files with different names.
2. two receiver agreements
3. one sender agreement
4. one interface determination of type "Enhanced".
5. one receiver determination
But when I run the scenario given one valid input file I am getting the error in the sxmb_moni : RuntimeException in Message-Mapping transformation: Cannot produce target element.
However message mapping and interface mapping works perfectly if I test it in IR with the same input file.
Can somebody help me understand what I might be doing wrong?
Have I done the configuration correctly for 1:N mapping?
Please help! I will be greatfull to you if you can help me.
Thanks
Gopal
If my input file is like this:
<ns1:LocationMsg_MT xmlns:ns1="http://www.abc.com/Gopal">
<Location>
</Location>
</ns1:LocationMsg_MT >
Then my scenario is working.
But my input file will be like this:
<LocationMsg_MT>
<Location>
</Location>
<LocationMsg_MT >
This is giving problem.
How to handle this kind of file?
Thanks
Gopal
Edited by: gopalkrishna baliga on Mar 14, 2008 3:19 PM
Similar Messages
-
How to apply input file name to output file in file adapter
Hi Friends
In my file to file scenario,i want to use input file name to output file by using adapter specific attributes,for this i have java code.Please suggest me how can i use this java code in mesg mapping and to which field i need to mapping this.
Thanks
pullaraoHi Pullarao,
I have two questions ...
1. Are u want the static file name in the target file?
if yes...then follow the Bhavesh instruction.
2.If u want a dynamic file name in the target file using UDF....then your UDF should mapped to the <b>root element</b> of target structure.
/**********UDF********/
Imports: com.sap.aii.mapping.api.*;
Parameter: String filename
String filename;
filename = fileName + ".DAT";
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
conf.put(key, filename);
return filename;
/*******END UDF*******/ -
I have 2 concerns, first my Canon 5D MarkII is not showing up in the input source when I download to lightroom. I have to use the card reader to do so. Then there is no File Handling Section listed anywhere. Please Help. Thanks Jim R.
You should find the forum for whatever prdouct your posting concerns and ask for help there.
Here is a link to a page that has links to all Adobe forums...
Forum links page:
https://forums.adobe.com/welcome -
I am having trouble dating to version 3.6.14 or updating to the Beta testing. I am running Linux/Ubutu OS and I get this error message:/tmp/p7x3vko2.part could not be saved, because the source file could not be read. Please help. Thank you , Deb
Solved for me.
I set the owner/permissions of my profile's mozilla folder's (and all the files in it) to read/write access, and the problem disappeared.
in linux:''
* cd /home/myusername/.mozilla
* chown -cR myusername:mygroup ./
* chmod -cR +rw ./
'''Never do that with root privs (nor with sudo)''' -
I keep on getting this error when i try to copy files to my 2T Time Capsule, Please help im running out of space on my MacBook Pro....
The operation can’t be completed because an unexpected error occurred (error code -50)I would get an external drive today and copy all your stuff off the TC.. forget trying to load more onto it. There is a good chance after 3years (A 2TB should be only about 2years tops), the disk or the TC itself is on the way out. Do it immediately. If TM is also failing to backup you need to recognise symtoms of impending doom.
Unfortunately the error messages are archane and it is hard to discover their meaning.
You also cannot verify a network drive.. you can verify the TM sparsebundle though so do that.
A5. http://pondini.org/TM/Troubleshooting.html
Reboot the whole network from off.. certainly if you run later OS it can simply lose the drive..
If you still fail to be able to copy to the TC.. then get that external and copy off it. Tell us if you can do that. -
I have macbook pro 13" I want to know how to copy files from my mac to the external Toshiba Hard Drive. I can't even delete files from my external hard drive. please help me my macbook HD is almost full and I have to copy my images to the Toshiba HD
To delete files from your external HDD, attach it to your MBP and drag the unwanted files to trash and then empty trash.
Then you select the files that you want to transfer by 'drag and drop' to the external HDD and trash the files on your MBP.
Ciao. -
My PC computer was wiped (virus) including itunes. How do I transfer the many playlists and music on my ipod to the new re-installed itunes?? Ipod is synced to old itunes. I have all original music files on external hard drive. Please help?
New itunes is trying to wipe the ipod. But have many many playlists (many hours making) which I want to save. Any help would be appreciated.If you want to just extract the playlists from your iPod, plug it in iTunes. When it appears under devices, right->click on it and choose Export Playlists. Save them to a location such as your desktop and them import them into your library once you have copied and imported all of your music back into it.
See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
https://discussions.apple.com/thread/2452022?start=0&tstart=0
B-rock -
I just downloaded the free trial of Adobe PDF to Word converter and was not able to convert a PDF file to word. Could anyone please help? Thx
Part of the problem in helping is likely that there is no program Adobe -- that is the company name. You are in the Acrobat forum, but it sounds like you have subscribed to Export PDF or such, a different program. The subscription to Acrobat is currently $19.99 per month.
-
I need to select and upload a image and corresponding url from an external website using file upload control in MVC4.
Please help
Latheesh K Contact No:+91-9747369936This forum supports .NET Framework setup.
As your issue appears to have nothing to do with .NET Framework setup, please ask in the MVC forums for best support.
http://forums.asp.net/1146.aspx/1?MVC -
I rented a movie and it shows up in my iTunes "Rented" section, but when I click to play it, it gives me an error message saying the movie can't be played because the original file can't be found. Please help!
Never mind I fixed it. Just in case anyone else has this problem, after you reinstall iTunes you have to delete all your old music, and if you have iTunes match all the songs you have saved on itunes match will display and you just have to download them to your Macbook.
-
How to merge five different xml input files into three output files
Hi All,
Can you please explain me to merge 5 different xml input files into 3 output xml files.
I'm looking forward for ur suggestions...
Thanks
PullaraoHI
Please see the below links
/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File
http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
Many other examples can be found under the following link at help.sap.com
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
And some weblogs
https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
/people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
/people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
/people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
/people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps *****
/people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements *****
/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
/people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement
Also have a look at these seminars,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
<b>BPM CollectPattern..</b>
http://help.sap.com/saphelp_nw2004s/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm
Thanks !
Regards
Abhishek Agrahari
Questions are welcome here!!
<b>Also mark helpful answers by rewarding points </b> -
How to merge two java files with InputDialog to select?Please help me!?
//Addition Java application
import javax.swing.JOptionPane; // import the class
public class Addition {
// main method
public static void main(String[] args)
String firstNumber, secondNumber;
int number1, number2, sum;
// read the first number
firstNumber = JOptionPane.showInputDialog("Please enter a integer: ");
// read the second number
secondNumber = JOptionPane.showInputDialog("Please enter another integer: ");
// data type conversion
number1 = Integer.parseInt(firstNumber);
number2 = Integer.parseInt(secondNumber);
sum = number1 + number2;
// display the result
JOptionPane.showMessageDialog(null, "The sum is " + sum + ".", "Results", JOptionPane.PLAIN_MESSAGE);
System.exit(0);
//Multiplication Java Application
import javax.swing.JOptionPane;
public class Multiplication5
public static void main(String args[])
int number1, number2, number3, number4, number5, product;
String firstNumber, secondNumber, thirdNumber, forthNumber, fifthNumber ;
firstNumber =
JOptionPane.showInputDialog("Please input an integer");
secondNumber =
JOptionPane.showInputDialog("Please input another integer");
thirdNumber =
JOptionPane.showInputDialog("Please input the third integer");
forthNumber =
JOptionPane.showInputDialog("Please input the forth integer");
fifthNumber =
JOptionPane.showInputDialog("Please input the fifth integer");
number1 = Integer.parseInt(firstNumber);
number2 = Integer.parseInt(secondNumber);
number3 = Integer.parseInt(thirdNumber);
number4 = Integer.parseInt(forthNumber);
number5 = Integer.parseInt(fifthNumber);
product = number1 * number2 * number3 * number4 * number5;
JOptionPane.showMessageDialog(null, "The product is " + product, "Results", JOptionPane.PLAIN_MESSAGE);
System.exit(0);
I seek for help to merge above two java application files.
I need to call JoptionPane.showInputDialog to prompt the user to input the operation, 1 for addition, 2 for multiplication. In this dialog, the user is expected to enter the integer of 1 or 2 for the calculation.
Please help me ! Thank you!Hi CRay,
You just need to call the main methods of the 2 classes according to "1" or "2" entered.
It is better if the "multiplication" and "addition" are declared as methods rather than in main methods.
Example:-
public static void Addition()
Then call
Addition.addition();
than
Addition.main(new String[]{});
as shown below.
import javax.swing.JOptionPane; // import the class
public class Test{
public static void main(String[] args){
// read which operation to perform
String operation = JOptionPane.showInputDialog("Please enter which operation : ");
if(operation.equals("1")){
Addition.main(new String[]{});
else{
Multiplication5.main(new String[]{});
}Rose -
How to create one file to 2 output files with a condition?
hello friends,
i have a scenario to split one file into two different files using a condition.
based on the account number ( 100's of accounts) i have to split the file into two. ex: acc# 1, acc#2, acc#3 goes into one file rest of the account number records goes into another file how to build the logic.
thanks
sriHi Sri,
One way-
You can achieve this with the help of Java Mapping..
In the Java Mapping, read input, parse the input while parsing the document , group the data into 2 structures and in the Interface Mapping use this java mapping. So here you have 2 target message interfaces..
Hope this helps,
Regards,
Moorthy -
Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help
Maybe some help here:
http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use// -
project file wont open. damaged file or contains outdated elements message. i believe its an XML error but i dont know how to fix it. please help
As a happy user of the Matrox RT.X2 for many years, and later an equally happy user of a Matrox MXO2, I can say from experience that it is highly unlikely that this problem has anything to do with the Matrox hardware!
Can you open a new blank project, and save it?
If you cannot import your faulty project into a new project, can you import the sequence from your faulty project?
Have you tried clearing the Media Cache, clearing your preferences, etc. - all among the techniques used to resurrect a Premiere Pro project that has gone bad???
Maybe you are looking for
-
One CC account - two computers?
Is it possible to use one CC subscription on multiple computers? I've got one laptop for the road, and one desktop at home...
-
Compilation Error while trying to Deploy my Web Service
My main problem right now is that I can build my classes without error but when it is time to deploy the web service with Jdeveloper I am getting a compilation error without to get info about what is the error itself: Started application : RTAService
-
Hi SolMan Experts, I am working in an SAP implementation project, which is in its project planning phase. Since i am new to Solman ,i have few things in my mind to clear. How is Solman used while Implementation ? Can Solman store multiple project doc
-
Do MacBook Pro's supply power to USB devices while it is in sleep mode unplugged?
-
Windows 7 Home Premium OEM iso file
Hellowhen i bought this laptop it didnt have any recovery disks in the packetmy brother formated the HDD from a friends windows cd but the product key didnt work (i dont know why my bro did it)and now he has pirate windowsI the bottom of the laptop t