on 11-30-2011 5:26 AM
Hi Experts,
I have a scenario where. I have to process files and send it to rfc..
file to rfc scenario...
now basically.. when the file is empty the content conversion does not produce any payload and throws error..
can u pls help me in this?
Hello,
The problem is that XI will pick up th file with empty payload.. but as there is no content in the file...
the content conversion cannot be done
The content conversion will still be done except that it will not output anything. To do this, set your recordset occurrence to * instead of 1
http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6713ec3f914ddee10000000a1553f7/content.htm
and mapping throws error...
Since there is no output, the mapping will really throw an error. What you can do is to place a dummy structure, you can use a two-step mapping to do this, in your operation mapping use Java Mapping as your first mapping and in the second mapping, your actual mapping graphical mapping e.g
1.) Read the inputstream and then check if there is a structure. If there is a structure, the Java mapping just passes it to the outputstream. If it is not, then Java mapping will write the dummy structure into outputstream. (Java Mapping)
2.) Output from 1 is passed to Message Mapping
Can you tell us the reason why empty files are needed to be processed? Because this adds overhead in the AE.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
This is actually a sequential process run.. where I am using a file to rfc to file scenario..
so when the first file comes it process the rfc and the response of the rfc is returned and an OS script then transfers a file from the file folder to the folder ...
so Incase the first file is not processed by the rfc.. the second file will never get executed...
Else in normal scenarios u r right.. there is no need to process empty payloads.. it will add overhead to the AE
Hi,
file sender communication channel we have one option like empty file handling. you just select no for that option it does not process the empty file.
regards,
ganesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
file channel you have an option skip empty files. seelct that option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guys,
I actually want an empty payload to be created and sent to the receiver adapter...
I do not want to skip it..
but as the content conversion has to be done.. in moni the inbound message is blank...
I want a dummy payload atleast..
pls share ur ideas..
Regards,
Teja
Edited by: Ravindra Teja on Nov 30, 2011 6:35 AM
Hi,
In the sender CC you can select "Process empty files option".
http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/682bcd7f2a6d12e10000000a1553f6/content.htm
same discussion in the below link
Regards,
Venkata Ramesh
Hi Ravi,
Just wanted to get clarification. With empty payload processing what exactly you want to do. As per the above response you can process the empty files. This will resolve you sender channel issue and xi will pick it. Kindly explain your requirement.
Please explain so that we can help you.
Regards,
Nutan
When you mentioned empty payload is that mean that file size is o bytes? if the file size is o bytes then you can set the option such as skip empty files or do not create message. if the file size is not empty then you cannot handle through this option. You need to correct at the source side. Not sending such empty data.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.