cancel
Showing results for 
Search instead for 
Did you mean: 

process empty file : file (fcc) to rfc

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

rajasekhar_reddy14
Active Contributor
0 Kudos

file channel you have an option skip empty files. seelct that option.

Former Member
0 Kudos

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

Former Member
0 Kudos

the procedure mentioned above is not to skip the processing but to avoid the error. Thus what it actually does is, though file at sender is empty, channel ppicks up and sends empty payload to receiver. Try it first.

Former Member
0 Kudos

hi vishal,

this cannot /does not happen when using fcc at sender side..

if its xml.. it goes well..

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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 and mapping throws error...

there is no mandatory field but the src structure itself is not generated...

I hope u nderstand my issue..

baskar_gopalakrishnan2
Active Contributor
0 Kudos

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.